I/O Memory Of Programmable Timer - Epson S1C63003 Technical Manual

Cmos 4-bit single chip microcontroller
Table of Contents

Advertisement

11 PROGRaMMaBle TiMeR
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.
11.9
Clock Output to Serial interface and R/F Converter
[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
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
: Timer 1 count clock frequency set by the PTPS1 register (See Table 11.2.1.)
CNT1
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.
11.10

i/O Memory of Programmable Timer

Table 11.10.1 shows the I/O addresses and the control bits for the programmable timer.
Address
Register name R/W Default
FF18H D3 PTPS03
R/W
D2 PTPS02
R/W
D1 PTPS01
R/W
D0 PTPS00
R/W
D3 PTPS13
FF19H
R/W
D2 PTPS12
(*6)
R/W
D1 PTPS11
R/W
D0 PTPS10
R/W
D3 PTPS23
FF1AH
R/W
D2 PTPS22
(*6)
R/W
D1 PTPS21
R/W
D0 PTPS20
R/W
D3 PTPS33
FF1BH
R/W
(*4)
D2 PTPS32
R/W
D1 PTPS31
R/W
D0 PTPS30
R/W
11-8
PTOUT_A/PTOUT_B
TOUT_A/TOUT_B output
Figure 11.
8.1 Output waveform of the TOUT signal
Figure 11.
9.1 Clock output to serial interface and R/F converter
Table 11.
10.1 Control bits of programmable timer
Setting/data
0
F f
B f
/16
3
3
0
E f
/2
A f
/32
3
3
0
D f
/4
9 f
/64
3
3
0
C f
/8
8 f
/256 4 f
3
3
0
F f
B f
/16
3
3
0
E f
/2
A f
/32
3
3
0
D f
/4
9 f
/64
3
3
0
C f
/8
8 f
/256 4 f
3
3
0
F f
B f
/16
3
3
0
E f
/2
A f
/32
3
3
0
D f
/4
9 f
/64
3
3
0
C f
/8
8 f
/256 4 f
3
3
0
F f
B f
/16
3
3
0
E f
/2
A f
/32
3
3
0
D f
/4
9 f
/64
3
3
0
C f
/8
8 f
/256 4 f
3
3
Seiko epson Corporation
0
1
7 f
3 f
/32
Programmable timer 0 count clock frequency
1
1
6 f
/2
2 f
/64
selection (f
1
1
5 f
/4
1 f
/256
1
1
/16
0 Off
1
7 f
3 f
/32
Programmable timer 1 count clock frequency
1
1
6 f
/2
2 f
/64
selection (f
1
1
5 f
/4
1 f
/256
1
1
/16
0 Off
1
7 f
3 f
/32
Programmable timer 2 count clock frequency
1
1
6 f
/2
2 f
/64
selection (f
1
1
5 f
/4
1 f
/256
1
1
/16
0 Off
1
7 f
3 f
/32
Programmable timer 3 count clock frequency
1
1
6 f
/2
2 f
/64
selection (f
1
1
5 f
/4
1 f
/256
1
1
/16
0 Off
1
S1C63003/004/008/016 TeChniCal Manual
Function
= f
, f
= f
)
1
OSC1
3
OSC3
= f
, f
= f
)
1
OSC1
3
OSC3
= f
, f
= f
)
1
OSC1
3
OSC3
= f
, f
= f
)
1
OSC1
3
OSC3
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c63004S1c63008S1c63016

Table of Contents