第部分单片机基础知识课程.pptVIP

  • 15
  • 0
  • 约2.16万字
  • 约 80页
  • 2016-12-09 发布于江苏
  • 举报
* College of Communication Engineering, Jilin University 中断嵌套 中断嵌套指CPU在执行一个中断服务程序的过程中,可以再次响应新的中断请求。 在进入中断服务程序时,CPU硬件会将全局中断使能位关闭。为了实现中断嵌套,必须在ISR开始重新允许全局中断(在有多优先级的情况下,选择允许到哪一个级别的中断)。 中断嵌套的层数 中断嵌套对堆栈的消耗很大 * College of Communication Engineering, Jilin University Normal Process External event ISR 中断嵌套时的堆栈 ISR STACK External event * College of Communication Engineering, Jilin University 中断的潜在危险 Global variables ….. While (A != 0) { temp = array[A]; A--; putchar(temp); } ….. ISR: …. A++; Array[ ]是个字符串,例如”hello!” A是一个全局变量 XIRQ的问题 * College of Communication Engineering, Jilin Uni

文档评论(0)

1亿VIP精品文档

相关文档