1.8.22.3 1.25.23.3 1.26.20.3 1.27.23.3 1.28.25.3 1.34.23.3 1.35.16.3 1.36.18.3 1.41.21.3 1.42.20.3 TCx_CHy_TimerPeriodHasExpired Function

C

/* x = TC instance number, y= channel number */
bool TCx_CHy_TimerPeriodHasExpired ( void );

Summary

Checks whether timer period is elapsed

Description

This function checks the status of the timer period interrupt.

Precondition

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

Parameters

None

Returns

  • True - timer period has expired

  • False - timer period is not expired

Example

bool status;

TC0_CH1_TimerInitialize();
status = TC0_CH1_TimerPeriodHasExpired();

Remarks

This function is available only in polling mode