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

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

6.2.1 Counter and reload register (timer Bi register)

Each of timer Bi counter and reload register consists of 16 bits and has the following functions.
(1) Functions in timer mode and event counter mode
The counter down-counts each time count source is input. The reload register is used to store the
initial value of the counter. When the counter underflows, 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 Bi register. Table
6.2.1 lists the memory assignment of the timer Bi register.
The value written into the timer Bi register when the counting is not in progress is set to the counter
and reload register. The value written into the timer Bi register when the 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 when the counter underflows next time. The counter value is read out by reading out the
timer Bi register.
Note: When reading and writing from/to the timer Bi register, perform them in a unit of 16 bits. For
more information about the value got by reading the timer Bi register, refer to "[Precautions
when operating in timer mode]" and "[Precautions when operating in event counter
mode]."
(2) Functions in pulse period/pulse width measurement mode
The counter up-counts each time count source is input. The reload register is used to retain the pulse
period or pulse width measurement result. When a valid edge is input to the TBi
value is transferred to the reload register. In this mode, the value got by reading the timer Bi register
is the reload register's contents, so that the measurement result is obtained.
Note: When reading from the timer Bi register, perform it in a unit of 16 bits.
Table 6.2.1 Memory assignment of timer Bi registers
Timer Bi register
Timer B0 register
Timer B1 register
Timer B2 register
Note: When reset, the contents of the timer Bi reg-
ister are undefined.
7751 Group User's Manual
TIMER B
6.2 Block description
pin, the counter
IN
High-order byte
Low-order byte
Address 51
Address 50
16
Address 53
Address 52
16
Address 55
Address 54
16
16
16
16
6–3

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents