;38KHz ”U‰ñ˜H 16F84A @4MHz |
|
|
|
LIST P=PIC16F84A |
|
INCLUDE "P16F84A.INC" |
|
__CONFIG _HS_OSC & _PWRTE_ON & _CP_OFF
& WDT_OFF |
|
|
|
|
|
ORG |
0 |
|
|
|
|
|
;MAIN |
|
|
|
|
BSF |
STATUS,RP0 |
;ƒoƒ“ƒN‚P‚ÉØ‘Ö‚¦ |
|
CLRF |
TRISB |
;PORTB ‚ð‚·‚×‚Äo—͂ɃZƒbƒg |
|
BCF |
STATUS,RP0 |
;ƒoƒ“ƒN0‚É–ß‚é |
|
|
|
|
LOOP |
|
|
|
|
BSF |
PORTB,3 |
;1 |
|
NOP |
|
;1+1=2 |
|
NOP |
|
;2+1=3 |
|
NOP |
|
;3+1=4 |
|
NOP |
|
;4+1=5 |
|
NOP |
|
;5+1=6 |
|
NOP |
|
;6+1=7 |
|
NOP |
|
;7+1=8 |
|
NOP |
|
;8+1=9 |
|
NOP |
|
;9+1=10 |
|
NOP |
|
;10+1=11 |
|
NOP |
|
;11+1=12 |
|
NOP |
|
;12+1=13ƒÊsec ON |
|
BCF |
PORTB,3 |
;1 |
|
NOP |
|
;1+1=2 |
|
NOP |
|
;2+1=3 |
|
NOP |
|
;3+1=4 |
|
NOP |
|
;4+1=5 |
|
NOP |
|
;5+1=6 |
|
NOP |
|
;6+1=7 |
|
NOP |
|
;7+1=8 |
|
NOP |
|
;8+1=9 |
|
NOP |
|
;9+1=10 |
|
NOP |
|
;10+1=11 |
|
GOTO |
LOOP |
;11+2=13ƒÊsec OFF |
|
|
|
|
|
END |
|
|