- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 28kb
- Update:
- 2013-09-22
- Downloads:
- 0 Times
- Uploaded by:
- niu
Description: 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
To Search:
File list (Check if you may need any files):
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