HT66F03T3/68F03T3 MCU with 315MHz/433MHz ASK Transmitter
CLR
tmr0c.4
JMP
EXIT
EXIT:
NO_CHANGE:
RETI
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;~~~~~~~~~~timer1 int
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TMR1INT:
SDZ CREF_COUNT
RETI
SZ
PA4 ;TOGGLE PA4
JMP CLR_PA4
SET PA4
JMP $+2
CLR_PA4:
CLR PA4
MOV A,GEN1_TMR_TMP
MOV CREF_COUNT,A
reti
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;~~~~~~~~~~MAIN
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MAIN:
;INITIAL I/O
CLR PBC1
SET PBC0
;INITIAL COUNT
CLR PA5_TMP
MOV A,32
MOV CREF_COUNT,A
CLR CA1_TMP
CLR CA2_TMP
;INITIAL TIMER0
mov a,05h
mov intc0,a
mov a,82h
mov tmr0c,a
mov a,236
mov tmr0,a
;INITIAL TIMER1
set et1i
mov a,236
mov tmr1,a
mov a,80h
mov tmr1c,a
SNZ PA5
JMP $-1
SZ
PA5
JMP $-1
set tmr0c.4
sz
CREF_COUNT
JMP $-1
CLR ET0I
RLC CA1_TMP
;INITIAL PA4 INTO OUTPUT MODE(dout)
;INITIAL PA4 INTO INPUT MODE (cref)
;; enable interupt
;; tmr internal mode
;; time base is (256-216)*1us=40us
;; enable interupt
;; time base is (256-216)*1us=40us
;; tmr internal mode
;; start tmr
;;WAIT COUNTER FINISH
;;Disable the timer 0 interrupt
;both ca1_tmp and ca2_tmp are store
4
Need help?
Do you have a question about the HT66F03T3 and is the answer not in the manual?