5.4.1.2 LowPulseWidth0
The LowPulseWidth0() function captures the high-resolution low pulse width around HCCAPCNTRISE0 in
HCCAPCLK cycles.
Prototype:
Uint32 LowPulseWidth0 (Uint16 * ptrHRCAPmodule);
Parameters:
ptrHRCAPmodule
A 16-bit pointer to the first address of the HRCAP register block of the HRCAP module used
to capture pulses.
Returns:
32-bit high-resolution low pulse width around HCCAPCNTRISE0 as Q16 fixed-point value in number of
HCCAPCLK cycles.
Description:
This function can be called for any of the HRCAP modules not used for calibration to convert the
HCCAPCNTRISE0 and HRCAP calibration results into a fixed-point Q16 i fractional high-resolution
low-pulse width in HCCAPCLK cycles.
shows which low pulse widths can be captured on a RISE
and FALL event.
Service FALL interrupt
Service RISE interrupt
HCCAPCNTFALL0
HCCAPCNTRISE0
HCCAPCNTFALL1
HCCAPCNTRISE0
HCCAPCNTFALL1
HCCAPCNTRISE1
LowPulseWidth0
LowPulseWidth0
Figure 5-10. LowPulseWidth0 Capture on RISE and FALL Events
High-Resolution Capture (HRCAP) Module
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
415
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......