Вы находитесь на странице: 1из 93

Guangzhou color Optoelectronics Technology Co., Ltd.

86 Serial screen Data Sheet

Version: V2.1

version description date

V0.9 Edited document 2013-12-18

V1.0 Add configuration control function, fully functional description 2014-02-15

2015-10-01
V2.0 improved shell mold, the planar display, increasing the pull-down menus, text color change control,
Select controls and controls and other two-dimensional code

V2.1 increase the data recording controls, increase multi-language switch


2016-08-10
Documentation

category description

Applicable Series Manual applicable 86 box 3.5 Inch, 5 Inch all series Applications Smart Home,

thermostats, wired remote control and wall-mounted products etc.

Document contains product performance parameters, the appearance of the size, and the like using the instruction set

After an overview of document content, install the matching VisualTFT PC software (official website address:

www.gz-dc.com ) And then download instructional videos, you can 30 Learn to develop within minutes. Evaluation or

Getting Started development phase, engineers do not need to purchase hardware directly using the embedded "virtual serial port screen" to

communicate with the microcontroller, and also supports Keil Direct debugging environment, as with real hardware

operation.
86 Serial screen background birth

Replace conventional mechanical switch, light switch add smart mode;

Alternatively dimmer conventional capacitive touch panel;

Alternatively traditional black and white display thermostat, touch function upgrade to color;

Switch panel smart home networking applications;

Control panel in the control system;

Having a custom command functions, direct replacement for a mechanical switch outputs the original protocol, i.e. the box.

time is money. Advent serial screen, the user will be completely separated from the control and display portion. Users do not need to change the

design platform and core control code, simply increase the serial port to send and receive functions in the original code base, so that their products can

quickly upgrade to true color, improve market competitiveness!

86 Serial screen design architecture

Guangzhou color Optoelectronics Technology Co., Ltd. ( www.gz-dc.com) Release of 86 Serial screen is set TFT Display driver, pictures font storage, GUI

operating, RTC Display and a variety of configuration controls display terminal in one of the serial ports. Users only need to send the corresponding

single-chip serial commands you can easily text, pictures and curve display.

System processor Cortex-M3 + high speed FPGA Dual-core design, ARM Mainly for protocol analysis and USB Picture download, FPGA The main

realization Nandflash Pictures and read TFT Control Display. Internal structure A Fig.

SDRAM
RTC clock 4 * 4 Matrix keyboard SD card
64Mbit

CORTEX-M3 FPGA
(72MHZ) (450MHZ)

Peripheral Control SDRAM Controller

RXD Instruction Solution


Serial
TXD Analysis
instruction cache
and implementation
Area Bus communication interface

TFT LCD
control

USB protocol analysis write NAND read NAND TFT

NANDFLASH 1Gbit
USB2.0
(Pictures, fonts, sounds, data)

Map A Basic internal configuration diagram of the serial screen

select" Cortex-M3 + FPGA "The main advantage of dual-core architecture that :( 1) FPGA Programmable logic devices, high frequency, internal

instruction parallel processing, can be easily driven similarly 1440 * 900 Resolution TFT Refresh speed; ( 2) Pure hardware drivers, or operating system

without the entire system OS , The power-running, continuous 24 * 7 * 365h UPS can be reliable, no garbage redundant files; ( 3) The core member is a

conventional industrial device, 10 Or more years of continuous goods.

In the absence of instructions received state of the system, ARM The basic idle state, all data read and display a large load by the refresh operation of

all FPGA Pure hardware independently, to some extent, from the architectural features of the system to ensure the robustness and strong interference

immunity. due to FPGA The interior is parallel processing mechanism, so Nandflash The data is read, SDRAM
Writing and RGB Output data are all performed in a single clock beat, the system ensures that the image update speed, fast response time and so on.

Internal equipment 4.7K Byte instruction buffer, the host can not wait for the user to exit the program after the continuous serial transmission of

multiple instructions. The whole process is simple, reducing the large amount of program code.

Operation and Innovation - 30 minutes to complete UI interface design

Any large color user need only 3 Steps, you can 30 Complex human-computer interaction design is completed within minutes.

1. Ready to art materials.

Arrange artists will boot screen, the picture you design a good background text, buttons, icons and tips boxes and other products.

2. VisualTFT use supporting software for screen editing controls with Ge and download pictures.

Firstly, supporting PC VisualTFT software, pre-designed graphic interface layout and picture controls configuration, and then run a "virtual serial port

screen" to simulate, and finally download the entire project to screen the internal memory via the serial port USB / SD / UART in. PC software will project

each picture, the picture controls and assign a unique ID number.

3. And monitor the user sends a corresponding microcontroller serial command control screen display.

After the project is downloaded into the screen, press a button once the screen, the user will receive button MCU serial ID information or coordinate

values of the screen to upload. By analyzing the ID number, the user can obtain the current screen position, and functional properties of the buttons, so that

operation can be controlled associated peripherals or update the display screen.

VisualTFT PC software features

VisualTFT It is our powerful development of innovation-featured screen serial debugging software development, embedded exclusive domestic first

"virtual serial port screen." After the user creates a new project designed to import graphic images, then configure each screen buttons and other controls,

the simulation is correct, and finally download the entire project to the serial screen. Equipment and PC After successful connection, send instructions to the

microcontroller simulated as C Fig.

FIG main interface C VisualTFT

Key functions are as follows:

VisualTFT IDE humanized operation environment, elegant interface;

Software integrates commonly used icons, buttons and keyboard vector and reduce the difficulty of art;

Screen support for image scaling, text editing and copy elements and other common operational functions;

After the project is compiled each picture, the picture controls and assigns a unique ID number;
Supports a variety of configuration controls: buttons, text, progress bars, meters, curve, drop-down menus, and other two-dimensional code;

Embedded "virtual serial port screen" emulator, debugger direct KEIL, still no need to purchase hardware evaluation and development;

Support binaries burn, mass production is more convenient and safe.

According to user needs, customized special PC software functions;

What is a "virtual serial port screen"?

"Virtual Serial Port screen" is the Guangzhou color Optoelectronics Technology Co., Ltd. ( www.gz-dc.com) The exclusive first serial-screen simulator

development.

After the user creates a good project, and compile correctly configured, you can run it to test whether the correct interface design, simulation and real

serial ports exactly the same screen.

Even if the user does not buy upfront hardware under its own microcontroller through RS232 serial port and directly connected to a "virtual serial port

screen", you can also communicate with each other, click on the button will immediately upload button control ID or coordinate information, as shown in

Figure D. Once the "Virtual Serial Port screen" debugging, no longer need real hardware debugging, direct download.

Map D User-chip serial and "Virtual Serial Port screen" line debugging

In order to further improve development efficiency, users can also Keil Environment and Development "Virtual Serial Port screen" bind

Debug debugging. Single-step debugging program, the results are all running on a "virtual serial port screen" presentation, saving engineers time to develop,

as E Fig. Once the project has changed the interface, users no longer need to re-download images to the serial port screen. Preliminary assessment of all

projects can be based on PC End to complete.

Suggestion: visit the official website www.gz-dc.com, into the "Downloads", select "Technical Documentation" download "KEIL development

environment and how to implement virtual serial debugging screen binding" document.
Map E Keil Development environment with a virtual serial port binding debugging screen

product Overview

Models and sizes

Model (W: white; B: black) interface voltage Resolution Size Remark

DC86RS035_02W 3.5 RS485 5-26V 320 * 240 1G / USB / SD / white


86 Serial screen
DC86RS035_02B 3.5 RS485 5-26V 320 * 240 1G / USB / SD / black
(resistive screen)
DC86RS050_02W 5.0 RS485 5-26V 800 * 480 1G / USB / SD / white

DC86B050_02W 5.0 RS232 5-26V 800 * 480 1G / USB / SD / white

Note capacitive touch screen has a relationship with the product structure, we need to customize

Core processor unit

- use 32 Place Cortex-M3 Kernel + High Speed FPGA Architecture;

- No operating system, FPGA Pure hardware to drive the display, a high reliability, the power-running start time zero;

Picture and font storage space

- Internal 1Gbit Flash Which occupied font 128Mbit To support any size of the image storage, full-screen picture conversion calculation, Pictures

of different sizes Deposit As the number of storage :

size 3.5 5.0

(Pictures) 778 155

Note: maximum memory space can be extended to 8GBit

Microcontroller communication interface with the user

- RS485 , 5 Inch partial support RS232 .

Pictures download interface

- USB / SD interface

- R & D is recommended USB Download, use mass production SD Card is not recommended serial download;

Hardware Features

- 16 Bit True Color RGB display( 64K color);

- Built-in standard 8 * 16 , 12 * 24 , 16 * 32 , 32 * 64 ASCII Font, 16 * 16 , 24 * 24GBK with 32 * 32 ,

64 * 64 GB2312 Other font, any user can customize windows Font;

- stand by BMP , JPEG , WMF , PNG with GIF And other image formats download;

- Support anywhere in the text, images, GIF Animation and common GUI display;

- With a variety of configuration controls: button controls, text controls, drop-down control, progress bar control, instrument control,

curve control, slider control, select a control, icon view, animation, clock controls, and controls and other two-dimensional code;

- System built virtual keyboard, support Chinese and English input method, you can customize the system keyboard;

- Support left, up and down the slide switch screens;

- Support internal instruction action without user MCU Participation, achieve mutual exclusion button, with text display;

- Support for custom output command buttons;

- Baud rate setting range 1200-2Mbps ;

- 255 The backlight level adjustment and automatic screen saver mode;

- stand by SD Card field upgrades and offline production function;

- These features meet 99.5% Customer demand for project development;

- On-demand to meet the needs of all users; to provide ODM service, 500PCS More free customization.
Configuration Control Features

- Button control

VisualTFT by PC software for all buttons project screen configuration without user participation program, screen switching can be

realized, or the pop-up button is pressed, and custom buttons exclusive command output; screen or any button is pressed bounce, ID, and

the status screen button will upload the value to the user, the microcontroller receives the serial command and parsing operation to the

current button is determined.

- Text Control

Users previously displayed text on the screen coordinates, colors, fonts and background colors through the PC will be set up,

these text attributes are downloaded along with the picture to the screen configuration file, then the user simply send the characters to

the microcontroller corresponding text ID data to complete the display.

- Animation Control

Implement user control any time animated GIF play, stop, pause, and upper and lower frame specified frame playback.

- Icons Control

Implement user performed in the same position on the screen switches the display state of FIG different, for example: a heating,

cooling switching status icon, the phone battery change, WIFI device signal strength, the annular progress display.

- Curve Control

AD sampling chip computer user simply send over the HEX data, the screen will automatically fit around, transition of the display,

without processor participation; can also zoom in or out on the sampled data AD, and then displayed on the screen.

- Instrument Control

Through the PC to set in advance the dashboard, the user only needs to send a corresponding rotation pointer value can be

realized. If the dial scale in the range 0-180, the user simply send the value 90, the pointer 90 will automatically go to the scale.

- Progress bar control

The direction of the progress bar, the start value, stop value, the foreground and background and other parameters set in advance

by the host computer, the user only needs to send the corresponding display value can be realized progress bar incremented or decremented.

- Slider Control

The size of the cursor in advance of the slider parameters, the scale value, beginning, end values and background provided by the

host computer or the like, the user drags the cursor or clicking on a scale, the device will upload the current position of the cursor

immediately.

- Drop-down menu control

PC pre-set by the pull-down menu location, menu options, text control ID corresponding to the map, the user clicks the drop-down

icon, automatic pop-up menu options, click on the desired menu item, then the menu automatically input the data into a text box, the screen

at the same time upload menus and menu options control ID value.

- RTC clock control (associated with hardware)

PC previously set by time screen display size, position, and mode (countdown, cis timing), the user download the project to the

screen, the time automatically begin displaying on the screen can also send instructions to start the corresponding cis or countdown

function.

- Select the control slide

Select slide set time control effects similar smartphones. Alternatively, the user pre-filled with all of the data through the host

computer, and then set the selected and unselected color, vertical sliding so that to achieve the data to scroll
Effect, the selected data will be uploaded corresponding to the user ID and the option value microcontroller.

- Two-dimensional code control

User microcontroller serial port directly to the screen text message, the screen automatically draw a two-dimensional code image.

FIG scan code to the user's phone to display information input. The size of the two-dimensional code, the algorithm can be set on the host computer.

- Virtual keyboard and input method

PC in advance at a certain position of the screen for pop-up keyboard settings, click on the region, the system will automatically

pop-up built-in keyboard, the user selects text input, click OK, a character input all in ASCII or character encoding upload to the

microcontroller .

Display speed and power

size 3.5 5.0

Single color clear screen ( ms, The industry's fastest) 1.4 7.5

Full-screen picture update time ( ms, The industry's fastest) 12 48

16 * 16 Text display speed ( ms, The industry's fastest) 0.35 0.35

The brightest backlight 170 260


Power size
Off the backlight 71 180
(MA @ 5V)
Note: The user can decrease the brightness of the backlight to save power, ultra-low power requirements need to customize

Start Time( ms) No operating system, running on electricity instantly

TFT screen features

- Display Type: TFT LCD


- Backlight lamp: led

- Backlight life (average): greater than 20,000 hour (Enters the idle mode to increase the life of a low luminance, higher life need to

use high-screen)

- Contrast / Brightness / Perspective: selection of the market the general parameters screen, high brightness, wide viewing angle screen, contact the sales

- Operating temperature:- 20 ~ 70 conventional screen, special screen Contact Sales

- storage temperature:- 30 ~ 80

Resistance characteristics of the touch panel

- Touch Type: 4 Precision resistance wire

- Touch mode: Single point or sliding

- Transmittance: 80%

- Touch times:> 80 Million times

- Operating temperature:- 20 ~ 70

- Storage temperature:- 30 ~ 80

Capacitive touch characteristics (to be customized)

- Touch Type: Capacitive Screen

- Touch mode: Single point or sliding

- Transmittance: 90%

- Support glass thickness: 0.5-5mm , Capacitive screen is a layer 0.4mm A thin film bonded on a glass

- Touch times: unlimited, life expectancy is only associated with the use of the environment

- Operating temperature:- 20 ~ 60

- storage temperature:- 30 ~ 70

Environmental Specifications

- Operating Temperature: Series resistive touch - 20 ~ 70 , capacitor series - 20 ~ 60

- Vibration test: 10 to 25Hz (X, Y, Z direction 2G 30 minute)


- ESD standard: Air = 8KV , Contact = 4KV The indicators and protection measures

- At power running, to meet the complex and harsh environments, 24 * 7 * 365 Hour uninterrupted power stability

Customized services

- customizable WIFI , Zigbee Or Ethernet communication interface customization Modbus Master-slave communication protocol;

- Customizable phone APP software, WIFI Controlling the screen display;

- customizable PCB Size, add a user circuit, designated choice special specifications TFT Screen;

- Customized according to user needs special instruction or control, reduce host overhead;

- Customizable capacitive touch screen;

- It can provide a picture of art and product design services;

- One-time orders 500PCS Free customization, contains the user program, PCB Labeling and so on;

- On-demand to meet the needs of all users;


table of Contents

The first 1 chapter Interface definition and development tools 1

1.1 RS485 Communication Interface Definition 2

1.2 RS232 Communication Interface Definition 2

1.3 USB interface 2


1.4 SD Card Interface 3
1.5 Starter kit and shipping list 3
1.5.1 RS485 Interface Development Tools 3

1.5.2 RS232 Interface Development Tools 3

1.5.3 Shipping list 4


The first 2 chapter FIG product selection and Dimensions 5

2.1 86 Serial screen Product Selection Table 5

2.2 86 FIG Serial screen Dimensions 6

The first 3 chapter Instruction set and instruction format 9

3.1 Instruction format 9


3.1.1. Instruction operation illustrated 9

3.2 Color format 15


3.3 Configuration basic instruction set and instruction set differences 16

3.4 How quickly become familiar with the instruction set 16

3.5 Configuration Table Instruction Set .................. 16

3.6 The basic instruction set table .................. 26


The first 4 chapter Configuring instructions Set Details 32

4.1 Changing Screens 32


4.2 Read screen 32
4.3 Button control ID Upload value 32
4.4 Set button up or down state ............. 36
4.5 And internal instructions implement exclusive status display button 37

4.6 External command output .................. 37


4.7 Read button control state 37
4.8 Update text control value 38
4.9 Read the text control value 40
4.10 Set text control flashes 40
4.11 Set the text scrolling speed control 40
4.12 Set the background color of the text control 40

4.13 Cancel a text control background color 41

4.14 Set the foreground color text controls 41

4.15 Update progress bar control value 41

4.16 Gets progress bar control value 42

4.17 Slider controls upload format 42


4.18 Update slider control value 43
4.19 Reads the value slider controls 43
4.20 Update instrument control value 44

4.21 Meter reading value Controls 44


4.22 Animation control displays .................. 45
4.23 Icon Control display .................. 46
4.24 Icon Control value upload 47
4.25 Batch updates the control value 47

4.26 Curve control displays .................. 48


4.27 Settings drop-down menu control 50

4.28 Upload drop-down menu control value 52

4.29 Select the control value to upload 53

4.30 Update two-dimensional code control 54

4.31 Starts a timer (need hardware support RTC ) 55 ?????

4.32 Set the timer (need hardware support RTC ) 56 ?????

4.33 Pause timer (need hardware support RTC ) 56 ?????

4.34 Clear Timer (need hardware support RTC ) 56 ?????

4.35 Setting cursor focus .................. 56


4.36 Manual Disable / Enable screen updates 57

4.37 Shield / Hide Controls .................. 57


4.38 Set up RS485 Screen Address 57
4.39 RS485 Screen Address Cancel 57

4.40 System configuration is locked .................. 57


4.41 System configuration lock is released 58

The first 5 chapter Microcontroller circuit connected to the user program, and 60 ????

5.1 Examples of user microcontroller program reference ............. 60

The first 6 chapter Product storage and maintenance 65

6.1 Processing protective film 65

6.2 Product maintenance and storage 65

The first 7 Appendix chapter B DETAILED DESCRIPTION The basic instruction set 66

7.1 shake hands 66


7.2 Reset report 66
7.3 Reset the device 66
7.4 Before setting / background color .................. 66
7.5 Clear screen 67
7.6 Set the text spacing ranks 67
7.7 Set the text box 67
7.8 Picture color filter 67
7.9 Text Display 68
7.10 Cursor display 69
7.11 Full-screen picture display .................. 69
7.12 Image display area .................. 70
7.13 Image Cut 70
7.14 Animation 71
7.15 Foreground color painting point 71

7.16 Background color drawing point (point deleted) 71

7.17 Drawing a line 72


7.18 The intervals X Connected foreground color coordinates 72

7.19 The coordinate offset connection with the foreground color 72

7.20 The designated coordinate point is connected with the foreground color 73

7.21 The designated coordinate point is connected with the background color 73

7.22 Wired as a background color coordinates offset 73

7.23 Hollow round draw 74


7.24 Draw a filled circle 74
7.25 Draw an arc 74
7.26 Painting hollow rectangle 75
7.27 Painting a solid rectangle / partial clear screen 75

7.28 Hollow oval painting 75


7.29 Solid oval painting 76
7.30 Backlight adjustment 76
7.31 Automatic screen saver mode .................. 76
7.32 Buzzer control 76
7.33 Equipped with touch screen 76

7.34 Touch screen calibration 77


7.35 Touch Screen Experience 78

7.36 Set the baud rate 78


7.37 Matrix keyboard control .................. 79
7.38 Write data to FLASH 79
7.39 Read saved FLASH The data 79
7.40 Clear Layer 80
7.41 Automatically cleared when switching the current screen layer 80

7.42 Interception of the current screen and save FLASH in 80

7.43 That is saved FLASH The picture taken 80


7.44 RTC Mode setting .................. 80
7.45 RTC Clock Set .................. 81
7.46 Read RTC clock 81
86 Serial Data Sheet screen V2.1

The first 1 chapter Interface definition and development tools

86 External Serial screen there 3 Interfaces: RS485 or RS232 Communication Interface, USB Pictures download interface and SD Pictures download

interface card offline.

Map 1.1 for 3.5 Inch RS485 86 Serial screen interface diagram.

Map 1.1 3.5 Inch RS485 86 Serial screen interface

Map 1.2 for 5.0 Inch RS485 86 Serial screen interface diagram.

Map 1.2 5.0 Inch RS485 86 Serial screen interface

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

1/79
86 Serial Data Sheet screen V2.1

Map 1.3 for 5.0 Inch RS485 86 Serial screen interface diagram.

Map 1.3 5.0 Inch RS232 86 Serial screen interface

1.1 RS485 Communication Interface Definition

RS485 86 Serial port pin definition screen Table 1.1 Fig.

table 1.1 RS485 Instruction communication port definition

Name Type Explanation

GND The input power

VCC A positive input supply (5-26)

A difference 485 signal A

B difference 485 signal B

1.2 RS232 Communication Interface Definition

RS232 86 Serial port pin definition screen Table 1.2 table 1.1 Fig.

table 1.2 RS232 Instruction communication port definition

No. Name Type Explanation

1.2 VCC A positive input supply (5-26)

A busy signal output device (typically floating), 3.3V Output, any user microcontroller IO
3 BUSY Export
Port can be connected

4 DOUT Export Data transmission device pins, and the user's microcontroller RXD Connection

5.6 DIN enter Apparatus data receiving terminals, the user microcontroller TXD Connection

7.8 GND The input power

Note: BUSY = 1, indicates that the device is busy can not receive a new instruction; BUSY = 0, indicates that the device is idle. Since the internal equipment means the 4.7K bytes

So the buffer, the majority of applications, users do not need to use busy signal. If the hosts have a surplus of IO resources, you can use the pin.

1.3 USB interface

USB Interface is mainly used to download project images, fonts and configuration information. When R & D is recommended USB download speed

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

2/79
86 Serial Data Sheet screen V2.1

Faster and more convenient.

First use must be installed USB Driver, driver VisualTFT installation manual...\ VisualTFT \ driver under.

1.4 SD Card Interface

SD Card interface is mainly used for on-site or off-line mass production update the picture. After the project is compiled, click on Tools, select

"Production Wizard" to open the "Generate SD Card resource package "as 1.4 As shown, then all of the files copied to the resource bag SD Kagan directory.

Production offline, the user SD Card directly into the device, the screen prompts detected SD Card and displays the progress of the update percentage.

After the update is complete pull out SD Card, re-power the device begins normal operation. SD Card is mainly used to improve production efficiency,

10-20 More SD Download card with discount off the screen each time only tens of seconds to download.

Map 1.4 SD Card off-line production operation

1.5 Starter kit and shipping list

1.5.1 RS485 Interface Development Tools

(1) 5-24V Power Adapter. Current recommendations 1A Above, to ensure adequate current; 3.5 Inch only 5V powered by.

(2) MiniUSB Cable. Project for downloading images.

(3) 232 turn 485 Modules / USB turn 485 Module. Since the computer does not recognize 485 Signal, it needs to be converted 232

Signal, convenient debugging.

(4) DB9 Serial communication cable for computer software to keep up with VisualTFT For online instruction and commissioning.

(5) Serial debugging board, use only research and development. The small plate main screen 8P Communication terminal into a standard power

supply and serial interfaces, user-friendly computer debugging.

(6) SD Card (non-essential). SD The main card for offline use mass production.

1.5.2 RS232 Interface Development Tools

(1) 5-24V Power Adapter. Current recommendations 1A Above, to ensure adequate current; 3.5 Inch only 5V powered by.

(2) MiniUSB Cable. Project for downloading images.

(3) DB9 Serial communication cable. To keep up with computer software VisualTFT For online instruction and commissioning.

(4) Serial debugging board, use only research and development. The small plate main screen 8P Communication terminal into a standard power

supply and serial interfaces, user-friendly computer debugging.

(5) SD Card (non-essential). SD The main card for offline use mass production. Workers without a computer, only need to prepare

10 Multiple SD Card, insert multiple devices at the same time uninterrupted download. After the download is complete, the screen will prompt you, and then remove the

SD Cards continue to insert additional equipment, greatly improving efficiency. Very few brands SD Card may be compatibility issues, generally if the user

needs SD Card production, it is recommended to buy directly from our company.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

3/79
86 Serial Data Sheet screen V2.1

1.5.3 Shipping list

Factory RS232 with RS485 interface 86 Serial shipping list screen Table 1.3 And Table 1.4 Fig.

table 1.3 RS485 Factory products list

Types of product Quantity Remark

RS485 86 Serial screen 1 More --

Standard
4P Green terminal plug 1 More For power, ground, A with B wiring. Purchase like
Gift, do not provide bulk shipments

MiniUSB Cable 1 Article For downloading pictures, purchased

Options 5 / 12V Power Adapter 1 More Screen power requirements, the need to buy

SD card Any Off-line mass production, without a computer involved, must be purchased

table 1.4 RS232 Interface manufactured products list

Types of product Quantity Remark

RS232 86 Serial screen 1 More --

XH2.54-8P Double wire cable being connected 1 Article Kind of gift shopping, volume shipments does not provide
Standard accessories
Serial debugging board (used only development) 1 More Kind of gift shopping, volume shipments does not provide

XH2.54-8P Horizontal terminal (user soldered on the motherboard) 1 More Kind of gift shopping, volume shipments does not provide

MiniUSB Cable 1 Article For downloading pictures, purchased

Options 5 / 12V Power Adapter 1 More Screen power requirements, the need to buy

SD card Any Off-line mass production, without a computer involved, must be purchased

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

4/79
86 Serial Data Sheet screen V2.1

The first 2 chapter FIG product selection and Dimensions

This chapter describes the common mechanical dimensions and dimensional drawings of the appearance, the latest product Appearance can visit our website

www.gz-dc.com Were viewing and downloading.

86 2.1 Serial screen Product Selection Table

86 Serial selection screen as shown in FIG.

table 86 2.1 Serial screen selection table

Model (W: white, B: black) color size Interface voltage resolution of the image to download the configuration memory RTC Remarks

DC86RS035_02W 3.5 RS485 64K 5-26V 320 * 240 1G USB / SD Whether


86 Serial screen
DC86RS035_02B 3.5 RS485 64K 5-26V 320 * 240 1G USB / SD Whether
(Resistive screen)

DC86RS050_02W 5.0 RS485 64K 5-26V 800 * 480 1G USB / SD Whether HD

DC86B050_02W 5.0 RS232 64K 5-26V 800 * 480 1G USB / SD Whether HD

Note capacitive touch 86 boxes to be customized

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

5/79
86 Serial Data Sheet screen V2.1

86 2.2 FIG Serial screen Dimensions

Map 2.1 for 3.5 Inch RS485 86 Serial screen Dimensions FIG.

Map 2.1 3.5 Inch RS485 86 FIG size cassette White

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

6/79
86 Serial Data Sheet screen V2.1

Map 2.2 for 3.5 Inch black RS485 86 Serial screen Dimensions FIG.

Map 2.2 3.5 Inch RS485 86 FIG size box Black

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

7/79
86 Serial Data Sheet screen V2.1

Map 2.2 for 5.0 Inch RS485 86 Serial screen Appearance drawing, wherein RS232 86 Serial screen size and appearance 485 same.

Map 2.3 5.0 Inch RS485 86 Shell products

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

8/79
86 Serial Data Sheet screen V2.1

The first 3 chapter Instruction set and instruction format

3.1 Instruction format

A complete serial frame format instructions Table 3.1 Fig. If the command parameter is greater than 1 Bytes, high byte first, followed by the low byte.

The maximum length instruction is 1024 Bytes (including header and trailer), values are hexadecimal. Serial format: 8 Data bits, 1 Stop bits, no parity bit.

table 3.1 no CRC Verify command frame format

instruction EE XX XX XX ... XXX FF FC FF FF

Description header instruction Command parameters End of frame

If the user needs support CRC Efficacy instruction format, the instruction frame format shown in Table 3.2 Fig. CRC The algorithm program, please

download the official website to download the information bar. CRC Check does not contain header and trailer. Users activate or deactivate the device

configuration PC software CRC Check function.

table 3.2 band CRC Check instruction frame format

instruction EE XX XX XX ... XXX CRC16 FF FC FF FF

Description header instruction Command parameters Check Digit End of frame

3.1.1. Instruction operation illustrated

1. Switching the screen. If the user needs to be displayed on the screen in FIG. 3.1 Serial instruction screen illustrated, the host sends the user as

follows:

Map 3.1 Switch the screen display

MCU sends commands B1 00 00 01 [EE] FF FC FF FF

EE represents header B1 00 represents a screen switching instruction

showing target screen 0001 to be displayed ID, 2 bytes FF FC FF FF


Command parsing
indicates end of frame

prompt ID number of each picture by the host machine generates compiled

2. Button control ID Upload. If the user clicks the touch map 3.2 "Start Run" button, assuming the current screen

ID for 2 , Button ID for 1 , The serial port to upload screen instructions are as follows:

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

9/79
86 Serial Data Sheet screen V2.1

Map 3.2 Button control ID Upload value

Upload screen instructions EE [B1 11 00 02 00 01 10 01 01] FF FC FF FF

EE It represents header B1 11 It means that the configuration control

instructions to upload; 00,020,001 2 represents a current picture ID, the control ID is

110 It represents a control for the button control 01 Represents a button control

Command parsing switch type attribute 01 Represented by the state of the button pops into press FF FC

FF FF indicates end of frame

prompt ID numbers of all the control buttons with Ge generated by the host computer, may modify their own

User microcontroller serial more instructions received data can be parsed which button is pressed
Explanation
which screen

3. Text display. If the user needs to FIG. 3.3 Currently displayed digital voltage 220 , Assuming that the screen ID for 1 , Text control ID for 7 , The host

sends the following instructions:

Map 3.3 Text control displays

SCM transmission command EE [B1 10 00 01 00 07 32 32 30 FF FC FF FF]

EE represents the header

B1 10 represents a configuration control command transmitted;


Command parsing
00010007 expressed as a screen ID, control ID of 7323230 represents

an ASCII code of 220;

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

10/79
86 Serial Data Sheet screen V2.1

FF FC FF FF indicates end of frame

Because the font color, size, bit Ge in advance on a PC with Ge, so users only need to send
Explanation
data to the microcontroller for the ID number

4. System keyboard input. If the user needs to FIG. 3.4 The display unit number " 1001 No. "assume screen ID for 1 , Text control is 1 , Simply click

on the text box at the pop-up keyboard input system input " 1001 Number "(English handover is required), and finally click OK, this will automatically enter

text into the text box is embedded, while the upload instruction follows.

Note: Because the 3.5-inch screen size reasons, do not support the Chinese keyboard, keypad support

Map 3.4 Keyboard input parameter display

Upload screen instructions EE [B1 11 00 01 00 01 11 31 30 30 31 BA C5 00] FF FC FF FF

EE represents the header

B1 11 represents a configuration control instructions received; 00010001

expressed as a screen ID, control ID of 111 Represents a control for the

text controls 31,303,031 represents the ASCII code numbers 1001


Command parsing

BA C5 represents the Chinese character for "No. " Within

00 yards of the end character

FF FC FF FF indicates end of frame

Explanation Users microcontroller receives ASCII code input screen uploaded to obtain information

5. Custom command output. Users can set up a button is pressed, uploading data to the serial define yourself. Example FIG. 3.5 , The user may

press the set "Custom instruction" button, send instructions to the screen: FF 01 AA FF .

Note: custom data can not contain "FF FC FF FF" character combination, or same end of the frame will be regular instruction, causing the

abnormality. For simultaneous multi-output instructions, each instruction requires semicolon separated.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

11/79
86 Serial Data Sheet screen V2.1

Map 3.5 Custom command output

6. Icon. If the user wants to achieve a status icon changes to display, such as running time, display the "Run icon" show "Stop icon" reset icon

disappears, when two abnormal icon flashes back and forth, then you can use the controls to stop icons solve.

First with built-in software icon generator all status icons will generate a ICON file( ICON File contains all the frames in FIG state), microcontroller then

transmits a control command ICON Frame playback. For example, Fig. 3.6 , The user wants to "stop sign" replaced "start icon", an instruction is sent as

follows:

Replacement icon display

Map 3.6 Icon display

SCM transmission command EE [B1 23 00 03 00 01 01] FF FC FF FF

EE denotes an icon representing the header control instruction B1 23;

00,030,001 represented as screen ID 3, ID 1 control

Command parsing

01 It stands for "execution icon" frame ID FF FC FF

FF indicates end of frame

ICON file there are two picture frames, the frame is stopped ID 0, is up and running frame ID 1, so

Explanation the playback frame 1 is to show the run icon, the playback frame 0 is displayed stop icon.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

12/79
86 Serial Data Sheet screen V2.1

7. Instrument display. If the user needs to map 3.7 The dial 1 Go pointer degrees 5 Office, assuming the screen ID for 4 , Instrument control ID for 1 The

user sends an instruction microcontroller follows:

Map 3.7 Instrument control displays

[EE apparatus upload instruction B1 10 00 04 00 01 00 00 00 32 FF FC FF FF]

EE represents header B1 10 means that the configuration control command

transmitted 00040001 4 shows a screen ID, control ID is represented

Command parsing 100000032 50 FF FC FF FF value indicates the end of frame

Since the pre-set Ge PC dial start value 0, the value of the termination 100, transmission
Explanation
value 50, a pointer pointing exactly at the direction of the scale 5

8. Curve display. If users need to achieve chart 3.8 The curve shows, the user simply send the host AD Sampling sequence value, the device will

automatically zoom, pan, advance display.

Map 3.8 Curve control displays

9. Progress bar and slider displays. If you need to achieve chart 3.9 Scroll display the progress bar, the progress value sent to the user only with the

master display. Hypothesis PC The progress bar on the start value is configured 0 Termination value 100 Picture ID for 3 , Progress bar control ID for 1 , The user

needs to display the progress bar in the center, sending instructions as follows:

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

13/79
86 Serial Data Sheet screen V2.1

Map 3.9 Progress and slide show

[EE apparatus upload instruction B1 10 00 03 00 01 00 00 00 32 FF FC FF FF]

EE represents header B1 10 means that the configuration control command

transmitted 00030001 3 shows a screen ID, control ID is represented

Command parsing 100000032 50 FF FC FF FF value indicates the end of frame

Since the start value PC set in advance Ge 0 progress bar, stop value 100, transmission
Explanation
value 50, the progress bar displayed at the center right bit Ge

10. The drop-down menu that appears. Click the drop-down button, automatic pop-up drop-down menu, pull-down menu option value is automatically

loaded into the text box is displayed, while the screen upload the drop-down menu ID Options column value to users and microcontroller. Users can resolve

the current which the pull-down menu, which option is selected. Figure 3.10 As shown, the user clicks the drop-down button, pop-up drop-down menu, the

user clicks 57.7V The data is automatically loaded into the text box.

Map 3.10 Drop-down menu that appears

11. The slide selection menu display. User selection of all the data pre-populated in the host computer, a display of the number, size

magnification ends, and then slide the parameter column, the data display scrolling cycle. After rolling stop, you upload the current screen controls ID And

the selected item value to the user microcontroller. Users can choose which to resolve the current menu, which option is selected, select the control

reference is shown in Figure 3.11 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

14/79
86 Serial Data Sheet screen V2.1

Map 3.11 Select the slide show controls

12. Two-dimensional code display. Users only need to send the microcontroller scans the content of the character information, screen content

automatically generate a two-dimensional code image, mobile phone users can scan identification. Magnification, the coding mode of the two-dimensional

code, the display color can be set in the host computer. For example, a user serial port to send characters " www.gz-dc.com ", The screen automatically produce

corresponding two-dimensional code, as shown in 3.12 Fig.

Map 3.12 Two-dimensional code control displays

3.2 Color format

Total support equipment 2 ^ 16 = 65536 Colors (referred to as 65K color), RGB for 565 Format, the high and low bytes are allocated as shown in Table

3.3 Fig.
table 3.3 RGB Color distribution format

The number of bits (Bit)15 1,413,121,110,987,654 3210

Color distribution R G B

For example: pure red = F800H, pure blue = 001FH Note: The user can obtain a desired color and

debug and RGB values visualTFT PC software.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

15/79
86 Serial Data Sheet screen V2.1

3.3 Configuration basic instruction set and instruction set differences

Instruction Set in two parts: the basic configuration control instruction set and instruction set.

The main difference between the two is: Basic set of instructions can be understood as the bottom of a set of instructions, most of the operations must

contain coordinates, colors, fonts and other parameters; direct configuration is object-oriented instruction set ID Operation, and all the relevant parameters of

these objects is configured in advance in the PC software, downloaded to the memory along with the image of the screen.

Configuring the instruction set to meet 99% The user needs to develop a simple, true "zero" code programming. In addition, in the case where the

configuration instruction set can not be met, the user may also be combined basic instructions and configuration, to complete a desired display.

3.4 How quickly become familiar with the instruction set

Serial number of screen instruction set, the user can use the screen and PC online debugging, built-in hair through the PC serial command

instruction aides, analog microcontroller host user can quickly become familiar with command functions. Screen and PC VisualTFT Helper line and

instructions are shown in Figure 3.13 Fig.

Since the computer does not recognize RS485 Signal, users need to purchase RS485 turn RS232 or USB turn RS485 Modules to facilitate computer

on-line test.

Map 3.13 Instruction assistant

3.5 Configuration Table Instruction Set

table 3.4 Configuration Instruction Set

category instruction Command parameters Explanation

After receipt of the handshake command screen, return to the 55 host handshake to show success or online.
shake hands 0x04 no
Returned Format: EE 55 FF FC FF FF

Once the device is powered on, an unexpected restart or monitor chip reset, the relevant number will be uploaded immediately

Reset report no no According to inform users of the current device has been reset

Returned Format: EE 07 FF FC FF FF

Reset the device 0X07 0x35 + 0x5a + 0x53 + 0xa5 A master reset instruction display screen through the serial port

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

16/79
86 Serial Data Sheet screen V2.1

Returned Format: EE 07 FF FC FF FF

Switching from the current screen to a target screen display

Changing Screens 0xB1 + 0x00 Screen_id Screen_id (2 Bytes): target screen ID

The screen display switching instruction is mainly achieved

Reading a current value of the picture ID of

Return instruction format: EE B1 01 Screen_id FF FC FF FF


Read screen 0xB1 + 0x01 no
Screen_id (2 Bytes): the number of the current picture

The instruction is mainly used to obtain the current screen in which screen display

After pressing a button, the device actively upload button ID information

Upload format: EE [ B1 11 Screen_id Control_id Control_type

Subtype Status ] FF FC FF FF

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x10 , Expressed as a button control type

Button control ID value Subtype (1 Subtype button control: byte)


no no
Upload 0x00: screen switch, indicates that the current screen switching button is pressed

0x01: switch type, represented by the current switch button is pressed

0x02: custom key-value, representing the current custom key button pressed

Status (1 Bytes): the button state

0x00: a button is pressed into the up state

0x01: state pressed from the pop-up button becomes

The main directive tells the user which screen is currently the first few buttons is pressed

Custom command Instruction issued after pressing a custom button control through the PC, may be a plurality of
no no
Export Output instructions simultaneously, separated by a semicolon between multiple instructions

A button to set the display state to bounce or pressed

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Set button up and Screen_id + Control_id +
0xB1 + 0x10 Status (1 Bytes): the button state
Pressed state Status
0x00: Press the button to become a pop

0x01: Press the button to become a pop

This command is mainly used to display the button state change

Discover a button is pressed or the current state of pop

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Read button-like controls
0xB1 + 0x11 Screen_id + Control_id Return instruction format: EE B1 11 Screen_id Control_id Control_type
state
Subtype Status FF FC FF FF

Status ( 1 Bytes): 0x00 Up state 0x01 Pressed state

Note: return the same parameters as defined button control value upload instructions

Write text data to the specified text controls


Update of text controls Screen_id + Control_id +
0xB1 + 0x10 Screen_id (2 Bytes) : Screen number
value Strings
Control_id (2 Bytes) : Control Number

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

17/79
86 Serial Data Sheet screen V2.1

Strings (Variable): numerical text written by the user;

The text data displaying instruction is mainly used to implement

Gets the value of a text control currently displays

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Return instruction format: EE B1 11 Screen_id Control_id Control_type


Reading of text controls
0xB1 + 0x11 Screen_id + Control_id Strings FF FC FF FF
value
Return parameter: Control_type (1 Bytes): fixed value 0x11 ,Expressed as

Text Control Types

Strings (Variable): append a text value currently displayed text 1 More

0x00 As terminator

Set text control blink speed

Set text controls flash Screen_id + Control_id + Screen_id (2 Bytes) : Screen number
0xB1 + 0x15
Shuo cycle Cycle Control_id (2 Bytes) : Control Number

Cycle ( 2 Bytes): Blinking period (10 milliseconds), no flashing 0

Set text control scroll speed (leftward direction)

Screen_id (2 Bytes) : Screen number


Set text control roll Screen_id + Control_id +
0xB1 + 0x16 Control_id (2 Bytes) : Control Number
Moving speed Speed
Speed ( 1 Bytes): Text scroll speed (moving pixels per second), 0 means no

scroll

Set the background color of the text control

Set text control back Screen_id + Control_id + Screen_id (2 Bytes) : Screen number
0xB1 + 0x18
view BK_Color Control_id (2 Bytes) : Control Number

BK_Color ( 2 Bytes): Background color RGB color value

Set the foreground color text controls

Setting text controls Screen_id + Control_id + Screen_id (2 Bytes) : Screen number


0xB1 + 0x19
Foreground color FORE_ Color Control_id (2 Bytes) : Control Number

FORE_ Color ( 2 Bytes): Foreground RGB color values

The text into the background with the background of the transparent display

Set the text background transparent 0xB1 + 0x17 Screen_id + Control_id Screen_id (2 Bytes) : Screen number

Control_id (2 Bytes) : Control Number

SCM users to send picture data, update the screen display

X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value


Pictures significant external update X + Y + Wight + Height
0x39 Wight ( 2 Bytes): Set the text area width
Show
Height ( 2 Bytes): Set Text height range

Note: The picture shows the starting bit Ge and width, then subsequently transmitted pictures BMP

Data can, RGB image endian.

Write data to the specified progress bar control

Update progress bar control Screen_id + Control_id + Screen_id (2 Bytes) : Screen number
0xB1 + 0x10
Numerical Progressvalue Control_id (2 Bytes) : Control Number

Progressvalue ( 4 Bytes): the user writes the new value of the progress bar

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

18/79
86 Serial Data Sheet screen V2.1

This instruction is mainly used to increment or decrement the progress achieved

Gets the current value of the progress bar control

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Reading progress bar control Return instruction format: EE B1 11 Screen_id Control_id Control_type
0xB1 + 0x11 Screen_id + Control_id
Numerical Progressvalue FF FC FF FF

Return parameter: Control_type ( 1 Bytes): fixed value 0x12 ,Expressed as

Progress bar control type

Progressvalue ( 4 Bytes): current value of the progress bar

When drag the slider, the device constantly uploaded cursor values are as follows:

Upload format: EE [ B1 11 Screen_id Control_id Control_type

Slidervalue ] FF FC FF FF
Upload slider controls
no no Screen_id (2 Bytes): Screen Number
format
Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x13 Expressed as slider controls

Slidervalue (4 Bytes): indicates the current cursor value

Write data to the specified slider controls

Screen_id (2 Bytes) : Screen number


Update slider controls Screen_id + Control_id +
0xB1 + 0x10 Control_id (2 Bytes): Control Number
Numerical Slidervalue
Slidervalue (4 Bytes): the user writes the new value of the slider

This command is mainly for controlling the position of the cursor slider

Gets the slider control's current value cursor

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Read slider controls Return instruction format: EE B1 11 Screen_id Control_id Control_type


0xB1 + 0x11 Screen_id + Control_id
Numerical Slidervalue FF FC FF FF

Return parameter: Control_type ( 1 Bytes): fixed value 0x13 ,Expressed as

Slider control type

Slidervalue ( 4 Bytes): this value displayed slider

Write data displayed on the specified instrument controls

Screen_id (2 Bytes) : Screen number


Update Instrument Control Number Screen_id + Control_id +
0xB1 + 0x10 Control_id (2 Bytes) : Control Number
value Metervalue
Metervalue (4 Bytes): the user writes the new value of the meter

Rotating the instrument main realization instruction pointer

Gets the current value of the instrument control

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Reads gauge controls
0xB1 + 0x11 Screen_id + Control_id Return instruction format: EE B1 11 Screen_id Control_id Control_type
value
Metervalue FF FC FF FF

Return parameter: Control_type ( 1 Bytes): fixed value 0x14 ,Expressed as

Instrument Control Types

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

19/79
86 Serial Data Sheet screen V2.1

Metervalue ( 4 Bytes): this value is displayed in the meter

Note: The return parameters consistent with the definition of the meter updates the control value

Batch update text, progress bars, meters, buttons, icons and controls values.

The benefits of batch updates is an instruction can put the entire contents of the current screen update complete

Bi, improve the refresh speed and efficiency.

Screen_id + Control_id0 + Screen_id (2 Bytes) : Screen No.

Bulk update the number of controls Len0 + Strings0 + Control_id0 ( 2 Bytes): 1st control number
0xB1 + 0x12
value + ... Control_idn + Len0 (Variable): the length of a numerical control, i.e. the length of string0

Lenn + Stringsn Strings0 (Variable): a first control value

Control_idn ( 2 Bytes): the number of the n-th control

Lenn (Variable): the length of the n-th numerical control, i.e. the length of string0

Stringsn (Variable): the length of the n-th control values, i.e. the length of stringn

Displayed on the specified text control (mode only applicable custom keyboard) Cursor

Screen_id (2 Bytes): Screen Number


SCREEN_ID +
Setting cursor focus 0xB1 + 0x02 Control_id (2 Bytes): Control Number
CONTROL_ID + ENABLE
Enable (1 Bytes): cursor display enable

0x00: turn off the display; 0x01: the tamper-indicating

Manual Disable / Enable screen updates

Enable (1 Bytes): update enable

0x00: disable updating; 0x01: Enable Update


Manual Disable / Enable
0xB3 Enable This command is mainly to solve the excessive number of controls of a screen in real time dynamically updated guide
Screen updates
Slow screen updates caused the problem.

Usage: The user first sends the screen update instruction is prohibited, and then sends the entire screen

The need to update the content, and finally enable the screen updates.

Will display a control screen or hidden.

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


SCREEN_ID + CONTROL_ID +
Shield / Hide Controls 0xB1 + 0x03 Enable (1 Bytes): Enable mask or hide
ENABLE
0x00: masking or hiding controls; 0x01: shielded / Hide lifted

The command used to specify a time to failure of the function button control, may also be used

A control is not displayed hidden

Start animation

Screen_id (2 Bytes): Screen Number


0xB1 + 0x20 SCREEN_ID + CONTROL_ID
Control_id (2 Bytes): Control Number

After starting playback, animation playback from the beginning of each header 0, format only supports GIF.

Stop the animation

Animation control displays Screen_id (2 Bytes): Screen Number


0xB1 + 0x21 SCREEN_ID + CONTROL_ID
Control_id (2 Bytes): Control Number

After the execution to stop playing, the next start playing from the header 0

Suspended animation

0xB1 + 0x22 SCREEN_ID + CONTROL_ID Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

20/79
86 Serial Data Sheet screen V2.1

After performing pause, next time will continue to play a pause frame

Specified frame playback

Screen_id (2 Bytes): Screen Number


SCREEN_ID + CONTROL_ID
0xB1 + 0x23 Control_id (2 Bytes): Control Number
+ FlashImgae_ID
FlashImgae_ID (1 byte): a motion image frame ID

Specify the start playback from a frame

Played on a

0xB1 + 0x24 SCREEN_ID + CONTROL_ID Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Play the next frame

0xB1 + 0x25 SCREEN_ID + CONTROL_ID Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Press an animation or slide controls when the device information uploaded:

Screen_id (2 Bytes): Screen Number


0XB1 + 0x26 + SCREEN_ID +
Animation control value Control_id (2 Bytes): Control Number
no CONTROL_ID + Status +
Upload Status (1 Bytes): 0x00 It indicates touch Press, 0x01 Expressed bounce;
FlashImgae_ID
FlashImgae_ID ( 1 Bytes): indicates the time by pressing the screen displayed animation frames;

Note: Users can configure banned in PC / enable animation control value to upload.

PC users to use the built-in icon generator, all the different states of the picture

Synthesis of an ICON file, and then specify a host icon frame display.

Screen_id (2 Bytes): Screen Number

SCREEN_ID + CONTROL_ID Control_id (2 Bytes): Control Number


Icon Control display 0xB1 + 0x23
+ IconImgae_ID IconImgae_ID (1 byte): An icon frame ID

The instruction commonly used in several different states of the display screen at the same image position.

Note: If you need to display the icon disappears, you can make a transparent PNG image that is

You can achieve the effect disappears.

Press or sliding an icon controls when the device information uploaded:

Screen_id (2 Bytes): Screen Number


0XB1 + 0x26 + SCREEN_ID +
Icon Control value Control_id (2 Bytes): Control Number
no CONTROL_ID + Status +
Upload Status (1 Bytes): 0x00 It indicates touch Press, 0x01 Expressed bounce;
IconImgae_ID
IconImgae_ID ( 1 Bytes): the current frame display icon ID ;

Note: Users can configure banned in PC / enable icon in the control value to upload.

Adds the specified data channel

Screen_id (2 Bytes): Screen Number


SCREEN_ID + CONTROL_ID
0xB1 + 0x30 Control_id (2 Bytes): Control Number
+ CHANNEL + COLOR
CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

Curve Control COLOR (2 Bytes): Color data channel

Remove the specified data channel

SCREEN_ID + Screen_id (2 Bytes): Screen Number


0xB1 + 0x31
CONTROL_ID + CHANNEL Control_id (2 Bytes): Control Number

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

21/79
86 Serial Data Sheet screen V2.1

Add new data at the end of the specified channel

Adding new data to the end of the specified data channel, when the data length exceeds the buffer length

When the old data left.

Screen_id (2 Byte): Number screen; Control_id (2 Byte): Control Number

SCREEN_ID + CONTROL_ID + CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )
0xB1 + 0x32
CHANNEL + DATA_LEN + DATA DATA_LEN (2 Bytes): data length

DATA : Variable length data, length of the DATA_LEN Specification format: Data-generation

Table is Y Value axis direction, X Will automatically increment the axial direction from the horizontal scaling factor,

When the horizontal scaling factor of e.g. 1 When each insertion point X Automatic shaft 1 ,

When the horizontal scaling factor 5 When each insertion point X Automatic shaft 5

Empty specified data channel


SCREEN_ID + CONTROL_ID
0xB1 + 0x33 Screen_id (2 Byte): Number screen; Control_id (2 Byte): Control Number
+ CHANNEL
CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

Specifies the vertical / horizontal zoom / pan

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

XOFFSET ( 2 Bytes): horizontal offset data points, the left is positive, negative right
SCREEN_ID + CONTROL_ID +
XMUL ( 2 Bytes): the horizontal zoom parameter, the unit 0.01
0xB1 + 0x34 XOFFSET + XMUL +
YOFFSET ( 2 Bytes): vertical offset value, down is positive, the shift is negative
YOFFSET + YMUL
YMUL ( 2 Bytes): the vertical scaling unit 0.01

Sampling point and the calculated coordinate point: first N Values of sampling points V

X Coordinates = ( N-XOFFSET) * XMUL * 0.01

Y Coordinates = ( V-YOFFSET) * YMUL * 0.01

The front end of the specified channel to add new data

Insertion of new data at the head of the specified data channel, when the data length exceeds the buffer length

When degrees, the old data to the right


SCREEN_ID + CONTROL_ID +
0xB1 + 0x35 Screen_id (2 Byte): Screen Number Control_id (2 Byte): Control Number
CHANNEL + DATA_LEN + DATA
CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

DATA_LEN (2 Bytes): data length

DATA : Variable length data, length of the DATA_LEN Designation

After setting the pop-up drop-down menu, menu options which data is automatically written into the text box

Screen_id (2 Bytes): Screen Number


Settings drop-down menu SCREEN_ID + CONTROL_ID +
0xB1 + 0x13 Control_id (2 Bytes): Control Number
Controls Enable + Textctrl_ID
Enable (1 byte) : Enable menu

Textctrl_ID (2 bytes) : Text Control

Menu control to upload data frame format. When you select the drop-down menu items, the system self

Upload dynamic control ID value and the value of the selected item.
0xB1 + 0x14 + SCREEN_ID +
Drop-down menu control value Screen_id (2 Bytes): Screen Number
no CONTROL_ID + 0x1A +
Upload Control_id (2 Bytes): Control Number
Meundata_ID + Status
Meundata_ID (1 byte) : The first of several data options

Status (1-byte) : Touch state, 0 Expressed bounce; 1 It means to press

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

22/79
86 Serial Data Sheet screen V2.1

Set selection control slide currently displayed data items

Selection control slide provided SCREEN_ID + CONTROL_ID + Screen_id (2 Bytes): Screen Number
0xB1 + 0x10
Pieces of the current selection Select_data_ID Control_id (2 Bytes): Control Number

Select_data_ID (1 byte) : The first of several data options

Select the slide controls to achieve the main slide up and down to select the desired data, select the system from

0xB1 + 0x11 + SCREEN_ID + Upload dynamic control ID value and the currently selected item.
Slide selection control value
no CONTROL_ID + 0x1B + Screen_id (2 Bytes): Screen Number
Upload
Select_data_ID Control_id (2 Bytes): Control Number

Select_data_ID (1 byte) : The first of several data options

Generating a two-dimensional code display content specified in FIG.

Screen_id (2 Bytes): Screen Number


Screen_id + Control_id +
Update two-dimensional code control 0xB1 + 0x10 Control_id (2 Bytes): Control Number
Strings
Strings (Variable length): two-dimensional code character content

This command is mainly used to implement the two-dimensional code figure shows, the instruction format text as control

Set RTC timer

Screen_id (2 Bytes) : Screen No.

Screen_id + Control_id + Control_id (2 Bytes) : RTC Control Number


Set the timer 0xB1 + 0x40
timedata timedata ( 4 Bytes): timer value in seconds

The instructions for the hardware only supports the RTC clock of products, equipment, and pre-set PC

The clock was set control properties

Start timer

Screen_id (2 Bytes) : Screen No.

Start timer 0xB1 + 0x41 Screen_id + Control_id Control_id (2 Bytes) : RTC Control Number

Timer ends, uploading screen event notifications, upload format:

EE B1 43 Screen_id Control_id 17 FF FC FF FF

Pause timer

Screen_id (2 Bytes) : Screen No.


Pause timer 0xB1 + 0x44 Screen_id + Control_id
Control_id (2 Bytes) : RTC Control Number

After the pause time, sending start the timer will continue to count

Clear timers

Screen_id (2 Bytes) : Screen No.


Clear Timer 0xB1 + 0x42 Screen_id + Control_id
Control_id (2 Bytes) : RTC Control Number

After the timer is cleared, the timer count value to restore the original settings

No address setting screen 485

Addr : 2 Bytes representing screen address from 1 Start, 0 Broadcast address


0xA5 + 0x01 Addr
After address setup is successful, all the instructions are uploaded will add an address in the following format:

EE Addr ... FF FC FF FF

Set 485 screen address Set 485 screen address existing address

Addr_old :current 485 Address screen


Addr_old + 0xA5 + 0x00
no Addr_new :new 485 Screen Address
+ Addr_new
For the screen has an address, you need to specify the original address, then set the new address.

Without knowing the original address, you can cancel the address, and then re-set the new address

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

23/79
86 Serial Data Sheet screen V2.1

There are two kinds cancel 485 Address:

(1) cancel the existing address screen Address: EE Addr A5 00 FF FC FF FF


Cancel 485 screen address no Addr + 0xA5 + 0x00
Addr :( 2 Bytes) address the current screen

(2) cancel the broadcast address: EE 00 00 A5 00 FF FC FF FF

Set backlight brightness value


Backlight adjustment 0x60 Light_level
0x00: The brightest backlight 0xFF: backlight off

Buzzer control 0x61 Time Time (1 Bytes): hearing sound time in 10ms

After calibration is complete, the device returns EE 04 FF FC FF FF

If you need support at some point in the non-touch area 4 Within seconds quick click 20 Next, automatic
Touch screen calibration 0x72 no
Touch into school mode, you need to configure the touch to open the function., Can be in command of Assistant

See the device configuration command

Enable : Enable signal

0x00: Close experience 0x01: Enable Experience


Touch Screen Experience 0x73 Enable
After the user presses the touch screen coordinates corresponding to a red solid circle. Used to measure

Touchscreen accuracy test

Baudset ( unit bps, 1 Bytes), the baud rate serialization:

0x00: 1200 0x01: 2400 0x02: 4800

0x03: 9600 0x04: 19200 0x05: 38400


Set the baud rate 0xA0 Baudset
0x06: 57600 0x07: 115200 0x08: 1M

0x09: 2M 0x0A: 218750 0x0B: 437500

0x0C: 875000 0x0D: 921800

The data saved in the specified address in FLASH, EEPROM use as

Addr ( 4 Bytes): the start address of the data written

Datan ( 1 Bytes): write data

Addr + Data0 ... Storage space for 128K Byte address range is 0 ~ 0x1FFFF
Writing data to the FLASH 0x87
+ Datan After writing a successful return: EE 0C FF FC FF FF

After writing Failure: EE 0D FF FC FF FF

Note: Due to Nandflash There Endurance ( 10 About million times), an important parameter,

The need to repeatedly erase core data storage is not recommended

The random data is written or read out in sequential memory

Addr ( 4 Bytes): data read start address


Read stored in FLASH
0x88 Addr + Length Length (2 Bytes): read data length in bytes
The data
The returned data format:

EE 0B Length Data0 ... Datan FF FC FF FF

Will save the current screen contents to the device FLASH


Interception of the current screen and
0x46 Image_ID Image_ID (1 Bytes): custom picture number stored in a memory,
Stored in FLASH
Only be saved 2 Pictures

Display stored in FLASH A display screen stored in the apparatus, taken in the FLASH
0x47 Image_ID
The picture taken Image_ID (1 Bytes): custom picture number stored in the memory

To prevent the system is running, you receive an error frame instruction cause unexpected repair system configuration
System configuration is locked 0x08 0xA5 + 0x5A + 0x5F + 0xF5
change. Once the configuration is locked, the external device can not receive the serial command is modified,

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

24/79
86 Serial Data Sheet screen V2.1

USB or system configuration can only release instruction

Configuration parameters comprising: a baud rate, a touch, a buzzer, a matrix keyboard mode of operation and

Automatic backlight adjustment parameters

Returned Format: EE 17 FF FC FF FF

Once the system configuration lock is released, the serial device can receive an external command to re-repair
Lift system configuration
0x09 0xDE + 0xED + 0x13 + 0x31 Change the configuration parameters
locking
Returned Format EE 18 FF FC FF FF

Trigger warning

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Screen_id + Control_id + Val
0xB1 + 0x50 Value ( 2 Bytes): Value Number
ue + time
Time ( 7 Bytes): Sec Min Hour Day Week Mon Year Optional set

Set, if the set time, taking the default RTC time

The instruction is mainly used to add triggers an alarm

Warning lifted

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Screen_id + Control_id + Val
0xB1 + 0x51 Value ( 2 Bytes): Value Number
ue + time
Time ( 7 Bytes): Sec Min Hour Day Week Mon Year Optional set

Set, if the set time, taking the default RTC time

This command is mainly used for releasing alarm

Add Record data

Screen_id (2 Bytes): Screen Number


Screen_id + Control_id + Val
Data recording controls Control_id (2 Bytes): Control Number
0xB1 + 0x52 ue + {strings0 + Semicolon delimiter
string (Variable length): Recording data; data between data and semicolon ";" points
+ ... stringsn + Separator}
Partition

This command is mainly used to add data table

Clear History data

Screen_id (2 Bytes): Screen Number


0xB1 + 0x53 Screen_id + Control_id
Control_id (2 Bytes): Control Number

The instruction is mainly used to clear the data table

Display offset setting record

Screen_id (2 Bytes): Screen Number


Screen_id + Control_id + Off
0xB1 + 0x54 Control_id (2 Bytes): Control Number
set
Offset (2 Bytes): Control Number

This command is mainly used to set records indicate offset, i.e., position of the slider

Get the current number of records

Screen_id (2 Bytes): Screen Number


0xB1 + 0x55 Screen_id + Control_id
Control_id (2 Bytes): Control Number

Gets the number of recording a record control data

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

25/79
86 Serial Data Sheet screen V2.1

3.6 The basic instruction set table

In the case of the configuration can not meet a set of instructions, the user may be realized by the basic instruction set, the basic instruction set

Appendix A . Users do not care about basic basic instruction set, the instruction set configuration to meet 99% User needs. The basic set of instructions in the

following table 3.5 Fig.

table 3.5 General Instructions

category instruction Command parameters Explanation

Foreground color for points, lines, circles, text, and graphics specified color
Set the foreground color 0x41 Fcolor
Fcolor (2 Bytes): RGB Color values

Specifies the background color for the screen is cleared, text background color and background curves
Set the background color 0x42 Bcolor
Bcolor (2 Bytes): RGB Color values

Clear the screen according to the specified color


Clear screen 0x01 no
NOTE: clear screen color depends on the background color set Ge, the default is blue

Set the text line Y_W (1 Bytes) In points of the line spacing, the value 00 ~ 3F
0x43 Y_W + X_W
Column spacing X_W (1 Bytes) In points of the column spacing, the value 00 ~ 3F

Limiting the text display area to display Wrap

Enable (1 Bytes)

Set the text box 0x45 Enable + Width + Hight 0x01: Limit Enable Open text box, 0x00: Close Limit Enable textbox

Width (2 Bytes): text box display width

Hight (2 Bytes): the height of the text box displayed

Picture color filter not display the same color value


Picture color filter 0x44 FilterColor
FillColor (2 Bytes): Color filter RGB value

Text displayed at arbitrary coordinates specified size

X (2 bytes): X-axis coordinate value in points of

Y (2 bytes): Y axis coordinate values in units of points

Back (background color, one byte)

0x01: Open the background color display 0x00: Off Background Color display

Font (character code, 1 byte)

0x00: 8x12 dot matrix (ASCII)

0x01: 8x16 dot matrix (ASCII)

0x02: 12x24 dot matrix (ASCII)


Text Display 0x20 X + Y + Back + Font + String
0x03: 16x32 dot matrix (ASCII)

0x04 12 x 12 dot (GBK)

0x05: 16 x 16 dot (GBK)

0x06: 24 x 24 dot (GBK)

0x07: 32 x 32 dot (GB2312)

0x08: 32 x 64 dot (ASCII)

0x09: 64 x 64 dot (GB2312)

Strings: string written by the user (high byte first)

Note: The text font color is consistent with the foreground color, background color as the background color

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

26/79
86 Serial Data Sheet screen V2.1

Switching the default language, the global switch

Enable_ID ( 1 Bytes)

0x00: initial default language, language 1

Multi-language switch 0xc1 Enable_ID + check 0x01: initial default language, language 2

check ( 1 Bytes)

check = Enable_ID + C1

parity check data, such as Enable_ID = 01, then check = c1 + 01 = c2

Displaying a cursor at arbitrary coordinates specified size

Enable (1 Bytes): cursor enable signal

0x00: Close 0x01: open

X (2 Bytes): in points of X Axis coordinate value


Enable + X + Y +
Cursor display 0x21 Y (2 Bytes): in points of Y Axis coordinate value
Width + Hight
Width (1 Bytes): the width of the cursor

Hight (1 Bytes): height of the cursor

Note: In contrast to the current cursor color cursor area starting point colors, flashing silent time

Recognize one second

A full screen images, stationary start position (0,0)

Image _ID (2 Bytes): Image,

MaskEn (1 Bytes): filtration can


Full-screen picture display 0x31 Image_ID + MaskEn
0x00: no color filter; 0x01 performs color filtering

Note: The filter color depends on the color of the image filtering based Ge, download pictures points

Resolution can not exceed the current screen resolution, or can not be displayed.

Arbitrary coordinates display an image that

X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value

Image display area 0x32 X + Y + Image_ID + MaskEn Image _ID (2 Bytes): Image,

MaskEn (1 Bytes): filtration can

0x00: no color filter; 0x01 performs color filtering

Note: filtering the color depends on the color filter provided Ge.

Any display coordinates from a cut over picture Photo

X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value

Image_ID (2 Byte): To cut a picture ID

X + Y + Image_ID + Image_ Image_X (2 Bytes): the starting point of the picture is cut X coordinate

Cut display picture 0x33 X + Image_Y + Image_W + Image_Y (2 Bytes): the starting point of the picture is cut Y coordinate

Image_H + MaskEn Image_W (2 Bytes): the width of cut

Image_H (2 Bytes): Cut height

MaskEn (1 Bytes): filtration can

0x00: no color filter; 0x01 performs color filtering

Note: filtering the color depends on the color filter provided Ge

X + Y + FlashImgae_ID + Arbitrary coordinates display animated GIF

0x80
Animation Enable + Playnum X (2 Bytes): in points of X Axis coordinate value

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

27/79
86 Serial Data Sheet screen V2.1

Y (2 Bytes): in points of Y Axis coordinate value

FlashImage_ID (2 Bytes): movie number

Enable (1 Bytes): Play Enable

0x00: Close animation; 0x01: open animation

Playnum (1 Bytes): Views

0x00: repeat; 0x01 ~ 0xFF: Specifies the number of times when the player is stopped

Serial upload screen EE 02 FF FC FF FF It indicates the end of animation

Note: * gif format only supports animation, screen supports only one animation.

If you expect to play more than one picture gif animation, and animation pause, stop,

On the player / down frame function, using the animation control configuration, the following configuration command see

table.

As a point on the screen, the color of the foreground color point depends

Foreground color painting point 0x50 X+Y X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value

As a point on the screen, depending on the color of the background color point

Background color drawing points X (2 Bytes): in points of X Axis coordinate value


0x58 X+Y
(Delete Point) Y (2 Bytes): in points of Y Axis coordinate value

Note: The main drawing points with the foreground color to use, it can be used to clear the foreground color painting point

The coordinates of the two specified points are connected

X 0 ( 2 Bytes): a straight line in points X Axis coordinate values of the starting point

Y 0 ( 2 Bytes): a straight line in points Y Axis coordinate values of the starting point
Drawing a line 0x51 X0 + Y0 + X1 + Y1
X 1 ( 2 Bytes): a straight line in points X Axis coordinate value of the end point

Y 1 ( 2 Bytes): a straight line in points Y Axis coordinate value of the end point

Note: foreground color value of the line depends on the Ge provided

Quick connect together a plurality of intervals in the X-axis coordinate point designated

X (2 Bytes): in points of X Axis coordinate value

Xspace (2 Bytes): in points of X Axis interval value, the neighboring points before and after the solid
X coordinate spaced at equal
0x59 X 0+ Xspace + Y 0+ ... + Yn Fixed pitch Xspace
Connection with the foreground color
Y (2 Bytes): in points of Y Axis coordinate value

NOTE: Since this command does not need transmission X coordinate value, the instruction transmitting in half the time,

Draw twice as fast. Foreground color value of the line depends on the Ge provided

A plurality of offsets specified coordinate points connected by a quick foreground

X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value

The coordinate offset with (X, Y) 0+ (X1o, Y1o) X1o (1 Bytes): in points of X Offset shaft
0x75
Foreground Connection + .. + (Xno, Yno) Y1o (1 Bytes): in points of Y Offset shaft

Note: (X, Y) is absolute coordinates of the first point, a point behind each are represented by a former

Absolute coordinates of points added to the current offset. The most significant bit is the sign bit of the offset,

0 represents a positive offset, a negative offset representative of a maximum of plus or minus an offset value of 127 points.

A plurality of offset coordinate points specified by the background color of the quick connect
The coordinate offset with (X, Y) 0+ (X1o, Y1o)
0x76 X (2 Bytes): in points of X Axis coordinate value
Background Color Connection + .. + (Xno, Yno)
Y (2 Bytes): in points of Y Axis coordinate value

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

28/79
86 Serial Data Sheet screen V2.1

X1o (1 Bytes): in points of X Offset shaft

Y1o (1 Bytes): in points of Y Offset shaft

Note: (X, Y) of the first point of absolute coordinates of each point are back from the front a

Absolute coordinates of points added to the current offset. The most significant bit is the sign bit of the offset,

0 represents a positive offset, a negative offset representative of a maximum of plus or minus an offset value of 127 points.

A plurality of coordinate points specified by the connected foreground

The point with the specified coordinates X (2 Bytes): in points of X Axis coordinate value
0x68 (X, Y) 0+ ( X, Y) 1 ... + (X, Y) n
Foreground Connection Y (2 Bytes): in points of Y Axis coordinate value

Note: foreground color value of the line depends on the Ge provided

A plurality of coordinate points specified by the background color are connected

The point with the specified coordinates X (2 Bytes): in points of X Axis coordinate value
0x69 (X, Y) 0+ ( X, Y) 1 ... + (X, Y) n
Background Color Connection Y (2 Bytes): in points of Y Axis coordinate value

NOTE: The color depends on the background color value line disposed Ge

Videos arbitrary coordinates a circle of radius R hollow

X 0 ( 2 Bytes): in points of the center X Coordinate values

Hollow round draw 0x52 X 0+ Y 0+ R Y 0 ( 2 Bytes): in points of the center Y Coordinate values

R (2 Bytes): open circles of radius

Note: The value depends on the foreground color set Ge

Videos arbitrary coordinates a solid circle of radius R,

X 0 ( 2 Bytes): in points of the center X Coordinate values

Draw a filled circle 0x53 X 0+ Y 0+ R Y 0 ( 2 Bytes): in points of the center Y Coordinate values

R (2 Bytes): open circles of radius

Note: The value depends on the foreground color set Ge

Arbitrary coordinates to draw a circular arc

X0 (2 Bytes): in points of the center X Coordinate values

Y0 (2 Bytes): in points of the center Y Coordinate values

X 0+ Y 0+ R R (2 Bytes): radius of a circle


Draw an arc 0x67
+ EA + SA EA (2 Bytes): End angle

SA (2 Bytes): starting angle

Note: Watch the 3 o'clock direction is 0 degree, Counting counterclockwise; foreground color value depends on

Color palette set Ge

A hollow rectangle draw an arbitrary position, the screen can also be used for topical cleaning

X 0 ( 2 Bytes) : Hollow upper-left corner of the rectangle in points X Coordinate values

Painting hollow rectangle / partial clearing Y 0 ( 2 Bytes) : Hollow upper-left corner of the rectangle in points Y Coordinate values
0x54 X 0+ Y 0+ X 1+ Y 1
Screen X 1 ( 2 Bytes) : Hollow bottom right corner of the rectangle in points X Coordinate values

Y 1 ( 2 Bytes) : Hollow bottom right corner of the rectangle in points Y Coordinate values

Note: The value depends on the foreground color set Ge

Draw a filled rectangle anywhere

X 0 ( 2 Bytes) : Solid top-left corner of the rectangle in points X Coordinate values

Painting filled rectangle 0x55 X 0+ Y 0+ X 1+ Y 1 Y 0 ( 2 Bytes) : Solid top-left corner of the rectangle in points Y Coordinate values

X 1 ( 2 Bytes) : Solid bottom right corner of the rectangle in points X Coordinate values

Y 1 ( 2 Bytes) : Solid bottom right corner of the rectangle in points Y Coordinate values

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

29/79
86 Serial Data Sheet screen V2.1

Note: The value depends on the foreground color set Ge

A hollow oval anywhere Videos

X0 (2 Bytes): in points leftmost hollow oval X Coordinate values

Y0 (2 Bytes): uppermost end in points a hollow oval Y Coordinate values


Hollow oval painting 0x56 X 0+ Y 0+ X 1+ Y 1
X1 (2 Bytes): open ovals rightmost end in points of X Coordinate values

Y1 (2 Bytes): in points lowermost hollow oval Y Coordinate values

Description: foreground color depending on the set value of Ge

A solid ellipse draw an arbitrary position

X0 (2 Bytes): in points of the ellipse leftmost solid X Coordinate values

Y0 (2 Bytes): uppermost end in points of the ellipse solid Y Coordinate values


Solid oval painting 0x57 X 0+ Y 0+ X 1+ Y 1
X1 (2 Bytes): filled in the rightmost point of the ellipse units X Coordinate values

Y1 (2 Bytes): in points of the lowermost solid ellipse Y Coordinate values

Description: foreground color depending on the set value of Ge

Set backlight brightness value


Backlight adjustment 0x60 Light_level
0x00: The brightest backlight 0xFF: backlight off

Screensaver mode backlight brightness setting value and the time value. No touch action for some time,

Automatically reduce the brightness of the screen, saving mode until the wake-up touch is pressed.

Enable (1 Bytes): enable signals

0x00: Close saving mode 0x01: power-saving mode


Enable + BL_ON + BL_OFF
Automatic screen saver mode 0X77 BL_ON (1 Bytes): After the luminance value of the backlight of the touch activated, the maximum luminance 255
+ BL_ON_Time
BL_OFF (1 Bytes): After the luminance value of the backlight power saving mode

BL_ON_Time (2 Bytes): in the absence of a touch action, how long into the provincial

Power mode, in seconds, endian

Note: only suitable for models with touch, without the need to program control backlight products TP

Cmd (1 Bytes): Configuration parameters

BIT0: 1 represents a touch panel is opened, 0 represents off the touch screen;

BIT1: 1 represents a touch buzzer sound, 0 indicates no response;

BIT4 ~ BIT2: Touch uploads

000: Indicates when pressing the touch screen to upload a coordinate

001: Indicates the touch screen is pressed until the release after upload time coordinates

010: when the touch screen has been pressed, the coordinates of every 100ms timing upload, released

Also upload a coordinate

Equipped with touch screen 0x70 Cmd


011: Indicates the touchscreen when the upload is pressed and released once the coordinates

BIT5: 1 Shows 4 Click an area within seconds, continuous 20 , The touch screen to enter school

Quasi-mode, 0 It represents disable this function;

BIT7-BIT6 : Reserved

Touch Upload format:

When pressed, upload format: EE 01 XY FF FC FF FF

Upon release, upload format: EE 03 XY FF FC FF FF

X coordinate, Y Coordinates are 2 Bytes, high byte first

Clear the contents of a layer


Clear Layer 0x05 Layer
Layer (1 Bytes): writing layer (in the range 0 to 1 )

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

30/79
86 Serial Data Sheet screen V2.1

Automatically clear whether the current user switching the screen layer disposed

Automatically cleared when switching screens Enable ( 1 Bytes): enable signals


0x06 Enable
In addition to the current layer 0x01: Auto Clear Layer 0x00: Clear ban Layer

Clear All contents of the user inside the two layers default screen is changed.

RTC Display Settings

Cmd (1 Bytes): parameters

BIT0 : Enable signal

0: RTC closed 1: RTC open

BIT7-BIT1 : Reserved

DisMode (1 Bytes): the display mode

0x00: format HH: MM: SS

0x01: format 20XX-MM-DD HH: MM: SS

RTC Display Settings Cmd + DisMode + Font Font (1 Bytes): font selection
0x85
(Need hardware support) + Color + X + Y 0x00: 8x12 dot matrix (ASCII) 0x01: 8x16 dot matrix (ASCII)

0x02: 12x24 dot matrix (ASCII) 0x03: 16x32 dot matrix (ASCII)

0x04 12 x 12 dot (GBK) 0x05: 16 x 16 dot (GBK)

0x06: 24 x 24 dot (GBK) 0x07: 32 x 32 dot (GB2312)

0x08: 32 x 64 dot (ASCII) 0x09: 64 x 64 dot (GB2312)

Color (2 Bytes): Color Display

X (2 Bytes): in points of X Axis coordinate value

Y (2 Bytes): in points of Y Axis coordinate value

It recommended that the user directly controls the clock to complete the RTC time display and calibration .

Time parameters set

Sec: SEC Sets Min: Sub-set;

Hour: Set hours Day: Date Set


RTC time setting Sec + Min + Hour + Day
0x81 Week: Set week Mon: Set month
(Need hardware support) + Week + Mon + Year
Year: In settings

It recommended that the user directly controls the clock to complete the RTC time display and calibration .

Note: 1 byte each to BCD code, Ge Sunday set to 0x00

Data output format: EE + 0xF7 + Year + Mon + Week + Day + Hour

Read RTC clock + Min + Sec + FF FC FF FF


0x82 no
(Need hardware support) Note: Each 1-byte BCD code to

We recommend that users complete control to directly use the clock RTC Calibration and display time.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

31/79
86 Serial Data Sheet screen V2.1

The first 4 chapter Configuring instructions Set Details

The following section describes the configuration and usage instruction set functionality, content related to the driver library can be viewed in

reference example program. Sample programs can be downloaded from the website.

4.1 Changing Screens

Format: EE [ B1 00 Screen_id ] FF FC FF FF
Parameter Description: Screen_id ( 2 Bytes): Screen Number

After the screen automatically switches to which button controls may be provided through while a button is pressed, but some occasions where

necessary to control the host determines that logical target screen display.

Program reference code:

......

SetScreen (2); // Switch to Screen_id = 2 Picture

4.2 Read screen

Format: EE [ B1 01 ] FF FC FF FF
Parameters: None

This command is used to acquire the current picture ID value. Reliability applications, the host determines whether to switch the screen by sending

the command successfully.

Return instruction format: EE B1 01 Screen_id FF FC FF FF

among them, Screen_id (2 Bytes): the number of the current picture

4.3 Button control ID Upload value

Button controls are 5 Such use: screen switching, the switch is described, the custom buttons, menus and pop-up custom instructions.

(1) Switching the screen. Refers to switching the screen automatically switches the screen to another screen displayed after a button is pressed.

For example, Fig. 4.1 As shown, the user clicks to achieve the "box" icon after the switch to the screen Screen1 Show, the first button is set to

the entire touch region, and then select the properties window: The touch screen uses switch; destination screen Screen1 Finally, run a "virtual

serial port screen" effect be verified. Details about PC operations, see "large color screen to configure the serial port Quick Start Guide."

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

32/79
86 Serial Data Sheet screen V2.1

Control ID = 1, can be

modified

Map 4.1 Button controls - switching screen configuration of FIG.

Screen switch button upload instruction format:

EE [ B1 11 Screen_id Control_id Control_type Subtype Status ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen ID

Control_id (2 Bytes): Controls ID Numbering

Control_type (1 Bytes): fixed value 0x10 , Expressed as a button control

Subtype (1 Bytes): fixed value 0x00, It indicates that the current screen to switch the button function

Status (1 Bytes): Reserved

(2) Switch described. Switch means described as a press button or switch bounce function, divided into 4 Styles, reads as follows:

a) Transients. After pressing, the switch automatically pops up, similar touch switch function;

b) switch. After pressing, or pressing the switch into the bounce bounce into a press, similar to the interlocking switch function;

c) Position. Switch can only be pressed into the bounce;

d) Reset. Pressing the switch can only be changed from the pop-up;

e) Press. When press the screen every so often to upload data once, the time interval can be customized. For example, Fig. 4.2 In , the user

needs to "Out" button functions as a switch, the first button is set to the entire touch region, and then select the properties window: Touch switch uses

described; style switch operation; pressed button to select the picture UI Finally, run a "virtual serial port screen" effect be verified.

After running virtual serial port screen, you can see the "out of service" button is pressed effect, as shown.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

33/79
86 Serial Data Sheet screen V2.1

Map 4.2 Button controls - type switch configuration of FIG.

Map 4.3 Run virtual serial port Screen View button is pushed effect

Switch the type of button controls upload format:

EE [ B1 11 Screen_id Control_id Control_type Subtype Status ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): button control ID Numbering

Control_type (1 Bytes): fixed value 0x10 , Expressed as a button control

Subtype (1 Bytes): fixed value 0x01, It indicates the current function to the switch button described

Status (1 Bytes): the button state

0x00: a button is pressed into the up state 0x01: pop-up

button from the depressed state into

User commands by parsing the microcontroller, which can determine which button is pressed or the screen pop. FIG is extended instruction

indicating button is pressed, it is also possible internal / external output extra instructions, detailed

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

34/79
86 Serial Data Sheet screen V2.1

Introduction This section can refer to 4.5 with 4.6 The.

(3) Customize button. Key custom design a user in advance is on the background of FIG desired good keyboard, and then one by one for each key

matching is provided, for example, some of the key numbers, delete some function, some Enter Functions. The keyboard can be bound to the current screen

of text control After the set, which is the value of the user's keyboard input can be automatically displayed in the text box.

For example, Fig. 4.4 , The user needs to "digital 9 "As a key button 9 Use, the first button is set to the entire touch region, and then select

the properties window: use custom key touch; character type; write character

9 Finally, run a "virtual serial port screen" simulation test. Further, in addition to the type of character key, but also you can select " Enter "" Clear "" Backspace

"" Esc "or" Shift "Special function keys.

Map 4.4 Button control - key custom configuration of FIG.

Custom Key button to upload the format:

EE [ B1 11 Screen_id Control_id Control_type Subtype Key_value Status ]


FF FC FF FF
Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x10 , Expressed as a button control

Subtype (1 Bytes): fixed value 0x02, It indicates the current function of the button as a custom button.

Key_value (1 Bytes): a user-defined key to ASCII Code representation

Status (1 Bytes): Reserved

(4) Custom command. Users can set up a button is pressed, uploading data to the serial define yourself. Example FIG.

4.5 , The user may press the set "Custom instruction" button, send instructions to the screen: FF 01 AA FF .

Tip: Custom commands can not include FF FC FF FF combination of characters, otherwise it will cause an error with the conventional conflicting instructions.

(5) Pop-up menu. The pull-down menu command mainly with use, can be used in detail in this section refer to the contents of the drop down list.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

35/79
86 Serial Data Sheet screen V2.1

Map 4.5 Custom command data

4.4 Set button up or down state

The main achievement of the instruction screen by pressing a button or a pop-up force, that is in addition to the user clicks a button is pressed or

touched disposed outside the bounce, the microcontroller can send a command to set the button state.

Format: EE [ B1 10 Screen_id Control_id Status ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Button control Number

Status (1 Bytes): the button state

0x00: Ge provided by the pressed button up state becomes 0x01: Ge

disposed into the button from the depressed state bounce

The instruction is mainly used to "press" the button changes to "bounce" or "pop-up" button to "pressed" state. In some instances, between the

button are mutually exclusive, when a button is pressed, the other must be a pop-up button, you can use the instructions.

For example, Fig. 4.6 After, the user presses the "Start Run" button, the required "stops" button (screen ID for

2 , Control ID for 4) From "press" to "pop-up" state, the microcontroller sends instructions: EE B1 10 00 02 00 04 00 FF FC FF FF .

Map 4.6 Button is pressed and set up state

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

36/79
86 Serial Data Sheet screen V2.1

Program reference code:

...... // Start operation is detected to be pressed

SetButtonValue (2,4,0) ; // the picture 2 ,control ID Place 4 Stop the Run button set up state

4.5 And internal instructions implement exclusive status display button

After the so-called internal instruction may be provided that the user presses a key, the screen also perform some internal instruction

sequence, logic and achieve some status display, no external microcontroller involvement, saving the program code.

Figure 4.7 Shown, when the user presses the "up and running" button must be "stopped" button (screen

ID for 4 , Control ID for 2) Was bounce, you can directly PC In the configuration. Select the properties window: internal instruction - when pressed EE

B1 10 00 04 00 02 00 FF FC FF FF After this press the "up and running", send internal screen pops "out of service" in order to achieve a button pops

up automatically, without the need 4.4 The participation of the external microcontroller section.

Of course, in addition to the configuration pressing the "up and running" bounce "out of service", but also can input instructions in a plurality of

other internal command frame, starting e.g. gif Animation, such as changing the operating state flag, multiple instructions separated by semicolons.

Map 4.7 Button Configuration mutually exclusive

4.6 External command output

After the so-called Foreign instruction set is that users can press a button, the external screen instructions to perform user-defined string, similar 4.3 Custom

command button control in the section.

4.7 Read button control state

Format: EE [ B1 11 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

The instruction is mainly used to query a button is currently "pressed" or "pop-up" state. Return instruction format: EE B1 11

Screen_id Control_id Control_type Subtype Status

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

37/79
86 Serial Data Sheet screen V2.1

FF FC FF FF
Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x10 , Expressed as a button control

Subtype (1 Bytes): fixed value 0x01, It means that the button switch is of the type described

Status (1 Bytes): the button state

0x00: pop-up buttons Status 0x01:


button is pressed

4.8 Update text control value

There are three ways to update text: host user input, the pop-up keyboard input systems and custom keyboard input.

1. Host user input. Data displayed on the screen microcontroller input from a user. Format: EE [ B1 10
Screen_id Control_id Strings ] FF FC FF FF
Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Strings (Variable length): String written by the user

This command is mainly used for displaying text. Because the system for all text variables memory addresses are assigned, when the screen again

to return from the other interface text interface, text data is still stored without refreshing the data again.

When using text control, the user first related parameters in the PC, such as font size, foreground color, background color, text input mode, and the

like, as shown in 4.8 Shown, and then direct the respective host needs only ID Data can be written to change.

Text control ID, you can

modify

Map 4.8 Text control parameter configuration

For example, the user needs to first 5 Pictures, text control ID for 3 Value is written at 20 , The following program code. Program reference

code:

......

SetTextValue (5,3,20) ; // picture 5 First 3 Write a text control 20

2. Pop-up keyboard input system. When clicking the text box, the system automatically eject the built-in keyboard, click OK After the user inputs a

desired character, the device will display the characters input in the text box, while the character ASCII Code uploaded to the host.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

38/79
86 Serial Data Sheet screen V2.1

For example, a user pre-set text controls, input mode selection "pop-up keyboard" as 4.9 Fig. Click on the text box, the system will automatically

pop up screen keypad, input " 123 "Click Enter , The digital input at this time is automatically displayed on the text box, upload both entry ASCII Code,

upload the following format to be introduced "to read text control value" to return to the same format. SCM user parsed upload instructions can know the

data entry.

Map 4.9 Pop-up keypad system

If users need to input Chinese characters, simply select the type of keyboard is a full keyboard, then click on English switch key on the keyboard, as 4.10

Fig.

Note: because of the display area, only 3.5 inch or more (not including the 3.5-inch) in size only to support full keyboard and input method.

Map 4.10 Pop-up system-wide keyboard and text input

3. Custom key input. Text box input data from the keyboard in the same picture. Figure 4.11 Shown, when the user needs to implement a password input

operation using the first custom key function button control, it will be defined as corresponding to each button ASCII Character (referring to FIG. 4.4 Shown) is

then placed in a password box text control, the properties of the input mode is set to "custom key input." After clicking the text box so that the interface will

automatically appear flashing cursor, keyboard and on the right, the corresponding number is automatically displayed in the text box, while the input character ASCII

Code will also be uploaded to the host.

Tip: with Ge is completed, it is recommended to run a "virtual serial port screen" to view the information screen after pressing each button upload.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

39/79
86 Serial Data Sheet screen V2.1

Map 4.11 Custom key input

4.9 Read the text control value

Format: EE [ B1 11 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

This command is used to acquire the current value of the text control. For some important parameters, the user can use to get the text value of the

control command to re-check.

Return instruction format: EE B1 11 Screen_id Control_id Control_type Strings FF FC FF FF

Return parameter: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x11 , Expressed as text controls

Strings ( Variable-length): Text value currently displayed

4.10 Set text control flashes

Format: EE [ B1 15 Screen_id Control_id Cycle ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Cycle (2 Bytes): blinking cycle ( 10 Milliseconds), 0 No flashing

This command is mainly used to implement text control flashing alternately, Cycle Value 0 When stops flashing.

4.11 Set the text scrolling speed control

Format: EE [ B1 16 Screen_id Control_id Speed ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Speed (1 Bytes): text scroll speed (moving pixels per second), 0 He said they did not scroll

This instruction is mainly used for scrolling text display, default scrolling from right to left, Speed Value 0 It means stop scrolling.

4.12 Set the background color of the text control

Format: EE [ B1 18 Screen_id Control_id BK_Color ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

40/79
86 Serial Data Sheet screen V2.1

BK_Color (2 Bytes): background color RGB Color values

The instruction is mainly used during operation to add the background display text controls, or text is selected to achieve outstanding results. How to

obtain background / foreground RGB Color values? The user can arbitrarily create a screen, drawing a rectangle, the rectangle's color to their desired color,

and then the mouse is placed on the rectangle, the bottom left software will display the current screen mouse RGB565 Color values, as in FIG. 4.12 Shows.

Map 4.12 Foreground / background color color extraction

4.13 Cancel a text control background color

The instruction is mainly used to cancel text controls with background display instruction format: EE [ B1 17

Screen_id Control_id ] FF FC FF FF

Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

4.14 Set the foreground color text controls

The instruction is mainly used to replace the text displayed in the color control operation, achieve some alarm, highlighting the

like. Format: EE [ B1 19 Screen_id Control_id FORE_Color ] FF FC FF FF

Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

FORE_Color (2 Bytes): foreground color RGB Color values

4.15 Update progress bar control value

Format: EE [ B1 10 Screen_id Control_id Progressvalue ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Progressvalue ( 4 Bytes): the new value of the progress of increment or

decrement command implemented primarily progress.

When using the progress bar control, the user is first performed in the host computer controls the configuration parameters, such as the foreground,

background, maximum and minimum values and the like, as shown in 4.13 As shown in, then the appropriate host needs only to ID Write a progress bar

progress bar to scroll value can be realized.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

41/79
86 Serial Data Sheet screen V2.1

Map 4.13 Progress bar control configuration information

For example, the user needs to first 3 Screens, controls ID for 1 The progress bar control value is written progress 50 , The following program code.

Program reference code:

......

SetProgressValue (3,1,0,50) // Picture 3 Controls ID for 1 The progress bar control write 50

4.16 Gets progress bar control value

Format: EE [ B1 11 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

This command is used to acquire the current value of the progress bar. Return instruction format: EE B1 11 Screen_id Control_id Control_type

Progressvalue FF FC FF FF

Return parameter: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x12 , Expressed as a progress bar control

Progressvalue (4 Bytes): this value progress bar

4.17 Slider controls upload format

When using the slider control, the user is first performed in the host computer controls the configuration parameters, such as the scale length,

direction, the cursor image, and background values, etc., as shown in 4.14 , When the user drags a cursor, the device will continue to upload the current

cursor value to the host, by determining the value of the cursor position to know the current location of the slider.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

42/79
86 Serial Data Sheet screen V2.1

Map 4.14 Slider control configuration diagram

Upload slider control format:

EE [ B1 11 Screen_id Control_id Control_type Slidervalue ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x13 , Expressed as a slider control

Slidervalue (4 Bytes): indicates the current cursor value

4.18 Update slider control value

Format: EE [ B1 10 Screen_id Control_id Slidervalue ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Slidervalue ( 4 Bytes): new cursor value


This command is used to control the cursor display position of the slider. The hosts can send the corresponding control command cursor forced

display in a certain position.

For example, the user needs to first 2 Screens, controls ID for 5 The slider controls the value written 50 , The following program code. Program

reference code:

......

SetSliderValue (2,5,0,50) // Picture 2 Controls ID for 5 The slider control to write values 50

4.19 Reads the value slider controls

Format: EE [ B1 11 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

43/79
86 Serial Data Sheet screen V2.1

This command is used to acquire the value of the current cursor. Return instruction format: EE B1 11 Screen_id Control_id

Control_type Slidervalue FF FC FF FF

Return parameter: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x13 , Expressed as a slider control

Slidervalue ( 4 Bytes): indicates the current cursor value

4.20 Update instrument control value

Format: EE [ B1 10 Screen_id Control_id Metervalue ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Metervalue ( 4 Bytes): new instrument value

When using the instrument control, the user is first performed in the host computer controls the configuration parameters, such as the dial, dial,

pointer values, etc., in FIG. 4.15 , The host then sending only the corresponding rotation of the instrument pointer value can be achieved.

Map 4.15 Instrument control configuration information

For example, the user needs to first 0 Screens, controls ID for 4 The value written instrument controls 100 , The following program code. Program

reference code:

......

SetMeterValue (0,4,0,100) // Picture 0 Controls ID for 4 The value written instrument controls 100 ,

4.21 Meter reading value Controls

Format: EE [ B1 11 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

44/79
86 Serial Data Sheet screen V2.1

This command is used to acquire the current value displayed by the instrument. Return instruction format: EE B1 11 Screen_id Control_id

Control_type Metervalue FF FC FF FF

Return parameter: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Control_type (1 Bytes): fixed value 0x14 , Expressed as instrument control type

Metervalue ( 4 Bytes): this value is displayed in the meter

4.22 Animation control displays

Control calls through animation gif Animation, can support multiple within the same screen gif Display, the user sends a corresponding command can

control the animation play, stop, pause, and upper / lower frames and other functions, as described in Table instructions 4.1 Fig.

table 4.1 Animation Control Instruction List

Features Instruction format

EE [ B1 20 Screen_id Control_id ] FF FC FF FF

Screen_id (2 Bytes): Screen Number


Start animation
Control_id (2 Bytes): After the control numbers start playback,

animation, each frame header from 0 to start playing

Stop the animation EE [ B1 21 Screen_id Control_id ] FF FC FF FF


After stopping playback, the next time from the header 0 Start playing

Suspended animation EE [ B1 22 Screen_id Control_id ] FF FC FF FF


After a pause, the next will continue to play a pause frame

EE [ B1 23 Screen_id Control_id ] FF FC FF FF
Specified frame playback
Specify the start playback from a frame

EE [ B1 24 Screen_id Control_id ] FF FC FF FF
Played on a
Contents displayed on a current frame

EE [ B1 25 Screen_id Control_id ] FF FC FF FF
Play the next frame
Display contents of the current frame of the next frame

EE [ B1 26 Screen_id Control_id Status FlashImgae_ID ] FF FC FF FF

Press a animation control when the device to upload the following information:

Animation control value to upload


Status (1 Bytes): 0x00 It indicates touch Press, 0x01 Expressed bounce

FlashImgae_ID (1 Bytes): indicates when the screen is pressed, the frame displayed on the screen at the moment ID

Note: You can ban in PC software with Ge / enable animation control value to upload.

In use, the user first animation control by calling gif Animation display, and then set the need to touch a notification (that is, if you want to upload

click animation animation control ID Value) and auto-play as 4.16 Fig. Interval animation automatically from gif Original file extraction.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

45/79
86 Serial Data Sheet screen V2.1

Map 4.16 Animation control configuration diagram

4.23 Icon Control display

Format: EE [ B1 23 Screen_id Control_id IconImgae_ID ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

IconImgae_ID (1 Bytes): ICON File icon in a frame ID


The command is mainly to solve the same position different from the state of FIG handover or intra display disappears. How to generate ICON icon?

Before using the user to click VisualTFT Software Tools menu, select icon generation, pop up 4.17 Screen shown, then premade 3 Zhang 62x82 Pixel

picture (stop, run and transparent PNG)

Added to it, in accordance with the order, each of 1 Frame stop frame, the first 2 Frame and running 3 Frame transparent pictures, and finally click Generate

icon. Such a new ICON File is generated, which contains 3 Picture frames.

Map 4.17 Icon generation tool

When used, the user first calls the newly generated by the icon controls ICON Display, and then set the need to touch a notification (that is, click on

the icon controls whether to upload ID) And AutoPlay, FIG. 4.18 Fig. The default screen display

ICON First 1 Frames, if desired switching state diagram shows, the host program simply send ICON Number and the first few frames to complete the display.

Transparent frame is actually an empty PNG Picture, transparent display frame can achieve the effect icon disappears or hidden.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

46/79
86 Serial Data Sheet screen V2.1

Map 4.18 Icon Control configuration diagram

4.24 Icon Control value upload

Upload instruction format: EE [ B1 26 Screen_id Control_id Status IconImgae_ID ] FF FC FF FF

Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Status (1 Bytes): 0x00 It indicates touch Press, 0x01 Expressed bounce;

IconImgae_ID (1 Bytes): ICON File in a picture frame ID


If the PC Software is selecting the notification icon touch control, the user clicks on the icon, the device will be uploaded to icon controls ID

And the current picture frame ID .

4.25 Batch updates the control value

Upload instruction format: EE [ B1 12 Screen_id + Control_id0 + Len0 + Strings0 + + ... Control_idn + Lenn + Stringsn ] FF

FC FF FF

Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id0 ( 2 Bytes): First 1 No one controls


Len0 (Variable length): The first 1 The length of a numerical control, i.e., string0 length

Strings0 (Variable length): The first 1 A numerical control

Control_idn ( 2 Bytes): First n No one controls


Lenn (Variable length): The first n The length of a numerical control, i.e., stringn length

Stringsn (Variable length): The first n A numerical control

Bulk update instructions to solve too many controls update data in a screen refresh while low speed problem. Use batch update command

transmission not only saves time, but at the same time to update all the data together.

The test batch update command, you can open VisualTFT The "instruction assistant", enter several text verification test control values,

FIG. 4.19 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

47/79
86 Serial Data Sheet screen V2.1

Map 4.19 Batch update text controls

4.26 Curve control displays

If you need dynamic chart data collection, automatic pan around the curve control will give users a great convenience. Table instructions Introduction 4.2

, The PC software configuration diagram of FIG. 4.20 Fig.

Recommendation: detailed tutorial curve control, you can login details of the download bar www.gz-dc.com download.

table 4.2 Curve control command table

Features Instruction format

EE [ B1 30 SCREEN_ID CONTROL_ID CHANNEL COLOR ] FF FC

FF FF

Curve color specified data channel and

Adding data channel SCREEN_ID (2 Bytes): Screen Number

CONTROL_ID (2 Bytes): Control Number

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

COLOR (2 Bytes): Color data channel

EE [ B1 31 SCREEN_ID CONTROL_ID CHANNEL ] FF FC FF FF

Remove the specified data channel SCREEN_ID (2 Bytes): Screen Number

CONTROL_ID (2 Bytes): Control Number

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

Specifies the vertical / horizontal zoom / pan EE [ B1 34 SCREEN_ID CONTROL_ID XOFFSET XMUL YOFFSET
YMUL ] FF FC FF FF

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

48/79
86 Serial Data Sheet screen V2.1

Specifies the vertical / horizontal zoom / pan

XOFFSET (2 Bytes): horizontal offset data points, the left is positive, negative right

XMUL (2 Bytes): the horizontal zoom parameter, the unit 0.01

YOFFSET (2 Bytes): vertical offset value, down is positive, the shift is negative

YMUL (2 Bytes): the vertical scaling unit 0.01

Sampling point and the calculated coordinate point: first N Values of sampling points V

X Coordinates = ( N-XOFFSET) * XMUL * 0.01

Y Coordinates = ( V-YOFFSET) * YMUL * 0.01

EE [ B1 32 SCREEN_ID CONTROL_ID CHANNEL DATA_LEN

DATA ] FF FC FF FF

Adding new data to the end of the specified data channel, when the data length exceeds the length of the buffer,

the old data is left

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )


Add new data at the end of the specified channel
DATA_LEN (2 Bytes): data length

DATA : Variable length data, length of the DATA_LEN Specification format: Data are representative of

Y Value axis direction, X Will automatically increment the axial direction from the horizontal scaling factor, for

example, when the horizontal scaling factor 1 When each insertion point X Automatic shaft 1 When the level of

zoom factor 5 When each insertion point X Automatic shaft 5

EE [ B1 35 SCREEN_ID CONTROL_ID CHANNEL DATA_LEN

DATA ] FF FC FF FF

In most distal specified data channel insert new data, when the data length exceeds the length of the buffer, the

The front end of the specified channel to add newold


data
data to the right

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

DATA_LEN (2 Bytes): data length

DATA : Variable length data, length of the DATA_LEN Designation

EE [ B1 33 SCREEN_ID CONTROL_ID CHANNEL ] FF FC FF FF

Empty specified data channel


Empty specified data channel

CHANNEL (1 Bytes): total 8 Data channels, the number range ( 0 to 7 )

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

49/79
86 Serial Data Sheet screen V2.1

Map 4.20 Control graph configuration of FIG.

4.27 Settings drop-down menu control

Format: EE [ B1 13 Screen_id Control_id Enable Textctrl_ID ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Enable (1 Bytes): menu enabled. 1 Display menu; 0 The menu is not displayed

Textctrl_ID (2 Bytes) : Menu data to be written to a text control

The main command post set up pop-up drop-down menu, menu options written data to which text control. Assume that the user needs to achieve the

following functions: Click map 4.21 shown in the drop-down button, pop-up drop-down menu , the user selects 57.7V Data item , at which time the

control data is automatically written into the text (Text boxes) while uploading screen menu control

ID Options to the user ID and the microcontroller, the operation is as follows.

Map 4.21 Pull-down menu display

Steps:
1. ready 2 Zhang menu pictures shown 4.22 As shown, selected and unselected. If need to press down to select the effect, not just selected 1 Pictures

can be.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

50/79
86 Serial Data Sheet screen V2.1

Map 4.22 Unchecked (left) and selected (right) pull-down menu picture

2. Settings drop-down menu properties. According to FIG. 4.23 Shown, click the dropdown menu control at , in drag at a location map, in the

properties window at the right, to the appearance of the menu: custom image, and then set the bounce respectively , at press the menu picture, the

number of menu items at set 5 , Expressed 5 Drop-down items, and finally fill all the data in the drop-down place. Use spaced separately from the data

before the data must DBC semicolons.

Map 4.23 Settings drop-down menu properties

3. Set the eject button and the menu written text control. Figure 4.23 Shown, into the text control, the control in ID for 2 And then placed at 1 Control

buttons, pop-up menu is provided to use the touch, as indicated by , finally , , respectively fill the menu control ID And text controls ID value.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

51/79
86 Serial Data Sheet screen V2.1

Map 4.24 Settings drop-down menu button and text control

4. The operation is completed. After compile and run virtual serial port screen, click the drop-down button, it will pop-up menu, and then select the

menu item, load the data into a text control and upload ID Information, as 4.25 Fig.

Map 4.25 Upload drop-down menu command

4.28 Upload drop-down menu control value

Format: EE [ B1 14 Screen_id Control_id 0x1A Meundata_ID Status ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

0x1A (1 Bytes): fixed value, pull down menu


Meundata_ID (1 Bytes) : The first several options in the drop-down menu data

Status (1 Bytes): touch state, 0 At the moment represents the button up, 1 Button Press

When the pop-up drop-down menu, the user selects the required data, will screen at the moment the current menu controls ID Select the number and

value of items uploaded to the user microcontroller. User by analyzing serial data, to know the current press data.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

52/79
86 Serial Data Sheet screen V2.1

4.29 Select the control value to upload

Format: EE [ B1 14 Screen_id Control_id 0x1B Select_data_ID ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

0x1B (1 Bytes): fixed value, indicating the selection control

Select_data_ID (1 Bytes) : The first few options data selection menu

The main achievement of instruction data to select the desired slide up and down, the system automatically select the upload control ID Value and the

currently selected value. Assume that the user needs to implement FIG. 4.26 FIG brightness setting effect, select the desired value by sliding the finger up

and down, and then select the control screen upload ID Options to the user ID and the microcontroller, the operation is as follows.

Map 4.26 Select the control display

Steps:
1. Figure 4.27 As shown, click on the menu bar, select the control software at , place a selection control in Figure .

2. properties window provided at the font size ASCII16 * 32 , After the size of the display font size is selected.

3. Some parameters are defined as follows:

Color Center: a rear display color data is selected; ends Color: represents

the uppermost and lowermost color data;

Zoom ends: indicates the percentage of the font's size and the lowermost intermediate, 50% intermediate represented ends font half,

0 as all font sizes, not scale.

It shows the number of entries: 3 and 5 fixed to two kinds.

Initial Option: indicates the default selected data. Candidate

data: data representing all selected.

4. For , , , the parameter settings in the properties window.

5. Setting candidate data in the properties window at : 0; 10; 20; 30; 40; 50; 60; 70; 80; 90 .

6. The operation is completed. Run virtual serial port screen, slide up and down when you can see the screen instructions to upload data, as 4.28 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

53/79
86 Serial Data Sheet screen V2.1

Map 4.27 Select Settings Control Properties

Map 4.28 Select the control data upload instructions

4.30 Update two-dimensional code control

Format: EE [ B1 10 Screen_id Control_id Strings ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Strings (Variable length): two-dimensional code character content, encoding type UTF8

Note: If the contents of the two-dimensional code has sent Chinese characters must be converted into UTF8 format, users need to be familiar with

UTF8 encoding format, and then send the converted.

This command is mainly used to implement the two-dimensional code figure shows, the instruction format text as a control. Users need to show what

the two-dimensional code, content can be sent directly characters.

Assume that the user needs to display in FIG. 4.29 Two-dimensional code shown, scans the content of: www.gz-dc.com , The operation is as follows:

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

54/79
86 Serial Data Sheet screen V2.1

Map 4.29 Two-dimensional code control displays

Steps:
1. Figure 4.30 As shown, click on the navigation control icon at the two-dimensional code, placed in the area at the screen .

2. In the properties window, enter the text: www.gz-dc.com .

3. The operation is completed. Run virtual serial port to display the map screen 4.29 Two-dimensional code shown in the image, can be accurately

identified by scanning the phone.

4. If the user needs to update the current single-chip two-dimensional code content, to send the corresponding commands. Figure assumptions 4.30 In the picture

ID for 5 Two-dimensional code control number 1 Display content 123 , The sending command is as follows: EE B1 10 00 05 00 01 31 32 33 FF FC FF FF ,among

them 313233 Show 123 of ASCII character.

Map 4.30 Two-dimensional code display settings

4.31 Starts a timer (need hardware support RTC )

Format: EE [ B1 41 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): RTC Control Number

The instructions for the hardware only supports RTC Screen. When used, first click on the navigation bar RTC Controls, placed in the upper right

corner of the screen, set the count format, timing and length of the display, as shown in 4.31 , The microcontroller then transmits a user command to start the

timer, start of counting time.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

55/79
86 Serial Data Sheet screen V2.1

Alarm time is reached, the screen will upload event notifications, upload format: EE [ B1 43 Timedata 17 ] FF FC FF FF . Upload parameters: Timedata

( 4 Bytes): the time the timer value set by the user, the previous high.

Map 4.31 Set the timer

Users can also set a timer command to modify the timing parameters.

4.32 Set the timer (need hardware support RTC )

Format: EE [ B1 40 Screen_id Control_id Timedata ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): RTC Control Number

Timedata (4 Bytes): timer value


The instructions for the hardware only supports RTC The screen used to modify the timer parameters.

4.33 Pause timer (need hardware support RTC )

Format: EE [ B1 44 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): RTC Control Number

The instructions for the hardware only supports RTC Screen to pause the timer to continue counting after the timer is started.

4.34 Clear Timer (need hardware support RTC )

Format: EE [ B1 42 Screen_id Control_id ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): RTC Control Number

The instructions for the hardware only supports RTC The screen used to clear a timer, the time value will be restored to its original value.

4.35 Setting cursor focus

Format: EE [ B1 02 Screen_id Control_id Enable ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Enable (1 Bytes): 0x00 Means closed, 0x01 It will indicate on the display;

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

56/79
86 Serial Data Sheet screen V2.1

The instruction is displayed on the main cursor symbol transplanted to the specified text control, and more intuitive to remind the user to enter text.

Tip: valid only in the custom keyboard.

4.36 Manual Disable / Enable screen updates

Format: EE [ B3 Enable ] FF FC FF FF
Parameter Description: Enable (1 Bytes): 0x00 Express prohibition update, 0x01 For enabled updates; this command can solve the excessive number of

controls in real-time dynamic updating of a screen, leading to problems of slow screen updates. Because the system default 100ms Automatically refresh the

screen at once, and on some occasions a large amount of user data, the system automatically updates can not always meet the requirements, it can be used

to manually update the on-screen instructions.

Usage: first transmission prohibition program screen update instruction, and then sends the entire contents of the screen needs to be updated, and

finally enabling the screen updated so that the updated data is immediately displayed on the screen.

4.37 Shield / Hide Controls

Format: EE [ B1 03 Screen_id Control_id Enable ] FF FC FF FF


Parameter Description: Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Enable (1 Bytes): 0x00 Represent a hidden control, 0x01 Denotes a display control;

The instructions are useful for a time specified button control functions are suspended until the shield is released, can also be used for an animation /

Icon Control display disappears.

4.38 Set up RS485 Screen Address

Set up RS485 Address has 2 Ways:

1. Set up an existing address 485 Screen instruction format: EE [ Addr_old A5 01 Addr_new ] FF FC FF FF

Parameter Description: Addr_old :( 2 Bytes) Current 485 Screen Address

Addr_new :( 2 Bytes) new 485 Screen Address

For the screen has an address, you need to specify the original address, then set the new address. Without knowing the original address, you

can cancel the address, and then re-set the new address

2. No address setting screen instruction format: EE [ A5 01 Addr ] FF FC FF FF

Parameter Description: Addr :( 2 Bytes) Screen Address

Note: All addresses must start from the set Ge 1, 0 is broadcast address. All screens can receive the broadcast information.

4.39 RS485 Screen Address Cancel

cancel RS485 There are screen address 2 Ways:

1. Cancel existing address screen. If the screen itself has 485 Address, you can use the command: EE [ Addr A5 00 ]

FF FC FF FF Cancel the address, Addr The screen for the current address.

2. Cancel the broadcast address. Any screen can be used to cancel an address broadcast address, the command is: EE [ 00 00 A5 00 ] FF FC FF

FF .

4.40 System configuration is locked

Format: EE [ 08 A5 5A 5F F5 ] FF FC FF FF
Parameters: None

This prevents instruction during system operation, the host receives an error frame instruction causes the system configuration accidentally modified.

Once the configuration is locked, the external device can not receive the serial command is modified until the lock is released. Configuration parameters include: baud rate,

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

57/79
86 Serial Data Sheet screen V2.1

Matrix keyboard and a touch mode, the automatic backlight adjustment parameters, may be directly PC The Assistant to configure command.

4.41 System configuration lock is released

Format: EE [ 09 DE ED 13 31 ] FF FC FF FF
Parameters: None

Once the lock is released the system configuration, an external device can be re-received serial command to modify the configuration parameters.

Users can directly PC The Assistant to configure command.

4.42 Data recording controls

EE [ B150 SCREEN_ID CONTROL_ID Value Time ] FF FC FF FF

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number


Trigger warning
Value ( 2 Bytes): Value Number

Time ( 7 Bytes): Sec Min Hour Day Week Mon Year Optional settings, if not set the time, take the default screen

Inside RTC time

EE [ B151 SCREEN_ID CONTROL_ID Value Time ] FF FC FF FF

Screen_id (2 Bytes): Screen Number

Warning lifted Control_id (2 Bytes): Control Number

Value ( 2 Bytes): Value Number

Time ( 7 Bytes): Sec Min Hour Day Week Mon Year Alternatively setting, if the set time, taking the default

RTC time

EE [ B152 SCREEN_ID CONTROL_ID String ] FF FC FF FF

Screen_id (2 Bytes): Screen Number

Add Record data Control_id (2 Bytes): Control Number

string (Variable length): Recording data; data between data and semicolon ";" separator

Add data to the table data and the data directly to a semicolon ";" separated, corresponding to ASCII Code 3B , Met representatives of the separator

This has been a complete grid data

EE [ B153 SCREEN_ID CONTROL_ID ] FF FC FF FF

Clear History data


Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Clear entire data control data table

EE [ B154 SCREEN_ID CONTROL_ID Offset ] FF FC FF FF

Screen_id (2 Bytes): Screen Number


Display offset setting record
Control_id (2 Bytes): Control Number

Offset (2 Bytes): Control Number

This command is mainly used to set records indicate offset, i.e., position of the slider

Get the current number of records EE [ B155 SCREEN_ID CONTROL_ID ] FF FC FF FF

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

58/79
86 Serial Data Sheet screen V2.1

Screen_id (2 Bytes): Screen Number

Control_id (2 Bytes): Control Number

Gets the number of records Nou control data record, upload instruction format is:

EE [ B155 SCREEN_ID CONTROL_ID TYPE DATA ] FF FC FF FF

Type ( 1 Bytes): 1D Representatives form controls

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

59/79
86 Serial Data Sheet screen V2.1

The first 5 chapter Microcontroller circuit connected to the user program, and

5.1 Examples of user microcontroller program reference

This section briefly describes the general user program development process, detailed experimental DEMO Program can at the official website

www.gz-dc.com Information column to download. The following is a simple development process.

1. Prepare supporting art material, as 5.1 Fig.

Map 5.1 Supporting art material

2. use PC Software interface configuration. In advance by the host computer VisualTFT Configure each screen, and then run the "Virtual Serial Port

screen" simulation to ensure the correctness of the logical relationships of each interface button, and finally download the project to the serial port screen. PC

software Figure 5.2 Fig.

Map 5.2 use PC Interfacial configuration

3. User program structure analysis

After downloading to the serial port configured project screen, the user can receive or transmit the microcontroller commands the control of the display. My company

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

60/79
86 Serial Data Sheet screen V2.1

Providing microcontroller ( 51 , STM32) Process-driven architecture is shown in 5.3 Shown, wherein the lowermost layer is a user serial processor hardware

drivers, the serial order of up to one frame screen driver, then the top layer in response to a serial message handler for the top user application code.

User application

frame message response processing

Serial port command-driven screen

Serial port driver and serial port hardware interrupt service

Map 5.3 Program Structure FIG.

4. Work program flow chart. Serial entire screen workflow shown, regardless of what the user is currently using as MCU Platform, just replace serial

transceiver function to the bottom.

microcontroller serial peripheral clock, arranged

Serial port interrupt service

Read the serial receive


N
process of initializing the
buffer, whether it has

received a complete instruction?

Jump to the corresponding sub

To support and

Press the Release the Changing Screens Controls update

touch-screen coordinatetouch-screen
upload coordinate upload
Notice Notice

Correspondence processing

function

Button control Text Control Progress bar Slider control Instrument Control Icon or animation

information information control information information information control process

OnRecvButton () OnRecvText () OnRecvProgress () OnRecvSlider () OnRecvMeter () OnRecvAnimatin ()

Map 5.4 Work program flow chart

5. Keil Program reference template. Our company has provided a standard serial development platform screen template, users simply add the

application to the corresponding message in the event, as 5.5 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

61/79
86 Serial Data Sheet screen V2.1

Map 5.5 KEIL Templates

Command analysis program entry

void ProcessMessage (PCTRL_MSG msg, uint16 size)

uint8 cmd_type = msg-> cmd_type; // Instruction type

uint8 control_type = msg-> control_type; // Control Type

uint16 screen_id = PTR2U16 (& msg-> screen_id); // Picture ID

uint16 control_id = PTR2U16 (& msg-> control_id); // Controls ID

uint32 value = PTR2U32 (msg-> param); // Numerical

switch (cmd_type)

case NOTIFY_SCREEN: // Changing Screens

NotifyScreen (screen_id);

break;

case NOTIFY_TOUCH_PRESS:

case NOTIFY_TOUCH_RELEASE:

NotifyTouchXY (cmd_buffer [1], PTR2U16 (cmd_buffer + 2), PTR2U16 (cmd_buffer + 4));

break;

case NOTIFY_MENU: // Menu control

NotifyMenu (screen_id, control_id, msg-> param [0], msg-> param [1]);

break;

case NOTIFY_TIMER: // Countdown Controls

NotifyTimer (screen_id, control_id);

break;

case NOTIFY_WRITE_FLASH_OK:

NotifyWriteFlash (1);

break;

case NOTIFY_WRITE_FLASH_FAILD:
Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

62/79
86 Serial Data Sheet screen V2.1

NotifyWriteFlash (0);

break;

case NOTIFY_READ_FLASH_OK:

NotifyReadFlash (1, cmd_buffer + 2, size-6); // Header removed frame end

break;

case NOTIFY_READ_FLASH_FAILD:

NotifyReadFlash (0,0,0);

break;

case NOTIFY_CONTROL:

switch (control_type)

case kCtrlButton: // Button control

NotifyButton (screen_id, control_id, msg-> param [1]);

break;

case kCtrlText: // Text Control

NotifyText (screen_id, control_id, msg-> param);

break;

case kCtrlProgress: // Progress bar control

NotifyProgress (screen_id, control_id, value);

break;

case kCtrlSlider: // Slider controls

NotifySlider (screen_id, control_id, value);

break;

case kCtrlMeter: // Instrument Control

NotifyMeter (screen_id, control_id, value);

break;

default:

break;

break;

default:

break;

6. use Keil Even adjusting screen with virtual serial port binding. In order to facilitate the development of engineers, avoid each modification interface

will need to re-download images to the device, the user can directly KEIL Screen with virtual serial port binding, easy one-step, multi-step

Debug Debugging, saving development time, as 5.6 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

63/79
86 Serial Data Sheet screen V2.1

Map 5.6 Screen with virtual serial port KEIL Binding Debugging

7. All detailed development process and program examples please visit the official website www.gz-dc.com Download.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

64/79
86 Serial Data Sheet screen V2.1

The first 6 chapter Product storage and maintenance

Thank you for choosing Guangzhou large color screen serial production of industrial research and development products, we will be happy to provide

a full range of technical support and after-sales service. LCD is fragile precision devices, although the big prize at the factory made to protect all kinds of

possibilities, but in order that you can make better use of this product, it is recommended that you read the following precautions carefully before use, to

avoid unnecessary loss.

6.1 Processing protective film

Factory serial panel has a protective film on the surface, in order to prevent the transport, installation, commissioning process contamination monitor.

In peeling off the protective film, it may cause static, need to make anti-static measures. In normal use, it is recommended to remove the protective film on

the touch screen, touch acuity prevented.

6.2 Product maintenance and storage

Since the display of long-term exposure to the outside, exposed to dirt, dust, require occasional cleaning. Recommended isopropyl alcohol and

ethyl-alcohol or a cleaning block processing. If for some reason you need long-term storage, we recommend a few ways:

1. Product into the static bag and seal;

2. Placed in the dark, to avoid glare;

3. The storage chamber temperature - 30 ~ 85 ;

4. You can not put anything on the surface.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

65/79
86 Serial Data Sheet screen V2.1

The first 7 Appendix chapter B DETAILED DESCRIPTION The basic instruction set

Due to the configuration instruction set to meet 95% Engineering applications, and easy operation, most of the configuration are PC Done, so we do not

recommend using the basic instruction set. Relative configuration instruction set, belonging to the bottom of the basic instruction set of instructions, more

flexibility, in the case of the configuration command can not be completed, can be implemented using the basic set of instructions. Detail of the instruction set

as the following sections.

7.1 shake hands

Format: EE [ 04 ] FF FC FF FF
Equipment return: EE 55 FF FC FF FF

Handshake apparatus for determining whether the instruction is mainly powered on initialized, normal and whether the communication is online

status. After sending the command to return the device 55 It represents a handshake successful.

7.2 Reset report

Instruction format: None device returns: EE 07 FF FC

FF FF

Once the device is powered on to start, or restart unexpectedly monitoring chip reset, the data will be uploaded immediately inform users of the

device has been reset. After the host detects the device user accidentally reset, the control program needs to restart from the initialization execution.

7.3 Reset the device

Format: EE [ 07 35 5A 53 A5 ] FF FC FF FF
Equipment return: EE 07 FF FC FF FF

During operation the host to reset the device through the serial port command. The initialization command is recommended to increase the host

device, the host to inadvertently reset the reset device also followed.

7.4 Before setting / background color

Format: Set the foreground color: EE [ 41 Fcolor ] FF FC FF FF


Set the background color: EE [ 42 Bcolor ] FF FC FF FF

Set the foreground and background color: EE [ 40 Fcolor Bcolor ] FF FC FF FF

Parameter Description: Fcolor , Bcolor (2 Bytes) are in the foreground and background colors RGB Is mainly used for displaying foreground color

values specified text, points, lines and circles, it is mainly used to specify the background color and text clear screen background color. For

example, by setting the front / background color instructions may complete the display of FIG. 7.1 What it is shown.

Reference program:

SetBcolor (31); // Set the background color is blue, clear screen for specifying the color

GUI_CleanScreen (); // Clear screen

SetFcolor (65516); // Sets the foreground color to yellow, the user designates the display color of the text

SetBcolor (63488); // Set the background color to red, is used to specify the text background color (background)

DisText (50, 50, 1, 6, " Hello, color! "); // In the coordinates ( 50, 50) Writing the string, the background color

DisText (50, 90, 0, 6, " Hello, serial screen! "); // In the coordinates ( 50, 90) Writing the string, no background color

SetFcolor (2016); // Re-set the foreground color to green

GUI_RectangleFill (256, 57, 370, 116); // Painting filled rectangle

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

66/79
86 Serial Data Sheet screen V2.1

Text background color red


Clear screen color

Text foreground color yellow

Rectangle foreground color

Text without background color display


green

Map 7.1 Background foreground Description

7.5 Clear screen

Format: EE [ 01 ] FF FC FF FF
Parameters: none Arguments

The instructions for implementing the specified color screen is cleared, clear the screen background color depending on the color settings. If

the user does not conduct background color, clear screen default color is blue.

7.6 Set the text spacing ranks

Format: EE [ 43 Y_W X_W ] FF FC FF FF


Parameter Description: Y_W (1 Bytes) Is the line spacing in points, in the range 00 ~ 3F ;

X_W (1 Bytes) It is in units of column pitch point, in the range 00 ~ 3F .

This command is used to set the ranks of the distance between the text. If only one line of text, line spacing was 0 . For example displayed on

the screen 2 Row 32 * 32 String, set line spacing twenty four , Column spacing 16 , The program as shown below.

Reference program:

SetFcolor (65504); // Sets the foreground color to yellow, the color display specified text

SetBcolor (63488); // Set the background color is red, the specified text background color

SetTextSpace (24,16); // Setting line spacing twenty four , Column spacing 16

// Display
DisText (50, 51, 1, 7, " Guangzhou Science and Technology Industrial Serial color screen "); text strings

7.7 Set the text box

Format: EE [ 45 Enable Width Hight ] FF FC FF FF


Parameter Description: Enable ( 1 Bytes): Open / Close Limit Enable textbox

Width (2 byte): The width of the text box;

Hight (2 byte): Height of the text box.

After setting the text box, the text box will be displayed at a defined wrap.

7.8 Picture color filter

Format: EE [ 44 FillColor ] FF FC FF FF
Parameter Description: FillColor (2 Byte): Color filter RGB value;

After setting the color filter, a pixel value when the image coincides with the value of the same color filter, this point will be shielded, not

displayed on the screen. FIG disposed before and after the filter color contrast 7.2 Fig.

Reference program:

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

67/79
86 Serial Data Sheet screen V2.1

DisArea_Image (0, 0, 0, 0); // (0,0) Background image displayed at the Prairie

DisArea_Image (61,130, 1, 0); // (61,130) Displayed at the unfiltered butterfly pattern

SetFilterColor (65535); // Is provided to filter the white color, RGB Value 65535

DisArea_Image (258,68, 2, 1); // (258,68) Butterfly pattern displayed at the filtered

After filtration display

Unfiltered display

Map 7.2 FIG color contrast filter is provided before and after

7.9 Text Display

Format: EE [ 20 XY Back Font Strings ] FF FC FF FF


Parameter Description: X (2 byte) : In points of X Axis coordinate value;

Y (2 byte) : In points of Y Axis coordinate value;

Back (1 Bytes): Background Color Enable

0x01: background color display 0x00: The background color is not displayed

Font ( Character encoding, 1 Bytes)

0x00: 8x12 dot (ASCII) 0x01: 8x16 dot (ASCII) 0x02: 12x24 matrix
(ASCII) 0x03: 16x32 matrix (ASCII) 0x04: 12 x 12 dot (GBK) 0x05: 16 x
16 dot ( GBK) 0x06: 24 x 24 dot (GBK) 0x07: 32 x 32 dot (GB2312)
0x08: 32 x 64 dot (ASCII) 0x09: 64 x 64 dot (GB2312)

Strings: String written by the user, high byte first.

The instructions for implementing the specified anywhere on the screen displaying the text. GBK And it contains Chinese characters commonly used fonts such as Japan and South Korea;

GB2312 It contains only Chinese characters and character; ASCII Chinese characters can not be displayed. In actual operation, the user determines the

foreground color, background color, text font encoding can be continuously written characters or a string, the machine will automatically wrap the display and

match in English. FIG text display 7.3 Fig.

Reference program:

SetFcolor (65504); // Set the text foreground color, yellow

DisText (46, 21, 0, 7, " Industrial Serial Screen LCM 32 * 32 "); // coordinate( 46,21) At display text, font is 7 No. font

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

68/79
86 Serial Data Sheet screen V2.1

Map 7.3 FIG text display

7.10 Multi-language switch

Format: EE [ C1 Enable_ID check ] FF FC FF FF


Parameter Description: Enable_ID (1 Bytes): language number, order number has 0 Start up 10 item

Check ( 1 Bytes): checksum, checksum is calculated as: C1 + Enable_ID

Such as: EE C1 00 C1 FF FC FF FF Switched to the 1 Languages;

EE C1 01 C2 FF FC FF FF Switched to the 2 Languages;

7.11 Cursor display

Format: EE [ 21 Enable XY Width Hight ] FF FC FF FF


Parameter Description: Enable (1 Bytes) : Cursor enable signal

0x00: The cursor is closed, 0x01: cursor open

X (2 byte) : In points of X Axis coordinate value

Y (2 byte) : In points of Y Axis coordinate value

Width (1 Bytes): the width of the cursor

Hight (1 Bytes): height of the cursor

This command is mainly used to control a cursor blinking on and off. For example users 24 * 24 Suffix characters display width 16 Height 8 Cursor,

as shown in FIG effect 7.4 Fig.

Program reference code:

SetBcolor (31); // Set background color blue

GUI_CleanScreen (); // Clear blue screen background

DisCursor (1,359,40,16,8); // Blinking cursor is enabled, the ( 359,40) The display width 16 height 8 Cursor

Map 7.4 Cursor Parameter Description

7.12 Full-screen picture display

Format: EE [ 31 Image_ID MaskEn ] FF FC FF FF


Parameter Description: Image_ID (2 Bytes): Image,

MaskEn (1 Bytes): Color Filter Enable


0x00: no color filter; 0x01 performs color filtering

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

69/79
86 Serial Data Sheet screen V2.1

The primary instruction full screen image, a fixed start coordinate (0,0), depending on the filter was filtered color color setting. If the image size is

smaller than the full screen size, when the instruction is executed, only the actual displayed picture size.

7.13 Image display area

Format: EE [ 32 XY Image_ID MaskEn ] FF FC FF FF


Parameter Description: X (2 Byte): in points of X Axis coordinate value

Y (2 Byte): in points of Y Axis coordinate value

Image _ID (2 Bytes): Image,


MaskEn (1 Bytes): Color Filter Enable

0x00: no color filter; 0x01 performs color filtering

The instructions for implementing the image display arbitrary position. Users need to pay attention to the starting coordinates and pictures length

and width, to prevent the display screen is outstretched. For example the user to the screen ( 100,50 ) Is displayed at a ID for 2 The picture, as 7.5 As

shown, Procedure is as follows with reference to FIG.

Map 7.5 Image display area

Program reference code:

DisFull_Image (0,0); // Full screen picture display

DisArea_Image (100,50, 2, 0); // Picture display area, coordinates ( 100,50 ) At the display ID = 2 picture of

7.14 Image Cut

Format: EE [ 33 XY Image_ID Image_X Image_Y Image_W Image_H MaskEn ]


FF FC FF FF
Parameter Description: X (2 byte) : In points of X Axis coordinate value

Y (2 byte) : In points of Y Axis coordinate value

Image_ID (2 byte): To cut the number of pictures

Image_X (2 byte): The picture is cut starting point X coordinate

Image_Y (2 byte): The picture is cut starting point Y coordinate

Image_W (2 Bytes): the width of cut

Image_H (2 Bytes): Cut height


MaskEn (1 Bytes) 0x00: no color filter; 0x01 performs color filtering

Note: filtering the color depends on the color filter provided Ge

The instructions for implementing the image display is cut over at arbitrary coordinates of the screen. Users can store in Flash

In any of a partial picture cropping, shearing effect in FIG. 7.6 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

70/79
86 Serial Data Sheet screen V2.1

7.15 Animation

Format: EE [ 80 XY FlashImage_ID Enable PlayNum ] FF FC FF FF


Parameter Description: X (2 Bytes): In points of X Axis coordinate value

Y (2 Bytes): In points of Y Axis coordinate value

FlashImage_ID (2 Byte): Animation Number

Enable (1 Bytes): enable signals

0x00: Close animation; 0x01: open animation

PlayNum (1 Bytes)
0x00: repeat; 0x01 ~ 0xFF: play the specified number of times

After the playback is stopped, the device returns EE 02 FF FC FF FF It indicates the end of the animation. The instructions for implementing the

display of animated gif arbitrary position. Animated gif format only supports and does not support animated gif two or more same screen while playing. If

desired a screen simultaneously displays a plurality of animated gif, animations and pause, stop, play function / lower frames and the like, using the

animation control commands, configuration control instructions detailed in the table. Image animation effect is shown 7.6 Fig.

Program reference code:

DisFull_Image (0, 0); // Full screen display child picture, numbered 0

DisFlashImage (330,5, 1,1,0); // coordinate( 330,5) The insertion cows Flash Animation, repeat

DisCut_Image (343,137,0,95,30,92,116,0); // Picture from 0 coordinate( 95,30) Cut size at 92 x116

// Pictures, placed on the screen ( 343,137) Displayed at

GIF animation

Cut display

Map 7.6 Pictures animated renderings

7.16 Foreground color painting point

Format: EE [ 50 XY ] FF FC FF FF
Parameter Description: X (2 Bytes): In points of X Axis coordinate value

Y (2 Bytes): In points of Y Axis coordinate value

The instructions are implemented at any point of the screen drawing position, depending on the color values of the points set foreground.

7.17 Background color drawing point (point deleted)

Format: EE [ 58 XY ] FF FC FF FF
Parameter Description: X (2 Bytes): In points of X Axis coordinate value

Y (2 Bytes): In points of Y Axis coordinate value

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

71/79
86 Serial Data Sheet screen V2.1

The instructions are implemented at any point of the screen position drawn, the color values of the points depends on the background color setting.

The background color with the foreground color is usually stippled stippled use, you can delete points with the foreground color painting.

Figure 7.7 , The user may be displayed on a black background by the foreground FIG stippled a yellow star pattern, to modify or remove this pattern,

the same cover can go to the background color coordinates by invoking Videos foreground point instruction writing point. Of course, if the user of the data

update rate is not too high, it may be to clear the screen area, and then re-drawn.

Map 7.7 Foreground / background color stippled

7.18 Drawing a line

Format: EE [ 51 X 0 Y 0 X 1 Y 1 ] FF FC FF FF
Parameter Description: X 0 ( 2 byte) : In points of a straight line X Axis coordinate values of the starting point

Y 0 ( 2 byte) : In points of a straight line Y Axis coordinate values of the starting point

X 1 ( 2 byte) : In points of a straight line X Axis coordinate value of the end point

Y 1 ( 2 byte) : In points of a straight line Y Axis coordinate value of the end point

This command is mainly achieved between any two points of the screen objects, the foreground color value of the line depends on the setting.

Parameter Description FIG. 7.8 Fig. For example, by invoking specified objects implement a simple table, the actual display in FIG. 7.8 Fig.

Screen coordinate value


X

(0,0)

(X 0 , Y 0)

(X 1 , Y 1)

Map 7.8 Draw lines Parameter Description

7.19 The intervals X Connected foreground color coordinates

Format: EE [ 59 X 0 Xspace Y 0 Y 1 Y 2 . . . Y n ] FF FC FF FF
Parameter Description: X0 (2 Bytes) : In points of X Axis coordinate value

Xspace (2 Bytes): in points of X Two adjacent shaft fixed interval value

Yn (2 Bytes) : In points of Y Axis coordinate value of the main instruction fast draw polylines. due to X Distance between two

points of the front and rear axles are fixed Xspace Therefore from 2 Point start command parameters do not need X Coordinate values. Contrast

foreground / background color draw polylines, twice as fast.

7.20 The coordinate offset connection with the foreground color

Format: EE [ 75 X 0 Y 0 X 1o Y 1o X 2o Y 2o . . . X no Y no ] FF FC FF FF
Parameter Description: X0 (2 Bytes): in points of X Axis coordinate value

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

72/79
86 Serial Data Sheet screen V2.1

Y0 (2 Bytes): in points of Y Axis coordinate value

Xno (1 Bytes) : In points of X Offset shaft


Yno (1 Bytes) : In points of Y Offset shaft
(X, Y) The absolute coordinate of the first point, a point behind each are represented by a point before the current absolute coordinates plus the

offset. The most significant bit is the sign bit of the offset, 0 Represents a positive offset, 1 It represents a negative offset, plus or minus an offset value of the maximum

127 Points.
The main instruction using the coordinate offsets for each coordinate of the original 4 Bytes becomes 2 Bytes, halving the command parameters to

achieve polyline drawing twice as fast. The color of the line determined by the setting foreground.

7.21 The designated coordinate point is connected with the foreground color

Format: EE [ 68 X 0 Y 0 X 1 Y 1 ... X n Y n ] FF FC FF FF
Parameter Description: X n ( 2 byte) : In points of a straight line X Axis coordinate values of the starting point

Y n ( 2 byte) : In points of a straight line Y Axis coordinate values of the starting point

The command is mainly implemented by a plurality of coordinate points specified foreground connected. For example, to achieve the polyline and a

hexagonal shape as shown in Figure 7.9, as shown in the following procedure.

Figure 7.9 is connected with the foreground color coordinate points specified renderings

Program reference code:

SetFcolor (65523); // Foreground color to yellow line

GUI_FcolorConDots (x0, y0, x1, y1, x2, y2, x3, y3, x4, y4, x5, y5); // draw( x0, y0) To ( x5, y5) Polyline

GUI_FcolorConDots (x0, y0, x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x0, y0); // Drawing a hexagonal, end to end

7.22 The designated coordinate point is connected with the background color

Format: EE [ 69 X 0 Y 0 X 1 Y 1 ... X n Y n ] FF FC FF FF
Parameter Description: X n ( 2 byte) : In points of a straight line X Axis coordinate values of the starting point

Y n ( 2 byte) : In points of a straight line Y Axis coordinate values of the starting point

The command is mainly achieved by connecting a plurality of coordinate points specified background color. The background color with the foreground

color to draw polylines usually draw polylines use, can be used to delete the foreground color to draw polylines.

7.23 Wired as a background color coordinates offset

Format: EE [ 76 X 0 Y 0 X 1o Y 1o X 2o Y 2o . . . X no Y no ] FF FC FF FF
Parameter Description: X0 (2 Bytes): in points of X Axis coordinate value

Y0 (2 Bytes): in points of Y Axis coordinate value

Xno (1 Bytes) : In points of X Offset shaft


Yno (1 Bytes) : In points of Y Offset shaft
(X, Y) The absolute coordinate of the first point, a point behind each are represented by absolute coordinates of a point before the current offset plus

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

73/79
86 Serial Data Sheet screen V2.1

The amount of the composition. The most significant bit is the sign bit of the offset, 0 Represents a positive offset, 1 It represents a negative offset, plus or minus an offset value of the maximu

127 Points.
The main instruction using the coordinate offsets for each coordinate of the original 4 Bytes becomes 2 Bytes, halving the command parameters to

achieve polyline drawing twice as fast. The color of the line determined by the setting the background color.

7.24 Hollow round draw

Format: EE [ 52 X 0 Y 0 R ] FF FC FF FF
Parameter Description: X 0 ( 2 Bytes): In points of the center X Coordinate values

Y 0 ( 2 Bytes): In points of the center Y Coordinate values

R (2 Bytes): Open circle of radius

The instructions for implementing Videos in a radius at the specified coordinates R Open circle, the circle line color depends foreground color

settings. Parameter Description FIG. 7.10 Fig.

Screen coordinate value X

(0,0)

(X 0 , Y 0)

Map 7.10 Painting hollow circle Parameters

7.25 Draw a filled circle

Format: EE [ 53 X 0 Y 0 R ] FF FC FF FF
Parameter Description: X 0 ( 2 Bytes): In points of the center X Coordinate values

Y 0 ( 2 Bytes): In points of the center Y Coordinate values

R (2 Bytes): Solid radius of the circle

The instructions for implementing Videos in a radius at the specified coordinates R Solid circles, depending foreground fill color within the circle is

provided. Parameter Description FIG. 7.10 the same.

7.26 Draw an arc

Format: EE [ 67 X 0 Y 0 R SA EA ] FF FC FF FF
Parameter Description: X 0 ( 2 Bytes): In points of the center X Coordinate values

Y 0 ( 2 Bytes): In points of the center Y Coordinate values

R (2 Byte): radius of a circle

SA (2 Byte): starting angle

EA (2 Byte): End angle

The instructions for implementing Videos in a radius at the specified coordinates R Arc, arc foreground color depending on the settings. Watches 3 As

a starting point the direction of an angle 0 Degree, the angle sequentially increases clockwise, as shown in the reference coordinate 7.11 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

74/79
86 Serial Data Sheet screen V2.1

Map 7.11 Referring to FIG arc starting angle

7.27 Painting hollow rectangle

Format: EE [ 54 X 0 Y 0 X 1 Y 1 ] FF FC FF FF
Parameter Description: X 0 ( 2 byte) : Hollow upper-left corner of the rectangle in points X Coordinate values

Y 0 ( 2 byte) : Hollow upper-left corner of the rectangle in points Y Coordinate values

X 1 ( 2 byte) : Hollow bottom right corner of the rectangle in points X Coordinate values

Y 1 ( 2 byte) : Hollow bottom right corner of the rectangle in points Y Coordinate values

The instructions for implementing anywhere on the screen to draw a hollow rectangle, rectangular border foreground color depending on the settings.

FIG parameter definition 7.12 Fig.

coordinate value
X

(0,0) screen

(X0, Y0)

(X1, Y1)

Y
Y

Map 7.12 Painting hollow rectangle Parameter Description

7.28 Painting a solid rectangle / partial clear screen

Format: EE [ 55 X 0 Y 0 X 1 Y 1 ] FF FC FF FF
Parameter Description: X 0 ( 2 byte) : Solid top-left corner of the rectangle in points X Coordinate values

Y 0 ( 2 byte) : Solid top-left corner of the rectangle in points Y Coordinate values

X 1 ( 2 byte) : Solid bottom right corner of the rectangle in points X Coordinate values

Y 1 ( 2 byte) : Solid bottom right corner of the rectangle in points Y Coordinate values

The instructions for implementing anywhere on the screen to draw a filled rectangle, rectangle fill foreground color depending on the settings.

Parameters defined in FIG. 7.12 the same. This feature can also clear the screen as a local use.

7.29 Hollow oval painting

Format: EE [ 56 X 0 Y 0 X 1 Y 1 ] FF FC FF FF
Parameter Description: X 0 ( 2 byte) : In points leftmost hollow oval X Coordinate values

Y 0 ( 2 byte) Uppermost end in points a hollow ellipse: Y Coordinate values

X 1 ( 2 byte) : Open ovals rightmost end in points of X Coordinate values

Y 1 ( 2 byte) : In points lowermost hollow oval Y Coordinate values

The instructions for implementing anywhere on the screen to draw a hollow ellipse, the ellipse depends foreground color is provided. FIG parameter

definition Description 7.13 Fig.

Screen coordinate value X

(0,0)
Y0

X0 X1 X

Y1

Y
Y

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

75/79
86 Serial Data Sheet screen V2.1

Map 7.13 Painting hollow oval Parameter Description

7.30 Solid oval painting

Format: EE [ 57 X 0 Y 0 X 1 Y 1 ] FF FC FF FF
Parameter Description: X 0 ( 2 byte) : In points of the ellipse leftmost solid X Coordinate values

Y 0 ( 2 byte) Uppermost end in points of the ellipse solid: Y Coordinate values

X 1 ( 2 byte) : Solid oval rightmost in points of X Coordinate values

Y 1 ( 2 byte) : Solid oval lowermost point units Y Coordinate values

The instructions for implementing anywhere on the screen to draw a solid oval, elliptical depending foreground fill color setting.

7.31 Backlight adjustment

Format: EE [ 60 Light_level ] FF FC FF FF
Parameter Description: Light_level (1 Bytes) : Backlight luminance value of the instruction primarily for regulating the brightness of the LCD backlight,

range 00H ~ FFH . 00H It represents the brightest backlight, FFH

It represents the darkest backlight, a total of 255 Level brightness adjustment.

If there is no operation of the operation screen within a certain period of time, it is recommended to reduce backlight brightness 30% So, in order to improve the life of the backlight.

7.32 Automatic screen saver mode

Format: EE [ 77 Enable BL_ON BL_OFF BL_ON_Time ] FF FC FF FF


Parameter Description: Enable (1 Bytes): enable signals

0x00: Close saving mode 0x01: power-saving mode

BL_ON (1 Bytes): the luminance value of the backlight touch activated

BL_OFF (1 Bytes): luminance value of the backlight into the screen saver

BL_ON_Time (2 Bytes): no touch operation is blanked mode time (unit: 1 second)

This command is mainly used to set the screen saver is activated and the backlight brightness value into the screen saver mode. The power saving

mode can not only extend the lifetime of the backlight of the liquid crystal panel, the liquid crystal may also reduce the amount of heat emitted outside the light emitting tube.

7.33 Buzzer control

Format: EE [ 61 Time ] FF FC FF FF
Parameter Description: Time (1 Bytes): Information ring the buzzer time, in 10ms

The instructions for controlling a buzzer, by setting Time Parameters to achieve different frequencies of sound information. General touch Beep time Time

Set as 100ms .

7.34 Equipped with touch screen

Format: EE [ 70 Cmd ] FF FC FF FF
Parameter Description: Cmd (1 Bytes): Configuration parameters

BIT0: 1 It represents the touchscreen to open, 0 It indicates touch screen is closed;

BIT1: 1 When the buzzer sound indicates touch, 0 He said they did not ring;

BIT4 ~ BIT2: Touch the coordinate values uploads

000: Uploads when a touch presses 1st coordinate 001: Indicates the touch screen is

pressed until after release uploaded 1 coordinates

010: touch has been pressed, every 100ms upload one time coordinate, or upload one time coordinate the release of 011: 1

represents the coordinates are uploaded when the touch screen is pressed and released

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

76/79
86 Serial Data Sheet screen V2.1

BIT5: 1 Shows 4 Within seconds of continuous clicking on a non-touch area 20 , The touch screen to enter calibration

mode, 0 It represents disable this function;

BIT7-BIT6 : Reserved

Upload touch coordinate value format: Upload pressed format: EE 01 XY

FF FC FF FF

Upload format release: EE 03 XY FF FC FF FF , X , Y Are 2 Bytes, high byte of the first instruction includes a touch enabled, and coordinates the

opening and closing buzzer uploading. As shown below 7.14 Shown, when the touch format configured to upload " 000 ", The user presses the screen ( 50,100)

After location, and upload data: EE 01 [ 00,320,064 ]

FF FC FF FF . Received through hosts determining the coordinates ( X, Y) Whether in active touch area to determine if the current touch is valid. Device itself

touch pressure value and a number of sampling operations, users no longer need for secondary operations.

Map 7.14 Touch screen work Introduction

7.35 Touch screen calibration

Format: EE [ 72 ] FF FC FF FF
Parameters: None

The instructions for calibrating the touch screen. Before leaving the factory calibrated equipment, users do not need re-calibration. After sending the

calibration command, the on-screen prompts corresponding to the click of a cursor, as shown in 7.15 Fig. Click The machine will indicate whether calibration

completed successfully, otherwise it needs to be recalibrated. The user can also send commands through the PC calibration software.

In addition, if the user needs a certain point in the non-touch area 4 Within seconds quick click 20 , The system will automatically enter touch

correction mode, required to start the function in the touch configuration. This feature is more suitable for touch-site calibration.

Map 7.15 Touch-screen calibration schematic

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

77/79
86 Serial Data Sheet screen V2.1

7.36 Touch Screen Experience

Format: EE [ 73 ] FF FC FF FF
Parameters: None

The test command instruction belongs. Figure 7.16 , The user presses the touch after a red solid circle corresponding coordinates, the user intuitively

test quality touch screens and touch experience precise value. Equipment and PC Once connected, the user can click VisualTFT Software tool bar of the "touch

experience" to experience a touch of sensitivity and accuracy.

Map 7.16 Touch experience renderings

7.37 Set the baud rate

Format: EE [ A0 Baudset ] FF FC FF FF
Parameter Description: Baudset (1 Bytes): Baud annotating unit bps

0x00: 1200 0x01: 2400 0x02: 4800


0x03: 9600 0x04: 19200 0x05: 38400
0x06: 57600 0x07: 115200 0x08: 1M
0x09: 2M 0x0A: 218750 0x0B: 437500
0x0C: 875000 0x0D: 921800

This command is mainly used for baud rate configuration, the range of 1200-2Mbps . The new baud rate value down save. The user can directly

through the host computer VisualTFT "Debugging Assistant" Configuring a new baud rate, as 7.17 Fig.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

78/79
86 Serial Data Sheet screen V2.1

Map 7.17 Baud rate setting

7.38 Matrix keyboard control

Format: EE [ 79 cmd ] FF FC FF FF
Parameter Description: Cmd (1 Bytes): Configuration parameters

BIT0: 1 It represents the matrix keyboard is enabled, 0 Close denotes matrix keyboard;

BIT1: 1 It represents a buzzer sound when the key is pressed, 0 He said they did not ring;

BIT4 ~ BIT2: Matrix keyboard uploads

000: Uploads 1 001 when pressed coordinate keyboard: that the keyboard is

pressed until the release once uploaded coordinates

010: When the keyboard is pressed for a long time, once every 100ms upload the coordinates, and then upload one time

coordinate the release of 011: 1 represents the coordinates are uploaded when the keyboard is pressed and released

BIT7-BIT5 : Reserved

Support for external devices 4 * 4 Matrix keyboard input. After pressing the keyboard keys to upload via the serial port to the host. Upload the key

encoded format: Press uploading format: EE 12 K FF FC FF FF ; Upload format release: EE 13 K FF FC FF FF , K for 1 Bytes, on behalf of the uploaded

key keyboard 4 * 4 Matrix keyboard, key coding range 0 To 15 , The corresponding relationship is as follows 7.1 Key code lookup table shown in FIG.

table 7.1 Key code look-up table

Row K6 K7 K8 K9

Row

K1 0 1 2 3

K2 4 5 6 7

K3 8 9 10 11

K4 12 13 14 15

7.39 Write data to FLASH

Format: EE [ 87 Addr Data0 Data1 Data2 ... Datan ] FF FC FF FF


Parameter Description: Addr (4 Bytes): the start address of the data written

Datan (1 Bytes): write data


Storage space for 128K Byte address range is 0 ~ 0x1FFFF . After successfully written, the device returns: EE 0C FF FC FF FF . The primary

instruction some part of the user data stored in the device Flash In as EEPROM use. Note Because Nandflash Endurance is 10 About million

times, it is not recommended to save important parameters FLASH in.

7.40 Read saved FLASH The data

Format: EE [ 88 Addr Length ] FF FC FF FF


Parameter Description: Addr (4 Bytes): data read start address

Length (2 Bytes): read data length in bytes


The returned data format: EE 0B Length Data0 Data1 Data2 ... Datan FF FC FF FF . The primary instruction for writing data

in the memory is read out.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

79/79
86 Serial Data Sheet screen V2.1

7.41 Clear Layer

Format: EE [ 05 Layer ] FF FC FF FF
Parameter Description: Layer (1 Bytes): Clear layer

The instruction is mainly used to clear the specified layer. If the basic instruction set, all display content in the layer 0 On the display, to clear the

display ,, must remove layers 0 instruction.

7.42 Automatically cleared when switching the current screen layer

Format: EE [ 06 Enable ] FF FC FF FF
Parameter Description: Enable (1 Bytes): enable signals

0x01: Auto Clear User Layer 0x00: Clear ban Layer

The instruction is mainly used to clear the current user if an automatic switching setting screen layer.

7.43 Interception of the current screen and save FLASH in

Format: EE [ 0x46 Image_ID ] FF FC FF FF


Parameter Description: Image_ID (1 Bytes) : User defined screen number stored in the instruction memory used to realize the current screen stored in

the display content Flash in. Image_ID Value can be arbitrarily set, pictures and Engineering ID Values do not conflict, can only support 2 Images saved.

7.44 That is saved FLASH The picture taken

Format: EE [ 0x47 Image_ID ] FF FC FF FF


Parameter Description: Image_ID (1 Bytes) of the instruction stored in the apparatus mainly for

displaying FLASH The picture taken.

7.45 RTC Mode setting

Format: EE [ 85 Cmd DisMode TextMode Color Xpoint Ypoint ] FF FC FF FF


Parameter Description: Cmd (1 Bytes): parameters

BIT0 : Enable signal

0: RTC closed 1: RTC open

BIT7-BIT1 : Reserved

DisMode (1 Bytes): the display mode

0x00: Format HH: MM: SS

0x01: format 20XX-MM-DD HH: MM: SS

Font (1 Bytes): font selection


0x00: 8x12 dot matrix (ASCII) 0x01: 8x16 dot matrix (ASCII)

0x02: 12x24 dot matrix (ASCII) 0x03: 16x32 dot matrix (ASCII)

0x04 12 x 12 dot (GBK) 0x05: 16 x 16 dot (GBK)


0x06: 24 x 24 dot (GBK) 0x07: 32 x 32 dot (GB2312)
0x08: 32 x 64 dot (ASCII) 0x09: 64 x 64 dot (GB2312)

Color (2 Bytes): Color Display

X (2 Bytes): In points of X Axis coordinate value

Y (2 Bytes): In points of Y Axis coordinate value

The instruction is mainly used RTC Display setting parameters. Implemented by setting a parameter corresponding to different clock display formats,

fonts, and position. RTC Recommended settings instructions directly from PC VisualTFT Set, setting parameters

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

80/79
86 Serial Data Sheet screen V2.1

Test interface is shown 7.18 Fig.

Map 7.18 Referring to FIG disposed RTC

7.46 RTC Clock Set

Format: EE [ 81 Sec Min Hour Day Week Mon Year ] FF FC FF FF


Parameter Description: Sec: SEC Sets Min: Set points

Hour: Set hours Day: Date Set

Week: Set week Mon: Set month

Year: In settings

The above parameters are 1 byte to BCD code, Sunday is set to 0x00

This command is mainly used to set the parameters of the current time, the user is directly set by the PC software. We recommended to use the

clock control to display RTC , You can click on the pop-up touch keypad to calibrate the current time.

7.47 Read RTC clock

Format: EE [ 82 ] FF FC FF FF
Parameters: None

This command is used to acquire the current time values. Upload data format: EE F7 Year Mon Week Day Hour Min Sec FF FC FF FF . The

above parameters are 1 Byte order BCD Code representation.

Sales Inquiries: 020-82186683-601 Email: hmi@gz-dc.com

Welcome www.gz-dc.com understand more... Guangzhou color Optoelectronics Technology Co., Ltd

81/79

Вам также может понравиться