![Renesas M16C/62P Group Скачать руководство пользователя страница 162](http://html1.mh-extra.com/html/renesas/m16c-62p-group/m16c-62p-group_hardware-manual_1440174162.webp)
M16C/62P Group (M16C/62P, M16C/62PT)
15. Timers
Rev.2.41
Jan 10, 2006
Page 147 of 390
REJ09B0185-0241
Figure 15.9
TAiMR Register in Event Counter Mode (when not using two-phase pulse signal
processing)
Address
After Reset
0396h to 039Ah
00h
Bit Symbol
Function
RW
NOTES :
1.
2.
3.
4.
During event counter mode, the count source can be selected using the ONSF and TRGSR registers.
TA0OUT pin is N-channel open drain output.
Timer Ai Mode Register (i=0 to 4)
(when not using two-phase pulse signal processing)
Effective w hen the TAiTGH and TAiTGL bits in the ONSF or TRGSR register are “00b” (TAiIN pin input).
Symbol
TCK0
Count Polarity Select Bit
(3)
0 : Counts falling edge of external signal
1 : Counts rising edge of external signal
Up/Dow n Sw itching Factor
Select Bit
0 : UDF register
1 : Input signal to TAiOUT pin
(4)
Count dow n w hen input on TAiOUT pin is low or count up w hen input on that pin is high. The port direction bit for
TAiOUT pin is set to “0” (= input mode).
Bit Name
Operation Mode Select Bit
TA0MR to TA4MR
TMOD1
TCK1
RW
RW
RW
MR1
b7 b6 b5 b4 b3 b2 b1 b0
RW
MR0
RW
b1 b0
0 1 : Event counter mode
(1)
TMOD0
RW
0
0 1
Can be “0” or “1” w hen not using tw o-phase pulse signal processing
RW
MR3
0 : Pulse is not output
(TAiOUT pin functions as I/O port)
1 : Pulse is output
(2)
(TAiOUT pin functions as pulse output pin)
Pulse Output Function Select Bit
MR2
RW
Count Operation Type Select Bit
0 : Reload type
1 : Free-run type
Set to “0” in event counter mode
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655