M30240ECFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30240ECFP Datasheet - Page 76

no-image

M30240ECFP

Manufacturer Part Number
M30240ECFP
Description
M30240 Group Specification
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Specifications in this manual are tentative and subject to change
Timer A
Figure 1.65: Timer Ai mode register in event counter mode, two-phase signal
Timer Ai mode register
(When not using two-phase pulse signal processing)
Timer Ai mode register
(When using two-phase pulse signal processing)
b7
b7
b6
b6
b5
b5
0
0
b4
b4
1
b3
b3
0
b2
b2
0
b1
b1
0 1
0 1
b0
b0
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.
Note 5: When performing two-phase pulse signal processing, make sure the two-phase pulse
Note 6: This value can be indeterminate when the count starts.
Note 1: This bit is valid for timer A3 mode register.
Note 2: When performing two-phase pulse signal processing, make sure the two-phase pulse
Note 3: This value can be indeterminate when the count starts.
Bit symbol
Bit symbol
TMOD0
TMOD1
TMOD0
TMOD1
TCK0
TCK1
TCK0
TCK1
MR0
MR1
MR2
MR3
MR0
MR1
MR2
MR3
Symbol
TAiMR(i = 2 to 4) 0398
Symbol
TAiMR(i = 2 to 4) 0398
For timer A2 and A4 mode registers, this bit can be “0 ”or “1”.
signal processing operation select bit (address 0384
sure to set the event/trigger select bit (addresses 0382
For timer A2 and A4 mode registers, this bit can be “0” or “1”.
signal processing operation select bit (address 0384
sure to set the event/trigger select bit (addresses 0382
Operation mode select bit
Pulse output function
select bit
Count polarity
select bit (Note 2)
Up/down switching
cause select bit
0 : (Must always be “0” in event counter mode)
Count operation type
select bit
Two-phase pulse signal
processing operation
select bit (Note 4)(Note 5)
Operation mode select bit
0 (Must always be “0” when using two-phase pulse signal
processing)
0 (Must always be “0” when using two-phase pulse signal
processing)
1 (Must always be “1” when using two-phase pulse signal
processing)
0 (Must always be “0” when using two-phase pulse signal
processing)
Count operation type
select bit
Two-phase pulse
processing operation
select bit (Note 1)(Note 2)
Bit name
Bit name
Address
Address
16
16
1-76
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
to 039A
to 039A
16
16
When reset
When reset
0 1 : Event counter mode
0 : Pulse is not output
1 : Pulse is output (Note 1)
0 : Counts external signal's falling edges
1 : Counts external signal's rising edges
0 : Up/down flag's content
1 : TA
0 : Reload type
1 : Free-run type (Note 6)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
b1 b0
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
(TAi
(TAi
00
00
16
16
iOUT
OUT
OUT
pin's input signal (Note 3)
pin is a normal port pin)
pin is a pulse output pin)
Function
Function
16
16
) is set to “1”. Also, always be
) is set to “1”. Also, always be
16
16
and 0383
and 0383
Mitsubishi microcomputers
M30240 Group
16
16
) to “00”.
) to “00”.
R
R
W
W

Related parts for M30240ECFP