LCD touch screen system design strategy based on ARM

Publisher:CrystalDawnLatest update time:2011-06-12 Keywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
With the rapid development of embedded system technology, industrial equipment products are becoming more and more modernized, and generally require visual operation. LCD touch screens have low energy consumption, low heat dissipation, low cost, thin and light, small size, and easy installation. Using LCD touch screens as input and output devices for industrial equipment can not only meet the requirements of visualization, facilitate on-site operation, but also reduce the cost of products. In the overall design process of the product, the design of the human-computer interaction interface often occupies a large part of the work, which not only greatly increases the development cost of the product, but also prolongs the product's launch cycle. The human-computer interaction interface based on S3C44BOX designed in this paper is a customizable, easy-to-use, high-performance general-purpose human-computer interaction interface that can solve the above problems well.

1 System Structure

The system mainly consists of three parts: PC, S3C4480X microprocessor and LCD touch screen module. The system structure diagram is shown in Figure 1.

Figure 1 System structure diagram

This system provides an interactive interface for industrial equipment based on S3C44BOX. Through this system, a visual human-machine interface can be provided for industrial equipment. The customized interface information from the PC is stored in the ARM FLASH memory. In the application, when the microprocessor receives the touch screen key information, it controls the industrial equipment. At the same time, the microprocessor also refreshes the LCD interface to complete the human-machine interaction.

2 System Hardware Design

The hardware circuit principle of the system is shown in Figure 2. The S3C4480X is the CPU core and the 320x240 dot matrix LCD touch screen is the main input and output device.

Figure 2 System hardware circuit schematic

2.1 LCD touch screen module OCMJ15x20D introduction

The display part of this system uses the OCMJ15x20D (320x240 dot matrix) D series Chinese LCD display module, where OCMJ stands for Okola Chinese integrated module. This is a dot matrix LCD display module with Chinese and English text and drawing modes. It has a built-in 512KByte ROM font code, which can display Chinese fonts, digital symbols, English, Japanese, European and other letters, and has a built-in two-page display memory. In the text mode, it can receive standard Chinese text internal codes to directly display Chinese, without entering the drawing mode to draw Chinese, thereby improving the efficiency of LCD display of Chinese. The module integrates a number of practical interfaces, including a built-in 10-Bit ADC. It provides a touch screen interface. The touch screen of OCMJ15X20D (V3.2) is controlled by FM7843, which has been integrated on the module. The module has reserved the control line of FM7843 for customers to use (J5 pin on OCMJ15X20D), which can be directly powered by 3V without external negative voltage.

The module FM7843 is a four-wire resistive touch screen input control chip. It is a 12-bit sampling analog-to-digital converter with a synchronous serial interface. The power consumption is 750μW at a throughput rate of 125kHz and a voltage of 2.7V. The power consumption in the off mode is only 0.5μW. It has the characteristics of low power consumption and high speed, so it is widely used. Pins X+, Y+, X-, and Y- are the analog input terminals of the converter, DCLK is the external clock input; CS is the chip select terminal: DIN is the serial input, and its control data is input through this pin; DOUT is the serial data output. It is used to output the converted touch position data. The maximum number is 4095 in binary; IN3 and IN4 are auxiliary inputs; PENIRQ is the PEN interrupt pin. Among them, S3C44BOX uses a total of 6 to connect to the FM7843 interface.

2.2 Working principle of the system

The OCMJ15x20D module has a built-in LCD controller, and the touch screen is installed on the LCD liquid crystal screen. The corresponding control circuit is designed to control the LCD and touch screen. When the user operates the touch screen, the module FM7843 control chip detects the touch point and sends the detected information to convert it into corresponding coordinates for the S3C44BOX processor to read.

3 System Software Design and Implementation

3.1 System Software Introduction

Users can customize the entire interface information through the visual human-machine interface customization software on the PC according to the needs of the control system in actual applications and the agreement between the control system and the human-machine interface. Then download the customized interface information to the ARM Flash, and you can easily customize the human-machine interface. In the application, the ARM processor interacts with the human-machine interface system by directly operating the I/O port to read the touch screen information. Then perform the corresponding operation according to the read information. The software part of the system consists of a user boot program and an application. After the system is running, the user boot program decides whether to update the interface information or run normally. If the interface information is updated, the system receives the interface customization information through the relevant function and saves it in the Flash, and then establishes a linked list network by reading the new interface customization information locally; if it runs normally, the old interface customization information is directly obtained from the local to establish a linked list network. The functions implemented by the application include touch screen input processing and interface display. Users can configure all software-related parameters of industrial equipment through this system.

3.2 Programming

3.2.1 Interface customization and display

The customization of the interface is achieved by building a network link list. After the link list network is built, the application stage begins, that is, the system enters the normal operation state. The operation of the human-computer interaction interface is realized by setting the current screen pointer, the current item pointer and the built link list network in the system.

Items on the same screen form a two-way circular linked list, and linked screens form a one-way circular linked list. Implementation method: First, establish a horizontal two-way circular linked list for each screen based on the screen; then traverse the two-way linked list of each screen, establish a link relationship for the items of each screen, and then form a linked list network. Display the items on the screen one by one by traversing the horizontal two-way circular linked list of the current screen. The processing of various items is as follows: ① When the screen item is text, read and display it directly. ② When the screen item is an integer or floating point. Request its value from the control system and display it. ③ When the screen item is an enumeration, request its value from the control system, and then read the corresponding string according to the value and display it. [page]

3.2.2 Touch screen information processing

The touch screen buttons are divided into numeric keys, screen change keys, confirmation keys and selection keys. Numeric keys are used to type the numbers pressed. The screen change key is used to switch the screen content and enter the link screen of the selected item. If there is no selected item on the current screen, it enters the screen of the first link. The selection key is mainly used to display the content of the drop-down menu on the screen. The confirmation key is used to select the content of the drop-down menu.

3.2.3 Main function and initialization

The main function of the software system adopts an infinite loop structure waiting for the touch key value.

4 Conclusion

This article makes full use of the built-in resources of OCMJ15x20D and S3C44BOX to design a software and hardware system for controlling LCD touch screen with ARM processor. The system has customizable features. It not only facilitates the user's operation of the machine tool, but also makes it simple and fast for developers to modify the interface and upgrade the product. This design provides a practical solution for the human-computer interaction system and can also be applied to the development of other embedded systems.

Innovation:

1. Make full use of the powerful functions of S3Cd44BOX and the built-in LCD driver resources of OCMJ15x20D to complete the driving of the LCD touch screen and design the human-computer interaction interface control system composed of S3C44BOX controlling the color display screen and the four-wire resistive touch screen.

2. The customizability of the operation interface makes this software system widely used in the design of similar products, and it also facilitates developers to upgrade products, greatly shortening the cycle of secondary software development.

Keywords:ARM Reference address:LCD touch screen system design strategy based on ARM

Previous article:Design of virtual instrument based on CAN bus and MiniGUI using ARM+Linux architecture
Next article:Design of DIS acquisition system based on ARM

Recommended ReadingLatest update time:2024-11-16 20:56

Foreign media said that Arm will set up an AI chip department and strive to create a prototype product by 2025
On May 13, according to foreign media reports, the vigorous development of artificial intelligence, especially generative artificial intelligence, has brought new development opportunities to the chip field. Nvidia, which started its layout in the field of artificial intelligence earlier, has occupied most of the ma
[Semiconductor design/manufacturing]
Azure ARM (22) Getting started with Azure Policy
  We know that in the Azure service tier, there are several levels:   1. Enterprise Contract   2. Subscription   3. Resource Group   4. Resources   The Azure resources we use are actually deployed in Azure resource groups.     But sometimes, we need to set rules or policies for Azure resource groups to meet the compan
[Microcontroller]
Design of touch screen touch point data acquisition system based on ARM7 LPC2210
This paper proposes the design of a touch screen touch point data acquisition system based on the ARM7 series LPC2210 microcontroller and the embedded operating system μC/OS-II, and completes the physical layer circuit conversion between the microcontroller and the host computer, realizing Data communication based on
[Microcontroller]
Design of touch screen touch point data acquisition system based on ARM7 LPC2210
Analyzing the difference between ARM and MCU
        Simply put, a MCU is a microcontroller, and ARM is a microprocessor. So what is the difference between ARM and a MCU? The following is an introduction from Zhuoyue Education.      The difference between ARM and a MCU can be divided into two aspects: hardware and software. 1. Hardware: (1) At present, the hard
[Microcontroller]
GNU-ARM Assembly
Part 1 ARM assembly syntax under Linux Although it is convenient to write programs in C or C++ under Linux, the assembly source program is used for the most basic initialization of the system, such as initializing the stack pointer, setting up the page table, operating the ARM coprocessor, etc. After the initializatio
[Microcontroller]
A Design Scheme of Audio Processing System Based on ARM+DSP
1 Introduction With the rapid development of computer technology, electronic technology and communication technology, audio processing technology has also been widely used in many fields, such as mobile phones and IP phones in the communication field, MP3 and CD players in consumer electronics, and speech recognition
[Embedded]
A Design Scheme of Audio Processing System Based on ARM+DSP
C code optimization method for embedded platform ARM
This article introduces the C code optimization methods for the ARM platform, and gives common optimization methods from the perspectives of data type selection, data structure organization, local variable selection, function inline, compiler options, loop unrolling, conditional execution, data operation conversion, me
[Microcontroller]
Realization of field monitoring instrument for single-phase power metering device based on ARM
The on-site monitoring instrument for power metering devices is an intelligent instrument designed for online detection of line loss reduction and electricity theft prevention for power management departments in accordance with relevant national regulations and standards. The instrument can measure the comprehensive
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号