1.3.23.37 1.4.24.37 1.5.22.37 1.6.24.37 1.7.25.37 1.29.26.37 1.30.16.37 1.31.16.37 1.32.29.37 1.33.18.37 1.37.16.37 1.38.24.37 1.39.21.37 1.40.23.37 TCx_Compare32bitPeriodSet Function

C

/* x = TC instance number */
void TCx_Compare32bitPeriodSet( 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

TCx_CompareInitialize() function must have been called first.

Parameters

Param Description
period new period value to set for timer

Returns

None.

Example

uint32_t period = 0x500U;
TC0_CompareInitialize();
TC0_Compare32bitPeriodSet(period);

Remarks

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