English
Language : 

M16C26A Datasheet, PDF (118/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=2 to 4)
(When using two-phase pulse signal processing)
b6 b5 b4 b3 b2 b1 b0
010001
Symbol
TA2MR to TA4MR
Address
039816 to 039A16
After reset
0016
Bit symbol
Bit name
Function
RW
TMOD0 Operation mode select bit b1 b0
RW
TMOD1
0 1 : Event counter mode
RW
MR0
To use two-phase pulse signal processing, set this bit to “0”.
RW
MR1
To use two-phase pulse signal processing, set this bit to “0”.
RW
MR2
To use two-phase pulse signal processing, set this bit to “1”.
RW
MR3
TCK0
TCK1
To use two-phase pulse signal processing, set this bit to “0”.
RW
Count operation type
select bit
0 : Reload type
1 : Free-run type
RW
Two-phase pulse signal
processing operation
select bit (1, 2)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
RW
NOTES:
1. TCK1 bit is valid for timer A3 mode register. No matter how this bit is set, Timers A2 and A4 always operate in
normal processing mode and x4 processing mode, respectively.
2. If two-phase pulse signal processing is desired, following register settings are required:
• Set the TAiP bit in the UDF register to “1” (two-phase pulse signal processing function enabled).
• Set the TAiTGH and TAiTGL bits in the TRGSR register to ‘002’ (TAiIN pin input).
• Set the port direction bits for TAiIN and TAiOUT to “0” (input mode).
Figure 12.1.2.2. TA2MR to TA4MR Registers in Event Counter Mode (when using two-phase
pulse signal processing with timer A2, A3 or A4)
Rev. 2.00 Feb.15, 2007 page 101 of 329
REJ09B0202-0200