miércoles, 18 de mayo de 2011

Turn On 8 Digits 16F84a

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

Autor: Luis Eduardo Fernandez Rocha (Contacto Linkedin)

No hay comentarios.:

Publicar un comentario