1.2.24.4 1.3.24.4 1.4.25.4 1.5.23.4 1.6.25.4 1.7.26.4 1.29.27.4 1.30.17.4 1.31.17.4 1.33.19.4 1.37.17.4 1.40.24.4 TCCx_Timer16bitCounterSet Function

C

/* x = TCC instance number */
void TCCx_Timer16bitCounterSet( uint16_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

uint16_t count = 0x100;
TCC0_TimerInitialize();
TCC0_TimerStart();
TCC0_Timer16bitCounterSet(count);

Remarks

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