Professional Documents
Culture Documents
INC> CBLOCK 0x0C Contador ENDC #DEFINE Pulsador #DEFINE Pulsadoroff #DEFINE Display PORTB PORTA,4 PORTA,0 ; El contador a visualizar. ; Pulsador conectado a RA4. ; Este tengra que apagar led ; El display est conectado al Puerto B.
; ZONA DE CDIGOS ***************************** ORG Inicio bsf clrf bsf bcf Principal btfsc goto call btfsc goto STATUS,RP0 Display pulsador status,RP0 Pulsador fin retardo_20ms Pulsador fin 0