1.36.18.15 TCx_CHy_CompareStart Function

C

/* x = TC instance number, y = channel number */
void TCx_CHy_CompareStart ( void )

Summary

Starts the given TC channel compare counter.

Description

This function enables the clock and starts the counter of associated channel in compare mode so that the TC module may start generating the selected waveform.

Precondition

TCx_CHy_CompareInitialize() function must have been called first for the given channel.

Parameters

None

Returns

None.

Example

TC0_CH1_CompareInitialize();
TC0_CH1_CompareStart();

Remarks

None