基于单片机STM32的触摸屏驱动设计
基于单片机STM32的触摸屏驱动设计(任务书,开题报告,外文翻译,论文说明书8600字)
摘要
操作简单的触摸屏在许多设备上是必备部件。触摸屏自身重量很轻,非常的省空间大小,并且触摸屏可以直接控制屏幕的显示,非常方便,因而得到广泛应用。
本文以STM32开发板为基础硬件开发平台。通过其FSMC接口扩展LCD触摸屏,开发触摸屏的坐标采集程序和LCD显示驱动程序,实现触摸和显示互动。硬件设计主要采用四线式电阻触摸屏,通过本身的A/D转换器实现触摸屏控制效果。软件设计主要采用C语言的程序实现,设计模块包括彩色显示、系统坐标获取、系统坐标校准等。硬件器件和软件编码的同时工作得以将本次课题完美完成。
通过一段时间的研究开发,终于将电阻式触摸屏研究完成,本课题实现了显示屏的彩色显示、触摸屏的触摸画板功能。
关键词:STM32F103;触摸屏;TFT;FSMC
Design of touch screen driver based on STM32
Abstract
Simple touch screens are sure to become mainstream. Touch screen itself is relatively light, can effectively save space, at the same time touch screen directly to the screen operation control, very convenient and comfortable. [来源:http://www.doc163.com]
Based on the STM32 development board, the LCD touch screen is extended through its FSMC interface, and the coordinate acquisition program of touch screen and the LCD display driver are developed to realize touch and display interaction. The hardware design mainly adopts the four wire resistance touch screen, and realizes the touch screen control effect through the A/D converter. The software design is mainly implemented by C language. The design modules include color display, system coordinate acquisition, system coordinate calibration and so on. The hardware component and software coding work simultaneously to complete the subject perfectly.
Through a period of research and development, finally, the research of resistive touch screen is completed. Each module of the touch screen is designed and prepared, and the display and requirements tasks of the touch screen are completed.
Key Words: STM32F103Z; Touch screen; TFT;FSMC
目 录
摘要 I
ABSTRACT II
第一章 引言 1
1.1 课题背景 1
1.2 触摸屏发展现状 1
1.3 论文主要工作 1
第二章 关键器件介绍 3
2.1 触摸屏介绍 3
2.2 触摸检测装置基本原理 3
第三章 系统硬件设计 5
3.1 触摸屏接口 5
3.2 STM32103与TFT接口介绍 7
3.3 USB接口线路 9
第四章 系统软件设计 11
4.1 软件总框架 11
4.2 彩色显示 12
4.3 坐标读取 18
4.4 坐标校准 20
4.5 主函数设计 22
第五章 结论 25
结语 28
参考文献 29
致谢 31
上一篇:基于单片机的无线报警器的设计