R8C/18 Group, R8C/19 Group
Rev.1.30
Apr 14, 2006
Page 137 of 233
REJ09B0222-0130
Figure 14.26
Registers TC, TM0, and TM1
Timer C Register
Symbol
Address
After Reset
TC
0091h-0090h
0000h
RW
(b8)
b0
(b15)
b7
Function
Counts internal count source.
0000h can be read w hen the TCC00 bit is set to 0 (count stops).
Count value can be read w hen the TCC00 bit is set to 1 (count starts).
RO
b0
b7
Compare 1 Register
Symbol
Address
After Reset
TM1
009Fh-009Eh
FFFFh
Function
Setting Range
RW
Mode
Output compare mode
(b8)
b0
(b15)
b7
b0
b7
0000h to FFFFh
RW
Store the value compared w ith timer C
Capture and Compare 0 Register
Symbol
Address
After Reset
TM0
009Dh-009Ch
0000h
(2)
RW
Function
Setting Range
RW
NOTES:
1.
2. When the TCC13 bit in the TCC1 register is set to 1, the value is set to FFFFh.
When setting a value in the TM0 register, set the TCC13 bit in the TCC1 register to 1 (compare 0 output selected).
When the TCC13 bit is set to 0 (capture selected), no value can be w ritten.
(b8)
b0
(b15)
b7
b0
Mode
b7
Input capture mode
RW
Function
When the active edge of the measured pulse is input, store
the value in the TC register
Mode
Output compare mode
(1)
Store the value compared w ith timer C
0000h to FFFFh
RO