In the PortB connect a series of LEDs which are 8 digits, and show the next digit b'01010101'
Org 00h ;Starting the program
bsf Status,RP0 ;Set up ’1’ bit 5 of status, Access to Bank1
clrf TrisB ;The PortB Lines are configured as OutPuts
bcf Status,RP0 ;Set up ‘0’ bit 5 of status, and access to Bank0
movlw b‘01010101’
ETI0
Movwf PortB ; W content is displayed by the portB
Goto ETI0 ; Create closed loop at ETI0
END ; Finish the program
No hay comentarios.:
Publicar un comentario