单片机应用技术(Microcontroller Applicati...

陈宇燕 吴慧芳 张晓培 朱名强 黄宗晓 覃峰 李永顺 宋艳 卢丛媚 黎小萍

目录

  • 1 项目一 入门篇---初识单片机   Project 1  Intro — First Look at Microcontrollers
    • 1.1 安全教育及认识单片机 Safety Education and Understanding of Microcomputers
      • 1.1.1 用电安全 Electrical Safety
      • 1.1.2 认识单片机 Understanding of  Microcomputers
    • 1.2 51系列单片机系统及管脚 51 Series Microcontroller System and Pins
    • 1.3 单片机编辑开发工具 Microcontroller Programming and Development Tools
      • 1.3.1 proteus仿真软件 Proteus Simulation Software
      • 1.3.2 keil c51单片机开发环境  Keil C51 Microcontroller Development Environment
    • 1.4 51系列单片机程序存储器 51 Series Microcontroller Program Memory
    • 1.5 51系列单片机数据存储器 51 Series Microcontroller Data Memory
  • 2 项目二  基础篇---LED 智能指示系统设计  Project 2   Basics — Intelligent LED Indication Design
    • 2.1 任务2.1 闪烁灯/Flashing Light
      • 2.1.1 闪烁灯--硬件电路设计/Hardware Circuit Design
      • 2.1.2 闪烁灯—C51程序设计/C Language Programming
    • 2.2 任务2.2 跑马灯/Running Light
      • 2.2.1 跑马灯—硬件电路/ Running Light - Hardware Circuit
      • 2.2.2 跑马灯—C51程序设计/   Running Light - C51 Program Design
    • 2.3 任务2.3 声光报警器/Sound and light alarm
    • 2.4 任务2.4 步进电机控制/Stepper Motor Control
      • 2.4.1 步进电机控制-硬件电路/hardware circuit
      • 2.4.2 步进电机控制-程序设计/software design
  • 3 项目三 提升篇---智能交互与显示控制   Project 3    Enhancement — Smart Interaction & Display Control
    • 3.1 任务3.1 数码管循环显示0-9     / 7-Segment Display Cycling Through 0-9
    • 3.2 任务3.2 多位数码管显示/Multi-Digit Seven-Segment Display
    • 3.3 任务3.3 按键控制LED灯/ Button-Controlled LED
      • 3.3.1 按键控制LED灯—电路设计/ Button controlled LED lights - circuit design
      • 3.3.2 按键控制LED灯—程序设计 /Button Control LED Light - Program Design
    • 3.4 任务3.4 键盘控制LED数码管/ Keyboard-Controlled LED Seven-Segment Display
      • 3.4.1 键控LED数码管—C51设计/Keyboard-Controlled LED Lights — Program Design
  • 4 项目四 进阶篇---计数定时系统开发   Project 4   Advanced — Counting & Timing Systems
    • 4.1 任务4.1 外部中断闪烁灯/External Interrupt Controlled Blinking LED
      • 4.1.1 外部中断设置/External Interrupt Setting
      • 4.1.2 外部中断控制闪烁灯/External Interrupt Controlled Flashing Light
    • 4.2 任务4.2 工件计数 / Workpiece Counting
    • 4.3 任务4.3  8路抢答器设计/8-Channel Responder Design
    • 4.4 任务4.4 定时器中断闪烁灯/Timer Interrupt Blinking LED
      • 4.4.1 定时器/计数器知识 Knowledge of Timers/Counters
      • 4.4.2 定时器/计数器设置Timer/Counter Settings
      • 4.4.3 定时器闪烁灯程序设计/Program Design of Timer-Controlled Flashing Light
    • 4.5 任务4.5  秒表/Stopwatch
      • 4.5.1 秒表-程序设计/Stopwatch — Program Design
  • 5 项目五  综合篇 —— 智能监测控制实践  Project 5   Comprehensive — Intelligent Monitoring Practice
    • 5.1 任务5.1 模数转换LED显示/ Analog to digital conversion LED display
    • 5.2 任务5.2 数字电压表设计 /Digital Voltmeter Design
    • 5.3 任务5.3 水塔水位远程监控系统 /Remote monitoring system for water level of water tower
    • 5.4 任务5.4 温度测控系统 /Temperature Measurement and Control System
任务4.1 外部中断闪烁灯/External Interrupt Controlled Blinking LED

   本次任务学习单片机的一个重要的功能——中断控制。

   中断系统在计算机中起着十分重要的作用,是现代计算机系统中广泛采用的一种实时控制技术,能对突发事件进行及时处理,从而大大提高系统的实时性能。

       This task aims to learn an important function of microcontrollers - interrupt control.

        Interruption system plays a very important role in computers and is a widely used real-time control technology in modern computer systems. It can handle emergencies in a timely manner, greatly improving the real-time performance of the system.

 

 一、什么是中断呢?/What is interruption?


二、中断处理过程 /Interrupt handling process


三、51单片机的中断源

Interrupt source of 51 microcontroller


          把能够向CPU发出中断请求的来源成为中断源。它是引起CPU中断的原因。

    Make the source that can issue interrupt requests to the CPU an interrupt source. It is the cause of CPU interruption.