English
Language : 

M16C30P_07 Datasheet, PDF (120/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
14. Timers
Timer A2 Mode Register
(when using two-phase pulse signal processing)
b7 b6 b5 b4 b3 b2 b1 b0
0 010001
Symbol
Address
After Reset
TA2MR
0398h
00h
Bit Symbol
Bit Name
Function
RW
TMOD0 Operation Mode Select Bit
b1 b0
RW
TMOD1
0 1 : Event counter mode
RW
MR0 To use tw o-phase pulse signal processing, set this bit to “0”.
RW
MR1 To use tw o-phase pulse signal processing, set this bit to “0”.
RW
MR2 To use tw o-phase pulse signal processing, set this bit to “1”.
RW
MR3 To use tw o-phase pulse signal processing, set this bit to “0”.
RW
Count Operation Type Select Bit
0 : Reload type
TCK0
1 : Free-run type
RW
TCK1 To use tw o-phase pulse signal processing, set this bit to “0”. (1)
RW
NOTES :
1. If tw o-phase pulse signal processing is desired, follow ing register settings are required:
• Set the TA2P bit in the UDF register to “1” (tw o-phase pulse signal processing function enabled).
• Set the TA2TGH and TA2TGL bits in the TRGSR register to “00b” (TA2IN pin input).
• Set the port direction bits for TA2IN and TA2OUT to “0” (input mode).
Figure 14.10 TA2MR Register in Event Counter Mode (when using two-phase pulse signal
processing with Timer A2)
Rev.1.22 Mar 29, 2007 Page 104 of 291
REJ09B0179-0122