资 源 简 介
AVR单片机入门及C语言高效设计实践(五)
ATMEAG16L的中断系统什么是“中断”?顾名思义中断就是中断某一工作过程去处理一些与本工作过程无关或间接相关或临时发生的事件,处理完后,则继续原工作过程。比如:你在看书,电话响了,你在书上做个记号后去接电话,接完后在原记号处继续往下看书。如有多个中断发生,依优先法则,中断还具有嵌套特性。又比如:看书时,电话响了,你在书上做个记号后去接电话,你拿起电话和对方通话,这时门铃响了,你让打电话的对方稍等一下,你去开门,并在门旁与来访者交谈,谈话结束,关好门,回到电话机旁,拿起电话,继续通话,通话完毕,挂上电话,从作记号的地方继续往下看书。由于一个人不可能同时完成多项任务,因此只好采用中断方法,一件一件地做。[第一段]
-AVR C language portal and efficient design practice (5) ATMEAG16L the system even interrupted Mody is "suspended"? As the name suggests is interrupted interruption of a process to deal with some of the work process unrelated or indirectly related to the temporary or , after treatment, to the original process. For example : in your reading, the phone rang, you have the book to be a mark after picking up the telephone, then after the original mark to continue down the reading. For more interruption, priority rules and the suspension characteristics also have nested. For instance : reading, the phone rang, you have the book to be a mark after pick