【正文】
t 1 output buffers can sink/source four TTL 1s are written to Port 1 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 1 pins that are externally being pulled low will source current (IIL) because of the internal 1 also receives the loworder address bytes during Flash programming and verification. Port 2 Port 2 is an 8bit bidirectional I/O port with internal Port 2 output buffers can sink/source four TTL 1s are written to Port 2 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 2 pins that are externally being pulled low will source current, because of the internal 2 emits the highorder address byte during fetches from external program memory and during accesses to external data memory that use 16bit addresses. In this application, it uses strong internal pullupswhen emitting 1s. During accesses to external data memory that use 8bit addresses, Port 2 emits the contents of the P2 Special Function 2 also receives the highorder address bits and some control signals during Flash programming and verification. 電氣工程與自動(dòng)化專業(yè)畢業(yè)設(shè)計(jì)片內(nèi)含有 8 位中央處理器和閃爍存儲(chǔ)單元,有較強(qiáng)的功能的 AT89C51 單片機(jī)能夠被應(yīng)用到控制領(lǐng)域中。 P0 口還能夠在訪問外部數(shù)據(jù)存儲(chǔ)器或程序存儲(chǔ)器時(shí),轉(zhuǎn)換地址和數(shù)據(jù)總 16 線復(fù)用,并在這時(shí)激活內(nèi)部的上拉電阻。因?yàn)閮?nèi)部有電阻,某個(gè)引腳被外部信號(hào)拉低時(shí)會(huì)輸出一個(gè)電流。 RST 復(fù)位輸入。 PSEN 程序儲(chǔ)存允許輸出是外部程序存儲(chǔ)器的讀 選通信號(hào),當(dāng) AT89C51 由外部程序存儲(chǔ)器讀取指令時(shí),每個(gè)機(jī)器周期兩次 PSEN 有效,即輸出兩個(gè)脈沖。 XTAL2:震蕩器反相放大器的輸出端。用戶也可以采用外部時(shí)鐘。 IDL 是閑散等待方式,當(dāng)IDL=1,激活閑散工作狀態(tài),單片機(jī)進(jìn)入睡眠狀態(tài)。需要注意的是:當(dāng)由硬件復(fù)位來終止閑散工作模式時(shí),中央處理器 CPU通常是從激活空閑模式那條指令的下一條開始繼續(xù)執(zhí)行程序的,要完成內(nèi)部復(fù)位操作,硬件復(fù)位脈沖要保持兩個(gè)機(jī)器周期有效,在這種情況下,內(nèi)部禁止中央處理器 CPU 訪問片內(nèi) RAM,而允許訪問其他端口,為了 避免可能對(duì)端口產(chǎn)生的意外寫入:激活閑散模式的那條指令后面的一條指令不應(yīng)是一條對(duì)端口或外部存儲(chǔ)器的寫入指令。機(jī)密位只能通過整片擦除的方法清除。程序會(huì)首先影響中斷,進(jìn)入中斷服務(wù)程序,執(zhí)行完中斷服務(wù)程序,并緊隨 RETI 指令后,下一條要執(zhí)行的指令就是使單片機(jī)進(jìn)入閑散工作模式,那條指令后面的一條指令。這兩種方式是控制專 用寄存器 PCON 中的 PD 和 IDL 位來實(shí)現(xiàn)的。10PF,而如果使用陶瓷振蕩器建議選擇 40PF177。閃爍存儲(chǔ)器編程時(shí),該引腳加上 +12V的編程允許電壓 VPP,當(dāng)然這必須是該器件是使用 12V編程電壓 VPP。這個(gè)位置后只有一條 MOVX和 MOVC 指令 ALE 才會(huì)被應(yīng)用。 P3 口除了作為一般的 I/O 口外,更重要的用途是它的第二功能,如下表所示: 端口引腳 第二功能 RXD TXD INT0 INT1 電氣工程與自動(dòng)化專業(yè)畢業(yè)設(shè)計(jì) P2 口 P2口是一個(gè)內(nèi)部帶有上拉電阻的 8位雙向 I/O口, P2的輸 出緩沖級(jí)可驅(qū)動(dòng) 4個(gè) TTL電路。作為輸出口時(shí),每一個(gè)管腳都能夠驅(qū)動(dòng) 8 個(gè) TTL電路。外文翻譯 15 properly. 譯文: AT89C51 的介紹 描述 AT89C51 是一個(gè)低電壓,高性能 CMOS 8 位單片機(jī)帶有 4K字節(jié)的可反復(fù)擦寫的程序存儲(chǔ)器( PENROM)。外文翻譯 13 Oscillator Characteristics XTAL1 and XTAL2 are the input and output, respectively,of an inverting amplifier which can be configured for use as an onchip oscillator, as shown in Figure a quart