基于STM32的简易电子计算器设计与实现(DOC) - 图文 联系客服

发布时间 : 星期三 文章基于STM32的简易电子计算器设计与实现(DOC) - 图文更新完毕开始阅读

四川师范大学成都学院通信工程学院

基于STM32的简易电子计算器设计与实现

---实验综合设计报告

学生姓名 学 号 所在学院 专业名称 班 级 指导教师 成 绩

陶龑 2016301033 通信工程学院 嵌入式系统课程设计 2014级软件班

刘强

四川师范大学成都学院 二○一六年十一月

嵌入式系统设计实验综合设计报告

基于STM32的简易电子计算器设计与实现

内容摘要:电子计算器即将传统意义上的计算器进行电子化和数字化,为其减

少时间误差和体积,并提供更多的扩展实用功能,从而使电子计算器的应用更加广泛。在经过资料的查找与收集后,本论文以该理念设计了一款基于STM32芯片作为核心控制器,使用Keil5平台,以C语言为基础进行软件编程的简易电子计算器,其内在TFT-LCD液晶屏进行输出,以四个按键进行输入,从而实现显示输入数据以及加减乘除运算的基本功能。

通过软件程序的编写、硬件电路原理的实现、电子计算器正常工作的流程、原理图仿真实现、硬件实物的安装制作与硬件实物的调试过程,该简易电子计算器现可用于日常生活和工作中。

关键词:简易电子计算器 STM32 C语言 Keil5

嵌入式系统设计实验综合设计报告

Design and implementation of Multi Function

Electronic Clock based on STM32

Abstract: The traditional electronic calculator calculator for electronic and digital, to

reduce the time error and volume, and provide more extended utility function, so that the more extensive application of electronic calculators. After searching and collecting data, in this paper, the concept of a design based on STM32 chip as the core controller, using Keil5 platform, simple electronic calculator based on C language software programming, the TFT-LCD LCD screen for input and output, with four keys, so as to realize the display of input data and the basic the function of add, subtract, multiply and divide operations.

Through the software program, hardware circuit principle of the electronic calculator realization, normal work process and the principle of graph simulation, hardware installation and hardware debugging process, the simple electronic calculator is used in daily life and work.

Key words: Simple electronic calculator STM32 language C Keil5

嵌入式系统设计实验综合设计报告

目 录

前 言 .................................................................................................................. 1 1 设计要求 ......................................................................................................... 2 2 设计目的与作用 .............................................................................................. 2 3 所用设备及软件 .............................................................................................. 2 4 系统设计方案 .................................................................................................. 2

4.1 系统总体设计 ......................................................................................... 2 4.2 简要阐述系统工作原理 .......................................................................... 3 5 系统硬件设计 .................................................................................................. 4

5.1 系统整体设计 ......................................................................................... 4 5.2 各单元电路设计 ..................................................................................... 4

5.2.1 电源电路 .................................................................................. 4 5.2.2 LCD液晶显示电路 .................................................................... 4 5.2.3 简易电子计算器电路 ................................................................. 5 5.2.4 按键电路 .................................................................................. 5 5.2.5 蜂鸣器电路 ............................................................................... 5 5.2.6 复位电路 .................................................................................. 6 5.2.7 串口电路 .................................................................................. 6

6 系统软件设计 .................................................................................................. 6

6.1 主程序设计 ............................................................................................ 6 6.2 子程序设计 ............................................................................................ 7

6.2.1 显示模块 .................................................................................. 7