Figure 8.3.2 Pwc Pulse Width Control Register 2 (Pcr2) - Fujitsu F2MC-8L MB89620 Series Hardware Manual

8-bit microcontroller
Table of Contents

Advertisement

8.3 Structure of Pulse Width Count Timer
8.3.2 PWC Pulse Width Control Register 2 (PCR2)
The PWC pulse width control register 2 (PCR2) is used to select the operating mode of
(pulse width measurement or interval timer operation, etc.), select the count clock, set
the measured pulse (measurement edges), and check the timer output state of the
pulse width count timer.
n PWC Pulse Width Control Register 2 (PCR2)
Address
0015
H
R/W : Readable and writable
X
166
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
Bit 7
Bit 6
Bit 5
Bit 4
FC
RM
TO
R/W
R/W
R/W
: Unused
: Indeterminate
: Initial value

Figure 8.3.2 PWC Pulse Width Control Register 2 (PCR2)

Bit 3
Bit 2
Bit 1
Bit 0
C1
C0
W1
W0
R/W
R/W
R/W
R/W
Measured pulse selection bits
W1
W0
Only applies to the pulse width measurement function (FC = "1")
0
0
"H" pulse (rising edge to falling edge)
0
1
"L" pulse (falling edge to rising edge)
1
0
Rising edge to rising edge (one cycle)
1
1
Falling edge to falling edge (one cycle)
C1
C0
0
0
1 t
inst
0
1
4 t
inst
1
0
32 t
inst
1
1
Do not use these settings.
t
: Instruction cycle
inst
TO
Read
0
Reads the current output
value.
1
Reload mode selection bit
RM
Only applies to the interval timer function (FC = "0").
0
Reload timer mode
1
One-shot timer mode
FC
Operating mode selection bit
0
Operates as an interval timer function.
1
Operates as a pulse width measurement function.
Initial value
000X0000
B
Count clock selection bits
Timer output bit
Write
Can be used to set the
output value when the
counter is stopped.
MB89620 series

Advertisement

Table of Contents
loading

Table of Contents