Stop all other interrupt flags while servicing one interrupt

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

Stop all other interrupt flags while servicing one interrupt

551 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Deepak Bansal on Wed Oct 03 02:11:08 MST 2012
Hi,



1. How to Stop all other interrupt flags while servicing one interrupt request & enable them after interrupt get serviced.

Like is there any Global Interrupt Enable bit or something.

2. Also while setting
NVIC_SetPriority(CT16B0_IRQn,0),
what should be min & max value of priority. Is it 0 to 31.
But LPC1317 datasheet says it have
"[B]8 programmable interrupt priority levels with hardware priority level masking[/B]"

Does that mean it can vary from 0 to 7.

3. Setting two priority to same value, will create problem, how??///
0 项奖励
回复
1 回复

537 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Wed Oct 03 06:40:45 MST 2012
You don't need to disable all other interrupts.
Just give your "important" interrupt the highest priority.

Beside the LPC1317 user manual, I suggest the following reference for further information:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337g/index.html

Especially the section about the NVIC.
0 项奖励
回复