1.2.24.25 1.3.24.25 1.4.25.25 1.5.23.25 1.6.25.25 1.7.26.25 1.29.27.25 1.30.17.25 1.31.17.25 1.33.19.25 1.37.17.25 1.40.24.25 TCCx_Compare16bitMatchSet Function
C
/* x = TCC instance number */
void TCCx_Compare16bitMatchSet( TCCx_CHANNEL_NUM channel, uint16_t compareValue );
Summary
Writes compare value of the given compare channel.
Description
Set compare value of given channel
Precondition
TCCx_CompareInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
compareValue | value to set for compare channel 0 |
Returns
None.
Example
uint16_t compareValue = 0x100;
TCC0_CompareInitialize();
TCC0_Compare16bitMatch0Set(TCC0_CHANNEL0, compareValue);
Remarks
None