NiosII程序范例

时间:2013-02-23 05:07:04
【文件属性】:

文件名称:NiosII程序范例

文件大小:10KB

文件格式:RAR

更新时间:2013-02-23 05:07:04

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 …………


【文件预览】:
NiosII范例
----字符模式设备范例.txt(525B)
----ISR范例.txt(1KB)
----Alarm范例.txt(2KB)
----Fine-gained Flash Access驱动范例.txt(4KB)
----HighResTimer范例.txt(1KB)
----Simple Flash Access驱动范例.txt(2KB)
----利用重载技巧实现最小代码尺寸.txt(1KB)
----DMA范例.txt(3KB)
----7个范例程序的测试结果.txt(4KB)

网友评论