English
Language : 

M30218 Datasheet, PDF (74/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group
Timer A
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
One-shot start flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
ONSF
Address
038216
When reset
00X000002
Bit symbol
Bit name
TA0OS Timer A0 one-shot start flag
TA1OS Timer A1 one-shot start flag
Function
1: Timer start
When read, the value is “0”
RW
TA2OS Timer A2 one-shot start flag
TA3OS Timer A3 one-shot start flag
TA4OS Timer A4 one-shot start flag
Nothing is assigned.
This bit can neither be set nor reset. When read, the content is indeterminate.
TA0TGL
TA0TGH
Timer A0 event/trigger
select bit
b7 b6
0 0 : Input on TA0IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA4 overflow is selected
1 1 : TA1 overflow is selected
Note: Set the corresponding port direction register to “0”.
When TAiIN is selected, TAiOUT assigned on same pin can not be used. (i=0 to 4)
Trigger select register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TRGSR
Address
038316
When reset
0016
Bit symbol
Bit name
TA1TGL Timer A1 event/trigger
select bit
TA1TGH
TA2TGL Timer A2 event/trigger
select bit
TA2TGH
TA3TGL
TA3TGH
Timer A3 event/trigger
select bit
Function
b1 b0
0 0 : Input on TA1IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA0 overflow is selected
1 1 : TA2 overflow is selected
b3 b2
0 0 : Input on TA2IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA1 overflow is selected
1 1 : TA3 overflow is selected
b5 b4
0 0 : Input on TA3IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA2 overflow is selected
1 1 : TA4 overflow is selected
RW
TA4TGL
TA4TGH
Timer A4 event/trigger
select bit
b7 b6
0 0 : Input on TA4IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA3 overflow is selected
1 1 : TA0 overflow is selected
Note: Set the corresponding port direction register to “0”.
When TAiIN is selected, TAiOUT assigned on same pin can not be used. (i=0 to 4)
Clock prescaler reset flag
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
CPSRF
Address
038116
When reset
0XXXXXXX2
Bit symbol
Bit name
Function
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are indeterminate.
CPSR Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset
(When read, the value is “0”)
RW
Figure FB-5. Timer A-related registers (3)
73