TI E2E Community
Low Power RF & Wireless Connectivity
DN116 Clearing Module Interrupt Flags in LPW SoC Devices
Welcome to the Low Power RF & Wireless Connectivity Section of the TI E2E Support Community. Ask questions, share knowledge, explore ideas, and help solve problems with fellow engineers. To post a question, click on the forum tab then "New Post".
The traditional software method for clearing module interrupt flags in TI’s 8051-based low power wireless System-on-Chip (LPW SoC) devices can unintentionally mask other interrupt flags. Depending on the peripheral and the application, these masked or missing module interrupts can lead to unexpected system behavior. For example, in the Direct Memory Access (DMA) controller, a missing interrupt flag can freeze a channel until a system restart reinitializes the controller. Lost interrupts can result from read-modify-write (RMW) operations to clear older interrupt flags in the same module flag register. Examples of these traditional RMW operations to clear interrupt flags can be found in datasheets and sample code. This design note describes how module interrupt flags can be lost when using these operations and recommends alternative code that takes advantage of the Write-0 design of the module interrupt flag bits. Although this note assumes a working knowledge of interrupt programming, a brief overview of interrupt flags prefaces the issue of lost module interrupt flags and its avoidance.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.