R01UH0092EJ0110 Rev.1.10
Page 272 of 807
Jul 31, 2012
M16C/64C Group
17. Timer A
TCK1-TCK0 (Count source select bit) (b7-b6)
These bits are enabled when the TCS3 bit or TCS7 bit in registers TACS0 to TACS2 is set to 0 (TCK0
to TCK1 enabled).
Set the PCLK0 bit in the PCLKR register to select f1TIMAB or f2TIMAB.
b7
0
0
0
b6 b5 b4
b1
b2
b3
Symbol
TA0MR to TA4MR
Address
0336h to 033Ah
Reset Value
00h
b0
Function
Bit Symbol
Bit Name
RW
Timer Mode
Timer Ai Mode Register (i = 0 to 4)
RW
b1 b0
0 0 : Timer mode
Operation mode select bit
RW
TMOD1
TMOD0
TCK0
MR3
RW
Set to 0 in timer mode
TCK1
RW
Count source select bit
b7 b6
0 0 : f1TIMAB or f2TIMAB
0 1 : f8TIMAB
1 0 : f32TIMAB
1 1 : fC32
Pulse output function
select bit
RW
MR0
0 : No pulse output
(TAiOUT pin functions as I/O port)
1 : Pulse output
(TAiOUT pin functions as a pulse output pin)
Gate function select bit
b4 b3
0 0 : Gate function not available
0 1 : (TAiIN pin functions as I/O port)
1 0 : Counts while input on the TAiIN pin is low
1 1 : Counts while input on the TAiIN pin is high
RW
MR1
RW
MR2
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...