1.14.2.28 1.15.2.28 CCPx_Compare16bitRAValueSet Function
C
/* x = CCP instance number */
void CCPx_Compare16bitRAValueSet( uint16_t compareValue )
Summary
Writes compare value of the given compare channel 0.
Description
Set CC[0] compare value.
Precondition
CCPx_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;
CCP1_CompareInitialize();
CCP1_Compare16bitRAValueSet(compareValue);
Remarks
None