1.3.23.33 1.4.24.33 1.5.22.33 1.6.24.33 1.7.25.33 1.29.26.33 1.30.16.33 1.31.16.33 1.32.29.33 1.33.18.33 1.37.16.33 1.38.24.33 1.39.21.33 1.40.23.33 TCx_Compare32bitCounterSet Function

C

/* x = TC instance number */
void TCx_Compare32bitCounterSet( uint32_t count );

Summary

Sets new timer counter value.

Description

This function sets new timer counter value.

Precondition

TCx_CompareInitialize() function must have been called first.

Parameters

Param Description
count new counter value to set

Returns

None.

Example

uint32_t count = 0x100;
TC0_CompareInitialize();
TC0_CompareStart();
TC0_Compare32bitCounterSet(count);

Remarkss

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