Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:42:26+00:00 2026-06-08T20:42:26+00:00

With an ARM Cortex-M3, such as an NXP LPC1788, why would someone use the

  • 0

With an ARM Cortex-M3, such as an NXP LPC1788, why would someone use the Interrupt Set-Pending Register(s) or Interrupt Clear-Pending Registers?

Can someone provide a simple, canonical example of using these registers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:42:28+00:00Added an answer on June 8, 2026 at 8:42 pm

    The only use case I can think of is the triggering of a low-priority software excaption form a high priority IRQHandler – like the GPIO interrupt handler.

    Normally you would use PendSV for that, but when you have more than one task or priority level you can use any unused peripherial exception vector. Could be useful in programs that use the Sleep-on-Exit feature – where the µC will only run in exception handlers.

    // Example for LPC17xx
    void   ETHERNET_Handler (void)
    {
        // toggle LED on P0.4
        LPC_GPIO0->FIODIR0 ^= (1<<4);
    }
    
    void main(void) 
    {
        // set Ethernet IRQ to loewst Priority
        NVIC_SetPriority(ENET_IRQn,31);
        NVIC_EnableIRQ(ENET_IRQn);
        NVIC_SetPendingIRQ(ENET_IRQn); // trigger Ethernet IRQ Handler
        // ...
        while (1);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a ARM Cortex-M3, and a Cortex-M4. I want to make use
I'm making use of an ARM Cortex-A8 based processor and I have several places
Given that, on the ARM Cortex M3, I can: atomically read a single bit
I wish to access some registers of my ARM Cortex-A8 board which are by
I'm creating code for an ARM Cortex-M3 (NXP's LCP17xx). I've been using static memory
I have a working gcc 4.3.3 toolchain for an ARM Cortex-m3 and would like
I am working with an LPC1768 ARM Cortex M3 microcontroller by NXP ( datasheet
I am compiling baremetal software (no OS) for the Beagleboard (ARM Cortex A8) with
I am doing Video decoding (mpeg2, frame size 360x240) on Android phone with ARM-Cortex
Why does the following ARM code set R0 to 0 after the SWI ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.