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
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
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
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...