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 è un microcontrollore a 40 pin, composto da 4 porte, ciascuna porta è composta da 8 pin, cioè un totale di 4X8 = 32 pin. Questi pin sono utilizzati per l'operazione di input / output, alcuni pin hanno funzioni doppie come timer, interrupt ecc. Tra questi 32 pin, due pin sono per alimentazione e massa (pin 40 e 20), due pin per collegare l'oscillatore a cristallo (pin 18 , 19), 3 pin per collegare la memoria esterna (pin 29, 30, 31) e un pin per la funzione di ripristino (Pin 9). Ha due tipi di memoria RAM e memoria Flash (EEPROM), hanno dimensioni diverse a seconda del microcontrollore scelto.