1.2.24.7 1.3.24.7 1.4.25.7 1.5.23.7 1.6.25.7 1.7.26.7 1.29.27.7 1.30.17.7 1.31.17.7 1.33.19.7 1.37.17.7 1.40.24.7 TCCx_Timer24bitCompareSet Function
C
void TCCx_Timer24bitCompareSet ( uint32_t compare );
Summary
Sets the compare value of a given timer channel.
Description
This function writes the compare value. When timer counter matches compare value, interrupt can be generated.
Precondition
TCCx_TimerInitialize function must have been called first for the given channel.
Parameters
Param | Description |
---|---|
compare | compare value of the timer |
Returns
None.
Example
TCC0_TimerInitialize();
TCC0_Timer24bitCompareSet(0xFul);
Remarks
This function is available only when TCC timer mode is used by SYS_TIME module. SYS_TIME uses compare match interrupt to generate dynamic delay.