1.3.23.6 1.4.24.6 1.5.22.6 1.6.24.6 1.7.25.6 1.29.26.6 1.30.16.6 1.31.16.6 1.32.29.6 1.33.18.6 1.37.16.6 1.38.24.6 1.39.21.6 1.40.23.6 TCx_Timer16bitCounterSet Function

C

/* x = TC instance number */
void TCx_Timer16bitCounterSet( uint16_t count );

Summary

Sets new timer counter value.

Description

This function sets new timer counter value.

Precondition

TCx_TimerInitialize() function must have been called first.

Parameters

Param Description
count new counter value to set

Returns

None.

Example

uint16_t count = 0x100;
TC0_TimerInitialize();
TC0_TimerStart();
TC0_Timer16bitCounterSet(count);

Remarks

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