单片机电子万年历系统的设计与研究(编辑修改稿)内容摘要:

精心指导,同时还在思想、生活上给我以无微不至的关怀,在此谨向 张 老师致以诚挚的谢意和崇高的敬意。 我还要感谢在一起愉快的度过毕业论文小组的同学们,正是由于你们的帮助和支持,我才能克服一个一个的困难和疑惑,直至 毕业设计 的顺利完成。 同时,我要感谢电气工程系的各位老师,正是由于他们的传道、授业、解 惑,让我学到了专业知识,并从他们身上学到了如何求知治学、如何为人处事。 另外,感谢电气工程系 10 届同学的帮助和勉励。 同窗之谊和手足之情,我将终生难忘。 路漫漫其修远兮,吾将上下而求索。 我愿在未来的学习和工作过程中,以更加丰厚的成果来答谢曾经关心、帮助和支持过我的所有领导、老师、同学、和朋友。 在 毕业设计 即将完成之际,我的心情无法平静,从开始进入课题到论文的顺利完成,有多少可敬的师长、同学、朋友给了我无言的帮助,在这里请接受我诚挚的谢意 ! 最后 , 我要感谢培养我长大含辛茹苦的父母,谢谢你们 ! 陕西理工学院毕业设计 第 16 页 共 42 页 参考文献 [ 1] 华成英 .模拟电子技术基础 .高等教育出版社 ,2020 [ 2] 阎 石 .数字电子技术基础 .高等教育出版社 ,2020 [ 3] 邱关源 .电路 .高等教育出版 ,2020 [ 4] 何立民 .单片机原理应用与接口技术 .北京航空航天大学出版社 ,2020 [ 5] 谭浩强 .C 语言程序设计(第三版) .清华大学出版社 ,2020 [ 6] 李建忠 .单片微型机原理与应用 .西安电子科技大学出版社 ,2020. [ 7] 李增国 .传感器与检测技术 .北京航空航天大学出版社 .2020. [ 8] 房小翠 ,王金凤 .单片微型计算机与机电接口技术 .北京国防工业出版社 ,2020. [ 9] 孙育才 .ATMEL 新型 AT89S52 系列单片机及其应用 .清华大学出版社 ,2020. 陕西理工学院毕业设计 第 17 页 共 42 页 AT89S52 英文资料 Description The AT89s52 is a lowpower, highperformance CMOS 8bit microputer with 8K bytes of Flash programmable and erasable read only memory (PEROM). The device is manufactured using Atmel’s highdensity nonvolatile memory technology and is patible with the industrystandard 80C51 and 80C52 instruction set and pinout. The onchip Flash allows the program memory to be reprogrammed insystem or by a conventional nonvolatile memory programmer. By bining a versatile 8bit CPU with Flash on a monolithic chip, the Atmel AT89s52 is a powerful microputer which provides a highlyflexible and costeffective solution to many embedded control applications. Pin Configurations The AT89s52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, three 16bittimer/counters, a sixvector twolevel interrupt architecture, a fullduplex serial port, onchip oscillator, and clock circuitry. In addition, the AT89s52 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Powerdown mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next hardware reset. Pin Description VCC Supply voltage. GND Ground. Port 0 Port 0 is an 8bit open drain bidirectional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as highimpedance inputs. Port 0 can also be configured to be the multiplexed loworder address/data bus during accesses to external program and data memory. In this mode, P0 has internalpullups. Port 0 also receives the code bytes during Flash programming and outputs the code bytes during program verification. External pullups are required during program verification. Port 1 Port 1 is an 8bit bidirectional I/O port with internal pullups. The Port 1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal pullups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current(IIL ) because of the internal pullups. In addition, and can be configured to be the timer/counter 2 external count input () and the timer/counter 2 trigger input (), respectively, as shown in the following table. 陕西理工学院毕业设计 第 18 页 共 42 页 Port 1 also receives the loworder address bytes during Flash programming and verification. Port Pin Alternate Functions T2(external count input to Timer/Counter2) T2EX(Timer/Counter2 capture/reload trigger and direction control) Port 2 Port 2 is an 8bit bidirectional I/O port with internal pullups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the internal pullups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL ) because of the internal pullups. Port 2 emits the highorder address byte during fetches from external program memory and during accesses to external data memory that use 16bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pullups when emitting 1s. During accesses to external data memory that use 8bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the highorder address bits and some control signals during Flash programming and verification. 陕西理工学院毕业设计 第 19 页 共 42 页 Port 3 Port 3 is an 8bit bidirectional I/O port with internal pullups. The Port 3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the internal pullups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL ) because of the pullups. Port 3 also serves the functions of various special features of the AT89C51, as shown in the following table. Port 3 also receives some control signals for Flash programming and verification. Port Pin Alternate Functions RXD(serial input port) TXD(serial output port) INT0(external interruput0) INT1(external interruput1) T0(timer 0 external input) T1(timer 1 external input) WR(external data memory write strode) RD(external data memory read strobe) RST Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device. ALE/PROG Address Latch Enable is an output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse in。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。