1.3.23.39 1.4.24.39 1.5.22.39 1.6.24.39 1.7.25.39 1.29.26.39 1.30.16.39 1.31.16.39 1.32.29.39 1.33.18.39 1.37.16.39 1.38.24.39 1.39.21.39 1.40.23.39 TCx_Compare8bitCounterSet Function
C
/* x = TC instance number */
void TCx_Compare8bitCounterSet( uint8_t count );
Summary
Sets new timer counter value.
Description
This function sets new timer counter value.
Precondition
TCx_CompareInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
count | new counter value to set |
Returns
None.
Example
uint8_t count = 0x10U;
TC0_CompareInitialize();
TC0_CompareStart();
TC0_Compare8bitCounterSet(count);
Remarks
The caller must know the number of significant bytes of timer. Counter value is right-aligned.