AT89S51 has low power consumption, 8-bit CMOS microcontroller with 4K bytes of Flash memory ISP (In System Programmable \/ can be programmed in the system).<\/span> In the images shown physical shape and configuration of a microcontroller pin AT89Sxx series.<\/span><\/p>\n Figure 13 Microcontroller<\/span><\/p>\n DESCRIPTION PIN:<\/strong><\/span>
<\/a>
<\/a><\/p>\n
\n Supply Voltage VCC<\/strong> on pin 40<\/span>
\n GND<\/strong> Ground on pin 20<\/span>
\n Port0 on pin 32 to the pin 39.<\/strong> Port 0, a port I \/ O 8-bit open drain bidirectional.<\/span> As a port, each pin can control 8 TTL inputs.<\/span> When logic “1” is written to port 0, then port can be used as input with high impedance.<\/span> Port 0 can also be configured for multiplexing the address \/ data bus for accessing program memory or external data.<\/span> In this mode P0 must have pull-ups.<\/span>
\n Port1pada pin 1 to pin 8.<\/strong> Port 1 is an I \/ 0 8-bit bidirectional with internal pull-up.<\/span> Buffer output port 1 can control four TTL inputs.<\/span> When logic “1” is written to the port 1, then this port will get the internal pull-up and can be used as input.<\/span> Port 1 also receives the low byte address during Flash programming and verification.<\/span>
\n Port Pin<\/strong> Alternate Function as ISP pin, pin 6 to pin 8<\/span>
\n P1.5 MOSI<\/strong> (used for In System Programming)<\/span>
\n P1.6 MISO<\/strong> (used for In System Programming)<\/span>
\n P1.7 SCK<\/strong> (used for In System Programming)<\/span>
\n Port2 pin 21 to the pin 28.<\/strong> Port 2 is a port I \/ O 8-bit bidirectional with internal pull-up.<\/span> Buffer output port 2 can control four TTL inputs.<\/span> When logic “1” is written to port 2, then this port will get the internal pull-up and can be used as input.<\/span>
\n Port3 pin 10 to the pin 17<\/strong> .Port 3 is a port I \/ O 8-bit bidirectional with internal pull-up.<\/span> Buffer output port 3 can control four TTL inputs.<\/span> When logic “1” is written to the port 3, then this port will get the internal pull-up and can be used as input.<\/span> Port 3 also serve various special features, as shown in the following table:<\/span><\/p>\n