1.3.23.16 1.4.24.16 1.5.22.16 1.6.24.16 1.7.25.16 1.29.26.16 1.30.16.16 1.31.16.16 1.32.29.16 1.33.18.16 1.37.16.16 1.38.24.16 1.39.21.16 1.40.23.16 TCx_Timer8bitCounterSet Function
C
/* x = TC instance number */
void TCx_Timer8bitCounterSet( uint8_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
uint8_t count = 0x10U;
TC0_TimerInitialize();
TC0_TimerStart();
TC0_Timer8bitCounterSet(count);
Remarks
The caller must know the number of significant bytes of timer. Counter value is right-aligned.