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

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
456
3.1 Long-Period Timers
Overview
Specifications
Operation
Figure 3.1.1. Operation timing of long-period timers
Timer A0 count
start flag
Timer A1 count
start flag
Timer A0 interrupt
request bit
Timer A1 interrupt
request bit
In this process, Timer A0 and Timer A1 are connected to make a 16-bit timer with a 16-bit
prescaler. Figure 3.1.1 shows the operation timing, Figure 3.1.2 shows the connection dia-
gram, and Figures 3.1.3 and 3.1.4 show the set-up procedure.
Use the following peripheral functions:
(1) Set timer A0 to timer mode, and set timer A1 to event counter mode.
(2) Perform a count on count source f
(3) Connect a 16-MHz oscillator to X
(1) Setting the count start flag to “1” causes the counter to begin counting. The counter of
(2) If the counter of timer A0 underflows, the counter reloads the content of the reload register
(3) If the counter of timer A1 underflows, the counter reloads the content of the reload register
• Timer mode of timer A
• Event counter mode of timer A
FFFF
FFFF
0000
0000
on timer A0 using timer A1 to count for 1 second.
timer A0 performs a down count on count source f
and continues counting. At this time, the timer A0 interrupt request bit goes to “1”. The
counter of timer A1 performs a down count on underflows in timer A0.
and continues counting. At this time, the timer A1 interrupt request bit goes to “1”.
n
16
16
16
“1”
“0”
“1”
“0”
“1”
“0”
“1”
“0”
16
l
l = reload register content
n = reload register content
(1) Start count
Start count.
Set to “1” by software
(2) Timer A0 underflow
Cleared to “0” when interrupt request is accepted, or cleared by software
IN
1
.
using timer A0 to count for 1 ms, and perform a count
Cleard “0” by software
1
.
(3) Timer A1 underflow
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Set to “1” by software
Mitsubishi microcomputers
M16C / 62 Group
Time
Time

Related parts for M30622MA-XXXFP