ºÚÁú½¶«·½Ñ§Ôº±¾¿ÆÉú±ÏÒµÂÛÎÄ£¨Éè¼Æ£©ÈÎÎñÊé
ÐÕÃû ÎâÓñРѧºÅ 074110120 רҵ°à¼¶ ¼ÆËã»ú¿ÆÑ§07¼¶1°à ±ÏÒµÂÛÎÄ£¨Éè¼Æ£©ÌâÄ¿£º µç×ÓÍòÄêÀú ±ÏÒµÂÛÎÄ£¨Éè¼Æ£©µÄÁ¢ÌâÒÀ¾Ý µç×ÓÍòÄêÀúÊÇÒ»Öַdz£¹ã·ºÈÕ³£¼ÆÊ±¹¤¾ß£¬¶ÔÏÖ´úÉç»áÔ½À´Ô½Á÷ÐС£Ëü¿ÉÒÔ¶ÔÄê¡¢ÔÂÖÜÈÕ¡¢Ê±¡¢·Ö¡¢Ãë½øÐмÆÊ±£¬¶ÔÓÚÊý×Öµç×ÓÍòÄêÀú²ÉÓÃÖ±¹ÛµÄÊý×ÖÏÔʾ£¬¿ÉÒÔͬʱÏÔʾÄêÈÕ¡¢ÖÜÈÕ¡¢Ê±£¬»¹¾ßÓÐʱ¼äУ׼µÈ¹¦ÄÜ Ö÷ÒªÄÚÈݼ°ÒªÇó Ö÷ÒªÄÚÈÝÊÇʵÏÖINTÖÐ¶Ï £¬ÊµÏÖRBµçƽ±ä»¯ÖÐ¶Ï ÒªÇóÊÇʵÏÖÊýÂë¿éµÄ¶à¹¦ÄÜÏÔʾÑÝʾ ½ø¶È°²ÅÅ 2010Äê9ÔÂ20ÈÕ Ñ¡Ìâ 2010Äê9ÔÂ21ÈÕ~2011Äê5ÔÂ13ÈÕ ½ÓÊÜÖ¸µ¼½ÌʦµÄÖ¸µ¼ 2010Äê9ÔÂ21ÈÕ~2010Äê9ÔÂ30ÈÕÄⶨÂÛÎÄ´ó¸Ù 2010Äê10ÔÂ1ÈÕ~2010Äê10ÔÂ31ÈÕËѼ¯¡¢²éÔÄ¡¢ÕûÀíÏà¹Ø×ÊÁÏ 2011Äê3ÔÂ1ÈÕ~2011Äê3ÔÂ28ÈÕ³õ¸åÐÎ³É 2011Äê3ÔÂ29ÈÕ~2011Äê4ÔÂ5ÈÕ ³õ¸åÉó¶¨ 2011Äê4ÔÂ6ÈÕ~2011Äê4ÔÂ10ÈÕ µÚÒ»´ÎÐÞ¸Ä 2011Äê4ÔÂ11ÈÕ~2011Äê4ÔÂ14ÈÕ µÚÒ»´ÎÉó¶¨ 2011Äê4ÔÂ15ÈÕ~2011Äê4ÔÂ20ÈÕ µÚ¶þ´ÎÐÞ¸Ä 2011Äê4ÔÂ21ÈÕ~2011Äê5ÔÂ4ÈÕ ¶¨¸å 2011Äê5ÔÂ5ÈÕ~2011Äê5ÔÂ13ÈÕ ÂÛÎÄÆÀÔÄС×éÆÀÉóÂÛÎÄ£¨Éè¼Æ£© 2011Äê5ÔÂ14ÈÕ ±ÏÒµÂÛÎÄ£¨Éè¼Æ£©´ð±ç ѧÉúÇ©×Ö£º Ö¸µ¼½Ìʦǩ×Ö£º Äê Ô ÈÕ ºÚÁú½¶«·½Ñ§Ôº±¾¿ÆÉú±ÏÒµÂÛÎÄ£¨Éè¼Æ£©
µç×ÓÍòÄêÀúµÄÉè¼Æ
Õª Òª
Ëæ×ÅÉç»á¡¢¿Æ¼¼µÄ·¢Õ¹£¬ÈËÀàµÃ֪ʱ¼ä£¬´Ó¹ÛÌ«Ñô¡¢°ÚÖÓµ½ÏÖÔÚµç×ÓÖÓ£¬²»¶ÏÑо¿¡¢´´Ð¡£ÎªÁËÔÚ¹Û²âʱ¼äµÄͬʱ£¬Äܹ»Á˽âÆäËüÓëÈËÀàÃÜÇÐÏà¹ØµÄÐÅÏ¢£¬±ÈÈçζȡ¢ÐÇÆÚ¡¢ÈÕÆÚµÈ£¬µç×ÓÍòÄêÀúµ®ÉúÁË£¬Ëü¼¯Ê±¼ä¡¢ÈÕÆÚ¡¢ÐÇÆÚºÍζȹ¦ÄÜÓÚÒ»Éí£¬¾ßÓжÁÈ¡·½±ã¡¢ÏÔʾֱ¹Û¡¢¹¦ÄܶàÑù¡¢µç·¼ò½àµÈÖî¶àÓŵ㣬·ûºÏµç×ÓÒÇÆ÷ÒDZíµÄ·¢Õ¹Ç÷ÊÆ£¬¾ßÓйãÀ«µÄÊг¡Ç°¾°¡£
¸Ãµç×ÓÍòÄêÀúÖ÷Òª²ÉÓÃAT89C51µ¥Æ¬»ú×÷ΪÖ÷¿ØºËÐÄ£¬ÓÉDS1302ʱÖÓоƬÌṩʱÖÓ¡¢LED¶¯Ì¬É¨ÃèÏÔʾÆÁÏÔʾ¡£AT89C51µ¥Æ¬»úÊÇÓÉAtmel¹«Ë¾ÍƳöµÄ£¬¹¦ºÄС£¬µçѹ¿ÉÑ¡ÓÃ4¡«6Vµçѹ¹©µç£»DS1302ʱÖÓоƬÊÇÃÀ¹úDALLAS¹«Ë¾ÍƳöµÄ¾ßÓÐä¸Ï¸µçÁ÷³äµç¹¦Äܵĵ͹¦ºÄʵʱʱÖÓоƬ£¬Ëü¿ÉÒÔ¶ÔÄê¡¢Ô¡¢ÈÕ¡¢ÐÇÆÚ¡¢Ê±¡¢·Ö¡¢Ãë½øÐмÆÊ±£¬»¹¾ßÓÐÈòÄê²¹³¥µÈ¶àÖÖ¹¦ÄÜ£¬¶øÇÒDS1302µÄʹÓÃÊÙÃü³¤£¬Îó²îС£»Êý×ÖÏÔʾÊDzÉÓõÄLEDÒº¾§ÏÔʾÆÁÀ´ÏÔʾ£¬¿ÉÒÔͬʱÏÔʾÄê¡¢Ô¡¢ÈÕ¡¢ÐÇÆÚ¡¢Ê±¡¢·Ö¡¢ÃëºÍζȵÈÐÅÏ¢¡£´ËÍ⣬¸Ãµç×ÓÍòÄêÀú»¹¾ßÓÐʱ¼äУ׼µÈ¹¦ÄÜ¡£
¹Ø¼ü´Ê£ºÊ±Öӵ緣» DS1302£»LED¶¯Ì¬É¨Ã裻 AT89C51£»MAX7219
I
ºÚÁú½¶«·½Ñ§Ôº±¾¿ÆÉú±ÏÒµÂÛÎÄ£¨Éè¼Æ£©
Perpetual Calendar
Abstract
With the society, science and technology, mankind learned that time, from the view of the sun, to the present electronic clock pendulum clock, continuous research and innovation. Observation time in
the same time, be able to understand other human beings is closely related to information, such as temperature, week, date and so on, the birth of the electronic calendar, and it set the time, date, week and temperature-in-one, with easy to read, intuitive display functional diversity, and many other advantages of simple circuit with the electronic instrumentation of the development trend of the. market prospects are broad
The main use of the electronic calendar AT89C51 single-chip microcomputer as the main core, provided by the DS1302 clock chip clock, DS18B20 the temperature chip acquisition transition temperature, LED display shows the dynamic scan. AT89C51 single-chip microcomputer is introduced by Atmel Corporation, a small power consumption, voltage can be selected 4 ~ 6V power supply voltage; DS1302 clock chip is introduced DALLAS fine with trickle charge function of current low-power real-time clock chip, which can of the year, month, day, week, hour, minute, second for time, also has multiple functions, such as a leap year compensation, and long life of the DS1302, a small error; DS18B20 temperature chip is a digital temperature sensor with a measurement accuracy high, a simple circuit to connect the characteristics of such sensors only need a data cable for data transmission; digital LED display is used to display LCD screen, can display year, month, day, week, hour, minute, second and temperature, etc. information. In addition, the electronic calendar is also a time-calibration functions.
Keywords£ºclock circuit; DS1302; LED dynamic scanning; AT89C51; MAX7219
II
Ŀ ¼
Õª Òª ................................................................. I ABSTRACT ................................................................ II µÚ1Õ Ð÷ÂÛ .............................................................. 1 1.1 ±³¾°ÖªÊ¶½éÉÜ ............................................................................................................... 1 1.2 ¿ÎÌâÈÎÎñ¼°ÒªÇó ........................................................................................................... 2 µÚ2Õ ÍòÄêÀúʱÖÓÉè¼Æ·½°¸ ................................................ 3 2.1 ¼òÊöÉè¼ÆË¼Â· ............................................................................................................... 3 2.2 ¹¹³É¿òͼ ....................................................................................................................... 3 µÚ3Õ Ӳ¼þµç·Éè¼Æ ...................................................... 4 3.1 µ¥Æ¬»úµÄÑ¡Ôñ ............................................................................................................... 4
3.1.1 µ¥Æ¬»úÑ¡ÔñÂÛÖ¤ .................................................................................................. 4 3.1.2 µ¥Æ¬»ú²ÎÊý½éÉÜ .................................................................................................... 4 3.2 ʱÖÓ¹¦ÄܵÄʵÏÖ ............................................................................................................. 7 3.3 ¸´Î»µç· ..................................................................................................................... 8 3.4 ʱ¼äµ÷Õûµç· ............................................................................................................... 10 3.5 ʱ¼äÏÔʾµç· ............................................................................................................. 10 3.5.1 ɨÃ跽ʽ .............................................................................................................. 10 3.5.2 LEDÊýÂë¹ÜµÄÑ¡Ôñ ............................................................................................... 12 3.5.3 ÏÔʾµç·µÄÕûÌåʵÏÖ .......................................................................................... 13 µÚ4Õ ϵͳ³ÌÐòÉè¼ÆÓëÈí¼þ·ÂÕæ ........................................... 14 4.1 Ö÷³ÌÐòµÄÉè¼Æ ............................................................................................................... 14 4.2 ³ÌÐò´úÂë ....................................................................................................................... 16 4.3 ·ÂÕæÊµÑé ....................................................................................................................... 17 µÚ5Õ PCB°åÖÆ×÷Óëµ÷ÊÔ .................................................. 18 5.1 ÔÀíͼµÄ»æÖÆÓëPCBµÄÖÆ×÷ ..................................................................................... 18
5.1.1 ÔÀíͼµÄ»æÖÆ ...................................................................................................... 18 5.1.2 PCBµÄ»æÖÆ ........................................................................................................... 19 5.2Ôª¼þ°²×°º¸½Ó................................................................................................................ 20 5.3ϵͳµÄµ÷ÊÔ.................................................................................................................... 21 ½áÂÛ .................................................................... 23 ²Î¿¼ÎÄÏ× ................................................................ 24 ¸½ ¼A ................................................................. 25 ¸½ ¼B ................................................................. 26 ¸½ ¼C ................................................................. 27 Ö л .................................................................. 35