1.14.2.24 CCPx_Compare16bitValueSet Function

C

/* x = CCP instance number */

void CCPx_Compare16bitValueSet( uint16_t count )

Summary

Sets new timer counter value.

Description

This function sets new timer counter value.

Precondition

CCPx_CompareInitialize() function must have been called first.

Parameters

Param Description
count new counter value to set

Returns

None.

Example

uint16_t count = 0x100;
CCP1_CompareInitialize();
CCP1_CompareStart();
CCP1_Compare16bitValueSet(count);

Remarks

The caller must know the number of significant bytes of timer. Counter value is right-aligned.