- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
用單片机控制直流电
ABSTRACT AVR microcontroller is a low-power 8-bit microcontroller based on the enhanced RISC architecture. AVR microcontroller can be widespread used in external PC instrument, industrial in-time control,dial for measuring,communication instrument,household appliances and so on.The convenience and muti-function is so welcome in so many users. This system aims at the requirment of the design subject,using the AVR microcontroller control core ,with the temperature sensor to collect the environmental temperature, then according to the temperature to automatically control the rotational speed of the electric machinery,and show the informations about them on the LCD screen in time. Completed the basic requirements and the requirements to play a part. The whole circuit is simply and reliable. This thesis point on the design method on the hardware and software of this system. Key word: AVR microcontroller PWM speed adjustment Perpetual calender 目录 第一章 引言 1 1.1 选题背景 1 1.2 研究目标与意义 1 第二章 方案设计与论证 3 2.1 直流调速系统 3 2.1.1 静止可控整流器 3 2.1.2 直流斩波器或脉宽调制变换器 4 2.2 电机驱动 6 2.2.1 设计目标 6 2.2.2 设计方案 6 2.2.3 LG9110简介 7 2.3 单片机的选择 7 2.3.1 设计目标 7 2.3.2 设计方案 7 2.3.3 AVR单片机简介 8 2.4 温度检测 9 2.4.1 设计方案 9 2.4.2 DS18B20简介 9 2.5 电子时钟 10 2.5.1 设计方案 10 2.5.2 DS1302简介 10 2.6显示系统 10 2.6.1 设计方案 10 2.6.2 ST7920简介 10 2.7系统框图 11 第三章 硬件设计 12 3.1 ATmega16L单片机硬件结构 12 3.1.1 引脚配置 12 3.1.2 综述 13 3.1.3 时钟源 13 3.1.4 晶体振荡器 14 3.1.5 标定的片内RC 15 3.1.6 8位有PWM与异步操作的定时器/计数器2 15 3.1.7 相位修正PWM 模式 15 3.2 LG9110电机驱动芯片电路设计 16 3.2.1 引脚配置 16 3.2.2 电路图 17 3.3 4*4矩阵键盘电路设计 17 3.3.1 工作原理 17 3.3.2 电路图 18 3.4 DS18B20温度芯片电路设计 18 3.4.1 引脚配置 18 3.4.2 内部结构 19 3.4.3 电路图 19 3.5 DS1302时钟电路设计 20 3.5.1 引脚功能及结构 20 3.5.2电路图 20 3.6 LCD12864显示电路设计 21 3.6.1 ST7920与MCU的接口 21 3.6.2 电路图 21 第四章 软件设计 22 4.1 4X4矩阵键盘驱动设计 22 4.1.1 键码识别 22 4.1.2注意事项 23 4.2 ST7920显示驱动设计 23 4.2.1 串口时序图 23 4.2.2 指令说明 24 4.2.3 初始化流程 24 4.3 DS18B20 DS1302驱动设计 25 4.3.1 DS18B20温度芯片 25 4.3.2 DS1302时钟芯片 26 4.4 主程序设计 27 4.4.1 主程序界面 27 4.4.2
文档评论(0)