Fujitsu F2MC-8L MB89620 Series Hardware Manual page 188

8-bit microcontroller
Table of Contents

Advertisement

Table 8.3.2 PWC Pulse Width Control Register 2 (PCR2) Bits
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Check: Do not modify the PCR2 register while the counter is operating (PCR1: EN = "1").
MB89620 series
Bit
This bit switches between the interval timer function (FC = "0") and pulse width
FC:
measurement function (FC = "1").
Operating mode
Check: When using the pulse width measurement function (FC = "1"), set the
selection bit
• For the interval timer function:
RM:
This bit selects reload timer mode (RM = "0") or one-shot timer mode (RM =
Reload mode
"1").
selection bit
• For the pulse width measurement function:
This bit has no meaning.
• The value of this bit is inverted each time a counter value underflow (01
00
• This bit is output from the WTO pin when the output pin control bit in the PWC
pulse width control register 1 (PCR1: TOE) is "1".
TO:
• By counting the number of times this bit is inverted (number of underflow (01
Timer output bit
→ 00
clock can be measured. Writing to this bit when output is enabled (PCR1: TOE
= "1") and the counter stopped (PCR1: EN = "0") directly sets the initial value of
the WTO pin.
• The read value is indeterminate.
Unused bit
• Writing to this bit has no effect on the operation.
These bits select the count clock for the interval timer function and pulse width
C1, C0:
measurement function.
Count clock selection
Three internal count clocks can be selected.
bits
Check: Do not set "11" to C1 and C0 bits.
• For the pulse width measurement function:
W1, W0:
These bits select which pulse edges to use as the start and end conditions for
Measured pulse
pulse measurement. Four types of pulse width or cycle can be selected.
selection bits
• For the interval timer function:
These bits have no meaning.
P35/PWC pin as an input port.
) occurs.
H
) occurs), pulse widths longer than 2
H
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
Function
8
× the cycle of the selected count
H
H
167

Advertisement

Table of Contents
loading

Table of Contents