1.2.24.13 1.3.24.13 1.4.25.13 1.5.23.13 1.6.25.13 1.7.26.13 1.29.27.13 1.30.17.13 1.31.17.13 1.33.19.13 1.37.17.13 1.40.24.13 TCCx_Timer32bitCounterSet Function

C

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

Summary

Sets new timer counter value.

Description

This function sets new timer counter value.

Precondition

TCCx_TimerInitialize() function must have been called first.

Parameters

Param Description
count New counter value to set

Returns

None.

Example

uint32_t count = 0x100;
TCC0_TimerInitialize();
TCC0_TimerStart();
TCC0_Timer32bitCounterSet(count);

Remarks

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