单片机电子万年历中英文对照外文翻译文献
基于单片机的多功能万年历设计毕业设计论文

毕业设计(论文)基于单片机的多功能万年历设计on MCU论文主题词:多功能万年历单片机DS1302数码管外文主题词LED论文答辩日期:答辩委员会主席:评阅教师:毕业设计(论文)原创性声明和使用授权说明原创性声明本人郑重承诺:所呈交的毕业设计(论文),是我个人在指导教师的指导下进行的研究工作及取得的成果。
尽我所知,除文中特别加以标注和致谢的地方外,不包含其他人或组织已经发表或公布过的研究成果,也不包含我为获得及其它教育机构的学位或学历而使用过的材料。
对本研究提供过帮助和做出过贡献的个人或集体,均已在文中作了明确的说明并表示了谢意。
作者签名:日期:指导教师签名:日期:使用授权说明本人完全了解大学关于收集、保存、使用毕业设计(论文)的规定,即:按照学校要求提交毕业设计(论文)的印刷本和电子版本;学校有权保存毕业设计(论文)的印刷本和电子版,并提供目录检索与阅览服务;学校可以采用影印、缩印、数字化或其它复制手段保存论文;在不以赢利为目的前提下,学校可以公布论文的部分或全部内容。
作者签名:日期:学位论文原创性声明本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。
除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。
对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。
本人完全意识到本声明的法律后果由本人承担。
作者签名:日期:年月日学位论文版权使用授权书本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。
本人授权大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。
涉密论文按学校规定处理。
作者签名:日期:年月日导师签名:日期:年月日注意事项1.设计(论文)的内容包括:1)封面(按教务处制定的标准封面格式制作)2)原创性声明3)中文摘要(300字左右)、关键词4)外文摘要、关键词5)目次页(附件不统一编入)6)论文主体部分:引言(或绪论)、正文、结论7)参考文献8)致谢9)附录(对论文支持必要时)2.论文字数要求:理工类设计(论文)正文字数不少于1万字(不包括图纸、程序清单等),文科类论文正文字数不少于1.2万字。
基于单片机的电子万年历

论文题目基于单片机的电子万年历(英文)Design of Electronic Calendar basedon single Chip Microcomputer摘要现今信息技术飞速发展,时间和每一个人都有非常密切的相互联系,时间对任何人都有着非常重要的影响。
随着科技的快速发展,流逝的时间,我们从根据太阳来判断时间,发展到了用钟摆看时间,到现在又有了各种电子表等。
当各类电子表在我们生活中广泛应用的时候,电子万年历的的出现又把我们引入到一个全新的时代。
电子万年历是一种使用非常广泛的日常计时工具,对现代社会越来越流行。
它可以对年、月、日、周日、时、分、秒进行计时,还具有闰年补偿等多种功能,还具有时间校准等功能。
本设计是基于51系列的单片机进行的电子万年历设计,主要由时钟芯片DS1302采集数据到单片机进行处理再通过LCD1602显示出来。
电子万年历的软件部分是使用c语言编写,主要用到的硬件电路有时钟芯片DS1302、液晶显示LCD1602,主控制芯片AT89C51,还有按键。
关键词:单片机, LCD602, AT89C51 ,DS302AbstractNowadays information technology develops rapidly, and time and everyone have very close interconnections, and time has a very important influence on anyone. With the rapid development of science and technology, the time elapsed, we judge the time according to the sun, develop to use the pendulum to watch the time, and now have all kinds of electronic watches and so on. When all kinds of electronic watches are widely used in our lives, the advent of electronic calendar brings us to a whole new era. Electronic calendar is a kind of widely used daily timing tool, which is becoming more and more popular in modern society. It can time the year, month, day, Sunday, hour, minute, second, also have leap year compensation and so on many functions, still have time calibration and so on function.This design is based on the electronic calendar design of 51 series of single-chip microcomputer, mainly by the clock chip DS1302 collecting data to the single chip microcomputer for processing and then through LCD1602. The software part of the electronic calendar is written in c language. The main hardware circuits used are clock chip DS1302, liquid crystal display LCD1602, master control chip AT89C51, and buttons.Key words:Microcontroller;LCD1602;AT89C51;DS1302目录目录 (3)第1章绪论 (4)1.1背景及目的 (4)1.1.1课题研究背景 (4)1.1.2选题的意义及目的 (4)1.2 国内外发展现状及水平 (4)第2章系统的方案选择及论证 (6)2.1 单片机芯片选择 (6)2.2 时钟芯片的选择与论证 (6)2.3 显示模块的选择与论证 (6)2.4 电路设计最终方案 (7)第3章系统的硬件设计与实现 (8)3.1 电路设计框图 (8)3.2系统硬件概述 (8)3.3 系统的电路设计 (8)3.3.1 系统总体电路设计图 (9)3.3.2单片机主控制模块 (9)3.3.3 时钟电路模块 (12)3.3.4 显示模块 (16)第4章系统的软件设计 (19)4.1 程序流程框图: (19)第5章Proteus软件仿真与测试 (22)5.1 仿真软件介绍 (22)5.2 Proteus 仿真效果 (22)第6章总结与体会 (24)参考文献 (25)附录1:程序 ..................................................... 错误!未定义书签。
电子万年历外文翻译

With the improvement of people's living standard and life rhythm accelerate, the time requirements of increasingly high, precision digital timing consumption demand is increasing.The production of electronic calendar has many kinds, general to study of multi-function electronic calendar, the calendar in addition to the original display time, date and other basic functions, also has the alarm, alarm and other functions. Business production of electronic calendar from the quality, price, and practical considerations, constantly improve the design of the electronic perpetual calendar, making it more with the market.The design for the software, hardware with a combination of a set of design. In software design, the hardware part should have relevant knowledge, which helps to design a deeper understanding, contribute to software design. Basic to understand some of the main devices of the basic functions and role. In addition to using integrated clock chip, and adopts the scheme of MCU, using AT89series single-chip microcomputer made perpetual calendar circuit, use a combination of hardware and software methods, control of LED digital tube output, are used to show the year, month, day, hours, minutes and seconds, the main point is: the hardware circuit is simple, the installation convenient and easy to realize, the software design is unique, reliable. AT89C51 is offered by the ATMEL a small microcontroller. 95 years in China market. Its main characteristics is the Flash memory technology, reduces the manufacturing cost of the hardware, software, fully compatible with the MCS-51, can very quickly by the Chinese majority of user acceptance. This paper introduces the design of the electronic perpetual calendar based on AT89C51.1 design schemesThis article proposed one kind based on the AT89C51MCU calendar design, the program to AT89C51single-chip microcomputer as a controlling core, and the clockchip DS1302, keyboard, LED display modules and hardware system. In the hardware system with a separate keyboard and LED display, can display a wealth of information, according to the needs of users at any time on time calibration, choice of time, to sum up this calendar is convenient, intuitive display, multiple functions, simple circuit, low cost and many other advantages, comply with the development trend of electronic instrumentation, has broad market prospect.2 functional requirementsElectronic calendar can dynamically display the year, month, day, week, hour, minute, second.3 technical feasibilityWith the domestic large scale integrated circuits, the microprocessor and its peripheral chip had rapid development. Integrated technology most recent development is one of the CPU and peripheral chips, such as program memory, data memory, parallel I/O port, serial I/O port, timer / counter, an interrupt controller and other control components are integrated in a chip, made of monolithic computer ( Single-Chip Microcomputer ). But in recent years the introduction of some high-end chip also includes many special function unit, such as A/D, D/A converter, modem, communication controller, phase locked loop, DMA, PWM floating-point unit, output control unit, PWM output when the dead programmable control function. Therefore, so long as the external expansion circuit and the necessary channel interface can make all kinds of computer application systems, such as industrial production line control system of household appliances, as the main controller, distributed control system terminal node or as its main control node up relay used, data acquisition system, automatic testing system. The appearance of single chip microcomputer, and the technology in the field of such rapid development, and the single chip computer application system formed by the following characteristics: (1) single chip computerapplication system has higher reliability. The reliability of the obtained in addition to rely on the chip itself the high reliability and application have the least connection, also can be conveniently made of soft, hardware technology. (2) extension of the system, system configuration is typical, specification, easy to scale a variety of application system, application system has high utilization coefficient of soft, hardware. (3) in the form of application system is a computer system, a considerable measure, control functions are realized by software, so with flexible features, do not have to change the hardware system can properly change system function. (4) have superior performance, price ratio.The 4 chip selectThe main control chip using51 Series MCU clock chip using AT89C51, American DALLAS company introduced a high performance, low power consumption, with the RAM real-time clock DS1302. Using DS1302 as the timing chip, can achieve accurate timing. More importantly, DS1302can be in a very small current back-up power supply (2.5~5.5V power supply,2.5V power consumption less than 300nA), and DS1302Can be programmed to select a variety of charging current to power for slow charge, can guarantee the basic power backup power supply.Display driver using MAX7219, MAX7219 is a microprocessor and a common cathode eight eight LED digital tube display, graph bar / column chart displays or64 dot matrix display interface small serial input / output chip. Sheet including BCD decoder, multiple scan controller, word and bit drive and 8x 8static RAM. External resistor only need one set all LED displays current field. MAX7219 and microprocessor only three wires to connect, each show has an address by the digital microprocessor write. Allow users to choose each BCD decoding or not decoding. Users can also choose to shutdown mode, the digital brightness control, from 1 to8toselect the scan number and LED displays for all the test mode. Display module using ordinary common cathode four in one of the eight LED digital tube.The 5 display driver MAX7219(1) MAX7219 and single chip computer is connected with three wires ( DIN, CLK, LOAD ), using16 bit data serial shift receiving mode(2) eight LED display, graph bar / column chart displays or64 dot matrix display(3) including a BCD decoder, multiple scan controller, word and bit drive and 8x 8static RAM(4) may choose to shutdown mode, the digital brightness control, from 1 to8to select the scan number and LED displays for all the test mode(5) can drive8LED display(6) the internal RAM address 01~ 08H respectively corresponding to DIG0 ~DIG7.(7) scan register ( address:0BH ) the register in the D0 ~ D3 bits of data of the set value is 0 ~7H, set the value of said display dynamic scanning digital from 1 to8.(8) stop register ( address:0CH ) when D0=0, MAX721is in a halt state; when D0=1, in a normal working state.(9) showed the test register ( address:0FH ) when D0=0, MAX7219according to a set pattern in normal work; when D0=1, in beta status. In this state, regardless of the MAX7219in what mode, all of the LED will be the maximum brightness display.(10) the brightness register ( address:0AH ) luminance can use the hardware and software of the two methods to regulate brightness registers in the D0 ~D3can control LED display.LED display register by an internal8x 8static RAM, the operator can direct positioning of individually addressable register, to refresh and keep the data, as long as more than 2 V ( V + for + 5V ).Control register includes: decoding mode, display brightness adjustment, scan limits ( select scan digits), shutdown and display the test register.6 DS1302working mode and data operation principleDS1302can be years, months, days, weeks, when, minutes and seconds for time, and has a leap year compensation function, wide voltage up to 2.5~5.5V. Using a three wire interface synchronization with CPU communication, and may use a burst mode a transmission of multiple byte clock signal or RAM data. DS1302has a33x8for temporary storage of data RAM register. DS1302 is a DS1202 upgrade products, compatible with DS1202, but the increase of main power supply dual power supply pins / back to back, while providing a power supply current trickle charging capability.DS1302 clock chip includes a real time clock / calendar and31 bytes of static RAM. It passes through a simple serial interface and communication. Real time clock / calendar with seconds, hours, days, weeks, months and years of information. For less than 31days at the end of the month and the date is automatically adjusted, also includes a leap year correction function. The operation of the clock can be used with AM/PM24< > or12 hour format. Using a three wire interface synchronization with CPU communication, and may use a burst mode a transmitted byte clock signal or RAM data.DS1302 in any transmission of data must be initialized, the RST foot placement is high, then the8 bits of the address and command words into the shift register, the data at the rising edge of SCLK was access to. At the beginning of the 8clock cycle, the command byte loaded into the shift register, another clock cycle during a read operation when the output data, in a write operation for writing data. The number of clock pulses in single byte mode for8+8, in multiple byte mode for8+ bytes, the maximum is 248bytes. If the transmission of the mid-mounted RST feet for low level, it will terminate the data transmission, and the I/O pin into a high resistance state.Power on run time, the Vcc ≥2.5V, RST foot must be kept low level. Only when the SCLK is low, can be set to high level RST.DS1302 total of12 registers, which has 7registers and calendar, clock, stored data bits for BCD code.Clock seconds pause: register bit7bit clock pause a definition. When it is 1, DS1302stops oscillating, entering the low power backup, usually in the DS1302write operation (such as entering a clock adjustment procedures ), oscillation stopped. When it is 0, the clock will start.AM-PM/12-24hour: hour register bit7is defined as 12or 24hour mode select bit. It is in high level,12hour. In this way, a5 for the second10 hours of bits (20 ~23h).The crystals DS1302choose 32768Hz, capacitor recommended values for6pF. Because of low frequency, can also be connected capacitor, the timing precision effect.The 7endingWhen I finally finished all the typing, typesetting, proofreading, drawing the task after all very tired, but at the same time looking at the computer screen graduation design manuscript my heart is sweet, I feel it all worth it.I will never forget this unforgettable several months. I am here to find information on the day, in the face of countless books list, the most memorable is each time finding information on the thrill and excitement. I'm from data collection, to master a lot of microcomputer and its interface application knowledge, let me for what I have learned to consolidate and improve, and let me on the SCM new technology knowledge. Throughout the process, I learned new knowledge, the growth of knowledge. In the future days, I still have to continue to enrich themselves, for in the academic field dosomethinpreviouslyunreleased.Stand on solid ground, serious learning attitude, seek truth from facts, not afraid of difficulties, unremittingly, hard-working spirit is my in this design the maximum benefits. I think this is a willpower, is to my actual ability of a promotion, also for myfuture study and work of great help.随着人们生活水平的提高和生活节奏的加快,对时间的要求越来越高,精准数字计时的消费需求也是越来越多。
基于单片机的万年历时钟设计【文献综述】

毕业设计开题报告测控技术与仪器基于单片机的万年历时钟设计1前言部分在当代繁忙的工作与生活中,时间与我们每一个人都有非常密切的关系,每个人都受到时间的影响。
为了更好的利用我们自己的时间,需要一款灵活、稳定而又功能强大的自动定时控制系统,以规范本单位的作息时间或定时控制一些设备。
目前,市面上出现的一些时控设备或功能单一,或使用烦琐,或价格昂贵,总有一些不尽如人意的地方[1]。
我们必须对时间有一个度量,因此产生了钟表。
钟表的发展是非常迅速的,17 世纪中叶, 由荷兰人C. Huygens来发明的第一个钟摆与以前任何计时装置相比, 摆钟的精确度提高了上百倍,而他随后发明的螺旋平衡弹簧,又进一步提高精度、减小体积, 导致了怀表的出现。
然而再好的摆钟,其精度也只能达到每年误差不超过一秒[2]。
1939年出现了利用石英晶体振动计时的石英钟, 每天误差只有千分之二秒, 到二次大战后精度提高到30 年才差一秒。
很快, 测年的技术又推进到原子层面, 1948 年出现第一台原子钟, 1955年又发明了铯原子钟, 利用Cs133原子的共振频率计时,现在精度已经高达每天只差十亿分之一秒[2]。
从刚开始的机械式钟表到现在普遍用到的数字式钟表,即使现在钟表千奇百怪,但是它们都只是完成一种功能——计时功能,只是工作原理不同而已,在人们的使用过程中,逐渐发现了钟表的功能太单一,无法更大程度上的满足人们的需求。
发展到现在人们广泛使用的万年历。
万年历在家庭居室、学校、车站和广场使用越来越广泛,给人们的生活、学习、工作带来极大的方便[3]。
电子万年历具有信息量大、直观清晰、经济实用等优点,正成为家庭、商场、公共场所等新的消费热点,具有重要的开发价值[4]。
随着科技的不断发展,家用电子产品不但种类日益丰富,而且变得更加经济实用,,功能也越来越齐全,除了公历年月、日、时分秒、星期显示及闹铃外,又增加了农历、温度、24节气及l2生肖等显示。
单片机电子万年历论文中英文对照资料外文翻译文献

中英文对照资料外文翻译文献基于实时钟芯片的电子万年历的设计摘要:电子万年历以AT89S52单片机为控制核心,采用Dallas 公司的DS12C887A 实时钟芯片构成计时电路,实现了时间和日期的显示,还增加了温度显示和整点报时的功能。
文章对该系统的硬件电路、工作原理做了详细介绍,同时给出了软件设计的流程图及主要程序源代码。
关键词:单片机,实时钟.温度测量1. 引言电子万年历在家庭居室、学校、车站和广场使用越来越广泛,给人们的生活、学习、工作带来极大的方便。
针对以往的电子万年历断电后需重新调整时间与日期,且计时误差大的现象。
本系统设计采用实时钟芯片(DS12C887A)作为计时器件,该芯片内部自带晶体振荡器,这样就有效的保证了计时的精确性,并且内部自带铿电池使得在断电情况能继续更新时间信息。
本设计采用AT89S52作为主控制器,为了提高电路的实用性加入温度测量电路、报时和闹钟功能。
2. 系统硬件的设计电路原理图如图所示:该系统的结构框图 实时时钟芯音频信号产生及驱动电电源电路 单片机控制器AT89S52 数码显示管 按键电路 温度测量电路系统的工作原理是:主控制器每隔一段时间(小于一秒钟)读一次时钟芯片的内部寄存器的值,将读出的日历、时间信息实时的显示在LED数码显示器一上。
同时,主控制器不断的扫描按键电路和温度测量电路,当有键按下时,识别出按键的值并调整相应的时间或日历的值再写入时钟芯片内部。
温度数据由测量电路(DS1280)获得的温度值送入显示电路显示。
2. 1电源电路为了减少电路成本,本系统电源电路由变压器变压、三端集成稳压(L7805>电路产生5V,具有简单、可靠、价格低廉等特点。
2. 2主控制器主控制器采用ATMEL公司的最新系列单片机产品AT89S52。
该单片机除了拥有MCS-51系列单片机的所有优点外,内部还具有8KB的在系统可编程FLASH存储器,低功耗的空闲和掉电模式,极大的降低了电路的功耗。
单片机的数字万年历设计说明

基于AT89S51单片机的数字万年历设计摘要:本设计以数字集成电路技术为基础,单片机技术为核心。
软件设计采用模块化结构,汇编语言编程。
系统通过LCD显示数据,可以显示公历日期(年、月、日、时、分、秒)以及星期。
在容安排上首先描述系统硬件工作原理,着重介绍了各硬件接口技术和各个接口模块的功能;其次,详细的阐述了程序的各个模块和实现过程。
关键词:单片机;万年历;DS1302;LCM1602Design of digital calendar based on MCU AT89S51Bai YangSchool of physics and electronic information Grade 2005 Instructor: Tang Zheng-mingAbstract: The design is based on digital integrate circuit, microcontroller technology is the core of the system. The software design uses module structure and adapts microcontroller assemble language. The system can display calendar date, including year, month, week, hour, minute, second and week. The work principle of the system is discussed in this paper, hardware interface and module function are reported primarily in the system. Every module of program is described explicitly.Keywords: MCU ; Calendar; DS1302; LCM1602基于AT89S51单片机的数字万年历设计摘要 (1)1 设计要求 (2)2 方案论证与设计 (2)2.1 用可编程逻辑器件设计 (2)2.1.1控制器部分 (3)2.2 显示部分的方案选择 (3)2.3 系统设计 (3)2.3.1 晶体振荡器电路 (3)2.3.2 分频器电路 (3)2.3.3 时间计数器电路 (3)2.3.4 时钟电路 (4)2.3.5 复位电路 (4)2.3.6复位电路的可靠性设计 (4)2.3.7 按键部分 (5)2.3.8蜂鸣器电路 (5)3.3.9 根据各模块的功能互相连接成电子万年历的控制电路 (5)3各硬件介绍 (6)3.1 AT89S51的引脚说明 (7)3.2 发光二极管指示电路设计 (8)3.3 蜂鸣器电路设计 (8)3.3.1 蜂鸣器的介绍 (9)3.3.2 蜂鸣器的结构原理 (9)3.4 LCM1602简介 (9)3.5 DS1302 简介 (10)4 系统硬件设计所需的器材 (11)5 系统软件总体设计 (11)6 系统功能介绍 (12)6.1 按键介绍 (13)6.2星期计算 (13)7 主程序流程图 (14)8 安装制作 (14)15前言电子万年历是实现对年,月,日,时,分,秒数字显示的计时装置,广泛用于个人家庭,车站,码头,办公室,银行大厅等场所,成为人们日常生活中的必需品。
基于单片机的智能万年历的设计

1引言如今快节奏的生活方式,使得人们对时间观念越来越重视,使得万年历愈发受到人们的重视,已经是人们生活中不可缺少的一类电子产品,它广泛应用于家庭、学校、医院、公司、工厂、车站、机场、影院等场所。
一款性能优良的万年历不仅可以精准走时、早上准时提醒你起床,还能给你预报当天天气情况和当天的备忘录等等。
本智能万年历由此为出发点,依托时间芯片、语音芯片、电源管理模块、显示模块、WiFi模块、温湿度传感器、单片机系统,协同工作共同组建一个智能万年历。
该万年历克服了传统万年历需要人工调时的局限性,弥补了万年历功能不全的缺陷,实现了万年历的智能化[1-2]。
2系统方案设计整个系统由DHT12温湿度模块、DS1302时钟模块、OLED显示屏、语音模块、电源管理模块、ESP8266WiFi模块和STC15W408AS单片机最小系统等模块组成。
系统框架图如图1所示。
图1系统框架图3硬件设计3.1电源管理模块电源管理模块由TP4056芯片与BL8530芯片组成,万年历电源由锂电池供电,其中TP4056芯片负责通过USB给锂基于单片机的智能万年历的设计Design of Intelligent Perpetual Calendar Based on MCU王成(武昌工学院,武汉430065)WANG Cheng(WuchangInstituteof Technology,Wuhan430065,China)【摘要】随着科技的进步,时钟由原始的水滴式发展到机械式,进而发展到如今的电子式时钟,同时电子式时钟也在逐渐发展到现在的多功能智能万年历。
时钟的不断进步,给人们的生产生活带来了极大的便利。
论文描述了一种基于单片机的智能万年历的设计方案,并进行了实物的制作与测试,达到了万年历智能化的目的。
该万年历结构简单、稳定性高、走时误差小、维护方便。
【Abstract】With the progress ofscience and technology,the clock is developed from the original droplet to the mechanical,developed to today'selectronic clock,and the electronic clock gradually developed into the current multi-functional intelligent calendar.The progress of clock hasbrought great convenience to people's production and life.This paper describes a design scheme of intelligent perpetual calendar based on MCU,intelligent perpetual calendar,carries out the production and testing of the object,and achieves the purpose of intelligent calendar.This calendarhastheadvantages ofsimplestructure,highstability,small error,andconvenient maintenance.【关键词】万年历;单片机控制;智能化【Keywords】calendar;MCU;intelligent【中图分类号】TN216【文献标志码】A【文章编号】1673-1069(2017)04-0167-02【作者简介】王成(1993-),男,湖北黄冈人,从事电气工程及其自动化研究。
电子日历【外文翻译】

毕业设计(论文)外文翻译ELECTRONIC CALENDARBACKGROUND OF THE INVENTION1. Field of the InventionThis invention is related to an electronic calendar for conversion between National Calendar of R.O.C. (Republic of China) /Gregorian and Chinese Lunar Calendars.2. Description of the Prior ArtSo far, the Chinese Lunar Calendar is still in use by a lot of Chinese. It is because the Chinese seasonal events and customs defined in the Chinese Lunar Calendar are well received by the Chinese. Most of the important worship dates for Chinese are based on the Chinese lunar calendar. However, the electronic calendar available on the market only provides the information of the current date, and no additional function is provided, i.e. no conversion between the Chinese Lunar Calendar and National Calendar of R.O.C./Gregorian calendar. Furthermore, such electronic calendar suffers from the following drawbacks:1. It cannot display both the Chinese lunar calendar and National Calendar of R.O.C./GregorianCalendar on the screen at the same time.2. It cannot be used to find out the corresponding National Calendar of R.O.C./GregorianCalendar date and Chinese Lunar Calendar date in the past or future.3. It cannot be programmed to notify the users of the arrival of the date for worshipping gods,ancestors, or other activities in the Chinese Lunar Calendar date.Therefore, it is an object of the present invention to provide an improved electronic calendar which can obviate and mitigate the above-mentioned drawbacks.SUMMARY OF THE INVENTIONThis invention relates to an electronic calendar which consists of a display screen for displaying National Calendar of R.O.C./Gregorian Calendar date and the Chinese Lunar Calendar date. The screen always displays the date of the Chinese Lunar Calendar and date of the National Calendar of R.O.C./Gregorian Calendar. The user of this electronic calendar can enter the past or future date to the calendar and the entered date and the corresponding Chinese Lunar Calendar or National Calendar of R.O.C./Gregorian Calendar will be displayed on the display screen instantly.The primary object of this invention is to provide an electronic calendar which will display both the Chinese lunar Calendar and National Calendar of R.O.C./Gregorian calendar on the came screen. The content of the screen consists of year, month, date, day of the week, hour and minute display units. Users can use the keys of a keypad to enter the National Calendar of R.O.C./Gregorian Calendar or the Chinese Lunar Calendar date, and the corresponding Chinese Lunar Calendar date or National Calendar of R.O.C./Gregorian Calendar and the entered date will be displayed on the same display screen instantly.Another object of this invention is to provide a notification feature for the user, whereby the user can preset a future date in either National Calendar of R.O.C./Gregorian Calendar or the Chinese Lunar Calendar date. The electronic calendar will send out voice information to notify the user of the arrival of the pre-set important date, so that the user will not forget the important dateor activity.BRIEF DESCRPTION OF THE DRAWINGSFIG. 1 illustrates the National Calendar of R.O.C./Gregorian Calendar date and its corresponding Chinese Lunar Calendar date shown on the display screen of the electronic calendar according to the present invention, wherein the Chinese Lunar Calendar date is the first day of the third month of the year and this month is a short month represented by S (29 days per month); FIG. 2 illustrates the National Calendar of R.O.C./Gregorian Calendar date and its corresponding Chinese Lunar Calendar date shown on the display screen of the electronic calendar, wherein the Chinese Lunar Calendar date is the 30th day of the second month of the year and this month is a long month represented by L {30 days per month);FIG. 3 illustrates the National Calendar of R.O.C./Gregorian Calendar date and its corresponding Chinese Lunar Calendar date shown on the display screen of the electronic calendar, wherein the Chinese Lunar Calendar date is 14th day of the intercalary month (represented by I) of the eighth month of the year and this month is a short month (29 days per month);FIG. 4 illustrates the same day as shown in FIG. 2;FIG. 5 shows the circuit diagram of the electronic calendar according to the present invention; FIG. 6 shows the logic Bow diagram of the electronic calendar according to the present invention.DETAILED DESCRIPTION OF THEPREFERRED EMBODIMENTWith reference to the drawings and in particular to FIGS.1, 2, 3 and 4, the present invention can be used for conversion between National Calendar of R.O.C. (Republic of China)/Gregorian Calendar date and the Chinese Lunar Calendar date. The display screen will display both calendar formats on the screen of the electronic calendar (1) at the same time. This invention mainly comprises a main body(11) and a display screen (12). The display screen (12) consists of several display units: year for National Calendar of R.O.C./Gregorian Calendar (121). month for National Calendar of R.O.C./Gregorian Calendar(122), day for National Calendar of R.O.C./Gregorian Calendar, month for the Chinese Lunar Calendar (124), day for the Chinese Lunar Calendar (125), day of week (126), and time {127). These display units are made up of seven segment display units or LED (light emitting diode) .The central processing unit (20) receives information from timing control unit (21) and the received information will be converted into one set of Gregorian calendar information and one set of the Chinese lunar calendar information. The converted information will be displayed on the corresponding display units on the display screen (12). A keypad control circuit (3) consists of several keys for entering the date information to the central processing unit (20) for converting the entered date to the corresponding Chinese Lunar Calendar date or National Calendar of R.O.C./Gregorian Calendar date. Both the entered and converted date will be displayed on the corresponding display units on the display screen (12). The user can use this invention to find out the corresponding Chinese Lunar Calendar date or National Calendar of R.O.C./Gregorian Calendar date in the past or future.The keypad control circuit (3) of this invention consists of the following keys: two "YEAR/HOUR" keys (31,31') for increasing/decreasing the setting of YEAR display unit (121); two "MONTH/MINUTE" keys (32,32') for increasing/decreasing the setting of MONTHdisplay unit (122); two "DAY" keys (33,33') for increasing/decreasing the setting of DAY display unit (123); an alarm pre-set key (34) is used for setting up multiple sets of alarm time, the alarm time will be stored in the memory of central processing unit (20), the audio integrated circuit will be triggered to broadcast music or Buddhist information through loudspeaker(35) when the information from time control circuit(21) is the same as the pre-set alarm time; one National Calendar of R.O. C./Gregorian Calendar switch over key (36) is used to switch the YEAR display unit (121) from one to another.When the electronic calendar is powered on, the current date in both the Chinese Lunar Calendar and Gregorian Calendar format will be displayed on the display screen. As shown in FIG. 1, the date is Thursday, Apr. 18th of the 85th year of R.O.C., the corresponding Chinese Lunar Calendar date is the 1st day of the third month (this is a short month) of the year and the time is 12 o'clock.. If "YEAR/HOUR" key(31')、"MONTH/MINUTE" key (32) and "DAY" key (33') are pressed to change the date to the 8th day of October of the 84th year of R.O.C., the corresponding Chinese Lunar Calendar will be changed to the 14th day of the intercalary month of the eighth month (short month) of the year. Similarly, the user can find out the Chinese Lunar Calendar date of desired National Calendar of R.O.C./Gregorian Calendar date instantly by pressing the appropriate keys and both the entered date and the corresponding Lunar Calendar date are displayed on the same display screen (12).As this electronic calendar can display the date of National Calendar of R.O.C. and the corresponding date of the Chinese Lunar Calendar on the display screen (12) at the same time, it can be used to perform conversion between the Chinese Lunar Calendar date and of National Calendar of R.O.C./Gregorian Calendar date, and to support two types of alarm notifications (based on pre-set hour and minute and based on the pre-set date). It is obvious that this electronic calendar is superior to the commonly available electronic calendars.With reference to FIG. 5 showing the circuit diagram of this invention, the timing control circuit (21) sends timing information to the central processing unit (20) which will process the incoming information from timing control circuit (21) and send the output information to converter (22). Then, the converter (22) will convert the information from central processing unit (20) into display signal for the display units. The display signal from converter (22) will cooperate with the display/keypad scanner circuit (23) for displaying the information on the corresponding display units on the display screen (12). The displayed information includes year, month and day of National Calendar of R.O.C./Gregorian Calendar, month and day of the Chinese Lunar Calendar, day of week, hour and minute. The central processing unit (20) will also receive key-in information from the keypad control circuit (3) and the received information will be processed to produce the corresponding Chinese Lunar Calendar date and National Calendar of R.O.C. date information. The information will be displayed on the corresponding display units on display screen (12) through the cooperation of converter (22) and display/keypad scanner circuit (23). An alarm notification may be pre-set by pressing the keys of keypad control circuit (3) and the pre-set alarm is stored in the memory of central processing unit (20).The audio integrated circuit will be triggered to broadcast a voice through loudspeaker (35) to notify user of the arrival of the pre-set time/date when the time/date information from timing control circuit matches with the pre-set alarm time/date .Referring to FIG.6,the logic Bow of the present invention will be described as follows:The calendar starts to run after power is switched on and the system will perform initial valueinput and output to decide if information is updated or not. If information update is true, enter new information, and if new information is read, then update the Chinese Lunar Calendar and National Calendar of R.O.C. information and the corresponding display information, update and scan the display units of display screen display units to reflect the entered new information, update the day of week information, scan the keypad for any input information If input information is detected, then determine which function is requested. If the requested function is calendar date conversion, then convert the information to corresponding National Calendar of R.O.C. and the Chinese Lunar Calendar information and send the converted information to the corresponding display units on the display screen. If the requested function is setting of alarm type "1", allow the pre-setting of multiple daily alarms. If the requested function is setting of alarm type "2", allow the date alarm setting. When the date information of timing control circuit is the same as the pre-set date, the audio integrated circuit will be triggered to broadcast voice information through loudspeaker to notify the user.The keypad control circuit (3) consists of an alarm reset key (37) for resetting the signal for triggering the loudspeaker (35), so that the audio alarm is interrupted (cleared).In conclusion, the present invention has the following advantages:1. This invention can display the date of the Chinese Lunar Calendar, date of National Calendarof R.O.C./Gregorian Calendar, year, day of week and time on the same display screen at the same time.2. This invention provides instant date conversion between date of Lunar Calendar and date ofNational Calendar of R.O.C./Gregorian Calendar and both the date for conversion and the converted date are displayed on the same display screen at the same time, so that the user can find out; the National Calendar of R.O.C/Gregorian Calendar date and its corresponding Lunar Calendar date without the need of the switchover of display screen.3. This invention provides multiple calendar information (the Chinese Lunar Calendar, NationalCalendar of R.O.C. and Gregorian Calendar) used for Chinese custom. It can be used for years and as replacement of the use of printed paper calendar, so that less paper is used and better environment protection is achieved.4. This invention supports the pre-set of multiple time and date alarm notification. When thepre-set time/date is arrived, an audio notification is created to notify the user. This feature is quite suitable for notifying the user of the important date, activity,…etc.原文题目: Electronic calendar 译文题目:电子日历电子日历的背景1.发明的领域本发明是有关中国阳历和阴历之间相互转化的一个电子日历。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
中英文翻译基于实时钟芯片的电子万年历的设计摘要:电子万年历以AT89S52单片机为控制核心,采用Dallas 公司的DS12C887A 实时钟芯片构成计时电路,实现了时间和日期的显示,还增加了温度显示和整点报时的功能。
文章对该系统的硬件电路、工作原理做了详细介绍,同时给出了软件设计的流程图及主要程序源代码。
关键词:单片机,实时钟.温度测量 1. 引言电子万年历在家庭居室、学校、车站和广场使用越来越广泛,给人们的生活、学习、工作带来极大的方便。
针对以往的电子万年历断电后需重新调整时间与日期,且计时误差大的现象。
本系统设计采用实时钟芯片(DS12C887A)作为计时器件,该芯片内部自带晶体振荡器,这样就有效的保证了计时的精确性,并且内部自带铿电池使得在断电情况能继续更新时间信息。
本设计采用AT89S52作为主控制器,为了提高电路的实用性加入温度测量电路、报时和闹钟功能。
2. 系统硬件的设计 电路原理图如图所示:该系统的结构框图系统的工作原理是:主控制器每隔一段时间(小于一秒钟)读一次时钟芯片的内部实时时钟芯音频信号产生及驱动电电源电路单片机控制器AT89S52数码显示管按键电路温度测量电路寄存器的值,将读出的日历、时间信息实时的显示在LED数码显示器一上。
同时,主控制器不断的扫描按键电路和温度测量电路,当有键按下时,识别出按键的值并调整相应的时间或日历的值再写入时钟芯片内部。
温度数据由测量电路(DS1280)获得的温度值送入显示电路显示。
2. 1电源电路为了减少电路成本,本系统电源电路由变压器变压、三端集成稳压(L7805>电路产生5V,具有简单、可靠、价格低廉等特点。
2. 2主控制器主控制器采用ATMEL公司的最新系列单片机产品AT89S52。
该单片机除了拥有MCS-51系列单片机的所有优点外,内部还具有8KB的在系统可编程FLASH存储器,低功耗的空闲和掉电模式,极大的降低了电路的功耗。
另外,还具有一个看门狗电路,为电路的可靠工作提供了更大的保证。
2. 3数码管显示电路显示电路采用具有高亮度、使用寿命长、价格低廉等特点的LED数码管。
整个显示电路由LED数码管和显示驱动电路和译码电路构成。
由于本系统中显示的内容较多,共需要16个数码管,分别用八位显示年、月、日,四位显示时间,二二位显示星期,二位显示温度。
为了节省控制器的资源,在控制器和显示器之间加入一个译码电路使本来需要16根控制线的电路变成只需四根控制线,极大的节省了系统资源。
该译码器由两个3-8译码器构成。
2. 4实时钟芯片本设计采用美国Dallas公司的DS12C887A,该芯片能够自动产生世纪、年、月、日、时、分、秒等时间信息。
利用内部的世纪寄存器,配合软件就能解决’千年’,的问题。
该芯片内部自带有铿电池,外部掉电时,其内部的时间信息还能够保持10年之久。
对于一天内的时间记录有12小时制和24小时制两种模式。
时间的表示方法也有两种,一种用二进制数表示,另一种用BCD码表示。
该芯片内部带有128字节的RAM,其中11字节用来存储时间信息,4字节用来存储芯片的控制信息,称为控制寄存器,113字节通用RAM可供用户存储临时信息。
此外,用户还可以对芯片进行编程控制输出各种方波,并可对其内部的三路中断通过软件进行屏蔽。
2. 5按键与温度测且电路本系统为了使电路更简单,按键电路只设计了三个按键,分别是’设置’、’+’、’-’,三个键用来调整日历以及时钟。
本系统为了提高电路的实用性,增加了一个温度显示功能。
该系统的温度测量电路采用Dallas公司的DS1280。
该器件由于其具有价格低廉、电路简单、测量精确等优点。
2. 6音频信号产生及驱动电路本电路的功能是接收控制电路发送来的整点报时及定时信号,根据系统设定产生不同频率的音频信号,由驱动电路加以放大驱动扬声器发出声音,从而实现整点报时及闹钟的功能。
3. 系统的软件设计本系统程序由主程序、中断服务函数和多个子函数构成。
主函数主要完成各子函数和中断函数的初始化。
定时中断函数主要完成时钟芯片的定时扫描及键盘扫描。
时钟芯片的读写函数主要是将时间、日历信息读出来,并把要修改的具体值写入时钟芯片内部。
Design of the digital Perpetual Calendar based onreal-time clock chipAbstract: This Electronic calendar uses the AT89S52 microcontroller as the core for the control. Time Circuit which is constituted by Dallas's DS12C887A real-time clock chip achieved a time and date display, it increased functionality for the temperature display and the whole point timekeeping. This paper discusses the hardware circuit of the system, principle in detail, and gives the flow chart of the software design and the major source code. Keywords: microcontroller; real-time clock; Temperature measurement1. IntroductionE-calendar-bedroom at home, schools, stations and more and more extensive use of plaza for people's lives, study, work great convenience. Electronics calendar for the past need to re-adjust after power-off time and date, and time is a big error. Designed the system using real-time clock chip (DS12C887A) as a timer parts, the chip comes with an internal crystal oscillator, so that effectively guarantee the accuracy of the time and hang own internal battery power makes the situation will continue to update the time information . This design uses AT89S52 as the main controller, in order to improve the practicality of the circuit add temperature measurement circuit, timekeeping and alarm functions.2. System hardware designSchematic circuit shown in Figure 2:System architecture diagram2.1 Power Supply CircuitIn order to reduce circuit costs, the system power supply circuit by the transformer , three-terminal integrated regulator (L7805> circuit 5V, has a simple, reliable, inexpensive and so on.2.2 Host ControllerHost controller using ATMEL's latest MCU Products AT89S52. Apart from the single-chip microcomputer has a MCS-51 series single-chip all the benefits of things, also has 8KB of internal in-system programmable FLASH memory, free and low-power brown-out mode, greatly reducing the power circuit. In addition, also has a watchdog circuit, a reliable job for the circuit provides greater assurance.2.3 digital tube display circuitShow circuit with a high brightness, long life, low cost features such as the LED digital tube. Throughout the show circuit by the digital control and display LED drive circuit and decoding circuit. Because of the system to display the contents of more, a total of 16 digital tube, respectively, with eight shows year, month, day, four show time, show that 22 weeks,2 show the temperature. Controller in order to save resources, between the controller and displays add a decoding circuit 16 so that would have required the line ofReal-Time Clock Audio signal generator and driverSingle-ch ipcontroller AT89S52LEDKey circuitTemperature measurement circuitPower circuitcontrol into the circuit only 4 control lines, a great save system resources. The decoder by the decoder constitute both 3-8.2.4 Real-time clock chipThis design uses the United States Dallas company DS12C887A, the chip can automatically generate century, year, month, day, hour, minute, second, such as time information. Century the use of internal registers with the software will be able to resolve the 'Millennium', the problem. The chip has its own internal battery-keng, external brown-out, the internal time information also be able to maintain for 10 years. Time for a single day record of 12 hours and there is a 24-hour mode. Time Table Ways that also has two kinds of binary numbers, and the other with BCD code express. The chip with 128 bytes of internal RAM, one of 11 bytes used to store time information,4 bytes of memory chips used to control information, known as the control register,113-byte general-purpose RAM for users to store temporary information. In addition, users can also program the chip to control a variety of square-wave output, and its internal three-way through the software interrupt shielding.2.5 Buttons and temperature measurements and circuitThe system in order to make the circuit more easy, button circuit design only three keys, which are 'set','+','-', three keys to adjust the calendar and clock. The system in order to improve the practicality of the circuit, an increase of a temperature display. The system temperature measurement circuit using Dallas's DS1280. The device because of its low price, easy circuits, measurement precision, etc..2.6 audio signal generator and driver circuitThe circuit's function is to receive control circuit to send to the entire point of time and timing signal, according to system settings produce different frequencies of audio signals, amplification by the drive circuit to drive speakers to voice their opinions inorder to realize the whole point timekeeping and alarm functions.3. system software designProcedures of the system by the main program interrupt service function and pose a number of Functions. Main function and interrupt the completion of the initialization function. Timer interrupt function main timing clock chip to complete scanning and keypad scanning. Clock chip main function is to read and write time, read out the calendar information and to amend the specific value of the internal write clock chip. The main source code is as follows:11。