文件名称:shiyan8_IRQ4
介绍说明--下载内容来自于网络,使用问题请自行百度
开发环境: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
shiyan8_IRQ4/hardware.h
shiyan8_IRQ4/hardware.inc
shiyan8_IRQ4/main.asm
shiyan8_IRQ4/Makefile
shiyan8_IRQ4/shiyan8_IRQ4.h
shiyan8_IRQ4/shiyan8_IRQ4.lik
shiyan8_IRQ4/shiyan8_IRQ4.opt
shiyan8_IRQ4/shiyan8_IRQ4.rc
shiyan8_IRQ4/shiyan8_IRQ4.set
shiyan8_IRQ4/shiyan8_IRQ4.spj
shiyan8_IRQ4/SPCE061A.h
shiyan8_IRQ4/SPCE061A.inc
shiyan8_IRQ4/Resource.asm
shiyan8_IRQ4/Resource.inc
shiyan8_IRQ4/shiyan8_IRQ4.env
shiyan8_IRQ4/Debug/irq4.lst
shiyan8_IRQ4/Debug/main.lst
shiyan8_IRQ4/Debug/main.obj
shiyan8_IRQ4/Debug/Resource.lst
shiyan8_IRQ4/Debug/Resource.obj
shiyan8_IRQ4/Debug/shiyan8_IRQ4.ary
shiyan8_IRQ4/Debug/shiyan8_IRQ4.sbm
shiyan8_IRQ4/Debug/shiyan8_IRQ4.sym
shiyan8_IRQ4/Debug/shiyan8_IRQ4.S37
shiyan8_IRQ4/Debug/shiyan8_IRQ4.smy
shiyan8_IRQ4/Debug/shiyan8_IRQ4.map
shiyan8_IRQ4/Debug
shiyan8_IRQ4
shiyan8_IRQ4/hardware.h
shiyan8_IRQ4/hardware.inc
shiyan8_IRQ4/main.asm
shiyan8_IRQ4/Makefile
shiyan8_IRQ4/shiyan8_IRQ4.h
shiyan8_IRQ4/shiyan8_IRQ4.lik
shiyan8_IRQ4/shiyan8_IRQ4.opt
shiyan8_IRQ4/shiyan8_IRQ4.rc
shiyan8_IRQ4/shiyan8_IRQ4.set
shiyan8_IRQ4/shiyan8_IRQ4.spj
shiyan8_IRQ4/SPCE061A.h
shiyan8_IRQ4/SPCE061A.inc
shiyan8_IRQ4/Resource.asm
shiyan8_IRQ4/Resource.inc
shiyan8_IRQ4/shiyan8_IRQ4.env
shiyan8_IRQ4/Debug/irq4.lst
shiyan8_IRQ4/Debug/main.lst
shiyan8_IRQ4/Debug/main.obj
shiyan8_IRQ4/Debug/Resource.lst
shiyan8_IRQ4/Debug/Resource.obj
shiyan8_IRQ4/Debug/shiyan8_IRQ4.ary
shiyan8_IRQ4/Debug/shiyan8_IRQ4.sbm
shiyan8_IRQ4/Debug/shiyan8_IRQ4.sym
shiyan8_IRQ4/Debug/shiyan8_IRQ4.S37
shiyan8_IRQ4/Debug/shiyan8_IRQ4.smy
shiyan8_IRQ4/Debug/shiyan8_IRQ4.map
shiyan8_IRQ4/Debug
shiyan8_IRQ4
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.