5.4.1.5 PeriodWidthFall0
The PeriodWidthFall0()function captures the falling edge to falling edge high-resolution period width around
HCCAPCNTFALL0 and HCCAPCNTRISE0 in HCCAPCLK cycles.
Prototype:
Uint32 PeriodWidthFall0 (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 falling edge to falling edge period width around HCCAPCHCCAPCNTRISE0 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 HCCAPCNTFALL0 and HCCAPCNTRISE0 register values and HCCal calibration results into a
fixed-point Q16 i fractional high-resolution period width in HCCAPCLK cycles.
period widths can be captured on a RISE and FALL event.
Service FALL interrupt
Service RISE interrupt
HCCAPCNTRISE0
HCCAPCNTRISE1
HCCAPCNTFALL0
HCCAPCNTRISE0
HCCAPCNTFALL1
HCCAPCNTFALL1
HCCAPCNTRISE1
PeriodWidthRise0
PeriodWidthFall0
PeriodWidthRise0
Figure 5-12. PeriodWidthRise0 and PeriodWidthFall0 Capture on RISE and FALL Events
High-Resolution Capture (HRCAP) Module
418
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......