Counter And Reload Register (Timer Ai Register) - Renesas 7700 FAMILY User Manual

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

TIMER A
5.2 Block description

5.2.1 Counter and reload register (timer Ai register)

Each of timer Ai counter and reload register consists of 16 bits.
The counter down-counts each time the count source is input. In the event counter mode, it can also
function as an up-counter.
The reload register is used to store the initial value of the counter. When the counter underflows or
overflows, the reload register's contents are reloaded into the counter.
Values are set to the counter and reload register by writing a value to the timer Ai register. Table 5.2.1
lists the memory assignment of the timer Ai register.
The value written into the timer Ai register when counting is not in progress is set to the counter and reload
register. The value written into the timer Ai register when counting is in progress is set to only the reload
register. In this case, the reload register's updated contents are transferred to the counter at the next
reload time. The value got when reading out the timer Ai register varies according to the operating mode.
Table 5.2.2 lists reading and writing from and to the timer Ai register.
Table 5.2.2 Reading and writing from and to timer Ai register
Operating mode
Timer mode
Event counter mode
One-shot pulse mode
Pulse width modulation (PWM) mode
Notes 1: Also refer to "[Precautions when operating in timer mode]" and "[Precautions when oper-
ating in event counter mode]."
2: When reading and writing to/from the timer Ai register, perform them in a unit of 16 bits.
5–4
Table 5.2.1 Memory assignment of timer Ai register
Timer Ai register
Timer A0 register
Timer A1 register
Timer A2 register
Timer A3 register
Timer A4 register
Note: When reset, the contents of the timer Ai
register are undefined.
Read
Counter value is read out.
(Note 1)
Undefined value is read out.
7751 Group User's Manual
High-order byte
Low-order byte
Address 47
Address 46
16
Address 49
Address 48
16
Address 4B
Address 4A
16
Address 4D
Address 4C
16
Address 4F
Address 4E
16
Write
<During counting>
Written to only reload register.
<When not counting>
Written to both counter and
reload register.
16
16
16
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents