1.2.24.37 1.3.24.37 1.4.25.37 1.5.23.37 1.6.25.37 1.7.26.37 1.29.27.37 1.30.17.37 1.31.17.37 1.33.19.37 1.37.17.37 1.40.24.37 TCCx_Compare32bitPeriodSet Function
C
/* x = TCC instance number */
void TCCx_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
TCCx_CompareInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
period | New period value of given timer |
Returns
None.
Example
uint32_t period = 0x500;
TCC0_CompareInitialize();
TCC0_Compare32bitPeriodSet(period);
Remarks
None.