1.3.23.42 1.4.24.42 1.5.22.42 1.6.24.42 1.7.25.42 1.29.26.42 1.30.16.42 1.31.16.42 1.32.29.42 1.33.18.42 1.37.16.42 1.38.24.42 1.39.21.42 1.40.23.42 TCx_Compare8bitPeriodGet Function

C

/* x = TC instance number */
uint8_t TCx_Compare8bitPeriodGet( void );

Summary

Reads the period value of given timer.

Description

This function reads the value of period.

Precondition

TCx_CompareInitialize() function must have been called first.

Parameters

None.

Returns

Timer's period value

Example

uint8_t period = 0;
TC0_CompareInitialize();
period = TC0_Compare8bitPeriodGet();

Remarks

The caller must know the number of significant bytes of timer. Period value is right-aligned.