
Rev.2.00
Nov 23, 2005
page 26 of 73
REJ03B0028-0200
38C5 Group
XCIN
1/2
Q
S
T
P74/PWM1/
T4OUT
1/2
Q
S
T
P73/PWM0/
T3OUT
8
1/2
Q
S
T
P72/T2OUT/CKOUT
φ SOURCE
f(XIN)
(Note)
Timer 1 latch (8)
Timer 1 (8)
Timer 1 interrupt request
Timer 2 interrupt request
Data bus
Timer 1 count stop bit
Clock for
Timer 1
Clock for
Timer 2
Frequency division
selection bits
(2 bits for each Timer)
C
lo
c
k
fo
r
T
im
e
r
4
C
lo
c
k
fo
r
T
im
e
r
3
C
lo
c
k
fo
r
T
im
e
r
2
C
lo
c
k
fo
r
T
im
e
r
1
The following values can be selected
the clock for Timer;
1/1,1/2,1/16,1/256
Frequency divider
T2OUT output
edge switch bit
Timer 2 output selection bit
P72 direction
register
P72
latch
Timer 2 output selection bit
P72 clock output
control bit
Timer Y
output
Timer 2 write control bit
Timer 1 count
source selection
bits
Timer 2 count
source selection
bits
Timer 2 count stop bit
Timer 1
Timer 2
Timer 3
Timer 4
Timer 2 latch (8)
Timer 2 (8)
Timer 3 interrupt request
Timer 3 write control bit
Timer 3 latch (8)
Timer 3 (8)
10 bit
PWM1
circuit
P74
latch
10 bit
PWM0
circuit
Timer 3 operating
mode selection bit
P73
latch
Timer 3 output selection bit
P73 direction
register
Clock for
Timer 3
Clock for
Timer 4
PWM01 register (2)
Timer 3 count source
selection bit
Timer 3 count stop bit
Timer 4 interrupt request
Timer 4 write
control bit
Timer 4 latch (8)
Timer 4 (8)
Timer 4 count source
selection bits
Timer 4 count stop bit
T3OUT output
edge switch bit
Timer 3 output selection bit
Timer 4 operating
mode selection bit
Timer 4 output selection bit
P74 direction
register
T4OUT output
edge switch bit
Timer 4 output selection bit
“01”
“10”
“00”
“1”
“0”
“11”
“1”
“0”
“1”
“0”
“1”
“0”
“1”
“0”
“1”
“0”
“1”
“0”
“00”
“01”
“10”
“00”
“01”
“10”
φ SOURCE: represents the oscillation frequency of
XIN input in the middle- and high-speed mode,
on-chip oscillator divided by 4 in the on-chip
oscillator mode,
and sub-clock in the low-speed mode.
System clock
φ
Fig. 22 Structure of timer related register
TIMERS
8-Bit Timer
The 38C5 group has four built-in 8-bit timers : Timer 1, Timer 2,
Timer 3, and Timer 4.
Each timer has the 8-bit timer latch. All timers are down-counters.
When the timer reaches “0016”, the contents of the timer latch is
reloaded into the timer with the next count pulse. In this mode, the
interrupt request bit corresponding to that timer is set to “1”.
The count can be stopped by setting the stop bit of each timer to “1”.