You are on page 1of 1

__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC LIST P=16F84A INCLUDE <P16F84A.

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

EsperaDePulsar btfss Pulsador goto EsperaDejepulsar fin goto Principal

You might also like