1.3.24.77 TCCx_PWMStop Function

C

/* x = TCC instance number */
void TCCx_PWMStop( void );

Summary

Stops PWM generation of given TCC instance

Description

This function stops the counter of associated instance.

Precondition

TCCx_PWMInitialize() function must have been called first for the given instance.

Parameters

None

Returns

None.

Example

TCC0_PWMInitialize();
TCC0_PWMStart();
// Run application
TCC0_PWMStop();

Remarks

Due to synchronization, there is a delay from writing to register until peripheral is stopped. This function waits till sync operation is complete.