Renesas 7700 FAMILY User Manual page 151

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

TIMER B
6.5 Pulse period/pulse width measurement mode
Selecting pulse period/pulse width measurement mode and each function
b7
Setting interrupt priority level
b7
Setting port P6 direction register
b7
Setting count start bit to "1"
b7
Note: The timer Bi overflow flag is a read-only bit. This bit is undefined after reset. This bit is cleared to "0" by writing to the timer Bi mode
register with the count start bit = "1."
Fig. 6.5.2 Initial setting example for registers relevant to pulse period/pulse width measurement mode
6–22
b0
1 0
Timer Bi mode register (i = 0 to 2) (Addresses 5B
Selection of pulse period/pulse width measurement mode
Measurement mode select bits
b3 b2
0 0 : Pulse period measurement (Interval between falling edges
of measured pulse)
0 1 : Pulse period measurement (Interval between rising edges
of measured pulse)
1 0 : Pulse width measurement
1 1 : Not selected.
Timer Bi overflow flag (Note)
0: No overflow
1: Overflow
Count source select bits
b7 b6
0 0 : f
/f
2
4
0 1 : f
/f
16
32
1 0 : f
/f
64
128
1 1 : f
/f
512
1024
b0
Timer Bi interrupt control register (i = 0 to 2)
(Addresses 7A
to 7C
16
Interrupt priority level select bits
When using interrupts, set these bits to level 1–7.
When disabling interrupts, set these bits to level 0.
b0
Port P6 direction register (Address 10
TB0
pin
IN
TB1
pin
Clear the corresponding bit to "0."
IN
TB2
pin
IN
b0
Count start register (Address 40
Timer B0 count start bit
Timer B1 count start bit
Timer B2 count start bit
7751 Group User's Manual
to 5D
)
16
16
)
16
)
16
)
16
Count starts

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents