The I nt r oduc t ion of AT89 C 51Des c r i pti o nThe AT89C51 is a low—power, high-performance CMOS 8—bit microputer with 4K bytes of Flash programmable and erasable read only memory (PEROM)、 The device is manufactured using Atmel’s high-density nonvolatile memory technology and is patible with the industry-standard MCS—51 instruction set、 The on—chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer、 By bining a versatile 8—bit CPU with Flash on a monolithic chip, the Atmel AT89C51 is a powerful microputer which provides a highly—flexible and cost-effective solution to many embedded control applications、Fu nc tion ch a ra c ter i s t icThe AT89C51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16—bit timer/counters, one 5 vector two—level interrupt architecture, a full duplex serial port, one—chip oscillator and clock circuitry、 In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes、 The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning、 The Power—down Mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset、Pin D e s cri ptio nVCC:Supply voltage、GND:Ground、P o rt 0Port 0 is an 8-bit open-drain bi—directio...