- 1、本文档共39页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于单片机的函数发生器软件设计
函数发生器软件设计
摘 要
任意波形发生器是信号源的一种,它是具有信号源所具有的特点,更因它高的性能优势而倍受人们青睐。本设计是基于80C51单片机的函数发生器,能产生方波、三角波、正弦波,并且信号的频率、幅度都可以变化,本设计的信号频率、幅度变化是通过软件来实现的,单片机输出数字信号要通过DA转换,本设计采用DAC0832芯片来实现数模转换的,转换的模拟信号幅度太小,所以后面要经过放大器进行放大,再输出模拟信号,信号的幅度和频率通过数码管来显示,共有6个数码管,前两个用来显示幅度,后四个显示频率,数码管显示采用动态显示,并且通过8255A芯片并行口扩展连接到数码管显示,本设计按键总共用到6个按键。
关键词: DAC0832芯片 8255芯片 LM324 80C51单片机
FUNCTION GENERATOR SOFTWARE
DESIGN
ABSTRACT
The random profile generator is the supply oscillator one kind, it has the characteristic which the supply oscillator has, but time is favored because of its high performance superiority the people.This design is based on the 80C51 monolithic integrated circuit function generator, can have the square-wave, the triangular wave, the sine wave, and the signal frequency, the scope all may change, this design signaling frequency, the amplitude variation are realize through the software, The monolithic integrated circuit output digit signal must transform through DA, this design uses the DAC0832 chip to realize the digital-analog conversion, the transformation simulated signal scope too is small, therefore behind must carry on the enlargement after the amplifierAgain outputs the simulated signal, the signal scope and the frequency demonstrated through the nixietube that, altogether has 6 nixietubes, first two use for to demonstrate the scope, the latter four demonstration frequency, the nixietube demonstrated uses the dynamic demonstration, and connects the nixietube through the 8255A chip parallel mouth expansion to demonstrate, this design pressed key altogether uses to 6 pressed keys.
Key word: DAC0832 chip 8255 chip LM324 80C51 monolithic integrated circuit
目 录
中文摘要 I
英文摘要 II
1 概述 1
1.1 信号发生器综述 1
1.2研究方向及意义 2
2 设计总体方案 3
3 系统硬件设计 3
3.1 80C51最小系统 4
3.1.1 80C51芯片简介 5
3.2 DA转换电路设计 7
3.2.1 DAC0832芯片介绍 8
3.2.2 LM324运放介绍 11
3.3 键电路设计 11
3.4 数码管显示电路设计 12
3.4.1 8255A芯片介绍 13
4 系统软件设计 18
4.1 主程序设计 19
4.2 键程序设计
4.3 DA转换程序设计 214.4 显示程序设计
5 总 结 25
致 谢 26
参考文献 27
附录1 系统原理
文档评论(0)