1.3.23.20 1.4.24.20 1.5.22.20 1.6.24.20 1.7.25.20 1.29.26.20 1.30.16.20 1.31.16.20 1.32.29.20 1.33.18.20 1.37.16.20 1.38.24.20 1.39.21.20 1.40.23.20 TCx_TimerFrequencyGet Function
C
/* x = TC instance number */
uint32_t TCx_TimerFrequencyGet( void );
Summary
Provides the given timer's counter-increment frequency.
Description
This function provides the frequency at which the given counter increments. It can be used to convert differences between counter values to real time or real-time intervals to timer period values.
Precondition
TCx_TimerInitialize() function must have been called first.
Parameters
None.
Returns
Param | Description |
---|---|
frequency - The frequency (in Hz) at which the timer's counter increments |
Example
uint32_t frequency = 0;
TC0_TimerInitialize();
frequency = TC0_TimerFrequencyGet();
Remarks
None.