摘要:近年来,触摸屏技术在信息家电、公共信息查询、通信和办公自动化等领域的应用越来越广。本文利用触摸屏、AVR单片机和液晶屏搭建了一个人机界面系统。以ATmega16作为系统的MCU,四线电阻式触摸屏作为系统的触摸感应器件,HS12864-1作为系统的终端显示液晶屏。文章着重介绍以AVR为核心的触摸屏和LCD的应用,包括触摸信号采集、数据处理、LCD显示控制、串口通信等。通过AVR单片机对触摸屏信号的采集和计算,获得触摸点在触摸屏幕上的坐标,根据不同的坐标获取液晶屏上相应的显示内容,并利用8条并行数据线将显示的内容送至LCD显示。当LCD液晶屏被刷新后会进入相应的显示界面,最终实现人机界面系统的设计。同时,通过AVR单片机提供的串口,将数据以串行的方式发送给PC机或其他嵌入式系统,实现本设计的系统扩展。
关键词:触摸屏;AVR单片机;人机交互
The Touch-Screen Man-Machine Interface System Design and
Implementation Based on the AVR Single-Chip Microcomputer
Abstract:Recently, the touch-screen technology was used widely in
the information appliances, and public information inquiries,
communications and office automation and other areas. This
dissertation built a human-machine interface system by using
Touch-screen, AVR single-chip microcomputer and LCD screen. The
system uses the ATmega16 as the MCU, 4-line resistance touch screen
as the touch-sensitive device and the HS12864-1 as the terminal LCD
screen. The work focused on introducing the applications of
touch-screen based on AVR and LCD, such as the touch signal
acquisition, data processing, LCD Display Control, serial
communications and so on. Touch-screen signals are collected and
calculated through the AVR single-chip microcomputer for acquiring
the coordinates of points on the touch screen and various
coordinates are used to get the corresponding contents displayed on
the LCD screen, and the contents will be transmitted to the LCD
display using eight parallel lines. The corresponding interface
will be displayed when the LCD screen is updated, and the design of
human-machine interface system will be finished. Meanwhile, the
data is sent to PC computer or other embedded system through the
serial port provided by AVR single-chip microcomputer to accomplish
the system expansion of the design.
Key words: touch-screen, AVR single-chip microcomputer,
man-machine interactive
目
第1章
1.1
1.2
1.3
第2章
2.1
2.2
2.3
2.3.1
2.3.2
2.3.3
2.3.4
2.4
2.4.1
2.4.2
2.5
2.6
第3章
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
第4章
4.1
4.2
4.3
4.4
4.5
第5章
5.1
5.2
5.2.1
5.2.2
5.3
结
致
参考文献
附录1
附录2
附录3