基于51单片机的电子万年历毕业论文设?- 百度文库 ر

·Ӹӣڵ˱ϵͳAT89S52ƬΪģDS18B20¶Ȳģ飬DS1302ʱģ飬Ӧģ飬LCDʾģ飬ģʹƾʵȫ˻ܵص㡣

ŵƬķչ΢ͻ ܷḻƣҼ۸ڲ½ǵԴ⣬ڵƵ˽ƷǵʮҪãԵкܴķչǰġ

2

2 ϵͳѡ֤

2.1 ƬоƬѡ񷽰֤

һ

89C51оƬΪӲģ89C51һִ4Kֽ˸ɱ̿ɲֻ洢Flash ROMڲ4KB ROM 洢ռ䣬3VijѹMCS-51ϵеƬȫݣ빤ҵ׼MCS-51ָܽݡڽ๦8λCPU˸洢ڵоƬУ89C51һָЧ΢51ƬΪܶǶʽϵͳṩһԸҼķڵ·ʱڲ̣߱߱ISPڶԵ·еʱڳĴ޸ĻԳҪʱоƬĶΰβܶоƬһ,ĿǰͺоƬѾͣ

AT89S52ƬAT89S52ƬATMELĵƬһ8051Ƭָȫݴͳ8051ڲɿŹ·AT89S52Ƭڲ8KBijFlash洢Ƶдļ7KB AT89S52ƬijFlashΪ8KBӳ洢ˡ

ۺϱȽѡ񷽰ѡAT89S52Ϊ

2.2 ʾģѡ񷽰֤

һ

LCD12864Һһ־8λнӿڷʽĵͼҺʾģ飻ʾֱΪ12864øģĽӿڷʽͼ򵥡IJָɹȫ˻ͼν档ʾ1616ĺ֣Ҳͼʾ͵ѹ͹һص㡣ɸģ鹹ɵҺʾͬ͵ͼεҺʾģȣӲ·ṹʾҪöࡣҪʾաʱ롢ڡũLCD12864ҺƵҪ

ϵͳLEDʾLEDӦÿɷΪࣺһLEDӦãԴLEDLEDȣLEDʾĿǰйLED췽ʻ

1

һIJ࣬LEDʾԣйƺˮƽͬLEDʾɷɵʾõ͵ѹɨУĵ١ʹɱ͡ȸߡ١ӽǴ󡢿ӾԶص㡣LED̬ܶɨ.۸ϱȽϾʵݣʾ֣Լ۱ȲǺܸߣȽҺʾ˵ԷҲôΪʾ

ۺϱȽѡ񷽰һѡLCD12864Һʾ

2.3 ʱоƬѡ񷽰֤

һ

õƬʱƬɶȸߡǿɿԸߡСĵ͡ʹ÷㡢۸һϵŵ㣬ƬӦѴҵơͨѶͨDZѸٷչѲƷ칫ԶӡPCΧԼͨѶȹ

ֱӲõƬʱṩźţⲿṩʱⲿṩʱ1Ϊһڣʱʱֵ;Ƶйءʹóʵꡢ¡աڡʱ֡ôַоƬʹãԼɱӶȽϸߡ

DS1302ʱоƬDS1302 DALLAS˾Ƴһָܡ͹ġRAMʵʱʱӵ·Զꡢ¡աڡʱ֡мʱ겹ܣѹΪ2.5V5.5V˫Դ磨ԴͱõԴñõԴ緽ʽṩ˶Ժ󱳵ԴϸDS1302ݼ¼رǶijЩݵļ¼ϣʵָݵʱͬʱ¼˹㷺ӦڲϵͳС߽ӿCPUͬͨţɲͻʽһδͶֽڵʱźŻRAMݡDS1302ڲһ318ʱԴݵRAMĴDS1302ֻҪд򣬵óĴݾ򵥵ı任Ϳݡ

ۺϱȽѡ񷽰DS1302ʱоƬ

2

2.4 ¶ȴѡ񷽰֤

һ

Ϊ¶ȴǿ硢ࡢչϳԪɰ뵼մɲɣõԭ¶仯ҪصǣȽϸߣ¶ϵҪȽ10100ϣ¶ȷΧ-55桫315棬¶ȸ315棨Ŀǰ߿ɴﵽ2000棩-273桫55棻Сܹ¶ȼ޷Ŀ϶ǻ弰Ѫܵ¶ȣʹ÷㣬ֵ0.1100kѡ׼ӹɸӵ״ɴȶԺáǿڰ뵼жصܣӦ÷ΪԪ¶ȡҺλȣΪԪء͵·Ԫ㷺ڼõҵͨѶ¿ѧȸ򣬷չǰ

ʹΪһӦֵമѹֵ¶ȱ仯仯ԣɼ仯ķѹֵA/DתƷA/Dת·Ӳɱĸ߲ϸԵģϴIJ

DS18B20¶ȴӦ߾ȡ߿ɿԵijʱDALLAS˹˾DS18B20¶ȴʲáС͵ӲǿȸߣӹǿʹDS18B20ܻӭͨĵӰ˵DS18B20ƸѧϰƬͿ¶صСƷIJѡϵһƬ֧֡һߡӿڵ¶ȴDS18B20¶ȼṩ9λ()¶ȶָʾ¶ȡϢ߽ӿDS18B20DS18B20ͳ˴ӵƬDS18B20һӼɡ1(ֵ)ڰ¶ȱ任

ۺϱȽѡ񷽰òDS18B20¶ȴ

3