Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 670

Table of Contents

Advertisement

Operating Modes
The count registers are reset to 0x0000 0001 again, and the timer contin-
ues counting until it is either disabled or the count value reaches
0xFFFF FFFF.
In this mode, programs can measure both the pulse width and the pulse
period of a waveform. To control the definition of the leading edge and
trailing edge of the
set or cleared. If the
falling edge, the count register is captured to the
ing edge, and the period register is captured on the next falling edge.
The
bit in the
PRDCNT
rupt is generated when the pulse width or pulse period is captured. If the
bit is set, the interrupt latch bit (
PRDCNT
period value is captured. If the
set when the pulse width value is captured.
If the
bit is cleared, the first period value has not yet been mea-
PRDCNT
sured when the first interrupt is generated. Therefore, the period value is
not valid. If the interrupt service routine reads the period value anyway,
the timer returns a period value of zero. When the period expires, the
period value is loaded in the
A timer interrupt (if enabled) is also generated if the count register reaches
a value of 0xFFFF FFFF. At that point, the timer is disabled automati-
cally, and the
TIMxOVF
and
TIMxIRQ
TIMxOVF
clear them. The WDTH_CAP timing is shown in
The first width value captured in WDTH_CAP mode is erroneous due to
synchronizer latency. To avoid this error, programs must issue two
instructions between setting WDTH_CAP mode and setting
16-14
www.BDTIC.com/ADI
signal, the
TIMERx_I
bit is cleared, the measurement is initiated by a
PULSE
register controls whether an enabled inter-
TMxCTL
PRDCNT
register.
TMxPRD
status bit is set, indicating a count overflow. The
bits are sticky bits, and programs must explicitly
ADSP-214xx SHARC Processor Hardware Reference
bit in the
PULSE
TMxCTL
register on the ris-
WIDTH
) gets set when the pulse
TIMxIRQ
bit is cleared, the
TIMxIRQ
Figure
register is
bit gets
16-6.
NOP
.
TIMxEN

Advertisement

Table of Contents
loading

Table of Contents