Renesas 7700 FAMILY User Manual page 149

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

TIMER B
6.5 Pulse period/pulse width measurement mode
b7
b6
b5
b4
b3
b2
(b15)
b7
Fig. 6.5.1 Structures of timer Bi mode register and timer Bi register in pulse period/pulse width
measurement mode
6–20
b1
b0
1
0
Timer Bi mode register (i = 0 to 2) (Addresses 5B
Bit
0
Operating mode select bits
1
Measurement mode select bits
2
3
4
Nothing is assigned.
Timer Bi overflow flag
5
(Note)
6
Count source select bits
7
Note: The timer Bi overflow flag is cleared to "0" by writing to the timer Bi mode register with the
count start bit = "1."
(b8)
b0 b7
7751 Group User's Manual
Bit name
b1 b0
1 0 : Pulse period/Pulse width
measurement mode
b3 b2
0 0 : Pulse period measurement
(Interval between falling edges
of measurement pulse)
0 1 : Pulse period measurement
(Interval between rising edges
of measurement pulse)
1 0 : Pulse width measurement
(Interval from falling edge to rising
edge, and from rising edge to falling
edge of measurement pulse)
1 1 : Not selected
0 : No overflow
1 : Overflow
b7 b6
0 0 : f
0 1 : f
1 0 : f
1 1 : f
b0
Timer B0 register (Addresses 51
Timer B1 register (Addresses 53
Timer B2 register (Addresses 55
Bit
15 to 0 The measurement result of pulse period or
pulse width is read out.
to 5D
)
16
16
Functions
/f
2
4
/f
16
32
/f
64
128
/f
512
1024
, 50
)
16
16
, 52
)
16
16
, 54
)
16
16
Functions
RW
At reset
0
RW
0
RW
0
RW
0
RW
Undefined
Undefined
RO
0
RW
0
RW
RW
At reset
RO
Undefined

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents