1.2.24.33 1.3.24.33 1.4.25.33 1.5.23.33 1.6.25.33 1.7.26.33 1.29.27.33 1.30.17.33 1.31.17.33 1.33.19.33 1.37.17.33 1.40.24.33 TCCx_Compare32bitCounterGet Function
C
/* x = TCC instance number */
uint32_t TCCx_Compare32bitCounterGet( void );
Summary
Reads the timer current count value.
Description
This function reads the timer count value.
Precondition
TCCx_CompareInitialize() function must have been called first.
Parameters
NoneReturns
Timer's current count value.
Example
uint32_t counter = 0;
TCC0_CompareInitialize();
TCC0_CompareStart();
counter = TCC0_Compare32bitCounterGet();
Remarks
The caller must know the number of significant bytes of timer. Period value is right-aligned