1.10.13.6 MCPWM_PrimaryPeriodSet Function
C
void MCPWM_PrimaryPeriodSet (uint16_t period)
Summary
Sets the period value of the primary time base
Description
This function writes the period value of the primary time base generator.
Precondition
MCPWM_Initialize() function must have been called first for the associated instance.
Parameters
Param | Description |
---|---|
period | period value corresponding to MCPWM frequency |
Returns
None.
Example
MCPWM_Initialize();
MCPWM_Start();
MCPWM_PrimaryPeriodSet(0x500);
Remarks
None