|
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
|
▷ |