8051 is a 40 Pin microcontroller, consisting 4 ports, each port consists 8 pin, i.e. a total of 4X8=32 pins. These pins are used to input/output operation, some Pins have dual functions like timer, interrupts etc. Among these 32 pins, two pins are for power supply and ground (pin 40 and 20), two pins to connect crystal oscillator (pin 18, 19), 3 pins to connect external memory (pin 29, 30, 31) and one pin for Reset function (Pin 9). It has two types of memory RAM and Flash memory (EEPROM), they have different sizes depending on the microcontroller you choose.
8051是一个40引脚微控制器,由4个端口组成,每个端口由8个引脚组成,即总共4X8 = 32个引脚。这些引脚用于输入/输出操作,一些引脚具有定时器,中断等双重功能。在这32个引脚中,两个引脚用于电源和地(引脚40和20),两个引脚用于连接晶体振荡器(引脚18) ,19),3个引脚用于连接外部存储器(引脚29,30,31)和1个引脚用于复位功能(引脚9)。它有两种类型的存储器RAM和闪存(EEPROM),它们具有不同的尺寸,具体取决于您选择的微控制器。