1.2.24.46 1.3.24.46 1.4.25.46 1.5.23.46 1.6.25.46 1.7.26.46 1.29.27.46 1.30.17.46 1.31.17.46 1.33.19.46 1.37.17.46 1.40.24.46 TCCx_Capture24bitCounterGet Function

C

/* x = TCC instance number */
uint32_t TCCx_Capture24bitCounterGet( void );

Summary

Reads the timer current count value.

Description

This function reads the timer count value.

Precondition

TCCx_CaptureInitialize() function must have been called first.

Parameters

None.

Returns

Timer's current count value.

Example

uint32_t counter = 0;
TCC0_CaptureInitialize();
TCC0_CaptureStart();
counter = TCC0_Capture24bitCounterGet();

Remarks

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