【正文】
專用寄存器單元,它們是統(tǒng)一編址的,專用寄存器只能用于存放控制指令數(shù)據(jù),用戶只能訪問,而不能用于存放用戶數(shù)據(jù),所以,用戶能使用的RAM只有128個,可存放讀寫的數(shù)據(jù),運(yùn)算的中間結(jié)果或用戶定義的字型表。單片機(jī)有兩種基本結(jié)構(gòu):一種是在通用微型計算機(jī)中廣泛采用的,程序存儲器和數(shù)據(jù)存儲器共用一個存儲器空間的結(jié)構(gòu),稱為“馮諾依曼”(Von Neumann)結(jié)構(gòu)。程序存儲器(ROM)AT89C51共有4KB掩膜ROM,最大可擴(kuò)展64K字節(jié),用于存放用戶程序,原始數(shù)據(jù)或表格。(4)EA/Vpp:片外ROM允許訪問端/編程電源端。圖31為硬件電路設(shè)計框圖。此電路用于定時時發(fā)出提示音。j++)。yx。n6。 、 if(P3_4==0) { while(P3_4==0)show(1)。a。 if(m==1){m=9。 EA=1。參考文獻(xiàn)[1] [M].北京:清華大學(xué)出版社,1996.[2] [M].北京:機(jī)械工業(yè)出版社,2004.[3] [M].北京:兵器工業(yè)出版社,2001.[4] [M].北京:北京航空航天大學(xué)出版社,1991.[5] [M].修訂本,北京:北京航空航天大學(xué)出版社,2001.[6] [M],:北京航空航天大學(xué)出版社,1999.[7] [M].北京:清華大學(xué)出版社,2004.[8] [M].北京:電子工業(yè)出版社,2001.[9] AT89S52芯片資料(譯文),Atmel公司.[10] 實驗板資料,.。 while(1)time()。} if(n==1){n=5。 } if(P3_2==0) { while(P3_2==0)show(1)。 if(m==10){m=0。} for(m=0。 show(5)。lk。只需控制SPEAKER輸出高低電平的時間和變化頻率,就可以讓蜂鳴器發(fā)出不同的聲音。其中JT 的晶振,改變兩電容CB的值即可對此晶振頻率進(jìn)行調(diào)節(jié)。89C51是一種帶4K字節(jié)閃爍可編程可擦除只讀存儲器的低電壓,高性能CMOS8位微處理器,器件采用ATMEL高密度非易失存儲器制造技術(shù)制造,與工業(yè)標(biāo)準(zhǔn)的MCS51指令集和輸出管腳相兼容。并行輸入輸出(I/O)口:AT89C51共有4組8位I/O口(P0、 PP2或P3),用于對外部數(shù)據(jù)的傳輸。本文討論的單片機(jī)多功能時鐘系統(tǒng)的核心是目前應(yīng)用極為廣泛的51系列單片機(jī),配置了外圍設(shè)備,構(gòu)成了一個可編程的計時定時系統(tǒng),具有體積小,可靠性高,功能多等特點(diǎn)。關(guān)鍵詞: 89C51芯片,數(shù)字電子時鐘,校時ABSTRACTDigital electronic clock is a timing device to display seconds, divided, the use of digital circuit, pared with the traditional mechanical clock, it has the advantages of accurate, intuitive display, no mechanical transmission device. With the development of modern digital technology, digital electronic clock is widely used in all areas of production life, such as the time the program automatic control, regular radio, closed automatically lights, timing switches oven, onoff power equipment etc..The curriculum design of electronic clock, design, have the function of timing and time to adjust the most simple function. Based on the 89C51 chip and the LED digital tube as the core, supplemented by the necessary circuit, and in the C program design as the basis, form a simple singlechip digital electronic clock. Able to accurately display the time through