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 #164 background imageLoading...
Page #164 background image
Pulse Width Modulator (PWM)
Prototype:
void
ROM_PWMGenIntClear(uint32_t ui32Base,
uint32_t ui32Gen,
uint32_t ui32Ints)
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_PWMGenIntClear is a function pointer located at ROM_PWMTABLE[17].
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.
ui32Ints specifies the interrupts to be cleared.
Description:
Clears the specified interrupt(s) by writing a 1 to the specified bits of the interrupt sta-
tus register for the specified PWM generator. The ui32Ints 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, or PWM_INT_CNT_BD.
Note:
Because there is a write buffer in the Cortex-M4 processor, it may take several clock cycles
before the interrupt source is actually cleared. Therefore, it is recommended that the interrupt
source be cleared early in the interrupt handler (as opposed to the very last action) to avoid
returning from the interrupt handler before the interrupt source is actually cleared. Failure to
do so may result in the interrupt handler being immediately reentered (because the interrupt
controller still sees the interrupt source asserted).
Returns:
None.
15.2.1.14 ROM_PWMGenIntStatus
Gets interrupt status for the specified PWM generator block.
Prototype:
uint32_t
ROM_PWMGenIntStatus(uint32_t ui32Base,
uint32_t ui32Gen,
bool bMasked)
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_PWMGenIntStatus is a function pointer located at ROM_PWMTABLE[16].
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.
164 April 8, 2013

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