1.14.2.20 1.15.2.20 CCPx_Compare32bitValueSet Function
C
/* x = CCP instance number */
void CCPx_Compare32bitValueSet( uint32_t compare )
Summary
Sets 32bit compare value.
Description
This function sets 32bit compare value.
Precondition
CCPx_CompareInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
compare | new compare value to set |
Returns
None.
Example
uint32_t compare = 0x10056100;
CCP1_CompareInitialize();
CCP1_CompareStart();
CCP1_Compare32bitValueSet(compare);
Remarks
The caller must know the number of significant bytes of timer. Counter value is right-aligned.