摘 要:隨著多媒體信息查詢的與日俱增,人們越來越多地談到觸摸屏,因為觸摸屏不僅適用于多媒體信息查詢,而且觸摸屏具有堅固耐用、反應速度快、節省空間、易于交流等許多優點。傳統8位、16位單片機的主頻比較低,很難直接驅動TFT觸摸屏。ARM 32位的Cortex-M3 CPU的主頻較高,可直接驅動TFT顯示屏。將Cortex-M3內核和TFT觸摸屏應用到無線環境監控系統中,并對其進行了分析研究,驗證了第二代Cortex-M3內核MCU驅動TFT觸摸屏的可能性。
關鍵詞:TFT; 觸摸屏; Cortex-M3; μCOS-Ⅱ
中圖分類號:TP274 文獻標識碼:A
文章編號:1004-373X(2010)13-0198-03
Application of TFT Touch-screen Display Based on Cortex-M3
in Environmental Monitoring System
DENG Ming-hua, LUO Pei-dong, ZHONG Jia-ming
(Engineering and Commerce College, South-Central University for Nationalities, Wuhan 430065, China)
Abstract: With the increase of multimedia information query, people are talking about the touch screen more and more, because it applies not only to the touch-screen multimedia information query, but the touch screen is sturdy, durable and easy to exchange, and has the advantages of high-speed reaction and space-saving. The main frequency of traditional 8 b and 16 b single chip computers is too low to drive TFT touch-screen display directly. Since the main frequency of Cortex-M3 CPU with ARM 32 b is higher, TFT touch screen can be drived directly. And the highest frequency of MCU is to 100 M. In this paper, Cortex-M3 and TFT touch-screen display is analyzed and studied in combination with practical examples of wireless environmental monitoring systems.
Keywords: TFT; touch screen; Cortex-M3; μCOS-Ⅱ
0 引 言
觸摸屏是一種新型的電子輸入設備,是目前最簡單、方便、自然的一種人機交互方式,它賦予了多媒體以嶄新的面貌,是極富吸引力的全新多媒體交互設備。將ARM Cortex-M3內核和TFT觸摸屏結合在一起,以環境監控系統為應用,對ARM公司的Cortex-M3內核進行了分析,并研究了Cortex-M3內核驅動TFT液晶屏幕的可行性。
1 系統工作原理
無線環境監控系統總體的設計框圖如圖1所示。以基于第二代Cortex-M3內核的LPC1758為核心,以TFT觸摸屏為顯示和控制單元,以24 GHz無線模塊為通信單元,合理移植μCOS-Ⅱ系統,對環境參數進行監測和控制。
圖1 總體功能框圖
2 硬件電路設計與實現
2.1 電源方案
硬件電路降壓穩壓電路采用降壓穩壓芯片SPX1117-3.3 V。電路在啟動過程中會產生較大的沖擊電流,會對其他電路造成電磁干擾,系統在電源中增加容值較大的電解電容以滿足系統中各項要求。降壓穩壓電路如圖2所示。
硬件電路升壓穩壓電路是為TFT液晶屏提供直流12 V電壓驅動而設計的?!?br>