单片机电子万年历中英文对照外文翻译文献

合集下载

基于单片机的多功能万年历设计毕业设计论文

基于单片机的多功能万年历设计毕业设计论文

毕业设计(论文)基于单片机的多功能万年历设计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.发明的领域本发明是有关中国阳历和阴历之间相互转化的一个电子日历。

基于AT89S52单片机和DS1302的电子万年历设计英文翻译

基于AT89S52单片机和DS1302的电子万年历设计英文翻译

英文翻译OverviewThe 8051 family of micro controllers is based on an architecture which is highly optimized for embedded control systems. It is used in a wide variety of applications from military equipment to automobiles to the keyboard on your PC. Second only to the Motorola 68HC11 in eight bit processors sales, the 8051 family of microcontrollers is available in a wide array of variations from manufacturers such as Intel, Philips, and Siemens. These manufacturers have added numerous features and peripherals to the 8051 such as I2C interfaces, analog to digital converters, watchdog timers, and pulse width modulated outputs. Variations of the 8051 with clock speeds up to 40MHz and voltage requirements down to 1.5 volts are available. This wide range of parts based on one core makes the 8051 family an excellent choice as the base architecture for a company's entire line of products since it can perform many functions and developers will only have to learn this one platform.The basic architecture consists of the following features:12which can be individually accessed34567paces for DA TA and CODE memoryOne 8051 processor cycle consists of twelve oscillator periods. Each of the twelve oscillator periods is used for a special function by the 8051 core such as op code fetches and samples of the interrupt daisy chain for pending interrupts. The time required for any 8051 instruction can be computed by dividing the clock frequency by 12, inverting that result and multiplying it by the number of processor cycles required by the instruction in question. Therefore, if you have a system which is using an 11.059MHz clock, you can compute the number of instructions per second by dividing this value by 12. This gives an instruction frequency of 921583 instructions per second. Inverting this will provide the amount of time taken by each instruction cycle (1.085 microseconds).Memory OrganizationThe 8051 architecture provides the user with three physically distinct memory spaces which can be seen in Figure A - 1. Each memory space consists of contiguous addresses from 0 to the maximum size, in bytes, of the memory space. Address overlaps are resolved by utilizing instructions which refer specifically to a given address space. The three memory spaces function as described below.The CODE SpaceThe first memory space is the CODE segment in which the executable program resides. This segment can be up to 64K (since it is addressed by 16 address lines) . The processor treats this segment as read only and will generate signals appropriate to access a memory device such as an EPROM. However, this does not mean that the CODE segment must be implemented using an EPROM. Many embedded systems these days are using EEPROM which allows the memory to be overwritten either by the 8051 itself or by an external device. This makes upgrades to the product easy to do since new software can be downloaded into the EEPROM rather than having to disassemble it and install a new EPROM. Additionally, battery backed SRAM can be used in place of an EPROM. This method offers the same capability to upload new software to the unit as does an EEPROM, and does not have any sort of read/write cycle limitations such as an EEPROM has. However, when the battery supplying the RAM eventually dies, so does the software in it. Using an SRAM in place of an EPROM in development systems allows for rapid downloading of new code into the target system. When this can be done, it helps avoid the cycle of programming/testing/erasing with EPROM, and can also help avoid hassles over an in circuit emulator which is usually a rare commodity.In addition to executable code, it is common practice with the 8051 to store fixed lookup tables in the CODE segment. To facilitate this, the 8051 provides instructions which allow rapid access to tables via the data pointer (DPTR) or the program counter with an offset into the table optionally provided by the accumulator. This means that oftentimes, a table's base address can be loaded in DPTR and the element of the table to access can be held in the accumulator. The addition is performed by the 8051 during the execution of the instruction which can save many cycles depending on the situation. An example of this is shown later in this chapter in.The DATA SpaceThe second memory space is the 128 bytes of internal RAM on the 8051, or the first 128 bytes of internal RAM on the 8052. This segment is typically referred to as the DA TA segment. The RAM locations in this segment are accessed in one or two cycles depending on the instruction. This access time is much quicker than access to the XDA TA segment because memory is addressed directly rather than via a memory pointer such as DPTR which must first be initialized. Therefore, frequently used variables and temporary scratch variables are usually assigned to the DATA segment. Such allocation must be done with care, however, due to the limited amount of memory in this segment.V ariables stored in the DATA segment can also be accessed indirectly via R0 or R1. The register being used as the memory pointer must contain the address of the byte to be retrieved or altered. These instructions can take one or two processor cycles depending on the source/destination data byte.The DATA segment contains two smaller segments of interest. The first sub segment consists of the four sets of register banks which compose the first 32 bytes of RAM. The 8051 can use any of these four groups of eight bytes as its default register bank. The selection of register banks is changeable at any time via the RS1 and the RS0 bits in the Processor Status Word (PSW). These two bits combine into a number from 0 to 3 (with RS1 being the most significant bit) which indicates the register bank to be used. Register bank switching allows not only for quick parameter passing, but also opens the door for simplifying task switching on the 8051.The second sub-segment in the DA TA space is a bit addressable segment in which each bit can be individually accessed. This segment is referred to as the BDA TA segment. The bit addressable segment consists of 16 bytes (128 bits) above the four register banks in memory. The 8051 contains several single bit instructions which are often very useful in control applications and aid in replacing external combinatorial logic with software in the 8051 thus reducing parts count on the target system. It should be noted that these 16 bytes can also be accessed on a "byte-wide" basis just like any other byte in the DATA space.Special Function RegistersControl registers for the interrupt system and the peripherals on the 8051 are contained in internal RAM at locations 80 hex and above. These registers are referred to as special functionRegisters (or SFR for short). Many of them are bit addressable. The bits in the bit addressable SFR can either be accessed by name, index or bit address. Thus, you can referto the EA bit of the Interrupt Enable SFR as EA, IE.7, or 0AFH. The SFR control things such as the function of the timer/counters, the UART, and the interrupt sources as well as their priorities. These registers are accessed by the same set of instructions as the bytes and bits in the DATA segment. A memory map of the SFRS indicating the registers..The IDATA Spac eCertain 8051 family members such as the 8052 contain an additional 128 bytes of internal RAM which reside at RAM locations 80 hex and above. This segment of RAM is typically referred to as the IDATA segment. Because the IDA TA addresses and the SFR addresses overlap, address conflicts between IDATA RAM and the SFRs are resolved by the type of memory access being performed, since the IDA TA segment can only be accessed via indirect addressing modes.The XDATA Space.The final 8051 memory space is 64K in length and is addressed by the same 16 address lines as the CODE segment. This space is typically referred to as the external data memory space (or the XDA TA segment for short). This segment usually consists of some sort of RAM (usually an SRAM) and the I/O devices or external peripherals to which the 8051 must interface via its bus. Read or write operations to this segment take a minimum of two processor cycles and are performed using either DPTR, R0, or R1. In the case of DPTR, it usually takes two processor cycles or more to load the desired address in addition to the two cycles required to perform the read or write operation. Similarly, loading R0 or R1 will take minimum of one cycle in addition to the two cycles imposed by the memory access itself. Therefore, it is easy to see that a typical operation with the XDA TA segment will, in general, take a minimum of three processor cycles. Because of this, the DA TA segment is a very attractive place to store any frequently.It is possible to fill this segment entirely with 64K of RAM if the 8051 does not need to perform any I/O with devices in its bus or if the designer wishes to cycle the RAM on and off when I/O devices are being accessed via the bus. Methods for performing this technique will be discussed in chapters later in this book.On-Board Timer/CountersThe standard 8051 has two timer/counters (other 8051 family members have varying amounts), each of which is a full 16 bits. Each timer/counter can be function as a freerunning timer (in which case they count processor cycles) or can be used to count falling edges on the signal applied to their respective I/O pin (either T0 or T1). When used as a counter, the input signal must have a frequency equal to or lower than the instruction cycle frequency divided by 2 (ie: the oscillator frequency /24) since the incoming signal is sampled every instruction cycle, and the counter is incremented only when a 1 to 0 transition is detected (which will require two samples). If desired, the timer/counters can force a software interrupt when they overflow.The TCON (Timer Control) SFR is used to start or stop the timers as well as hold the overflow flags of the timers. The TCON SFR is detailed below in Table A - 7. The timer/counters are started or stopped by changing the timer run bits (TR0 and TR1) in TCON. The software can freeze the operation of either timer as well as restart the timers simply by changing the Trx bit in the TCON register. The TCON register also contains the overflow flags for the timers. When the timers overflow, they set their respective flag (TF0 or TF1) in this register. When the processor detects a 0 to 1 transition in the flag, an interrupt occurs if it is enabled. It should be noted that the software can set or clear this flag at any time. Therefore, an interrupt can be prevented as well as forced by the software.Microcomputer interfaceA microcomputer interface converts information between two forms .Outside the microcomputer the information handled by an electronic system exists as a physical signals, but within the program , it is represented numerically . The function of any interface can be broken down into a number of operations which modify the data in some way ,so than the process of conversion between the external and internal forms is carried out in a number or steps.This can be illustrated by means of an example such as than or Fig 10-1,which shows an interface between a microcomputer and a transducer producing a continuously variable analog signal. transducers often produce very small out requiring amply frication, or they may generate signals .in a form that needs to be converted again before being handled by the rest of the system .For example ,many transducers these variable resistance which must be converted to a voltage by a special circuit. This process of converting the transducer output into a voltage4 signal which can be connected to the rest of the system is called signal conditioning .In the example of Figure 10-1, the sigma conditioning section translates the range lf voltage or current signals from the transducer to one which can be converted to digital forum by an analog-to-digital converter.。

毕业设计---基于单片机的多功能电子万年历的设计

毕业设计---基于单片机的多功能电子万年历的设计

基于单片机的多功能电子万年历的设计摘要随着科技的快速发展,自从观太阳、摆钟到现在电子钟,人类不断研究,不断创新纪录。

本文主要介绍了基于单片机的智能电子万年历的研制,该万年历能够实时显示公历年、月、日、时、分、秒,以及对应的农历日期、24节气、天干地支、闹铃功能,同时还能够实时测取环境温度。

本系统的硬件部分主要由A VR单片机、时钟芯片、温度传感器等部件组成,文中给出了详细的硬件设计实现及相关电路图;软件部分主要包含公历转农历的算法设计模块、显示模块、时间的读取、温度的检测模块,按键的扫描输入模块等,文中给出了系统的软件程序流程图及各功能模块的软件程序清单,最后介绍了整体系统的设计实现、仿真及调试过程,给出了下一步的改进方案等。

关键词:单片机;液晶技术;万年历;时钟芯片Design of Multifunctional digital Perpetual Calendar Based on MCUAbstractWith the development of technology,Since the concept of the sun, Baizhong, andnow the electronic bell,human beings continue to study and constant innovation record。

This paper-based Microcontroller Development of Intelligent electronic calendar, The calendar can display real-time in the calendar year, month, day, hours, minutes and seconds,a nd the correspond ing date of the Lunar New Year, 24 Solar Terms,at the same time also to real-time measurement from the ambient temperature,In addition to the user through the keyboard input years of history,for the correspond ing period of the Lunar.The system hardware from some of the major A VR microcontroller, a number of digital control, decoder, the clock chip,temperature sensors and other components,the paper gives a detailed design and implementation of hardware and related circuit;Software contains some of the major Lunar calendar to the algorithm design module,dynamic digital display modules,time to read,temperature detection module,Press enter the scanning module.In this paper, the system software modules and flow chart of the list of software programs,Finally, the realization of the overall system design, simulation and debugging process, the next step is the improvement programmes.Keywords:MCU;crystal technology;Calendar;Clock chip目录引言 (1)第1章绪论 (2)1.1课题的背景与意义 (2)1.2 数字万年历的现状与发展 (2)1.3 论文的主要工作及章节安排 (3)1.4 本章小结 (3)第2章方案论证比较.............................................................................. (4)2.1 多功能数字万年历系统概述 (4)2.2计时方案 (4)2.3温度检测方案 (5)2.4显示方案 (5)2.5本章小结 (5)第3章系统硬件设计 (6)3.1 主控制器ATmega16 单片机介绍 (6)3.2 时钟电路DS1302 (6)3.3 温度检测DS18B20 (7)3.4 动态显示 (8)3.5 键盘接口 (8)3.6 语音闹铃模块 (8)3.7 电源设计 (9)3.8本章小结 (11)第4章系统软件设计 (12)4.1 公历计算显示程序设计 (13)4.1.1 DS1302 内部寄存器 (13)4.1.2 时间读取程序设计 (15)4.2 农历转换程序设计 (16)4.2.1 公历转农历算法研究 (16)4.2.2 干支纪年简介 (18)4.2.3 公历转农历程序 (18)4.3 温度测量程序设计 (20)4.3.1 DS18B20 的测温原理 (20)4.3.2 温度程序 (21)4.4 二十四节气算法研究 (23)4.5系统仿真 (24)4.6本章小结 (25)结论与展望 (26)致谢 (27)参考文献 (28)附录 A 电子万年历原理图 (29)附录 B 外文文献与译文 (30)英文原文: (30)中文译文: (33)附录 C 参考文献题录及摘要 (35)附录 D 电子万年历源程序 (37)插图清单图2-1 数字万年历系统框图 (4)图3-1 DS1302与ATmega16连接图 (7)图3-2 DS18B20与AtMEGA16连接图 (8)图3-3 报时电路 (9)图3-4 稳压电源原理图 (10)图3-5 电源电路 (10)图4-1 系统程序流程图 (13)图4-2 公历程序流程图 (14)图4-3 DS18B20测温原理 (21)表格清单表3-1 LCD12864显示内容 (8)表4-1 DS1302的寄存器及其控制字 (14)表4-2 RS位配置 (15)引言人类的日常生活离不开时间,任何具有周期性变化的自然现象都可以用来测量时间。

基于单片机的电子万年历的设计文献综述

基于单片机的电子万年历的设计文献综述

理工学院毕业设计(论文)文献综述基于单片机的电子万年历的设计学生:学号:专业:指导教师:理工学院自动化与电子信息学院二O一五年三月前言在当代繁忙的工作与生活中,时间与我们每一个人都有非常密切的关系,每个人都受到时间的影响。

为了更好的利用我们自己的时间,我们必须对时间有一个度量,因此产生了钟表。

钟表的发展是非常迅速的,从刚开始的机械式钟表到现在普遍用到的数字式钟表,即使现在钟表千奇百怪,但是它们都只是完成一种功能——计时功能,只是工作原理不同而已,在人们的使用过程中,逐渐发现了钟表的功能太单一,没有更大程度上的满足人们的需求。

因此在这里,我想能不能把一些辅助功能加入钟表中。

人类不断研究,不断创新纪录。

发展到现在人们广泛使用的万年历。

本文主要查阅近几年有关万年历的文献期刊。

诸如定时自动报警、按时自动打铃、时间程序自动控制、定时广播、自动起闭路灯、定时开关烘箱、通断动力设备、甚至各种定时电气的自动启用等,但是所有这些,都是以钟表数字化为基础的。

因此,研究万年历及扩大其应用,有着非常现实的意义。

它可以对年、月、日、周日、时、分、秒进行计时,对于数字电子万年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒等信息,还具有时间校准等功能。

正文1.本课题的研究意义低功耗实时时钟电路DS1302。

它可以对年、月、日、周、日、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小。

对于数字电子万年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒和温度等信息,还具有时间校准等功能。

该电路采用AT89S51单片机作为核心,功耗小,能在3V的低压工作,电压可选用3—5V电压供电。

近些年我国开始重视电子万年历的开发与设计,但是中国电子万年历出现的问题中,许多不容乐观,如产业结构不合理、产业集中于劳动力密集行产品;技术密集型产品明显落后于发达工业国家;生产要素决定性作用正在消弱;产业能源消耗大、产出率低、环境污染严重、对自然资源破坏力大;企业总体规模偏小、技术创新能力薄弱;管理水平落后等。

基于单片机C52的万年历电子综合设计论文

基于单片机C52的万年历电子综合设计论文

目录1 绪论 (1)2 总体设计方案 (2)2.1设计思路 (2)2.2设计方案 (2)2.3方案比较论证 (2)2.4总体设计方框图 (3)3 设计原理与分析 (4)3.1硬件电路主要芯片的功能介绍 (4)3.1.1单片机主控制器 (4)3.1.2 温度传感器芯片 (5)3.1.3 时钟芯片DS1302 (9)3.1.4 16*2LCD液晶显示1602 (12)4 硬件电路 (15)4.1单片机主控制模块的设计 (15)4.2时钟电路模块的设计 (15)4.3温度采集模块设计 (16)4.4功能按钮设计 (16)4.516*2LCD1602液晶显示电路设计 (17)4.6总体电路图 (17)5 系统软件设计 (18)5.1系统模块的功能分划分 (18)5.2总体程序流程框图 (18)5.3时钟调整时间的流程图 (20)5.4修改键“UP”的功能流程图 (21)5.5温度转换流程图 (22)6 系统仿真测试 (23)6.1KEIL的使用 (23)6.2P ROTUES软件仿真 (28)致谢 (31)参考文献 (32)附录一总体电路的PCB板图 (33)附录二设计电路的仿真电路图 (34)附录二万年历源程序 (35)1 绪论随着电子技术的迅速发展,特别是随大规模集成电路出现,给人类生活带来了根本性的改变。

由其是单片机技术的应用产品已经走进了千家万户。

其中电子万年历就是一个典型的例子。

而且在万年历的基础上还可以扩展其它的实用功能,比如温度计。

万年历是采用数字电路实现对.时,分,秒.数字显示的计时装置,广泛用于个人家庭,车站,码头办公室等公共场所,成为人们日常生活中不可少的必需品,由于数字集成电路的发展和石英晶体振荡器的广泛应用,使得数字钟的精度,远远超过老式钟表,钟表的数字化给人们生产生活带来了极大的方便,而且大大地扩展了钟表原先的报时功能。

诸如定时自动报警、按时自动打铃、时间程序自动控制、定时广播、自动起闭路灯、定时开关烘箱、通断动力设备、甚至各种定时电气的自动启用等,但是所有这些,都是以钟表数字化为基础的。

单片机课程设计论文---万年历

单片机课程设计论文---万年历

单片机课程设计论文设计题目:基于DS12CR887时钟芯片的电子万年历目录:前言---------------------------------------------------P3摘要---------------------------------------------------P4正文---------------------------------------------------P4-P9(1)设计方案的对比、选择及确定------------------------------P4-P5(2)设计思路------------------------------------------------P5-P6(3)单元电路设计--------------------------------------------P6-P7(4)程序设计流程--------------------------------------------P8-P9(5)课程设计心得--------------------------------------------P10-P13 参考文献-----------------------------------------------P14 附录---------------------------------------------------P15(1)附录一原器件清单----------------------------------------P15(2)附录二系统设计原理图------------------------------------P16(3)附录三系统实物图----------------------------------------P17(3)附录四源程序清单----------------------------------------P18-P31前言随着电子技术的不断发展,单片机技术在设计中所体现在出来的优势越来越明显,它不仅是电子信息类专业的一个重要部分,而且在其它类专业工程中也是不可缺少的。

基于单片机的万年历设计仿真制作论文

基于单片机的万年历设计仿真制作论文

绪论在现代社会中,时间是我们每个人都无法改变和控制的东西。

在生活中我们通过太阳、钟表、手机等来查询时间。

现代社会我们通过很多方法查询时间,而且还能够获得很多和我们生活相关的一些信息,例如现在的年份,月份,还有实时的温度情况。

在这种情况下,人们研究出了万年历这样一种小巧而且显示效果比较好的一种电子产品,电子万年历现在在很多家庭中都可以看到,应用比较广泛,而且人们也对这种电子产品的方便和功能十分认可。

单片机是非常实用的一个电子元器件,通过单片机来制作电子万年历也是一个很实用的题目。

因为这个课题可以给我们提供更大发展空间,让我们能够用自己的想法去做。

在制作的过程中,不仅考验了我们的创新能力,而且还让我们的思路更加清晰。

通过对电子万年历的设计仿真和制作这个课题的研究,让我能够对单片机有了更深层次的了解,虽然做的不是很好,但是,通过这次设计让我有信心去完成更多的小制作,小设计。

这次电子万年历在设计上主要使用了AT89C52单片机作为主控核心,DS1302时钟芯片提供时钟、DS18B20温度传感器、LCM1602点阵液晶显示屏显示。

在选择单片机的时候,虽然两种型号只差了一点,但是从功能和价格上都很相似,但是我们还是选择了AT89C52单片机,因为它的功能和性价比都很高,而且也很容易能够满足我们的设计,性能十分强悍。

这样我们不仅能够节约成本,而且使得该元器件得到了全面的发挥。

AT89C52单片机芯片是一个电压低,性能高的8位单片机。

单片机元器件采用密度高、非易失性存储技术生产。

兼容标准MCS-51指令系统,单片机内有通用的8位CPU和Flash存储单元。

AT89C52单片机在现在的电子行业中拥有很广泛的使用。

在选择时钟芯片的时候,我们根据万年历所需的功能,具有年月日,时分秒等等的功能,而且要价格低,使用方面的特点,我们选择了DS1302时钟芯片这个器件。

该器件价格低,成本小,使用方便的优点,而且在时间显示方面误差较小,而且采用串行数据传输,能够提供掉电保护的功能。

单片机设计万年历文献综述

单片机设计万年历文献综述

基于单片机的电子万年历设计文献综述一、本课题的研究意义低功耗实时时钟电路DS1302。

它可以对年、月、日、周日、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小。

对于数字电子万年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒和温度等信息,还具有时间校准等功能。

该电路采用AT89S51单片机作为核心,功耗小,能在3V的低压工作,电压可选用3—5V电压供电。

近些年我国开始重视电子万年历的开发与设计,但是中国电子万年历出现的问题中,许多不容乐观,如产业结构不合理、产业集中于劳动力密集行产品;技术密集型产品明显落后于发达工业国家;生产要素决定性作用正在消弱;产业能源消耗大、产出率低、环境污染严重、对自然资源破坏力大;企业总体规模偏小、技术创新能力薄弱;管理水平落后等。

中国电子万年历产业发展已到了岔口;中国电子万年历产业生产企业急需选着发展方向二、本课题国内外研究现状当今社会,应用单片机的产品已经渗透到我们生活的各个领域,几乎很难找到哪个领域没有单片机的足迹。

现在,这种单片机的使用领域已十分广泛,如智能仪表、实时工控、通讯设备、导航系统、家用电器等,这些都离不开单片机。

因此,单片机的学习、开发与应用将造就一批计算机应用与智能化控制的工程师和科学家。

科技越发达,智能化的东西就越多。

学习单片机是社会发展的必然需求,也是大学期间的必修课。

在国内单片机学习呈上升趋势,但是很多人学习时没有头绪,不知道从何下手。

面对种类繁多的各类开发板,仿真器,让初学者无所事从,不但多花钱还多走不少弯路,学生学习单片机没有大的资金投入,能够做到少花钱多办事才是最好的。

8051系列是我们在大学课堂中学习的。

因此本课题围绕8051系列单片机设计,从电路图绘制,PCB板设计,硬件焊接,程序设计,在线仿真到各项功能实现,目的在于让学生将课堂上学来的理论知识与实践相结合,提高对单片机的认识,学习专业软件的操作,熟悉制作过程,掌握一门技能,加强专业知识的掌握。

单片机的外文文献及中文翻译

单片机的外文文献及中文翻译

单片机的外文文献及中文翻译一、外文文献Title: The Application and Development of SingleChip Microcontrollers in Modern ElectronicsSinglechip microcontrollers have become an indispensable part of modern electronic systems They are small, yet powerful integrated circuits that combine a microprocessor core, memory, and input/output peripherals on a single chip These devices offer significant advantages in terms of cost, size, and power consumption, making them ideal for a wide range of applicationsThe history of singlechip microcontrollers can be traced back to the 1970s when the first microcontrollers were developed Since then, they have undergone significant advancements in technology and performance Today, singlechip microcontrollers are available in a wide variety of architectures and capabilities, ranging from simple 8-bit devices to complex 32-bit and 64-bit systemsOne of the key features of singlechip microcontrollers is their programmability They can be programmed using various languages such as C, Assembly, and Python This flexibility allows developers to customize the functionality of the microcontroller to meet the specific requirements of their applications For example, in embedded systems for automotive, industrial control, and consumer electronics, singlechip microcontrollers can be programmed to control sensors, actuators, and communication interfacesAnother important aspect of singlechip microcontrollers is their low power consumption This is crucial in batterypowered devices and portable electronics where energy efficiency is of paramount importance Modern singlechip microcontrollers incorporate advanced power management techniques to minimize power consumption while maintaining optimal performanceIn addition to their use in traditional electronics, singlechip microcontrollers are also playing a significant role in the emerging fields of the Internet of Things (IoT) and wearable technology In IoT applications, they can be used to collect and process data from various sensors and communicate it wirelessly to a central server Wearable devices such as smartwatches and fitness trackers rely on singlechip microcontrollers to monitor vital signs and perform other functionsHowever, the design and development of systems using singlechip microcontrollers also present certain challenges Issues such as realtime performance, memory management, and software reliability need to be carefully addressed to ensure the successful implementation of the applications Moreover, the rapid evolution of technology requires developers to constantly update their knowledge and skills to keep up with the latest advancements in singlechip microcontroller technologyIn conclusion, singlechip microcontrollers have revolutionized the field of electronics and continue to play a vital role in driving technological innovation Their versatility, low cost, and small form factor make them an attractive choice for a wide range of applications, and their importance is expected to grow further in the years to come二、中文翻译标题:单片机在现代电子领域的应用与发展单片机已成为现代电子系统中不可或缺的一部分。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 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。

相关文档
最新文档