English
Language : 

M16C28 Datasheet, PDF (125/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
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
039616 to 039A16
After Reset
0016
Bit Symbol
TMOD0
TMOD1
MR0
MR1
MR2
MR3
TCK0
Bit Name
Function
RWW
Operation mode select bit b1 b0
RW
0 1 : Event counter mode (1)
RW
Pulse output function
select bit
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 polarity
select bit (2)
0 : Counts external signal's falling edge
1 : Counts external signal's rising edge
RW
Up/down switching
0 : UDF register
cause select bit
1 : Input signal to TAiOUT pin (3)
RW
Set to “0” in event counter mode
RW
Count operation type
0 : Reload type
select bit
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 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.8 TAiMR Register in Event Counter Mode (when not using two-phase pulse signal
processing)
Rev. 2.00 Jan. 31, 2007 page 105 of 385
REJ09B0047-0200