2016湖南工大单片机教材第章思考题与答案.pptVIP

  • 92
  • 0
  • 约3.7千字
  • 约 12页
  • 2016-12-25 发布于北京
  • 举报

2016湖南工大单片机教材第章思考题与答案.ppt

* * 第5章 思考题与答案 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 若规定外部中断0为电平触发方式,高优先级,试写出有关的初始化程序。 解: SETB EA ;开中断 SETB EX0 ;允许外中断0中断 SETB PX0 ;外中断0定为高优先级 CLR IT0 ;电平触发 例 5.1 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 若规定外部中断1为边沿触发方式,低优先级,在中断服务程序中将寄存器B的内容左环移一位,B的初值设为01H。 试编写主程序与中断服务程序。 例 5.2 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011

文档评论(0)

1亿VIP精品文档

相关文档