1.2.19.32 1.3.22.32 1.4.20.32 1.5.21.32 1.6.21.32 1.7.22.32 1.29.21.32 1.30.15.24 1.31.15.24 1.32.24.32 1.33.15.24 1.37.15.24 1.38.20.32 1.39.17.32 1.40.19.32 RTC_Timer16FrequencyGet Function

C

uint32_t RTC_Timer16FrequencyGet ( void )

Summary

Returns the frequency at which the 16-bit timer counter is operating.

Description

This function returns the frequency at which the 16-bit timer counter is operating. The return value can be used to compute the period that needs to be set in order to operate the timer counter at a desired frequency.

Precondition

None.

Parameters

None.

Returns

Returns the frequency at which the 16-bit timer counter is operating.

Example

// Compute the period required to operate the timer at 1KHz.

uint16_t desiredFrequency = 1000;
uint16_t period = RTC_Timer16FrequencyGet()/desiredFrequency;
RTC_Initialize();
RTC_Timer16PeriodSet(period);

Remarks

None.