1.3.23.11 1.4.24.11 1.5.22.11 1.6.24.11 1.7.25.11 1.29.26.11 1.30.16.11 1.31.16.11 1.32.29.11 1.33.18.11 1.37.16.11 1.38.24.11 1.39.21.11 1.40.23.11 TCx_Timer32bitCounterSet Function
C
/* x = TC instance number */
void TCx_Timer32bitCounterSet( uint32_t count );
Summary
Sets new timer counter value.
Description
This function sets new timer counter value.
Precondition
TCx_TimerInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
count | new counter value to set |
Returns
None.
Example
uint32_t count = 0x100;
TC0_TimerInitialize();
TC0_TimerStart();\
TC0_Timer32bitCounterSet(count);
Remarks
The caller must know the number of significant bytes of timer. Counter value is right-aligned.