External Interrupt Priority Level Register Cortex M3

Note: This was originally posted on 15th July 2010 at http://forums.arm.com

Hi,
I am trying to program the priority level of external interrupts but without any luck

snippet from the code
-------------------------------------------------------------------------------
#define PRI_3     ((volatile unsigned char *) (0xE000E403))
   *PRI_3 = data;
   __DSB();
------------------------------------------------------------------------------

When I try to read back the data written using

  data = *PRI_3;
  __DSB();

I don't get the expected data
Do I have to set any other registers?

Thanks
Vinayak
Parents
  • Note: This was originally posted on 16th July 2010 at http://forums.arm.com

    Thanks hth.
    I had missed that I could program only MSBs of priority registers.  B)

    What is the value of "data"?

    Depending on the configuration of the Cortex-M3 part in question,
    it may only be possible to write the values 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0 and 0xE0.

    hth
    s.
Reply
  • Note: This was originally posted on 16th July 2010 at http://forums.arm.com

    Thanks hth.
    I had missed that I could program only MSBs of priority registers.  B)

    What is the value of "data"?

    Depending on the configuration of the Cortex-M3 part in question,
    it may only be possible to write the values 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0 and 0xE0.

    hth
    s.
Children
No data
More questions in this forum