Andes Workshop

It is currently Thu Mar 28, 2024 8:19 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: N8 interrupt問答集
PostPosted: Thu Mar 08, 2012 5:42 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Q:當INTL設置為2時,中斷模組不工作,不知道為什麼?是不能設置為2?
Ans:因為N8最高就是support 2級的interrupt,因為設置了2所以下次interrupt來會造成HW的interrupt level爆掉所以不能設成2。

Q:如果我需要連接全部5個硬體中斷,該怎麼設置暫存器?
Ans:把PSW裡的GIE enable和INT_MAST裡的H0IM~H4IM enable即可,可以參考AndeStar_SPA_V1.6 9.3.1和9.3.15 節

Q:cpu一開機時,interrupt level=1?
Ans:是的,Andes Core的design中,開機後interrupt level=1,
需要startup code把它降成0。在demo裡有。
如demo-int裡的init-default.c
#endif
/* Set PSW INTL to 0 */
tmp = __nds32__mfsr(NDS32_SR_PSW);
tmp = tmp & 0xfffffff9;


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group