23
38C2 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Timer 12 mode register
(T12M: address 0025
16
)
Timer 1 count stop bit
0 : Count operation
1 : Count stop
Timer 2 count stop bit
0 : Count operation
1 : Count stop
Timer 1 count source selection bits
b3 b2
0 0 : Frequency divider for Timer 1
0 1 : f(X
CIN
)
1 0 : Underflow of Timer Y
1 1 : Not available
Timer 2 count source selection bits
b5 b4
0 0 : Underflow of Timer 1
0 1 : f(X
CIN
)
1 0 : Frequency divider for Timer 2
1 1 : Not available
Timer 2 output selection bit (P3
6
)
0 : I/O port
1 : Timer 2 output
T
2OUT
output edge switch bit
0 : Start at
“
L
”
output
1 : Start at
“
H
”
output
Timer 34 mode register
(T34M: address 0026
16
)
Timer 3 count stop bit
0 : Count operation
1 : Count stop
Timer 4 count stop bit
0 : Count operation
1 : Count stop
Timer 3 count source selection bit
0 : Frequency divider for Timer 3
1 : Underflow of Timer 2
Timer 4 count source selection bits
b4 b3
0 0 : Frequency divider for Timer 4
0 1 : Underflow of Timer 3
1 0 : Underflow of Timer 2
1 1 : Not available
Timer 3 operating mode selection bit
0 : Timer mode
1 : PWM mode
Timer 4 operating mode selection bit
0 : Timer mode
1 : PWM mode
Not used (returns
“
0
”
when read)
Timer 1234 mode register
(T1234M: address 0FF3
16
)
T
3OUT
output edge switch bit
0 : Start at
“
L
”
output
1 : Start at
“
H
”
output
T
output edge switch bit
0 : Start at
“
L
”
output
1 : Start at
“
H
”
output
Timer 3 output selection bit (P5
2
)
0 : I/O port
1 : Timer 3 output
Timer 4 output selection bit (P5
3
)
0 : I/O port
1 : Timer 4 output
Timer 2 write control bit
0 : Write data to both timer latch and timer
1 : Write data to timer latch only
Timer 3 write control bit
0 : Write data to both timer latch and timer
1 : Write data to timer latch only
Timer 4 write control bit
0 : Write data to both timer latch and timer
1 : Write data to timer latch only
Not used (returns
“
0
”
when read)
b7
b0
b7
b0
b7
b0
PWM01 register
(PWM01: address 0024
16
)
PWM0 set bits
b1 b0
0 0 : No extended
0 1 : Extended once in four periods
1 0 : Extended twice in four periods
1 1 : Extended three times in four periods
PWM1 set bits
b3 b2
0 0 : No extended
0 1 : Extended once in four periods
1 0 : Extended twice in four periods
1 1 : Extended three times in four periods
Not used (returns
“
0
”
when read)
Timer 12 frequency division selection register
(PRE12: address 0FF5
16
)
Timer 1 frequency division selection bits
b2 b1 b0
0 0
0 : 1/16
f(X
IN
) or 1/16
f(X
CIN
)
0 0
1 : 1/1
f(X
IN
) or 1/1
f(X
CIN
)
0 1
0 : 1/2
f(X
IN
) or 1/2
f(X
CIN
)
0 1
1 : 1/32
f(X
IN
) or 1/32
f(X
CIN
)
1 0
0 : 1/64
f(X
IN
) or 1/64
f(X
CIN
)
1 0
1 : 1/128
f(X
IN
) or 1/128
f(X
CIN
)
1 1
0 : 1/256
f(X
IN
) or 1/256
f(X
CIN
)
1 1
1 : 1/1024
f(X
IN
) or 1/1024
f(X
CIN
)
Timer 2 frequency division selection bits
b5 b4 b3
0 0 0 : 1/16
f(X
IN
) or 1/16
f(X
CIN
)
0 0 1 : 1/1
f(X
IN
) or 1/1
f(X
CIN
)
0 1 0 : 1/2
f(X
IN
) or 1/2
f(X
CIN
)
0 1 1 : 1/32
f(X
IN
) or 1/32
f(X
CIN
)
1 0 0 : 1/64
f(X
IN
) or 1/64
f(X
CIN
)
1 0 1 : 1/128
f(X
IN
) or 1/128
f(X
CIN
)
1 1 0 : 1/256
f(X
IN
) or 1/256
f(X
CIN
)
1 1 1 : 1/1024
f(X
IN
) or 1/1024
f(X
CIN
)
Not used (returns
“
0
”
when read)
b7
b0
b7
b0
Timer 34 frequency division selection register
(PRE34: address 0FF6
16
)
Timer 3 frequency division selection bits
b2 b1 b0
0 0 0 : 1/16
f(X
IN
) or 1/16
f(X
CIN
)
0 0 1 : 1/1
f(X
IN
) or 1/1
f(X
CIN
)
0 1 0 : 1/2
f(X
IN
) or 1/2
f(X
CIN
)
0 1 1 : 1/32
f(X
IN
) or 1/32
f(X
CIN
)
1 0 0 : 1/64
f(X
IN
) or 1/64
f(X
CIN
)
1 0 1 : 1/128
f(X
IN
) or 1/128
f(X
CIN
)
1 1 0 : 1/256
f(X
IN
) or 1/256
f(X
CIN
)
1 1 1 : 1/1024
f(X
IN
) or 1/1024
f(X
CIN
)
Timer 4 frequency division selection bits
b5 b4 b3
0 0 0 : 1/16
f(X
IN
) or 1/16
f(X
CIN
)
0 0 1 : 1/1
f(X
IN
) or 1/1
f(X
CIN
)
0 1 0 : 1/2
f(X
IN
) or 1/2
f(X
CIN
)
0 1 1 : 1/32
f(X
IN
) or 1/32
f(X
CIN
)
1 0 0 : 1/64
f(X
IN
) or 1/64
f(X
CIN
)
1 0 1 : 1/128
f(X
IN
) or 1/128
f(X
CIN
)
1 1 0 : 1/256
f(X
IN
) or 1/256
f(X
CIN
)
1 1 1 : 1/1024
f(X
IN
) or 1/1024
f(X
CIN
)
Not used (returns
“
0
”
when read)
b7
b0
Fig. 19 Structure of timer related register