EN

Instructions of Intelligent TFT LCD Module Database Application

It can be finished through the database if the data in the Intelligent TFT LCD Module is not saved when the power is off or the client wants to put a lot of data on the screen and then writes the data to the address of variables. The file name of the user database is “UserDb.bin”, which can be read and written randomly and has the function of storing user data when power is off, and this file is placed under the disk identifier of “Intelligent TFT LCD Module_USER”, which is placed on the screen and is not in the VT_SET folder, which need our attention to avoid the mistakes. The description for the register of the database as shown in the following figure:

 

Register Address

Definition

R/W

Bits Length

Description

 

0x56-0x5F

 

En_DBL_OP

R/W

1

0x5A means that the users apply for conducting the database operation, and Intelligent TFT LCD Module resets after the completion of the operation.

Each Intelligent TFT LCD Module period implements one reading or writing operation of database.

 

OP_Mode

W

1

0x5A means to write the data in variable memory space into database space.

0xA0 means to read the data in database space into variable memory space.

DBL_

Address

W

4

The first (word) address of database (“VT_SET” folders of database and user are stored under the “Intelligent TFT LCD Module_USER” disk identifier.)

VP

W

2

The first (word) address of variable space, 0x0000-0xFFFF

OP_Length

W

2

The (word) length of the database operation, 0x0000-0xFFFF

 

 

The register address is from 56 register to 5F register with each byte occupying one register. If the initial data of the variable address is PRESS, while the variable address is 0x0200, as shown in the following figure:

 

Intelligent TFT LCD Module Database Application

 

If you want to write the initial value in 0x0200 address into the database, you can send the following command A5 5A 0C 80 56 5A 50 00 00 00 00 02 00 00 07, then the “UserDb.bin” file will be generated, and the data will be shown by using UltraEdit tool to open the “UserDb.bin” file, as shown in the following figure:

 

Intelligent TFT LCD Module Database Application

 

Descriptions for the command A5 5A 0C 80 56 5A 50 00 00 00 00 02 00 00 07:

A5 5A: means frame header (which can be modified by the client in screen parameters and settings);

0C: means the data length;

80: means the command to write the register (fixed);

5A: means the application for conducting database operation;

50: means to write the data in variable data to the database;  

00 00 00 00: first address of database;

02 00: variable address;

00 07: length of operation (word length)

 

If the data in the database is shown as the following figure, and the data in the database 00000000 address is 50 82 45 53 53 ce e4 ba ba 39 78 89 80 94 ba ba which has 16 bytes and 8 word lengths in total,

 

Intelligent TFT LCD Module Database Application

 

If you want to send these data to 0x0200 address in the variable address of the screen, you only need to send the following command A5 5A 0C 80 56 5A A0 00 00 00 00 02 00 00 08, then the corresponding data will be shown on your screen. This command just replaces 50 with A0, which is the only difference with the last command and all others are the same, while A0 means to read the data in database space into variable memory space. The above contents only make simple descriptions and operations for the database and the client shall use the database based on the actual conditions. We only make an illustration as an example, which has differences with the database actually wrote, please make your own discretion.

 

The following links may help you

 

14 STONE TOOLBOX instruction tutorial

https://www.stoneitech.com/news/instructions