10 Fine MODe 8-BiT TiMeRS (T8F)
10-4
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
Count clock
PRESER write
PRUN
Counter
Interrupt request
0
1
n-1
n
n
Count clock
PRESER write
PRUN
Counter
Interrupt request
0
1
n-1
n
n
0
1
n-1
n
n-1
One-shot mode
Repeat mode
Reset by hardware
Set by software
Set by software
Reset by software
6.1 Count Operation
Figure 10.
T8F Output Signals
10.7
The T8F module outputs underflow pulses when the counter underflows.
These pulses are used for timer interrupt requests.
These pulses are also used to generate a UART clock. The clock generated is sent to the internal peripheral module,
as shown below.
T8F Ch.0 output clock
→
UART Ch.0
T8F Ch.1 output clock
→
UART Ch.1
Underflow signal
Timer output
(to UART)
Interrupt request to the ITC
7.1 T8F Output Clock
Figure 10.
Use the following equations to calculate the reload data register value for obtaining the desired transfer rate.
clk_in
bps = —————————————
{( 1)
×
16 + TFMD}
clk_in
T8F_TR =
(
——— - TFMD - 16
)
÷
16
bps
bps:
Transfer rate (bits/second)
clk_in: Count clock (PCLK/1 to PCLK/16384) frequency [Hz]
T8F_TR: Reload data (0 to 255)
TFMD: Fine mode setting (0 to 15)
Fine Mode
10.8
Fine mode provides a function that minimizes transfer rate errors.
T8F can output a programmable clock signal for use as the UART serial transfer clock. The timer output clock can
be set to the required frequency by selecting the appropriate count clock and reload data. Note that errors may oc-
cur, depending on the transfer rate. Fine mode extends the output clock cycle by delaying the underflow pulse from
the counter. This delay can be specified with the TFMD[3:0]/T8F_CTL
x
register.
TFMD[3:0] specifies the delay pattern to be inserted into a 16 underflow period. Inserting one delay extends the
output clock cycle by one count clock cycle. This setting delays the interrupt timing in the same way.