Andes Workshop http://forum.andestech.com/ |
|
N8 interrupt問答集 http://forum.andestech.com/viewtopic.php?f=7&t=548 |
Page 1 of 1 |
Author: | cindy [ Thu Mar 08, 2012 5:42 pm ] |
Post subject: | N8 interrupt問答集 |
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; |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |