
164
Specifications in this manual are tentative and subject to change
Timer A
Mitsubishi microcomputers
M30240 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Figure 2.24: Set-up procedure of one-shot, external trigger selected
Setting one-shot timer
Can be set to 0001 16 to FFFF16
b7
b0
(b15)
(b8)
b7
b0
Timer A0 register [Address 038716, 038616] TA0
Timer A1 register [Address 038916, 038816] TA1
Timer A2 register [Address 038B16, 038A16] TA2
Timer A3 register [Address 038D16, 038C16] TA3
Timer A4 register [Address 038F16, 038E16] TA4
Start count
Setting count start flag
Count start flag [Address 0380 16]
TABSR
Timer A0 count start flag
Timer A1 count start flag
Timer A2 count start flag
Timer A3 count start flag
Timer A4 count start flag
b7
b0
Pulse output function select bit
1 : Pulse is output
Selecting one-shot timer mode and functions
Timer Ai mode register (i=0 to 4) [Address 0396 16 to 039A16]
TAiMR (i=0 to 4)
External trigger select bit
1 : Rising edge of TAi IN pin's input signal
Selection of one-shot timer mode
b7
b0
10
11
1
0 (Must always be “0” in one-shot timer mode)
Count source select bit
0 0 : f 1
0 1 : f 8
1 0 : f 32
1 1 : Reserved
b7 b6
Trigger select bit
1 : Selected by event/trigger select register
0
Setting event/trigger select bit
Trigger select register [Address 0383 16]
TRGSR
One-shot start flag [Address 0382 16]
ONSF
Timer A0 event/trigger select bit
0 0 : Input on TA0IN is selected (Note)
b7 b6
b7
b0
b7
b0
Timer A1 event/trigger select bit
0 0 : Input on TA1 IN is selected (Note)
b1 b0
Timer A2 event/trigger select bit
0 0 : Input on TA2 IN is selected (Note)
b3 b2
Timer A3 event/trigger select bit
0 0 : Input on TA3 IN is selected (Note)
b5 b4
Timer A4 event/trigger select bit
0 0 : Input on TA4 IN is selected (Note)
b7 b6
Note: Set the corresponding port direction register to “0”.
Count source period
f(XIN) : 12MH Z
b7 b6
Count
source
83.3ns
667ns
2.67
s
00
01
1
0
f1
f8
f32
Clearing timer Ai interrupt request bit
Timer Ai interrupt control register [Address 0055 16 to 005916]
TAiIC (i=0 to 4)
Interrupt request bit
b7
b0
0
Refer to 'Precaution for Timer A (one shot timer mode)'
Start count
Setting the TAiOUT drive capacity
Timer A output drive capacity register
[Address 03FB16]
TADR
Timer A0
OUT
drive capacity
Timer A1
Timer A2
Timer A3
Timer A4
b7
b0
OUT
drive capacity
OUT
drive capacity
OUT
drive capacity
OUT
drive capacity