11 PROGRaMMaBle TiMeR
S1C63003/004/008/016 TeChniCal Manual
Seiko epson Corporation
11-3
(Rev. 1.1)
Notes: • The functions shown below are not implemented in the S1C63003 programmable timer.
- Timer 1 to Timer 3
- EVIN_B input and TOUT_B output
- 16-bit mode
- Compare data register and comparator
- PWM output function and compare match interrupt
- R/F converter clock supply
• The functions shown below are not implemented in the S1C63004/008 programmable timer.
- Timer 3
- 16-bit mode in Ch.B
• Each timer has the same basic functions except the register names, I/O ports used and their
signal names. The description in this section applies to all timers otherwise a timer number (0 to
3) or a unit number (A or B) is specified. The 'x' in the register name refers to the timer number
(0 to 3).
Examples:
Timer x
→
Can be replaced with Timer 0 to Timer 3.
PTRUNx register
→
Can be replaced with PTRUN0 to PTRUN3 registers.
• If the TOUT_A and/or TOUT_B terminals are used to drive an external component that con-
sumes a large amount of current such as a bipolar transistor, design the pattern of traces on
the printed circuit board so that the operation of the external component does not affect the IC
power supply. Refer to "Precautions on Mounting" in the Appendix for more information.
Controlling Operating Clock
11.2
The clock manager generates the down-count clock for each timer by dividing the OSC1 or OSC3 clock. Table 11.2.1
lists the 15 count clocks that can be generated by the clock manager, and the clock to be used for each timer can be
selected using the count clock frequency select register PTPSx[3:0]. At initial reset, the PTPSx[3:0] register is set to
"0H" and the clock supply from the clock manager to the programmable timer is disabled. Before the timer can be
run, select a clock to enable the clock supply.
2.1 Selecting count clock frequency
Table 11.
PTPSx[3:0]
Timer clock
FH
f
OSC3
EH
f
OSC3
/ 2
DH
f
OSC3
/ 4
CH
f
OSC3
/ 8
BH
f
OSC3
/ 16
AH
f
OSC3
/ 32
9H
f
OSC3
/ 64
8H
f
OSC3
/ 256
7H
f
OSC1
(32 kHz)
6H
f
OSC1
/ 2 (16 kHz)
5H
f
OSC1
/ 4 (8 kHz)
4H
f
OSC1
/ 16 (2 kHz)
3H
f
OSC1
/ 32 (1 kHz)
2H
f
OSC1
/ 64 (512 Hz)
1H
f
OSC1
/ 256 (128 Hz)
0H
Off
f
OSC1
: OSC1 oscillation frequency. ( ) indicates the frequency when f
OSC1
= 32 kHz.
f
OSC3
: OSC3 oscillation frequency
Stop the clock supply to the timers shown below by setting PTPSx[3:0] to "0H" to reduce current consumption.
• Unused timer
• Timer used as an event counter that inputs an external clock
• Upper 8-bit timer (Timer 1, Timer 3) when a timer unit is used as a 16-bit
×
1 channel configuration.