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

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.20:
Figure 1.66: Timer Ai mode register in one-shot mode
Count source
Count operation
Divide ratio
Count start condition
Count stop condition
Interrupt request
generation tim
TAiIN pin function
TAiOUT pin function
Read from timer
Write to timer
2.21.3 One-shot timer mode
In this mode, the timer operates only once (See Table 1.20 ). When a trigger occurs, the timer starts
up and continues operating for a given period. Figure 1.66 shows the timer Ai mode register in one-
shot mode.
Item
Timer specifications in one-shot timer mode
ing
Timer Ai mode register
b7
b6
b5
0
f1, f8, f32
•The timer counts down
•When the count reaches 0000
• If a trigger occurs when counting, the timer reloads a new count and restarts counting
1/n
• An external trigger is input
• The selected timer overflows
• The one-shot start flag is set (= 1)
• A new count is reloaded after the count has reached 0000
• The count start flag is reset (= 0)
The count reaches 0000
Programmable I/O port or trigger input
Programmable I/O port or pulse output
When timer Ai register is read, it indicates an indeterminate value
reload register and counter
•When counting is in progress and a value is written to timer Ai register, it is written to the
reload register to be transferred to counter at next load time
b4
•When counting is stopped and a value is written to timer Ai register, it is written to both
b3
b2
n: Set value
b1
1 0
b0
Note 1: The settings of the corresponding port register and port direction register are invalid.
Note 2: Valid only when the TA
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) 0396
(addresses 0382
Operation mode select bit
Pulse output function
select bit
External trigger select
bit (Note 2)
Trigger select bit
0 (Must always be “0” in one-shot timer mode)
Count source select bit
16
1-77
Bit name
16
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
and 0383
16
Address
16
, the timer stops counting after reloading a new count
iIN
to 039A
pin is selected by the event/trigger select bit
16
). If timer overflow is selected, this bit can be “1” or “0”.
Specification
16
b1 b0
1 0 : One-shot timer mode
0 : Pulse is not output
1 : Pulse is output (Note 1)
0 : Falling edge of TAi
1 : Rising edge of TAi
0 : One-shot start flag is valid
1 : Selected by event/trigger select
b7 b6
0 0 : f
0 1 : f
1 0 : f
1 1 : invalid
When reset
(TA
(TAi
register
00
1
8
32
iOUT
OUT
16
pin is a normal port pin)
pin is a pulse output pin)
Function
IN
IN
pin's input signal (Note 3)
pin's input signal (Note 3)
16
Mitsubishi microcomputers
M30240 Group
R
W

Related parts for M30240ECFP