SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
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, #0nnn0000b
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
B0BSET
FT0IEN
FT0ENB
; Enable T0 interrupt function.
; Enable T0 timer.
SONiX TECHNOLOGY CO., LTD
Page 79
Version 2.0