Fujitsu MB90335 Series Hardware Manual page 327

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 13 PWC TIMER
13.3 Movement of PWC Timer
Pulse width measurement mode
In the state of measurement starting edge waiting there is no influence in the operation. During the
measurement, the count is stopped and the measurement start edge is again waited. In this case, if the
measurement termination edge detection and the restart occur at the same time, the measurement
termination flag (EDIR) is set and the result is transferred to PWCR in the continuous measurement mode.
■ Stops
In the one-shot timer mode and the single measurement mode, the timer overflow or the measurement
termination automatically stops the count and no intentional stop is necessary. In the other modes, however,
the timer must be forcibly stopped. Similarly, if you want to stop the timer before the automatic stop, you
must forcibly stop it.
■ Check Operating State
When the above-mentioned STRT and STOP bits are read, they are functional as the operating state
indication bits.
Table 13.3-4 shows the function of operating state indication bit.
Table 13.3-4 Function of Operating State Indication Bit
STRT
0
1
Note:
Reading either the STRT or STOP bit provides a same value. Do not use, however, the read-modify-
write instructions (bit process instructions, etc.) to read the STRT and STOP bits because "11
always results.
306
STOP
Timer stop (excluding status of waiting for measurement start edge):
0
It is not active or shows that the measurement ended.
1
During timer counting or waiting for measurement start edge
FUJITSU MICROELECTRONICS LIMITED
MB90335 Series
Operating State
"
B
CM44-10137-6E

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents