SN8P275X Series
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 86
Version 0.7
8.2 TIMER 0 (T0)
8.2.1 OVERVIEW
The T0 is an 8-bit binary up timer and event counter. If T0 timer occurs an overflow (from FFH to 00H), it will continue
counting and issue a time-out signal to trigger T0 interrupt to request interrupt service.
The main purposes of the T0 timer is as following.
)
8-bit programmable up counting timer:
Generates interrupts at specific time intervals based on the selected
clock frequency.
)
RTC timer:
Generates interrupts at real time intervals based on the selected clock source.
RTC function is only
available in T0TB=1.
)
Green mode wakeup function:
T0 can be green mode wake-up time as T0ENB = 1. System will be wake-up by
T0 time out.
Fcpu
T0 Rate
(Fcpu/2~Fcpu/256)
T0ENB
CPUM0,1
T0C 8-Bit Binary Up Counting Counter
T0 Time Out
Load
Internal Data Bus
T0ENB
RTC
T0TB
¾
Note: In RTC mode, the T0 interval time is fixed at 0.5 sec and isn’t controlled by T0C.