【正文】
uency oscillator output, so can be used as an external clock, or the use of an external timing pulse. PORG pulse input for the program: In the fifth lesson MCU39。英文原文 : 80C51 8051 singlechip microputer, referred to as microcontrollers, there are known as microcontroller, a microputer re To branch. SCM is developed in the mid 70s a largescale integrated circuit chip, a CPU, RAM, ROM, I / O interfaces and interrupt system on the same silicon device. Since the 80s, Microcontroller rapid development, all kinds of new products are constantly emerging, there have been many highperformance of new models now bee the field of factory automation and control of the pillar industries. Pin Function: MCS51 is a standard 40pin DIP IC chip, pin distribution microcontroller pin diagram please refer to: ~ P0 port 8bit bidirectional port lines (in the pin 39 to No. 32 terminal). ~ P1 port 8bit bidirectional port line (pin 1 in the No. 8 terminal). ~ P2 port 8bit bidirectional port lines (in the pin terminal 21 ~ 28). ~ P3 port 8bit bidirectional port lines (in the pin terminal 10 ~ 17). This four I / O port has not exactly the same function, we can get to learn, and other books though, but written in too deep, difficult to understand for beginners, here are according to my own expression to write the I believe that you can understand. P0 port has three functions: 1, external expansion memory, as the data bus (Figure 1 in D0 ~ D7 of data bus interface) 2, external expansion memory, as the address bus (Figure 1 in A0 ~ A7 to address bus interface) 3, is not extended, it can do a general I / O to use, but within the supreme pullup resistor, as an input or output should be connected to an external pullup resistor. P1 port Zhizuo I / O port to use: its internal pullup resistor. P2 port has two functions: 1,An extended external memory when used as an address bus 2, doing a general I / O port used, and their internal pullup resistor。 P3 port has two functi