Pulse Width Modulator (PWM)
Returns:
None.
15.2.1.28 ROM_PWMSyncTimeBase
Synchronizes the counters in one or multiple PWM generator blocks.
Prototype:
void
ROM_PWMSyncTimeBase(uint32_t ui32Base,
uint32_t ui32GenBits)
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_PWMSyncTimeBase is a function pointer located at ROM_PWMTABLE[10].
Parameters:
ui32Base is the base address of the PWM module.
ui32GenBits are the PWM generator blocks to be synchronized. Must be the logical OR of any
of PWM_GEN_0_BIT, PWM_GEN_1_BIT, PWM_GEN_2_BIT, or PWM_GEN_3_BIT.
Description:
For the selected PWM module, this function synchronizes the time base of the generator blocks
by causing the specified generator counters to be reset to zero.
Returns:
None.
15.2.1.29 ROM_PWMSyncUpdate
Synchronizes all pending updates.
Prototype:
void
ROM_PWMSyncUpdate(uint32_t ui32Base,
uint32_t ui32GenBits)
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_PWMSyncUpdate is a function pointer located at ROM_PWMTABLE[9].
Parameters:
ui32Base is the base address of the PWM module.
ui32GenBits are the PWM generator blocks to be updated. Must be the logical OR of any of
PWM_GEN_0_BIT, PWM_GEN_1_BIT, PWM_GEN_2_BIT, or PWM_GEN_3_BIT.
Description:
For the selected PWM generators, this function causes all queued updates to the period or
pulse width to be applied the next time the corresponding counter becomes zero.
April 8, 2013 173