5.4.1.4 PeriodWidthRise0
The PeriodWidthRise0() function captures the rising edge to rising edge high-resolution period width around
HCCAPCNTRISE0 and HCCAPCNTFALL1 in HCCAPCLK cycles.
Prototype:
Uint32 PeriodWidthRise0 (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 rising edge to rising edge period width around HCCAPCHCCAPCNTFALL1 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. It uses the calibration logic
to convert the HCCAPCNTRISE0 and HCCAPCNTFALL1 register values and HCCal calibration results into the
function into a fixed-point Q16 i fractional high-resolution period width in HCCAPCLK cycles.
shows which period widths can be captured on a RISE and FALL event.
High-Resolution Capture (HRCAP) Module
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
417
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......