天天看點

NIOS Ⅱ開發需要注意的地方

1.On-Chip Memory

On-Chip Memory,尤其是RAM盡量設定大一點,不然在使用eclipse時,很容易超出存儲空間,尤其是當你使用了printf函數時

NIOS Ⅱ開發需要注意的地方

2. PIO中斷

當使用PIO中斷時,先弄明白自己的中斷是邊沿(上升沿或者是下降沿)觸發還是高低電平觸發。

注意:隻有當設定PIO方向為Bidir、input或者Inout類型時才能有中斷産生。

Edge capture register菜單中,是否勾選Synchronously capture表示是否進行邊沿捕獲,下拉框中有選擇邊沿類型

Enable bit-clearing for edge capture register選項

If the option Enable bit-clearing for edge capture register is turned off, writing any value to the edgecapture register clears all bits in the register. Otherwise, writing a 1 to a particular bit in the register clears only that bit.

即勾選,對應位寫1,則清除edgecapture寄存器對應位,否則寫任何值都會将edgecapture寄存器所有位清零

NIOS Ⅱ開發需要注意的地方