SN8P26L38
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 85
Version 1.5
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 High_Clk code option = "IHRC_RTC".
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:1. In RTC mode, clear T0IRQ must be after 1/2 RTC clock source (32768Hz), or the RTC interval time
is error. The delay is about 16us and use T0 interrupt service routine executing time to be the
16us delay time.
2. In RTC mode, the T0 interval time is fixed at 0.5 sec and T0C is 256 counts.