文件名称:INT
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-08-02
- 文件大小:
- 100kb
- 下载次数:
- 0次
- 提 供 者:
- 宋**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
8. 中断程序设计与电路仿真
LPC2138微控制器的中断管理是由向量中断控制器VIC操作的,向量中断控制器具有32个中断请求输入(32个中断通道,但LPC2138只使用了19个通道号0~18)可将它们设置为FIQ、向量IRQ和非向量IRQ,通过编程不同外设的向量IRQ的中断优先级,可以实现动态分配调整。
定义蜂鸣器的输出端口,运用寄存器PINSEL0、PINSEL1设置EINT3唤醒芯片,清除EINT3中断标志。运用while、if-else循环语句设置定时器、蜂鸣器。将定时器、RTC、串口功能关闭,在掉电模式下运用IO0SET、IO0CLR寄存器控制蜂鸣器的蜂鸣。
-8 interrupt program design and circuit simulation LPC2138 microcontroller interrupt managed by the Vectored Interrupt Controller VIC operations, vectored interrupt controller has 32 interrupt request inputs (32 interrupt channels, but uses only 19 LPC2138 channel number 0 to 18) they can be set to FIQ, vectored IRQ and non-vectored IRQ, by programming the various peripherals vectored IRQ interrupt priority level can be adjusted dynamically allocated. Definition buzzer output port, the use of registers PINSEL0, PINSEL1 EINT3 wake up the chip set, clear EINT3 interrupt flag. Use while, if-else loop to set the timer, buzzer. The timer, RTC, serial feature off in power-down mode, use IO0SET, IO0CLR register controls the buzzer beeps.
LPC2138微控制器的中断管理是由向量中断控制器VIC操作的,向量中断控制器具有32个中断请求输入(32个中断通道,但LPC2138只使用了19个通道号0~18)可将它们设置为FIQ、向量IRQ和非向量IRQ,通过编程不同外设的向量IRQ的中断优先级,可以实现动态分配调整。
定义蜂鸣器的输出端口,运用寄存器PINSEL0、PINSEL1设置EINT3唤醒芯片,清除EINT3中断标志。运用while、if-else循环语句设置定时器、蜂鸣器。将定时器、RTC、串口功能关闭,在掉电模式下运用IO0SET、IO0CLR寄存器控制蜂鸣器的蜂鸣。
-8 interrupt program design and circuit simulation LPC2138 microcontroller interrupt managed by the Vectored Interrupt Controller VIC operations, vectored interrupt controller has 32 interrupt request inputs (32 interrupt channels, but uses only 19 LPC2138 channel number 0 to 18) they can be set to FIQ, vectored IRQ and non-vectored IRQ, by programming the various peripherals vectored IRQ interrupt priority level can be adjusted dynamically allocated. Definition buzzer output port, the use of registers PINSEL0, PINSEL1 EINT3 wake up the chip set, clear EINT3 interrupt flag. Use while, if-else loop to set the timer, buzzer. The timer, RTC, serial feature off in power-down mode, use IO0SET, IO0CLR register controls the buzzer beeps.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
INT\CONFIG.H
...\HEAP.S
...\INT.axf
...\INT.DSN
...\INT.hex
...\INT.htm
...\INT.lnp
...\INT.map
...\INT.Opt
...\INT.plg
...\INT.PWI
...\INT.sct
...\INT.tra
...\INT.Uv2
...\INT_Opt.Bak
...\INT_Target 1.dep
...\INT_Uv2.Bak
...\IRQ.S
...\Last Loaded INT.DBK
...\LPC2138.H
...\main.C
...\main.crf
...\main.d
...\main.i
...\main.o
...\main.txt
...\STACK.S
...\Startup.lst
...\Startup.o
...\Startup.s
...\TARGET.C
...\TARGET.H
INT