SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
A DriverLib function has been provided to apply the scale factor to a capture value, HRCAP_getEventTimeStampNanoseconds(). Equation 22 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 22 |
128 | Constant determined by the hardware of the HRCAP submodule |
SysClkPrd(nS) | Period of the system clock |
Measurement(nS) | Signal converted to nS |