1.3.24.9 TCCx_Timer24bitCounterSet Function
C
/* x = TCC instance number */
void TCCx_Timer24bitCounterSet( uint32_t count );
Summary
Sets new timer counter value.
Description
This function sets new timer counter value.
Precondition
TCCx_TimerInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
count | new counter value to set |
Returns
None.
Example
uint32_t count = 0x100;
TCC0_TimerInitialize();
TCC0_TimerStart();
TCC0_Timer24bitCounterSet(count);
Remarks
The caller must know the number of significant bytes of timer. Counter value is right-aligned.