Pulse Width Modulator (PWM)
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_PWMGenIntTrigEnable
is a function pointer located at
ROM_PWMTABLE[14]
.
Parameters:
ui32Base
is the base address of the PWM module.
ui32Gen
is the PWM generator to have interrupts and triggers enabled. Must be one of
PWM_GEN_0
,
PWM_GEN_1
,
PWM_GEN_2
, or
PWM_GEN_3
.
ui32IntTrig
specifies the interrupts and triggers to be enabled.
Description:
Unmasks the specified interrupt(s) and trigger(s) by setting the specified bits of the inter-
rupt/trigger enable register for the specified PWM generator.
The
ui32IntTrig
parameter
is the logical OR of
PWM_INT_CNT_ZERO
,
PWM_INT_CNT_LOAD
,
PWM_INT_CNT_AU
,
PWM_INT_CNT_AD
,
PWM_INT_CNT_BU
,
PWM_INT_CNT_BD
,
PWM_TR_CNT_ZERO
,
PWM_TR_CNT_LOAD
,
PWM_TR_CNT_AU
,
PWM_TR_CNT_AD
,
PWM_TR_CNT_BU
, or
PWM_TR_CNT_BD
.
Returns:
None.
15.2.1.17 ROM_PWMGenPeriodGet
Gets the period of a PWM generator block.
Prototype:
uint32_t
ROM_PWMGenPeriodGet(uint32_t ui32Base,
uint32_t ui32Gen)
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_PWMGenPeriodGet
is a function pointer located at
ROM_PWMTABLE[3]
.
Parameters:
ui32Base
is the base address of the PWM module.
ui32Gen
is the PWM generator to query.
Must be one of
PWM_GEN_0
,
PWM_GEN_1
,
PWM_GEN_2
, or
PWM_GEN_3
.
Description:
This function gets the period of the specified PWM generator block. The period of the generator
block is defined as the number of PWM clock ticks between pulses on the generator block zero
signal.
If the update of the counter for the specified PWM generator has yet to be completed, the
value returned may not be the active period. The value returned is the programmed period,
measured in PWM clock ticks.
Returns:
Returns the programmed period of the specified generator block in PWM clock ticks.
166
April 8, 2013
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...