SN8P2624
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 73
Version 0.3
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.
)
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
8.2.2 T0M MODE REGISTER
0D8H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
T0M
T0ENB T0rate2 T0rate1 T0rate0
-
-
-
-
Read/Write
R/W R/W R/W R/W -
-
-
-
After
reset
0 0 0 0 - - - -
Bit [6:4]
T0RATE[2:0]:
T0 internal clock select bits.
000 = fcpu/256.
001 = fcpu/128.
…
110 = fcpu/4.
111 = fcpu/2.
Bit 7
T0ENB:
T0 counter control bit.
0 = Disable T0 timer.
1 = Enable T0 timer.