sh66k12 SinoWealth Micro-Electronics Corp. Ltd, sh66k12 Datasheet - Page 10

no-image

sh66k12

Manufacturer Part Number
sh66k12
Description
Mask 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
(b) Timer0 Interrupt
The timer overflow will generate an internal interrupt request, when the counter counts overflow from $FF to $00. If the interrupt
enable flag is enabled, then a timer interrupt service routine will start. This can also be used to wake CPU from HALT mode.
(c) Timer mode register
The timer can be programmed in several different prescaler ratios by setting Timer Mode register (TM0, TM1).
The 8-bit counter prescaler output pulses. The Timer Mode registers (TM0, TM1) are 3-bit registers used for the timer control as
shown in Table1 and Table 2. These mode registers select the input pulse sources into the timer.
Table 1. Timer0 Mode Register ($02)
Table 2. Timer1 Mode Register ($03)
TM0.2
TM1.2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
TM0.1
TM1.1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
TM0.0
TM1.0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Prescaler Divide Ratio
Prescaler Divide Ratio
10
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
/2
11
11
9
7
5
3
2
1
0
9
7
5
3
2
1
0
Clock Source
Clock Source
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
System clock
SH66K12

Related parts for sh66k12