Pulse Width Modulator (PWM)
15.2.1.18 ROM_PWMGenPeriodSet
Set the period of a PWM generator.
Prototype:
void
ROM_PWMGenPeriodSet(uint32_t ui32Base,
uint32_t ui32Gen,
uint32_t ui32Period)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_PWMTABLE is an array of pointers located at ROM_APITABLE[8].
ROM_PWMGenPeriodSet is a function pointer located at ROM_PWMTABLE[2].
Parameters:
ui32Base is the base address of the PWM module.
ui32Gen is the PWM generator to be modified. Must be one of PWM_GEN_0, PWM_GEN_1,
PWM_GEN_2, or PWM_GEN_3.
ui32Period specifies the period of PWM generator output, measured in clock ticks.
Description:
This function sets the period of the specified PWM generator block, where the period of the
generator block is defined as the number of PWM clock ticks between pulses on the generator
block zero signal.
Note:
Any subsequent calls made to this function before an update occurs will cause the previous
values to be overwritten.
Returns:
None.
15.2.1.19 ROM_PWMIntDisable
Disables generator and fault interrupts for a PWM module.
Prototype:
void
ROM_PWMIntDisable(uint32_t ui32Base,
uint32_t ui32GenFault)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_PWMTABLE is an array of pointers located at ROM_APITABLE[8].
ROM_PWMIntDisable is a function pointer located at ROM_PWMTABLE[19].
Parameters:
ui32Base is the base address of the PWM module.
ui32GenFault contains the interrupts to be disabled. Must be a logical OR of
any of PWM_INT_GEN_0, PWM_INT_GEN_1, PWM_INT_GEN_2, PWM_INT_GEN_3,
PWM_INT_FAULT0, PWM_INT_FAULT1, PWM_INT_FAULT2, or PWM_INT_FAULT3.
April 8, 2013 167