ARM Interrupt question...

cancel
Showing results for 
Search instead for 
Did you mean: 

ARM Interrupt question...

291 Views
EdSutter
Senior Contributor II

I'm still trying to get my head around the IMXRT processor...

What is the difference between clearing the PRIMASK register and the CPSIDI instruction?

Tags (1)
0 Kudos
3 Replies

186 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Ed Sutter,

  At first, you need to know the PRIMASK detail meaning.

pastedImage_3.png

Then, about the CPSID I, please check the following information.

pastedImage_2.png

pastedImage_1.png

More details, please check the ARM core document.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

186 Views
EdSutter
Senior Contributor II

Hi Kerry,

I read all that; which is precisely why I asked the question... 

The documentation --as far as I can tell-- seems to indicate that they both do the same thing...

The TRM for M7 from ARM basically has the same stuff.  I'll keep digging, if I find an answer

I'll post it here...

Thanks,

Ed

0 Kudos

186 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Ed Sutter

   My understanding is:

   From the function viewpoint, PRIMASK=1 is the same as CPSID I;

   CPSID I is the instruction which can control PRIMASK quickly. If you just use the register code to control PRIMASK, the total execution time should longer than CPSID I.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------