【正文】
為了執(zhí)行內部程序指令 , EA應該接 VCC。如果需要 , 通過將地址為 8EH的 SFR的第 0位置 “1”, ALE操作將無效。晶振工作時 , RST腳持續(xù) 2個機器周期高電平將使單片機復位。在這種應用中 , P2 口使用很強的內部上拉發(fā)送 1。 P1 口: P1口是一個具有內部上拉電阻的 8 位雙向 I/O 口 , p1 輸出緩沖器能驅動4個 TTL 邏輯電平。掉電保護方式下, RAM 內容被保存,振蕩器被凍結,單片機一切工作停止,直到下一個中斷或硬件復位為止 。附錄 B:外文文獻及譯文 STC89C52 Date Sheet Description The STC89C52 is a lowpower, highperformance CMOS 8bit microcontroller with 8K bytes of insystem programmable Flash memory. The device is manufactured using Atmel’s highdensity nonvolatile memory technology and is patible with the industrystandard 80C51 instruction set and pinout. The onchip Flash allows the program memory to be reprogrammed insystem or by a conventional nonvolatile memory programmer. By bining a versatile 8bit CPU with insystem programmable Flash on a monolithic chip, the Atmel STC89C52 is a powerful microcontroller which provides a highlyflexible and costeffective solution to many embedded control applications. The STC89C52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16bit timer/counters, a sixvector twolevel interrupt architecture, a full duplex serial port, onchip oscillator, and clock circuitry. In addition, the STC89C52 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 Powerdown mode saves the RAM contents but freezes the oscillator, disabli