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

no-image

M30240ECFP

Manufacturer Part Number
M30240ECFP
Description
M30240 Group Specification
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Timer A
Table 1.18:
Count source
Count operation
Divide ratio
Count start condition
Count stop condition
Interrupt request
generation timing
TAiIN pin function
TAiOUT pin function
Read from timer
Write to timer
Select function
2.21.2 Event counter mode
In this mode, the timer counts an external signal or an internal timer’s overflow. Timers A0 and A1 can
count a single-phase external signal. Timers A2, A3, and A4 can count a single-phase and a two-phase
external signal. Table 1.18 lists the timer specifications when counting a single-phase external signal.
Figure 1.64 shows Timer Ai mode register in event counter mode, single-phase signal.
Item
Timer specification in event counter mode (when not processing two-phase pulse signal)
•External signals input to TAiIN pin (effective edge can be selected by software
•TB2 overflow, TAj overflow
•Up count or down count can be selected by external signal or software
•When the timer overflows or underflows, it loads from the reload register contents before
continuing counting. (However, this does not apply when the free-run function is selected.)
1/ (FFFF
1/ (n + 1) for down count
Count start flag is set (=1)
Count start flag is reset (=0)
Timer overflows or underflows
Programmable I/O port or count source input
Programmable I/O port, pulse output, or up/down count select input
Count value can be read out by reading timer Ai register
•When counting is stopped and a value is written to timer Ai register, it is written to both
reload register and counter
•When counting is in progress and a value is written to timer Ai register, it is written to only
reload register
•Free-run count function
When the timer overflows or underflows, the reload register content is not reloaded.
•Pulse output function
Each time the timer overflows, the TAiOUT pin‘s polarity is reversed
16
- n+1) for up count
1-73
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
n: set value
Specification
Mitsubishi microcomputers
M30240 Group

Related parts for M30240ECFP