【正文】
口: P0 口是一組 8 位漏極開路型雙向 I/ O 口,也即地址/數(shù)據(jù)總線復(fù)用口。 AT89C51是美國 ATMEL公司生產(chǎn)的低電壓,高性能 CMOS的 8位單片機(jī),片內(nèi)含 4k bytes的可反復(fù)擦寫的只讀程序存儲器( PEROM)和 128 bytes的隨機(jī)存取數(shù)據(jù)存儲器( RAM),器件采用 ATMEL公司的高密度、非易失性存儲技術(shù)生產(chǎn),兼容標(biāo)準(zhǔn) MCS51指令系統(tǒng),片內(nèi)置通用 8位中央處理器( CPU)和 Flash存儲單元,功能強(qiáng)大 AT89C51單片機(jī)可為您提供許多高性價比的應(yīng)用場合,可靈活應(yīng)用于各種控制領(lǐng)域。華北科技學(xué)院畢業(yè)論文(設(shè)計(jì)) 第 1頁 共 13AT89C51 Features ? Compatible with MCS51? Products ? 4K Bytes of InSystem Reprogrammable Flash Memory ? Endurance: 1,000 Write/Erase Cycles ? Fully Static Operation: 0 Hz to 24 MHz ? Threelevel Program Memory Lock ? 128 x 8bit Internal RAM ? 32 Programmable I/O Lines ? Two 16bit Timer/Counters ? Six Interrupt Sources ? Programmable Serial Channel ? Lowpower Idle and Powerdown Modes Description The AT89C51 is a lowpower, highperformance CMOS 8bit microputer with 4Kbytes of Flash programmable and erasable read only memory (PEROM). The deviceis manufactured using Atmel’s highdensity nonvolatile memory technology and ispatible with the industrystandard MCS51 instruction set and pinout. The onchipFlash allows the program memory to be reprogrammed insystem or by a conventionalnonvolatile memory programmer. By bining a versatile 8bit CPU with Flashon a monolithic chip, the Atmel AT89C51 is a powerful microputer which providesa highlyflexible and costeffective solution to many embedded control AT89C51 provides the following standard features: 4Kbytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16bittimer/counters, a five vector twolevel interrupt architecture,a full duplex serial port, onchip oscillator and clock addition, the AT89C51 is designed with static logicfor operation down to zero frequency and supports twosoftware selectable power saving modes. The Idle Modestops the CPU while allowing the RAM, timer/counters,serial port and interrupt system to continue functioning. ThePowerdown Mode saves the RAM contents but freezesthe oscillator disabling all other chip functions until the nexthardware reset. 八路智能搶答器的設(shè)計(jì) 第 2頁 共 13頁 Pin Configurations Pin Description VCC: Supply voltage. GND: Ground. Port 0: Port 0 is an 8bit opendrain bidirectional I/O port. As anoutput port, each pin can sink eight TTL inputs. When 1sare written to port 0 pins, the pins can be used as highimpedanceinputs. Port 0 may also be configured to be the multiplexed loworderaddress/data bus during accesses to external programand data memory. In this mode P0 has internalpullups. Port 0 also receives the code bytes during Flash programming,and outputs the code bytes during programverification. External pullups are required during program verification. Port 1: Port 1 is an 8bit bidirectional I/O port with internal Port 1 output buffers can sink/source four TTL 1s are written to Port 1 pins they are pulled high bythe internal pullups and can be used as