English
Language : 

M16C29 Datasheet, PDF (132/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
12. Timer A
Timer Ai Mode Register (i=0 to 4)
(When not using two-phase pulse signal processing)
b7 b6 b5 b4 b3 b2 b1 b0
0
01
Symbol
TA0MR to TA4MR
Address
039616 to 039A16
After Reset
0016
Bit Symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
Bit Name
Operation mode select bit
Pulse output function
select bit
Function
RRWW
b1 b0
RW
0 1 : Event counter mode (1)
RW
0: Pulse is not output
(TAiOUT pin functions as I/O port)
1: Pulse is output
RW
(TAiOUT pin functions as pulse output pin)
Count polarityselect bit (2)
0: Counts external signal's falling edge
1: Counts external signal's rising edge
RW
Up/down switching
cause select bit
0: UDF register
1: Input signal to TAiOUT pin(3)
RW
Set to 0 in event counter mode
RW
Count operation type
select bit
0: Reload type
1: Free-run type
RW
TCK1
Can be 0 or 1 when not using two-phase pulse signal processing
RW
NOTES:
1. During event counter mode, the count source can be selected using registers ONSF and TRGSR.
2. Effective when bits TAiTGH and TAiTGL in the ONSF or TRGSR register are 002 (TAiIN pin input).
3. Decrement when input on TAiOUT pin is low or increment when input on that pin is high. The port
direction bit for TAiOUT pin must be set to 0 (input mode).
Figure 12.8 TAiMR Register in Event Counter Mode (when not using two-phase pulse signal
processing)
Rev. 1.12 Mar.30, 2007 page 108 of 458
REJ09B0101-0112