文件名称:MSP430单片机C语言编程中的退出睡眠问题
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [PDF]
- 上传时间:
- 2012-11-26
- 文件大小:
- 39kb
- 下载次数:
- 0次
- 提 供 者:
- l*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
MSP430在进入睡眠后,如果发生事件产生中断,那么单
片机会退出睡眠,自动执行中断程序,但是当中断返回时,主
程序又重新进入睡眠状态。如果要在发生中断后,主程序需
要退出睡眠,那么需要在中断程序中修改SP堆栈中的内容,
C语言没有指令可以修改堆栈内的内容,可以采用C语言与
汇编语言混合编程的方法解决此问题。-MSP430 into sleep, and if events have disrupted, SCM will withdraw from sleep, interrupted proceedings automatically, but when interrupted return, the main program to re-enter the state of sleep. If in the event of disruption, from the main program needs sleep, then the need to interrupt proceedings to amend the SP stack, C language instruction can not change the contents of stack can be used C and Assembly Language Programming hybrid method to solve this problem.
片机会退出睡眠,自动执行中断程序,但是当中断返回时,主
程序又重新进入睡眠状态。如果要在发生中断后,主程序需
要退出睡眠,那么需要在中断程序中修改SP堆栈中的内容,
C语言没有指令可以修改堆栈内的内容,可以采用C语言与
汇编语言混合编程的方法解决此问题。-MSP430 into sleep, and if events have disrupted, SCM will withdraw from sleep, interrupted proceedings automatically, but when interrupted return, the main program to re-enter the state of sleep. If in the event of disruption, from the main program needs sleep, then the need to interrupt proceedings to amend the SP stack, C language instruction can not change the contents of stack can be used C and Assembly Language Programming hybrid method to solve this problem.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MSP430单片机C语言编程中的退出睡眠问题.pdf