Pulse Width Measurement Mode (Taanmd2 To Taanmd0 = 110B)356 - NEC V850ES/F 3-L Series User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 10
10.6.8 Pulse width measurement mode
Caution
356
(TAAnMD2 to TAAnMD0 = 110B)
In the pulse width measurement mode, free-running count is performed. The
value of the 16-bit counter is saved to capture register 0 (TAAnCCR0), or
capture register 1 (TAAnCCR1) respectively, and the 16-bit counter is cleared
upon edge detection of the TIAAn0 pin, or TIAAn1 respectively. The external
input pulse width can be measured as a result.
However, when measuring a large pulse width that exceeds 16-bit counter
overflow, perform judgment with the overflow flag, e.g by counting the overflow
count by using the overflow interrupt.
Depending on the selected capture input sources and specified edge detection
three different measurement methods can be applied.
1. Pulse period measurement
2. Alternating pulse width and pulse space measurement.
3. Simultaneous pulse width and pulse space measurement:
Both capture inputs are required to measure pulse width and pulse space
simultaneously.
The measurements methods are explained in the following sub-chapters.
In the pulse width measurement mode, select the internal clock (TAAnEEE of
TAAnCTL1 register = 0).
User's Manual U18743EE1V2UM00
16-Bit Timer/Event Counter AA

Advertisement

Table of Contents
loading

Table of Contents