SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
A DriverLib function has been provided to apply the scale factor to a capture value, HRCAP_getEventTimeStampNanoseconds(). Equation 20 shows how to convert a raw count to seconds without using the DriverLib function.
Parameter | Explanation |
---|---|
RawCount | Capture value as read from ECAP_REGS_CAP1-4 |
ScaleFactor(1) | The Scale factor as calculated from Equation 20 |
128 | Constant determined by the hardware of the HRCAP submodule |
SysClkPrd(nS) | Period of the system clock |
Measurement(nS) | Signal converted to nS |