Renesas M16C/64A Series User Manual page 304

Table of Contents

Advertisement

M16C/64A Group
Timer Mode
Timer Ai Mode Register (i = 0 to 4)
b7
b6 b5 b4
b3
b2
b1
0
0
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.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
b0
Symbol
0
TA0MR to TA4MR
Bit Symbol
Bit Name
TMOD0
Operation mode select bit
TMOD1
Pulse output function
MR0
select bit
MR1
Gate function select bit
MR2
Set to 0 in timer mode
MR3
TCK0
Count source select bit
TCK1
Address
0336h to 033Ah
Function
b1 b0
0
0 : Timer mode
0 : No pulse output
(TAiOUT pin functions as I/O port)
1 : Pulse output
(TAiOUT pin functions as a pulse output pin)
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
b7 b6
0
0 : f1TIMAB or f2TIMAB
0
1 : f8TIMAB
1
0 : f32TIMAB
1
1 : fC32
17. Timer A
Reset Value
00h
RW
RW
RW
RW
RW
RW
RW
RW
Page 271 of 800

Advertisement

Table of Contents
loading

Table of Contents