Interrupt

所属分类:处理器开发
开发工具:C/C++
文件大小:739KB
下载次数:3
上传日期:2009-02-08 16:26:29
上 传 者lhlsea
说明:  本程序为完成各种中断的演示,使用环境为IAR4_30A,详细说明文档见压缩包
(This procedure for the completion of all kinds of interruption of the demonstration, the use of the environment IAR4_30A, detailed description of the document see compressed packet)

文件列表:
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\BasicInterrupt.dep (17984, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\BasicInterrupt.ewd (36963, 2005-09-12)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\BasicInterrupt.ewp (68015, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\BasicInterrupt.eww (168, 2005-09-12)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\CVS\Entries (377, 2005-09-13)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\CVS\Entries.Log (34, 2005-09-13)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\CVS\Repository (34, 2005-09-13)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\CVS\Root (58, 2005-09-13)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\download.html (21759, 2005-09-12)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Exe\BasicInterrupt.d79 (101504, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Exe\BasicInterrupt.sim (1723, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\BasicInterrupt.map (25996, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\Cstartup.lst (27010, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\Cstartup_SAM7.lst (16067, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\ext_irq.lst (7588, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\interrupt_timer.lst (23991, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\interrupt_Usart.lst (23680, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\List\main.lst (27776, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\BasicInterrupt.pbd (692, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\Cstartup.r79 (59847, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\Cstartup_SAM7.r79 (16757, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\ext_irq.r79 (15618, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\interrupt_timer.r79 (22334, 2005-11-01)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\interrupt_Usart.r79 (27549, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_Debug\Obj\main.r79 (25117, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Exe\BasicInterrupt.bin (3196, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Exe\BasicInterrupt.sim (3227, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\BasicInterrupt.map (38798, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\Cstartup.lst (27010, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\Cstartup_SAM7.lst (16067, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\dbgu.lst (16527, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\ext_irq.lst (8920, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\interrupt_timer.lst (24394, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\interrupt_Usart.lst (40911, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\List\main.lst (30967, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Obj\BasicInterrupt.pbd (808, 2005-11-08)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Obj\Cstartup.r79 (59847, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Obj\Cstartup_SAM7.r79 (16757, 2005-10-28)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Obj\dbgu.r79 (23938, 2005-11-02)
AT91SAM7X256-Interrupt-IAR4_30A-1_2\AT91SAM7X-Interrupt\compil\FLASH_FLASH\Obj\ext_irq.r79 (16154, 2005-11-02)
... ...

本程序为完成各种中断的演示,使用步骤如下: 1.板子接上9V直流电压 用USB线连接J16到PC主机的USB口 连接串口(J12)到PC机的串口(COM 1) 连接串口(J8)到PC机的串口(COM 2) 2.打开SAMBA, 将文件 /compil/FLASH_FLASH/Exe/BasicInterrupt.bin 下到flash,按下复位键PB5,即可运行 3.观察运行的效果前的准备 先关掉SAMBA 关掉板子电源 打开两个超级终端,分别配置为COM1,COM2, 波特率都是115200,数据位 8,奇偶检验 无,停止位 1,数据流控制 无; 4.观察运行的效果 板子再次上电 在超级终端(COM2)显示信息: X ================================================ == 欢迎使用英贝德公司的产品 == == EBDSAM7X 各种中断的演示测试 == == 更多的的帮助请到 http://www.szembed.com == ============================================== 在键盘上输入任意键,即在超级终端(COM2)上打印输出 下面的信息在在超级终端(COM1)显示: 代表背景程序的发光二极管DS2不停闪亮,表示程序在运行中…… 每隔一定时间进入software_interrupt,DS3闪一次,同时终端打印出 -I- soft interrupt 每隔几秒时间DS4闪一次,代表timer0进一次定时中断 DS5闪一次,代表timer1进一次定时中断,定地时间比timer0短,所以闪的快!呵呵! 按下PB2,进入PIO中断,DS3闪亮,同时终端打印出 -I- pio interrupt 连接串口(J9)到PC机的串口(COM 2),上电时也打印出一段信息 Y *** ATMEL Usart1 IRQ *** Copyright (C) 2005 ATMEL Corporations Version: 1.0 5.代码说明: 1)完成基本的初始化 2)初始化PIO,IRQ,FIQ,software_interrupt等 3)驱动板上的四个按键(PB1,PB2,PB3,PB4) 4)初始化DEBUG口,Usart0,Usart1等 5)初始化定时器timer0,timer1等

近期下载者

相关文件


收藏者