Renesas M16C Series User Manual page 90

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
Timer Ai mode register
(When not using two-phase pulse signal processing)
b7
b6
b5
b4
b3
b2
0
Timer Ai mode register
(When using two-phase pulse signal processing)
b7
b6
b5
b4
b3
b2
0
1
0
0
Figure 1.65: Timer Ai mode register in event counter mode, two-phase signal
Rev.1.00 Sep 24, 2003 Page 72 of 360
Symbol
b1
b0
TAiMR(i = 2 to 4)
0 1
Bit symbol
Bit name
TMOD0
Operation mode select bit
TMOD1
Pulse output function
MR0
select bit
Count polarity
MR1
select bit (Note 2)
Up/down switching
MR2
cause select bit
0 : (Must always be "0" in event counter mode)
MR3
TCK0
Count operation type
select bit
Two-phase pulse signal
TCK1
processing operation
select bit (Note 4)(Note 5)
Note 1: The settings of the corresponding port register and port direction register are invalid.
Note 2: This bit is valid when only counting an external signal.
Note 3: Set the corresponding port direction register to "0".
Note 4: This bit is valid for the Timer A3 mode register.
For Timer A2 and A4 mode registers, this bit can be "0 "or "1".
Note 5: When performing two-phase pulse signal processing, make sure the two-phase pulse
signal processing operation select bit (address 0384
sure to set the event/trigger select bit (addresses 0382
Note 6: This value can be indeterminate when the count starts.
Symbol
b1
b0
TAiMR(i = 2 to 4)
0 1
Bit symbol
Bit name
TMOD0
Operation mode select bit
TMOD1
0 (Must always be "0" when using two-phase pulse signal
MR0
processing)
0 (Must always be "0" when using two-phase pulse signal
MR1
processing)
1 (Must always be "1" when using two-phase pulse signal
MR2
processing)
0 (Must always be "0" when using two-phase pulse signal
MR3
processing)
Count operation type
TCK0
select bit
Two-phase pulse
TCK1
processing operation
select bit (Note 1)(Note 2)
Note 1: This bit is valid for Timer A3 mode register.
For Timer A2 and A4 mode registers, this bit can be "0" or "1".
Note 2: When performing two-phase pulse signal processing, make sure the two-phase pulse
signal processing operation select bit (address 0384
sure to set the event/trigger select bit (addresses 0382
Note 3: This value can be indeterminate when the count starts.
Address
0398
to 039A
16
16
Function
b1 b0
0 1 : Event counter mode
0 : Pulse is not output
(TAi
pin is a normal port pin)
OUT
1 : Pulse is output (Note 1)
(TAi
pin is a pulse output pin)
OUT
0 : Counts external signal's falling edges
1 : Counts external signal's rising edges
0 : Up/down flag's content
1 : TA
pin's input signal (Note 3)
iOUT
0 : Reload type
1 : Free-run type (Note 6)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
) is set to "1". Also, always be
16
and 0383
16
Address
0398
to 039A
16
16
Function
b1 b0
0 1 : Event counter mode
0 : Reload type
1 : Free-run type (Note 3)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
) is set to "1". Also, always be
16
and 0383
16
Timer A
When reset
00
16
R
W
) to "00".
16
When reset
00
16
R
W
) to "00".
16

Advertisement

Table of Contents
loading

Table of Contents