1.2.24.57 1.3.24.57 1.4.25.57 1.5.23.57 1.6.25.57 1.7.26.57 1.29.27.57 1.30.17.57 1.31.17.57 1.33.19.57 1.37.17.57 1.40.24.57 TCCx_PWM16bitCounterSet Function
C
/* x = TCC instance number */
void TCCx_PWM16bitCounterSet(uint16_t count);
Summary
Sets the counter value of a given TCC instance
Description
This function updates the counter value.
Precondition
TCCx_PWMInitialize function must have been called first for the given channel.
Parameters
Param | Description |
---|---|
count | counter value |
Returns
None
Example
TCC0_PWMInitialize();
TCC0_PWM16bitCounterSet(0x100U);
Remarks
This function waits till sync operation is complete.