文件名称:shiyan8_IRQ4
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-09-22
- 文件大小:
- 28kb
- 下载次数:
- 0次
- 提 供 者:
- n**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
开发环境:unSP IDE 2.0.0
实验目的:
1)了解IRQ4的中断向量和中断源。
2)掌握中断控制单元P_INT_Ctrl, P_INT_Clear的设置方法。
3)熟悉中断的编程方法。
实验设备:
1)装有µ ’nSP™ IDE仿真环境的PC机一台。 2)µ ’nSP™ 十六位单片机实验箱一个。
实验原理: IRQ4 中断对应4096Hz、2048Hz、1024Hz 中断源,通过写P_INT_Ctrl来设置中断允许,CPU响应后进入中断, 我们编写一个用中断方式控制发光二极管亮灭程序, 中断程序里读取P_INT_Ctrl单元,判断是哪个中断源,转到相应中断程序控制对应发光二极管亮或灭.从而了解IRQ4 中断的组成及编程。
实验步骤:
1)根据实验内容自行设计,连接硬件电路并检查。
2)画流程图并编写程序代码。
3)编译程序,软件调试。
4) 观察LED、各个寄存器状态等。
要求: 能用LED的状态验证中断正确工作。
(综合要求:可用按键控制各个中断原是否产生中断。)-The experiment:
1) Learn IRQ4 interrupt vector and interrupt sources.
2) master interrupt control unit P_INT_Ctrl, P_INT_Clear setting method.
3) Familiar interrupt programming methods.
Laboratory equipment:
1) with μ nSP ™ IDE emulation environment for PC machine. 2) μ nSP ™ 16 single-chip experiment box one.
Experimental principle: IRQ4 interrupt corresponding 4096Hz, 2048Hz, 1024Hz interrupt source by writing P_INT_Ctrl to set the interrupt enable, CPU respond after entering the interrupt, we write an interrupt control with LED lights off procedures, the interrupt routine reads P_INT_Ctrl unit to determine which interrupt source, go to the corresponding interrupt program controls the corresponding LEDs on or off. IRQ4 interrupt to understand the composition and programming.
Experimental procedure:
1) According to the experimental design their own content, connecting hardware circuit and check.
2) draw flowcharts and write program code.
3) compiler, software deb
实验目的:
1)了解IRQ4的中断向量和中断源。
2)掌握中断控制单元P_INT_Ctrl, P_INT_Clear的设置方法。
3)熟悉中断的编程方法。
实验设备:
1)装有µ ’nSP™ IDE仿真环境的PC机一台。 2)µ ’nSP™ 十六位单片机实验箱一个。
实验原理: IRQ4 中断对应4096Hz、2048Hz、1024Hz 中断源,通过写P_INT_Ctrl来设置中断允许,CPU响应后进入中断, 我们编写一个用中断方式控制发光二极管亮灭程序, 中断程序里读取P_INT_Ctrl单元,判断是哪个中断源,转到相应中断程序控制对应发光二极管亮或灭.从而了解IRQ4 中断的组成及编程。
实验步骤:
1)根据实验内容自行设计,连接硬件电路并检查。
2)画流程图并编写程序代码。
3)编译程序,软件调试。
4) 观察LED、各个寄存器状态等。
要求: 能用LED的状态验证中断正确工作。
(综合要求:可用按键控制各个中断原是否产生中断。)-The experiment:
1) Learn IRQ4 interrupt vector and interrupt sources.
2) master interrupt control unit P_INT_Ctrl, P_INT_Clear setting method.
3) Familiar interrupt programming methods.
Laboratory equipment:
1) with μ nSP ™ IDE emulation environment for PC machine. 2) μ nSP ™ 16 single-chip experiment box one.
Experimental principle: IRQ4 interrupt corresponding 4096Hz, 2048Hz, 1024Hz interrupt source by writing P_INT_Ctrl to set the interrupt enable, CPU respond after entering the interrupt, we write an interrupt control with LED lights off procedures, the interrupt routine reads P_INT_Ctrl unit to determine which interrupt source, go to the corresponding interrupt program controls the corresponding LEDs on or off. IRQ4 interrupt to understand the composition and programming.
Experimental procedure:
1) According to the experimental design their own content, connecting hardware circuit and check.
2) draw flowcharts and write program code.
3) compiler, software deb
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shiyan8_IRQ4\Device.env
............\hardware.h
............\hardware.inc
............\main.asm
............\Makefile
............\shiyan8_IRQ4.h
............\shiyan8_IRQ4.lik
............\shiyan8_IRQ4.opt
............\shiyan8_IRQ4.rc
............\shiyan8_IRQ4.set
............\shiyan8_IRQ4.spj
............\SPCE061A.h
............\SPCE061A.inc
............\Resource.asm
............\Resource.inc
............\shiyan8_IRQ4.env
............\Debug\irq4.lst
............\.....\main.lst
............\.....\main.obj
............\.....\Resource.lst
............\.....\Resource.obj
............\.....\shiyan8_IRQ4.ary
............\.....\shiyan8_IRQ4.sbm
............\.....\shiyan8_IRQ4.sym
............\.....\shiyan8_IRQ4.S37
............\.....\shiyan8_IRQ4.smy
............\.....\shiyan8_IRQ4.map
............\Debug
shiyan8_IRQ4