quarta-feira, 9 de maio de 2012
Projéto de um semáforo com o pic16f628A
@ DEVICE pic16F628A
@ DEVICE pic16F628A, WDT_OFF
@ DEVICE pic16F628A, PWRT_OFF
@ DEVICE pic16F628A, BOD_OFF
@ DEVICE pic16F628A, PROTECT_OFF
@ DEVICE pic16F628A, MCLR_OFF
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT
TRISB=0
PROG:
PROTB=%100001
PAUSE 9000
PORTB=%100010
PAUSE 3000
PORTB=1100
PAUSE 9000
PORTB=%010100
PAUSE 3000
GOTO PROG
END
Assinar:
Postagens (Atom)