NIOS Ⅱ开发需要注意的地方

1.On-Chip Memory

On-Chip Memory,尤其是RAM尽量设置大一点,不然在使用eclipse时,很容易超出存储空间,尤其是当你使用了printf函数时
在这里插入图片描述

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寄存器所有位清零
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值