Renesas M16C/6NM Network Card User Manual


 
Rev.2.00 Nov 28, 2005 page 131 of 378
REJ09B0124-0200
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Under development
This document is under development and its contents are subject to change.
Figure 13.16 TB0MR to TB5MR Registers and TB0 to TB5 Registers
Timer Bi Mode Register (i = 0 to 5)
Bit Name
FunctionBit Symbol
RW
b7 b6 b5 b4 b3 b2 b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : Pulse period measurement mode,
pulse width measurement mode
1 1 : Do not set a value
b1 b0
TCK1
MR3
MR2
MR1
TMOD1
MR0
TMOD0
TCK0
RW
RW
RW
RW
RW
(1)
-
(2)
RW
RW
RO
Function varies with each operation
mode
Function varies with each operation mode
Operation Mode Select Bit
Count Source Select Bit
Symbol Address After Reset
TB0MR to TB2MR 039Bh to 039Dh 00XX0000b
TB3MR to TB5MR 01DBh to 01DDh 00XX0000b
NOTES:
1. Timer B0, timer B3.
2. Timer B1, timer B2, timer B4, timer B5.
Symbol Address After Reset
TB0
TB1
TB2
TB3
TB4
TB5
0391h, 0390h
0393h, 0392h
0395h, 0394h
01D1h, 01D0h
01D3h, 01D2h
01D5h, 01D4h
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7 b0b7 b0
(b15)
(b8)
Timer Bi Register (i = 0 to 5)
(1)
RW
Measures a pulse period or width
Function
NOTES:
1.The register must be accessed in 16-bit unit.
2.The timer counts pulses from an external device or overflows or underflows of other timers.
Divide the count source by n + 1
where n = set value
Timer Mode
Event Counter
Mode
0000h to FFFFh
0000h to FFFFh
Divide the count source by n + 1
where n = set value
(2)
Pulse Period
Modulation Mode,
Pulse Width
Modulation Mode
Mode
Setting Range
RW
RW
RO