ARM Interrupt question...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ARM Interrupt question...

765 次查看
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?

标记 (1)
0 项奖励
3 回复数

660 次查看
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 项奖励

660 次查看
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 项奖励

660 次查看
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.
-------------------------------------------------------------------------------