|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/learn-microcontroller-8051-from-basics-to-advance/
课程评论:没有评论
课程名称:从基础到高级学习8051微控制器 课程概述: 本课程旨在详细介绍8051微控制器,首先讨论微处理器与微控制器之间的差异。8051微控制器由英特尔于1981年设计,是一种8位微控制器,具有40引脚DIP(双列直插封装),4KB的ROM存储和128字节的RAM存储,还有2个16位定时器。该微控制器具有四个可编程和可寻址的8位并行端口,以及集成的11.0592MHz的片上晶振。课程内容包括8051微控制器的基本结构、ALU与寄存器的构造、8051微控制器的框图、寄存器组织、引脚图、特殊寄存器的功能、寻址模式和指令集等。 课程将深入讲解汇编语言编程、内存接口以及与外部IC(如8251串行I/O、8255并行I/O、8257 DMA和8259 PIC)进行接口的技术。8255是一种通用可编程I/O设备,设计用于在特定条件下从I/O到中断I/O传输数据,包含三个8位双向I/O端口。8257是直接内存访问控制器,可以在不干扰CPU的情况下快速传输数据。8259是可编程中断控制器,将多个中断输入源汇总到单一中断输出,可以提升中断处理能力。 此外,8051微控制器还具有4个8位的I/O端口,允许与外部设备连接。输入配置使得在配置为输入时端口可以“漂浮”,而输出配置则使得端口在配置为输出时可以连接到地(0V)。8051拥有5个中断信号(INT0、TF0、INT1、TF1、RI/TI),可以通过设置中断使能寄存器(IE)中的位来启用或禁用每个中断。 通过本课程,学员将掌握8051微控制器的工作原理和编程技巧,为后续的嵌入式系统开发打下坚实基础。
8051 microcontroller was designed in 1981 by INTEL. In this course I am going discuss difference between microprocessor and microcontroller. 8051 microcontroller is designed by Intel in 1981. It is an 8-bit microcontroller. It is built with 40 pins DIP (dual inline package), 4kb of ROM storage and 128 bytes of RAM storage, 2 16-bit timers. It consists of are four parallel 8-bit ports, which are programmable as well as addressable as per the requirement. An on-chip crystal oscillator is integrated in the microcontroller having crystal frequency of 11.0592MHz.Basic structure of ALU and registers. Block diagram of 8051 microcontroller. register organization of 8051 microcontroller, pin diagram of 8051 microcontroller. Function of special registers, Addressing modes and Instruction set of 8051 microcontroller. Assembly language Programming, Memory interfacing, Interfacing with peripheral ICs 8251- serial I/O, 8255-parallel I/O ( The 8255A is a general purpose programmable I/O device designed to transfer the data from I/O to interrupt I/O under certain conditions as required. It can be used with almost any microprocessor.It consists of three 8-bit bidirectional I/O ports (24I/O lines) which can be configured as per the requirement.) , 8257-DMA( DMA stands for Direct Memory Access. It is designed by Intel to transfer data at the fastest rate. It allows the device to transfer the data directly to/from memory without any interference of the CPU.Using a DMA controller, the device requests the CPU to hold its data, address and control bus, so the device is free to transfer data directly to/from the memory. The DMA data transfer is initiated only after receiving HLDA signal from the CPU.) , 8259 PIC( The 8259 is known as the Programmable Interrupt Controller (PIC) microprocessor. This chip combines the multi-interrupt input source to single interrupt output. This provides 8-interrupts from IR0 to IR7.The 8259A was the interrupt controller for the ISA bus in the original IBM PC and IBM PC AT. By connecting 8259 with the CPU, we can increase the interrupt handling capability. ), 8251 USART, serial communication and types of serial communication. 8051 microcontrollers have 4 I/O ports each of 8-bit, which can be configured as input or output. Hence, total 32 input/output pins allow the microcontroller to be connected with the peripheral devices. Input ConfigurationIf any pin of this port is configured as an input, then it acts as if it "floats", i.e. the input has unlimited input resistance and in-determined potential.Output ConfigurationWhen the pin is configured as an output, then it acts as an "open drain". By applying logic 0 to a port bit, the appropriate pin will be connected to ground (0V), and applying logic 1, the external output will keep on "floating". 8051 has 5 interrupt signals, i.e. INT0, TFO, INT1, TF1, RI/TI. Each interrupt can be enabled or disabled by setting bits of the IE register and the whole interrupt system can be disabled by clearing the EA bit of the same register.