English
Language : 

M16C Datasheet, PDF (95/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer B
Preliminary Specifications REV.B
Mitsubishi microcomputers
Specifications in this manual are tentative and subject to change.
M16C / 6N Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(1) Timer mode
In this mode, the timer counts an internally generated count source. (See Table 10-1.) Figure 10-4 shows
the timer Bi mode register in timer mode.
Table 10-1. Timer specifications in timer mode
Item
Specification
Count source
f2, f8, f32, fC32
Count operation
• Counts down
• When the timer underflows, it reloads the reload register contents before
continuing counting
Divide ratio
1/(n+1) n : Set value
Count start condition
Count start flag is set (= 1)
Count stop condition
Count start flag is reset (= 0)
Interrupt request generation timing The timer underflows
TBiIN pin function
Programmable I/O port
Read from timer
Count value is read out by reading timer Bi register
Write to timer
• When counting stopped
When a value is written to timer Bi register, it is written to both reload register and counter
• When counting in progress
When a value is written to timer Bi register, it is written to only reload register
(Transferred to counter at next reload time)
Timer Bi mode register
b7 b6 b5 b4 b3 b2 b1 b0
00
Symbol
TBiMR(i=0 to 5)
Address
039B16 to 039D16
01DB16 to 01DD16
When reset
00XX00002
00XX00002
Bit symbol
TMOD0
TMOD1
MR0
MR1
Bit name
Function
Operation mode select bit
b1 b0
0 0 : Timer mode
Invalid in timer mode
Can be “0” or “1”
RW
MR2
0 (Fixed to “0” in timer mode ; i = 0, 3)
(Note 1)
Nothing is assiigned (i = 1, 2, 4, 5).
This bit can neither be set nor reset. When read, its content is indeterminate.
(Note 2)
MR3
Invalid in timer mode.
This bit can neither be set nor reset. When read in timer mode,
its content is indeterminate.
TCK0
TCK1
Count source select bit
b7 b6
0 0 : f2
0 1 : f8
1 0 : f32
1 1 : fC32
Note 1: Timer B0, timer B3.
Note 2: Timer B1, timer B2, timer B4, timer B5.
Figure 10-4. Timer Bi mode register in timer mode
95