1.2.24.11 1.3.24.11 1.4.25.11 1.5.23.11 1.6.25.11 1.7.26.11 1.29.27.11 1.30.17.11 1.31.17.11 1.33.19.11 1.37.17.11 1.40.24.11 TCCx_Timer24bitPeriodSet Function

C

/* x = TCC instance number */
void TCCx_Timer24bitPeriodSet( uint32_t period );

Summary

Sets the period value of a given timer.

Description

This function writes the period value. When timer counter matches period value,counter is reset and interrupt can be generated.

Precondition

TCCx_TimerInitialize() function must have been called first.

Parameters

Param Description
period new period value to set for timer

Returns

None.

Example

uint32_t period = 0x500;
TCC0_TimerInitialize();
TCC0_Timer16bitPeriodSet(period);

Remarks

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