8051 管脚定义
8051微控制器的引脚说明 (Pin Description of 8051 Microcontroller)
Pins from 1-8
1-8针
Port 1: The pins in this port are bi-directional and can be used for input and output. The pins are individually controlled; some are used for input while others are used for output purposes.
端口1:此端口中的引脚是双向的,可用于输入和输出。 引脚是独立控制的; 有些用于输入,而另一些用于输出。
Pin 9
销9
This pin is also called ‘Reset Pin’. This is used for resetting the microcontroller to its initial values. If the pin is set at logic 0, the chip runs normally. When the oscillator is running, setting the pin at logic 1 for more than two machine cycles will reset the microcontroller.
该引脚也称为“复位引脚”。 这用于将微控制器重置为其初始值。 如果该引脚设置为逻辑0,则芯片正常运行。 当振荡器运行时,将引脚设置为逻辑1超过两个机器周期将使微控制器复位。
Pins from 10-17
10至17针
PORT 3: These pins are same as pins in port 1 because of their bidirectional input port.
端口3:由于它们的双向输入端口,这些引脚与端口1中的引脚相同。
Pin 10 and Pin 11 perform receiving and transmitting operation of serial data using ‘RS-232’ protocol.
引脚10和引脚11使用'RS-232'协议执行串行数据的接收和发送操作。
Pin 12 and Pin 13 are used to interrupt inputs.
引脚12和引脚13用于中断输入。
Pin 14 and Pin 15 perform alternative functions linked with Timer 0 and Timer 1.
引脚14和引脚15执行与定时器0和定时器1链接的替代功能。
Pin 16 and Pin 17 are used when working with external memory.
当使用外部存储器时,使用引脚16和引脚17。
Pins from 18-19
18-19岁的别针
The pins are used for connecting an external crystal oscillator module with the microcontroller.
这些引脚用于将外部晶体振荡器模块与微控制器连接。
Pin 20
销20
Also called Vss. This is the ground pin that represents 0V.
也称为Vss。 这是代表0V的接地引脚。
Pins from 21-28
21-28岁的别针
PORT 2: These are another set of bidirectional input port, they are used when processing external memory. Higher order address bus signals are multiplexed with this quasi-bidirectional port.
端口2:这是另一组双向输入端口,在处理外部存储器时使用。 高阶地址总线信号与该准双向端口复用。
Pin 29
销29
Also called PSEN (Program Store Enable) it controls and manages the access to external CODE memory.
也称为PSEN(启用程序存储),它控制和管理对外部CODE存储器的访问。
Pin 30
销30
Named as Address Latch Enable (ALE). It is used when working with external memory. ALE activity is disabled in some devices where external memory is not used. Thus helping in reducing the electromagnetic interference generated by the product.
命名为地址锁存启用(ALE)。 在使用外部存储器时使用。 在某些不使用外部存储器的设备中,ALE活动被禁用。 从而有助于减少产品产生的电磁干扰。
Pin 31
销31
Named as External Access (EA). In order to execute code from internal memory this pin is connected to Vcc. To execute code from external memory the pin must be grounded.
命名为外部访问(EA)。 为了从内部存储器执行代码,该引脚连接到Vcc。 要从外部存储器执行代码,该引脚必须接地。
Pins from 32-39
32-39针
Port 0: These are set of another bidirectional input port. Unlike Port 1, Port2 and Port 3 this port lacks pull-up resistors.
端口0:这些是另一个双向输入端口的设置。 与端口1,端口2和端口3不同,该端口没有上拉电阻。
Pin 40
销40
Named as Vcc. This is usually a 5V pin on 5V devices and 3V pin on 3V devices.
命名为Vcc。 这通常是5V设备上的5V引脚和3V设备上的3V引脚。
I/O Pins
I / O引脚
The 8051 microcontrollers are mostly 8-bit ports, thus giving a total of 32 pins which you can use to read input and control output. All of them are bidirectional in nature so they can perform as both input and output. Some of the ports perform alternate functions as discussed above such as to support access to external memory. This is done to reduce the size of the microcontroller device. When these ports are busy in performing their alternate functions, they can not be made to act as input-output ports.
8051微控制器主要是8位端口,因此共有32个引脚,可用于读取输入和控制输出。 所有这些本质上都是双向的,因此它们既可以用作输入也可以用作输出。 一些端口执行上述备用功能,例如支持对外部存储器的访问。 这样做是为了减小微控制器设备的尺寸。 当这些端口忙于执行其替代功能时,不能使它们充当输入输出端口。
翻译自: https://www.includehelp.com/embedded-system/pin-description-of-8051-microcontroller.aspx
8051 管脚定义