11 PROGRaMMaBle TiMeR
11-8
Seiko epson Corporation
S1C63003/004/008/016 TeChniCal Manual
(Rev. 1.1)
When TOUT output is enabled, the I/O port is automatically set to output mode and it outputs the TOUT signal
sent from the timer. The I/O control register (IOC11/IOC23) and the data register (P11/P23) are ineffective. When
PTOUT_A/PTOUT_B is set to "0," the I/O port control registers become effective.
Since the TOUT_A/TOUT_B signal is generated asynchronously from the PTOUT_A/PTOUT_B register, a hazard
within 1/2 cycle is generated when the signal is turned on and off by setting the register.
Figure 11.8.1 shows the output waveform of the TOUT_A/TOUT_B signal.
PTOUT_A/PTOUT_B
TOUT_A/TOUT_B output
0
1
8.1 Output waveform of the TOUT signal
Figure 11.
Clock Output to Serial interface and R/F Converter
11.9
[S1C63004/008/016]
In the S1C63004/008/016, the signal that is made from underflows of Timer 1 by dividing them by 2, can be used as
the clock source for the serial interface and R/F converter. Timer 1 always outputs the clock to the serial interface and
R/F converter by setting Timer 1 into RUN state (PTRUN1 = "1"). It is not necessary to control with the PTOUT_A
register.
PTRUN1
Timer 1 underflow
Source clock for serial I/F
and R/F converter
9.1 Clock output to serial interface and R/F converter
Figure 11.
A setting value for the RLD1x register according to a transfer rate of the serial interface is calculated by the follow-
ing expression:
f
CNT1
RLD1x = ————— -1
2*bps
f
CNT1
: Timer 1 count clock frequency set by the PTPS1 register (See Table 11.2.1.)
bps: Transfer rate
(00H can be set to RLD1x)
Be aware that the maximum clock frequency for the serial interface is limited to 1 MHz when OSC3 is used as the
clock source.
i/O Memory of Programmable Timer
11.10
Table 11.10.1 shows the I/O addresses and the control bits for the programmable timer.
10.1 Control bits of programmable timer
Table 11.
Address
Register name R/W Default
Setting/data
Function
FF18H D3
PTPS03
R/W
0
F f
3
B f
3
/16
7 f
1
3 f
1
/32
Programmable timer 0 count clock frequency
selection (f
1
= f
OSC1
, f
3
= f
OSC3
)
D2
PTPS02
R/W
0
E f
3
/2
A f
3
/32
6 f
1
/2
2 f
1
/64
D1
PTPS01
R/W
0
D f
3
/4
9 f
3
/64
5 f
1
/4
1 f
1
/256
D0
PTPS00
R/W
0
C f
3
/8
8 f
3
/256 4 f
1
/16
0 Off
FF19H
(
*
6)
D3
PTPS13
R/W
0
F f
3
B f
3
/16
7 f
1
3 f
1
/32
Programmable timer 1 count clock frequency
selection (f
1
= f
OSC1
, f
3
= f
OSC3
)
D2
PTPS12
R/W
0
E f
3
/2
A f
3
/32
6 f
1
/2
2 f
1
/64
D1
PTPS11
R/W
0
D f
3
/4
9 f
3
/64
5 f
1
/4
1 f
1
/256
D0
PTPS10
R/W
0
C f
3
/8
8 f
3
/256 4 f
1
/16
0 Off
FF1AH
(
*
6)
D3
PTPS23
R/W
0
F f
3
B f
3
/16
7 f
1
3 f
1
/32
Programmable timer 2 count clock frequency
selection (f
1
= f
OSC1
, f
3
= f
OSC3
)
D2
PTPS22
R/W
0
E f
3
/2
A f
3
/32
6 f
1
/2
2 f
1
/64
D1
PTPS21
R/W
0
D f
3
/4
9 f
3
/64
5 f
1
/4
1 f
1
/256
D0
PTPS20
R/W
0
C f
3
/8
8 f
3
/256 4 f
1
/16
0 Off
FF1BH
(
*
4)
D3
PTPS33
R/W
0
F f
3
B f
3
/16
7 f
1
3 f
1
/32
Programmable timer 3 count clock frequency
selection (f
1
= f
OSC1
, f
3
= f
OSC3
)
D2
PTPS32
R/W
0
E f
3
/2
A f
3
/32
6 f
1
/2
2 f
1
/64
D1
PTPS31
R/W
0
D f
3
/4
9 f
3
/64
5 f
1
/4
1 f
1
/256
D0
PTPS30
R/W
0
C f
3
/8
8 f
3
/256 4 f
1
/16
0 Off