Notes On Using Pulse Width Count Timer - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
8.9

Notes on Using Pulse Width Count Timer

This section lists points to note when using the pulse width count timer.
I Notes on using pulse width count timer
G
Error
When using the interval timer function, activating the counter by program is not synchronized with the start
of counting-down using the selected internal count clock. Therefore, the time from activating the counter
until an underflow occurs may be shorter than the theoretical time by a maximum of one cycle of the count
clock.
Figure 8.9-1 "Error on starting counter operation" shows the error that occurs on starting counter operation.
Counter value
Set value: n
Count clock
One cycle
Error
Counter activate
G
Notes on setting by program
• Do not modify the contents of the PWC pulse width control register 2 (PCR2) when the interval timer
function or pulse width measurement function is operating (PCR1: EN = "1").
• Stop the counter (EN = "0"), disable interrupts (IE = "0"), and clear the interrupt request flag bits (UF,
IR, BF = "000
width measurement function (PCR2: FC).
• Interrupt processing cannot return if the interrupt request flag bit (PCR1: UF, IR, or BF) is "1" and the
interrupt request enable bit is enabled (PCR1: IE = "1"). Always clear the interrupt request flag bit.
• If a previous measurement value has not been read when performing continuous pulse width
measurement for pulse width measurement function, new measurement values are not transferred to the
PWC reload buffer register (RLBR). The RLBR maintains the previous value. Always read the
measurement value before the next underflow (01
• The interrupt request flag bit (PCR1: UF, IR, or BF) is not set if the counter is disabled (PCR1: EN =
"0") at the same time as an interrupt source is generated.
164
Figure 8.9-1 Error on starting counter operation
n-1
Cycle of
set value n
") in the PCR1 register before switching between the interval timer function and pulse
B
n-2
n-3
--> 00
) when measuring long pulse widths.
H
H
n-4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents