1.2.24.29 1.3.24.29 1.4.25.29 1.5.23.29 1.6.25.29 1.7.26.29 1.29.27.29 1.30.17.29 1.31.17.29 1.33.19.29 1.37.17.29 1.40.24.29 TCCx_Compare24bitCounterSet Function

C

/* x = TCC instance number */
void TCCx_Compare24bitCounterSet( uint32_t count );

Summary

Sets new timer counter value.

Description

This function sets new timer counter value.

Precondition

TCCx_CompareInitialize() function must have been called first.

Parameters

Param Description
count new counter value to set

Returns

None.

Example

uint32_t count = 0x100;
TCC0_CompareInitialize();
TCC0_CompareStart();
TCC0_Compare24bitCounterSet(count);

Remarks

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