金刚砂耐磨地坪人工费:Automatic touch interface transfer

来源:百度文库 编辑:九乡新闻网 时间:2024/04/30 03:06:50

For the display module with touch panel, configuration file can be downloaded into the display module in advance to decrease code workload of the users. Then the mode of touch interface transfer is set as auto-transfer to realize user's intervention-free function.

Development process:
Step 1: Design the interfaces having the same resolution with the display module and download them into the display module. For example, if the display module is DMT64480S057_11WT, the resolution of the designed interfaces shall be 640*480 dot matrix.

Step 2: Make the configuration file.
The configuration file is a binary file consisting of maximum 8,192 touch commands. Each touch command contains 16 bytes.

The process of making Configuration file is actually the process of designing the interfaces and arranging interface transfer. The configuration file can be complied by UltraEdit or some compiling system, such as C51 or ASM51.

Step 3 Download the *.bin file into the display module.
Use Command 0XF2 to download the*.bin file into display module at 0X1E.

Step 4 Set the mode of touch interface transfer as automatic transfer
Use Command 0XE0 and set Para1.5,0x20 as 1. Then when being pressed, the display module will no longer upload the coordinate. Instead, it will perform touch interface transfer automatically and upload the touch code defined by the user.

Step 5 Repeat Step 2 and Step 3 for a couple of times to test whether the test interface transfer is accurate.serial LCD