English
Language : 

M16C26A Datasheet, PDF (116/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
12. Timer
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
After reset
039616 to 039A16
0016
Bit symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
TCK1
Bit name
Operation mode select bit
Pulse output function
select bit
Count polarity
select bit (2)
Function
RRWW
b1 b0
RW
0 1 : Event counter mode (1)
RW
0 : Pulse is not output
(TAiOUT pin functions as I/O port)
RW
1 : Pulse is output
(TAiOUT pin functions as pulse output pin)
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 TA iOUT pin (3)
RW
Must be set to “0” in event counter mode
RW
Count operation type
0 : Reload type
select bit
1 : Free-run type
RW
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 the ONSF and TRGSR registers.
2. Effective when the TAiTGH and TAiTGL bits in the ONSF or TRGSR register are ‘002’ (TAiIN pin input).
3. Count down when input on TAiOUT pin is low or count up when input on that pin is high. The port
direction bit for TAiOUT pin must be set to “0” (= input mode).
Figure 12.1.2.1. TAiMR Register in Event Counter Mode (when not using two-phase pulse signal
processing)
Rev. 2.00 Feb.15, 2007 page 99 of 329
REJ09B0202-0200