SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 79
Version 2.0
8.2.5 T0 TIMER OPERATION EXPLAME
T0 TIMER CONFIGURATION:
; Reset T0 timer.
CLR
T0M
; Clear T0M register.
; Set T0 clock source and T0 rate.
MOV
A, #0
nnn
0
0
00b
B0MOV
T0M, A
; Set T0C register for T0 Interval time.
MOV
A, #
value
B0MOV
T0C, A
; Clear T0IRQ
B0BCLR
FT0IRQ
; Enable T0 timer and interrupt function.
B0BSET
FT0IEN
; Enable T0 interrupt function.
B0BSET
FT0ENB
; Enable T0 timer.