第一范文网 - 专业文章范例文档资料分享平台

基于单片机的简易触摸屏手机 - 图文

来源:用户分享 时间:2025/10/10 10:45:58 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

摘 要

本系统是一个基于单片机的简易触摸屏手机。最近几年,手机的发展日新月异,特别是android操作系统和触摸屏的便捷性,使触摸屏手机迅速普及,触摸屏手机将是未来手机的主流配置,此系统就是研究触摸屏手机的工作原理及实现方法。整个系统主要是由STC12C5A60S2单片机,SIM300模块,串口触摸屏及一些外围器件组成的,主要功能的实现方法是:先用触摸屏配套PC组态软件和PS软件提前设置好触摸屏的图标和数字键盘等主要显示界面,然后下载到触摸屏的内部存储器中,供触摸屏内部处理;当按下相应的触摸按键后,把触摸屏的内部处理后的数据通过单片机的串口1发送给单片机,之后单片机进行相应的运算处理和判断,再通过单片机的串口2给SIM300模块发送相应的AT操作指令,驱动SIM300模块发送对应的手机信号。通过以上模块,可以实现:接、打电话,接、发英文短信,有来电提醒功能,以及实时时钟的功能。

关键词:手机;SIM300模块;串口触摸屏;实时时钟

I

ABSTRACT

This system is a simple microcontroller-based touch screen phone. In recent years, development of mobile phones is very fast. Especially because the android operating system and touch screen is very convenient, touch screen mobile phone is more and more popular. Touch screen mobile phones will be the most mainstream configuration

in the future.The whole system is mainly composed by STC12C5A60S2 microcontroller,Sim300 module, serial touch screen, and some peripheral devices. The realization method of the main function is: firstly use a touch screen supporting PC configuration software and PS software, set touch screen icon and numeric keypad and other display interface in advance. Then download to the internal memory of the

touch

screen

,let

internal touch screen process;If the corresponding touch button is pressed,sent the data of processed by the touch screen to the microcontroller via a serial microcontroller,Then the microcontroller executes the corresponding arithmetic processing and judgment. Then the controller send the appropriate AT command to SIM300 module through the serial 2.And Drive the SIM300 module sending mobile phone signal. The system also adds a 1302 clock chip, time can be displayed in real time. Through the above module, this system achieves: receive, make a phone call; Receive, send English text messages. There is an incoming call reminders, and perpetual calendar. Also it can set the alarm clock.

Key Words: mobile phone; SIM300 module; serial touch screen; perpetual calendar

目 录

1 引言 .............................................................................................................................. 1

1.1课题研究的背景 ................................................................................................. 1 1.2课题研究的目的及意义 ..................................................................................... 1 1.3 课题研究设想 .................................................................................................... 2 2 系统方案研究 .............................................................................................................. 3

2.1 方案论证 ............................................................................................................ 3

2.1.1 主控芯片选择 .......................................................................................... 3 2.1.2 GSM模块选择 ........................................................................................... 3 2.1.3 触摸屏模块选择 ...................................................................................... 4 2.1.4 时钟模块选择 .......................................................................................... 4 2.2 方案最终选定及系统原理框图 ........................................................................ 5 3 硬件电路设计 .............................................................................................................. 6

3.1 STC12C5A60S2主控单片机介绍 ....................................................................... 6

3.1.1 单片机的主要特性 .................................................................................. 6 3.1.2 单片机引脚说明 ...................................................................................... 7 3.1.3 串行口功能介绍 ...................................................................................... 8 3.1.4 STC12C5A60S2单片机最小系统 ............................................................. 9 3.2 SIM300模块 ....................................................................................................... 9

3.2.1 SIM300功能简介 ..................................................................................... 9 3.2.2 SIM300电路原理 ................................................................................... 10 3.2.3 SIM300串口调试简介 ........................................................................... 11 3.3 触摸屏模块 ...................................................................................................... 14

3.3.1 串口触摸屏简介 .................................................................................... 14 3.3.2 触摸屏使用方法 .................................................................................... 15 3.4 RTC实时时钟 ................................................................................................... 16

3.4.1时钟功能简介 ......................................................................................... 16

4 软件设计 .................................................................................................................... 18

4.1 Keil软件介绍 ................................................................................................. 18 4.2编程总结 ........................................................................................................... 18 4.3迪文触摸屏组态软件介绍 ............................................................................... 20 4.4 本设计的程序流程图 ...................................................................................... 22 4.5 源程序(见附录2) ....................................................................................... 23 5 系统调试过程 ............................................................................................................ 24

5.1 单片机最小系统和时钟模块的调试 .............................................................. 24 5.2 时钟模块的调试 .............................................................................................. 24 5.3 SIM300模块的调试 ......................................................................................... 24 5.4 串口触摸屏的调试 .......................................................................................... 25 5.5 系统联调 .......................................................................................................... 26 结 论 ............................................................................................................................ 27 参考文献 ........................................................................................................................ 29 致 谢 ............................................................................................................................ 30 附录1:整体电路图 ..................................................................................................... 31 附录2:源程序 ............................................................................. 错误!未定义书签。

搜索更多关于: 基于单片机的简易触摸屏手机 - 图文 的文档
基于单片机的简易触摸屏手机 - 图文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c0th3h698mt9lpyv23wwc1symv1jox500755_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top