M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 486

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Timer A Applications
Figure 3.5.1. Set-up procedure of solution for a shortage of external interrupt pins
Initialization of timer A0
b7
0
Initialization of port P7 direction register
Setting interrupt priority levels in timer A0
b15
b7
b7
b7
b7
b7
0 0
b7
0
0
00
16
0
0 0
b8
b0
b7
0
0
b0
1
b0
b0
b0
b0
0
b0
1
00
Setting interrupt enable flag (I flag)
Timer A0 mode register
TA0MR [Address 0396
16
Selection of event counter mode
Pulse output function select bit
Count polarity select bit
Up/down switching cause select bit
0 (Must always be “0” in event counter mode)
Count operation type select bit
0 (Must always be “0” in event counter mode)
0 : Pulse is not output (TA0out pin is a normal port pin)
0 : Counts external signal's falling edge
0 : Up/down flag's content
0 : Reload type
Timer A0 up/down flag
Timer A0 event/trigger select flag
Port P7 direction register [Address 03EF
PD7
b7 b6
Up/down flag [Address 0384
UDF
One shot start flag [Address 0382
ONSF
0 : Down count
0 0 : Input on TA0
Interrupt control level (set a value 1 to 7)
Count start flag [Address 0380
TABSR
Timer A0 interrupt control register [Address 0055
TA0IC
Port P7
Timer A0 count start flag
0 : Input mode
1 : Starts counting
b0
1
Timer A0 register
TA0 [Address 0387
direction register
IN
16
is selected
]
16
16
, 0386
]
16
]
16
]
16
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
]
16
]
16
]
Mitsubishi microcomputers
M16C / 62 Group
471

Related parts for M30622MA-XXXFP