EasyManuals Logo

Texas Instruments Tiva TM4C123GH6PM User Manual

Texas Instruments Tiva TM4C123GH6PM
352 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #163 background imageLoading...
Page #163 background image
Pulse Width Modulator (PWM)
15.2.1.12 ROM_PWMGenFaultTriggerSet
Configures the set of fault triggers for a given PWM generator.
Prototype:
void
ROM_PWMGenFaultTriggerSet(uint32_t ui32Base,
uint32_t ui32Gen,
uint32_t ui32Group,
uint32_t ui32FaultTriggers)
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_PWMGenFaultTriggerSet is a function pointer located at ROM_PWMTABLE[25].
Parameters:
ui32Base is the base address of the PWM module.
ui32Gen is the PWM generator whose fault triggers are being set. Must be one of
PWM_GEN_0, PWM_GEN_1, PWM_GEN_2, or PWM_GEN_3.
ui32Group indicates the subset of possible faults that are to be configured. This must be
PWM_FAULT_GROUP_0 or PWM_FAULT_GROUP_1.
ui32FaultTriggers defines the set of inputs that are to contribute towards generation of the
fault signal to the given PWM generator. For PWM_FAULT_GROUP_0, this is the log-
ical OR of PWM_FAULT_FAULT0, PWM_FAULT_FAULT1, PWM_FAULT_FAULT2,
or PWM_FAULT_FAULT3. For PWM_FAULT_GROUP_1, this is the logical
OR of PWM_FAULT_DCMP0, PWM_FAULT_DCMP1, PWM_FAULT_DCMP2,
PWM_FAULT_DCMP3, PWM_FAULT_DCMP4, PWM_FAULT_DCMP5,
PWM_FAULT_DCMP6, or PWM_FAULT_DCMP7.
Description:
This function allows selection of the set of fault inputs that is combined to gener-
ate a fault condition to a given PWM generator. By default, all generators use only
FAULT0 (for backwards compatibility) but if ROM_PWMGenConfigure() is called with flag
PWM_GEN_MODE_FAULT_SRC in the ui32Config parameter, extended fault handling is en-
abled and this function must be called to configure the fault triggers.
The fault signal to the PWM generator is generated by ORing together each of the sig-
nals whose inputs are specified in the ui32FaultTriggers parameter after having adjusted
the sense of each FAULTn input based on the configuration previously set using a call to
ROM_PWMGenFaultConfigure().
Note:
This function is only available on devices supporting extended PWM fault handling.
Returns:
None.
15.2.1.13 ROM_PWMGenIntClear
Clears the specified interrupt(s) for the specified PWM generator block.
April 8, 2013 163

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments Tiva TM4C123GH6PM and is the answer not in the manual?

Texas Instruments Tiva TM4C123GH6PM Specifications

General IconGeneral
BrandTexas Instruments
ModelTiva TM4C123GH6PM
CategoryMicrocontrollers
LanguageEnglish

Related product manuals