1.1.5.4 HTMx_PeriodSet Function

C

/* x = HTM timer instance number */

void HTMx_PeriodSet(uint16_t period)

Summary

Sets the time period and starts the HTM timer

Description

Sets the pre-load register value and resets the down counter to start counting down from this programmed value

Precondition

HTMx_Initialize() function must have been called first.

Parameters

Param Description
period Timer period value

Returns

None

Example

HTM0_PeriodSet(32768);

Remarks

None