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

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
Table 1.17:
Figure 1.63: Timer Ai mode register in timer mode
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.1 Timer mode
In this mode, the timer counts an internally generated count source. See Table 1.17 below. Figure
1.63 shows the timer Ai mode register in timer mode.
Item
Specifications of timer mode
Timer Ai mode register
b7
b6
0
b5
f1, f8, f32
• Down count
• When the timer underflows, it loads the reload register contents before continuing counting
1/(n+1) n: Set value
Count start flag is set (= 1)
Count start flag is reset (= 0)
When the timer underflows
Programmable I/O port or gate input
Programmable I/O port or pulse output
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 only to reload register (to be
transferred to counter at the next reload time)
• Gate function
Counting can be started and stopped by TAiIN pin’s input signal
• Pulse output function
Each time the timer underflows, the TAiOUT pin’s polarity is reversed
b4
b3
b2
0 0
b1
b0
Note 1: The settings of the corresponding port register and port direction register
Note 2: The bit can be “0” or “1”.
Note 3: Set the corresponding port direction register to “0”.
Bit symbol
TMOD0
TMOD1
TCK0
TCK1
MR0
MR1
MR2
MR3
Symbol
TAiMR(i=0 to 4)
are invalid.
Operation mode
select bit
Pulse output function
select bit
Gate function select bit
0 (Must always be fixed to “0” in timer mode)
Count source select bit
0396
Bit name
1-72
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Address
16
to 039A
16
Specification
When reset
0 0 : Timer mode
0 : Pulse is not output
1 : Pulse is output (Note 1)
b4 b3
0 X
1 0 : Timer counts only when TA
1 1 : Timer counts only when TA
b7 b6
b1 b0
0 0 : f
0 1 : f
1 0 : f
1 1 : Reserved
00
(TA
(TA
(Note 2)
held “L” (Note 3)
held “H” (Note 3)
16
1
8
32
iOUT
iOUT
: Gate function not available
pin is a normal port pin)
pin is a pulse output pin)
(TAi
Function
IN
pin is a normal port pin)
Mitsubishi microcomputers
M30240 Group
iIN
iIN
pin is
pin is
R
W

Related parts for M30240ECFP