NiosII程序范例
7个范例程序的测试结果 1、字符模式设备范例.txt --上位机串口波特率115200,在硬件上全速运行程序后控制台收到: This application will printf 'Hello world' to uart1! 串口上收到: hello world 2、Alarm范例.txt --在my_alarm_callback()函数return前,加入了一条printf("CallCounter's Value is %d!\n",CallCounter);,在硬件上全速运行程序后收到: CallCounter's Value is 1! 3、ISR范例.txt --在硬件上全速运行程序后收到: ISR Demo! Timer interrupt has occurred for: 0 times Timer interrupt has occurred for: 1 times Timer interrupt has occurred for: 2 times Timer interrupt has occurred for: 3 times ………… 4、HighResTimer范例.txt --在硬件上全速运行程序后收到: Elapsed time in func1 = 993 us Elapsed time in func1 = 4830 us 5、DMA范例.txt --在SOPC Builder中建一个RAM型On-chip_memory命名为onchip_RAM_4K(也可取其它名),建一个DMA命名为dma,将dma的read_master、write_master与onchip_RAM_4K连接.在硬件上全速运行程序后收到: DMA Demo(Memory to Memory)! Create the transmit channel successfully! Create the receive channel successfully! Post the transmit request successfully! Post the receive request successfully! 6、Simple Flash Access驱动范例.txt --在硬件上全速运行程序后收到: Simple Flash Access Demo. Open Flash Device Successfully. Write Flash Device Successfully. Read Flash Device Successfully. Verify Successfully! 7、Fine-gained Flash Access驱动范例.txt --在硬件上全速运行程序后收到: Fine-gained Flash Access Demo. Open Flash Device Successfully. Erase Flash Device Successfully. Write Flash Device Successfully. Read Flash Device Successfully. Verify Successfully! Alarm范例程序经过修改之后,可以看到重复进my_alarm_callback()函数了 控制台显示结果为: my_alarm_callback has been called for: 0 times my_alarm_callback has been called for: 1 times my_alarm_callback has been called for: 2 times my_alarm_callback has been called for: 3 times my_alarm_callback has been called for: 4 times …………
- 1
- 粉丝: 2
- 资源: 3
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助