User Manual for TOPWAY models including: HKT101BTA-C LCD Module, HKT101BTA-C, LCD Module, Module

HKT101BTA-C-Manual-Rev0.2

wanggang

HKT101BTA-C

10.1 inch Smart TFT LCD Display RS232 1024x600 | Topway Display

10.1寸 TFT智能液晶显示模块 RS232 1024x600 | 拓普微科技


File Info : application/pdf, 32 Pages, 2.24MB

PDF preview unavailable. Download the PDF instead.

HKT101BTA-C
HKT101BTA-C LCD Module User Manual

Prepared by: WangGang
Date: 2024-03-12

Checked by: Date:

Rev.
0.1 0.2

Descriptions
Preliminary release
Update Product Outline & Mounting

Approved by: DingXin
Date: 2024-03-12

Edit
WangGang WangGang

Release Date
2024-01-18 2024-03-12

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 1 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

Table of Content
1. Basic Specification ................................................................................................................................ 3 1.1 General Specification ......................................................................................................................3
1.2 Block Diagram .................................................................................................................................3
1.3 Terminal Function ........................................................................................................................... 4 1.3.1 UART Interface Terminal (K3) ............................................................................................. 4
1.3.2 USB TYPE-C Interface Terminal (K2) ................................................................................. 4 2. Absolute Maximum Ratings ..................................................................................................................5 3. Electrical Characteristics ...................................................................................................................... 5
3.1 DC Characteristics ..........................................................................................................................5
4. Function Specifications ........................................................................................................................ 6 4.1 Basic Operation Function Descriptions .......................................................................................... 6
4.2 Quick Start Guide ........................................................................................................................... 7 5. Command Descriptions .........................................................................................................................7 6. Optical Characteristics ..........................................................................................................................8 7. LCD Module Design and Handling Precautions ...............................................................................10 8. Case With Brackets Mounting () ...................................................................................... 11
Warranty .................................................................................................................................................... 12

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 2 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

1. Basic Specification
TOPWAY HKT101BTA-C is a Smart TFT Module with 32bit MCU on board. Its graphics engine provides numbers of outstanding features. It supports TOPWAY SGTools for preload and pre-design display interface that simplifies the host operation and development time. Suitable for industry control, instrumentation, medical electronics, power electric equipment applications.
1.1 General Specification

Screen Size(Diagonal) : Resolution : Color Depth : Pixel Configuration : Display Mode : Viewing Direction :
Outline Dimension :
Active Area : Backlight : Command VF : Proiect Download : Surface Treatment : Touch Panel: Operating Temperature : Storage Temperature :
Highlight :

10.1" 1024(RGB) x 600 65k color (16bit) RGB Stripe Transmissive / Normal Black 6H (*1) (gray-scale inverse) 12H (*2) 271 x 190x 40 (mm) (see attached drawing for details) 222.72 x 125.28(mm) LED RS-232C by PC or by U-Drive (with OTG cable) Anti-Glare Treatment Resistive Touch Panel -20 ~ +70°C -30 ~ +80°C RTC with battery, Support 90 degrees rotation, Lua script engine, Buzzer 256MB Flash

Note: *1. For saturated color display content (eg. pure-red, pure-green, pure-blue, or pure-colors-combinations). *2. For "color scales" display content. *3. Color tone may slightly change by Temperature and Driving Condition.

1.2 Block Diagram

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 3 of 12

TOPWAY

LCD Module User Manual

1.3 Terminal Function

1.3.1 UART Interface Terminal (K3)

Pin No. Pin Name I/O Descriptions

1,

VDD

P Power supply

2

RX

I Data Input

3

TX

O Data output

4

RTS(BUSY)

O Request To Send (function as busy BUSY signal)

1Busy0No busy

5

NC

NC No connection

6

VSS

P Ground, (0V)

Note.

*1. User data and commands transfer through this terminal

*2. HW hand shake is suggested

1.3.2 USB TYPE-C Interface Terminal (K2)

Pin No. Pin Name IO Descriptions

A1/B12

VSS

Power Power Supply GND (0V)

A4/B9

VBUS Power Positive Power Supply(5.0V)

A5/B5

ID

I USB_ID,1:Client , 0:HOST

A6/B6

D+

I/O USB D+ Signal

A7/B7

D-

I/O USB D- Signal

A8/B8

NC

- No connection

B4/A9

VBUS Power Positive Power Supply(5.0V)

A12/B1

VSS

Power Power Supply GND (0V)

Note. *1. XML files and image files preload through this terminal. *2. Do NOT connect USB TYPE-C terminal ,while VDD(K3) is present.

HKT101BTA-C

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 4 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

2. Absolute Maximum Ratings

Items

Symbol

Min.

Max.

Unit Condition

Power Supply voltage

VDD

-0.3

26

V

Operating Temperature

TOP

-20

70

C No Condensation

Storage Temperature

TST

-30

80

C No Condensation

Note:

*1. This rating applies to all parts of the module and should not be exceeded.

*2. The operating temperature only guarantees operation of the circuit. The contrast, response speed,

and the other specification related to electro-optical display quality is determined at the room temperature, TOP=25

*3. Ambient temperature when the backlight is lit (reference value)

*4. Any stresses exceeding the Absolute Maximum Ratings may cause substantial damage to the device. Using the

display under conditions beyond those listed is not advised, which will affect device's reliability.

3. Electrical Characteristics

3.1 DC Characteristics

Items

Symbol MIN.

Operating Voltage

VDD

11

RxD Input MARK(1)

VRxDM

-3.0

RxD Input SPACE(0)

VRXDS

+3.0

TxD Output MARK(1)

VTXDM

-3.0

TxD Output SPACE(0)

VTXDS

+3.0

RTS Output High

VTXDH

-3.0

RTS Output Low

VTXDL

+3.0

Operating Current

IDD

-

Battery Supply Current

IBAT

-

Note.

*1. Normal display condition and no usb connect.

TYP. 12.0
350 0.6

VDD=12V,GND=0V, TOP =25C

MAX.

Unit Applicable Pin

26

V VDD

-15.0

V Rx

+15.0

V Rx

-15.0

V Tx

+15.0

V Tx

-15.0

V RTS(BUSY)

+15.0

V RTS(BUSY)

-

mA VDD (*1)

-

uA

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 5 of 12

TOPWAY

LCD Module User Manual

4. Function Specifications
4.1 Basic Operation Function Descriptions HKT101BTA-C

HKT101BTA-C

- XML files, Picture files, ICON files are stored inside FLASH memory area. - They are preloaded to HKT101BTA-C for stand alone interface use. - Those files are preloaded via USB interface as an USB drive. - All the interface flow and the touch response are based on the preloaded XML files - VP variables memory is inside RAM area, - it provides real time access via UART by the HOST or display onto the TFT by XML file. - Custom Memories are inside FLASH memory area - It can be accessed via UART interface by the HOST. - Control and Draw Engine executes HOST commands and response respectively - It also reports the real time Touch Key number to the HOST

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 6 of 12

TOPWAY
4.2 Quick Start Guide

1.

Install TOPWAY Graphics Editor

LCD Module User Manual

Import pictures 2. design UI flow

3.

Download to Smart LCD

4.

power on display

&

Connect to

5.

host Show real time

data

5. Command Descriptions
Please refer to "SMART LCD Command Manual" .

HKT101BTA-C

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 7 of 12

TOPWAY

LCD Module User Manual

6. Optical Characteristics

Item

Symbol Condition

T

View Angles

B

CR10

L

R

Contrast Ratio

CR

=0°

Response Time

TON TOFF

25

x White
y

Red Chromaticity
Green

x Backlight is
y

x

on

y

x Blue
y

Uniformity

U

NTSC

Luminance

L

Min 65 70 70 70 400 -
0.263 0.267 0.524 0.285 0.280 0.525 0.108 0.090
70 -

Typ 75 80 80 80 500 16
0.313 0.329 0.574 0.335 0.330 0.575 0.158 0.140
80 47 250

HKT101BTA-C

Max

Unit

Remark

-

-

Degree Note2,3

-

-

-

Note 3

28 ms Note 4

0363 0.379 0.624 0.385 0.380 0.625 0.208 0.190
-

Note 1,5
Note 1,5
Note 1,5
Note 1,5 % Note 6 % Note 5 cd/ Note 7

1. IF= 20 mA, and the ambient temperature is 25. 2. The test systems refer to Note 1 and Note 2.

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 8 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

Note 1: The data are measured after LEDs are turned on for 5 minutes. LCM displays full white. The brightness is the average value of 9 measured spots. Measurement equipment SR-3A (1°) Measuring condition:
- Measuring surroundings: Dark room - Measuring temperature: Ta=25.
- Adjust operating voltage to get optimum contrast at the center of the display.

Note 2: The definition of viewing angle: Refer to the graph below marked by  and 

Note 3:

The definition of contrast ratio (Test LCM using SR-3A (1°)):

Luminance When LCD is at "White"

Contrast Ratio(CR)

=

state Luminance When LCD is at "Black"

state

(Contrast Ratio is measured in optimum common electrode

voltage)

Note 4: Definition of Response time. (Test LCD using BM-7A(2°)): The output signals of photo detector are measured when the input signals are changed from "black" to "white"(falling time) and from "white" to "black"(rising time), respectively. The response time is defined as the time interval between the 10% and 90% of amplitudes.Refer to figure as below.

Note 5: Definition of Color of CIE1931 Coordinate and NTSC Ratio.

Color gamut:

S=

Area of RGB triangle Area of NTSC triangle

X100%

Note 6: The luminance uniformity is calculated by using following formula.
Bp = Bp (Min.) / Bp (Max.)×100 (%)
Bp (Max.) = Maximum brightness in 9 measured spots
Bp (Min.) = Minimum brightness in 9 measured spots.

URL: www.topwaydisplay.com

Note 7: Measured the luminance of white state at center point
Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 9 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

7. LCD Module Design and Handling Precautions
- Please ensure V0, VCOM is adjustable, to enable LCD module get
the best contrast ratio under different temperatures, view angles and positions.
- Normally display quality should be judged under the best contrast
ratio within viewable area. Unexpected display pattern may com out under abnormal contrast ratio.
- Never operate the LCD module exceed the absolute maximum
ratings.
- Never apply signal to the LCD module without power supply.
- Keep signal line as short as possible to reduce external noise
interference.
- IC chip (e.g. TAB or COG) is sensitive to light. Strong light might
cause malfunction. Light sealing structure casing is recommended.
- Make sure there is enough space (with cushion) between case and
LCD panel, to prevent external force passed on to the panel; otherwise that may cause damage to the LCD and degrade its display result.
- Avoid showing a display pattern on screen for a long time
(continuous ON segment).
- LCD module reliability may be reduced by temperature shock. - When storing and operating LCD module, avoids exposure to direct
sunlight, high humidity, high or low temperature. They may damage or degrade the LCD module.
- Never leave LCD module in extreme condition (max./min
storage/operate temperature) for more than 48hr.
- Recommend LCD module storage conditions is 0 C~40 C
<80%RH.
- LCD module should be stored in the room without acid, alkali and
harmful gas.
- Avoid dropping & violent shocking during transportation, and no
excessive pressure press, moisture and sunlight.
- LCD module can be easily damaged by static electricity. Please
maintain an optimum anti-static working environment to protect the LCD module. (eg. ground the soldering irons properly)
- Be sure to ground the body when handling LCD module. - Only hold LCD module by its sides. Never hold LCD module by
applying force on the heat seal or TAB.
- When soldering, control the temperature and duration avoid
damaging the backlight guide or diffuser which might degrade the display result such as uneven display.
- Never let LCD module contact with corrosive liquids, which might
cause damage to the backlight guide or the electric circuit of LCD module.
- Only clean LCD with a soft dry cloth, Isopropyl Alcohol or Ethyl
Alcohol. Other solvents (e.g. water) may damage the LCD.
- Never add force to components of LCD module. It may cause
invisible damage or degrade the module's reliability.
- When mounting LCD module, please make sure it is free from
twisting, warping and bending.
- Do not add excessive force on surface of LCD, which may cause
the display color change abnormally.

7. 
-  V0, VCOM , 
  
- 
(V.A) 
- 
- 

- 

-  IC ( TAB  COG)
 
- (
) 
- 
 
-  - 

- (//)
 48 
- : 0 C~40 C <80%RH
-  , , 

- , ,
 , , .
- 
(:  ,)
-  - 
TAB 
- 
 
- 

- , 
(:)
- 

- 

- 


URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 10 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

- LCD panel is made with glass. Any mechanical shock (e.g. -

dropping from high place) will damage the LCD module.

- Protective film is attached on LCD screen. Be careful when peeling -

off this protective film, since static electricity may be generated.

- Polarizer on LCD gets scratched easily. If possible, do not remove -

LCD protective film until the last step of installation.

- When peeling off protective film from LCD, static charge may cause -

abnormal display pattern. The symptom is normal, and it will turn

back to normal in a short while.

- LCD panel has sharp edges, please handle with care.

-

- Never attempt to disassemble or rework LCD module.

-

- If display panel is damaged and liquid crystal substance leaks out, -

be sure not to get any in your mouth, if the substance comes into

contact with your skin or clothes promptly wash it off using soap

and water.

( ) ,      
  , ;  , ,  , .

8. Case With Brackets Mounting ()

Front Mounting
- Application panel opening:The suggested assemble gap should be
about 0.5~0.8mm on each side.
- Install the TFT module on strong flat surface for securing water and
sealing.
- A silicon sealing ring ships with display module. It should be in
place before assembling to the front panel.
- Pre-fixing: Slightly tighten the screws on beam clamp in sequence
as picture on the right side.
- IFinal-fixing: Tighten the fixing screws on beam clamp in sequence
as well with twist torque about 0.3-0.5N.m and put the beam clamp
straight.


-  0.5~0.8mm
- 
.
- 
- .
- : 0.3-0.5 N.m  
.

Model/ HKT101BTA-C

A 258mm

B 177mm

R 1.0mm

T 0.3-0.5 N.m

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 11 of 12

TOPWAY

LCD Module User Manual

HKT101BTA-C

Warranty
This product has been manufactured to our company's specifications as a part for use in your company's general electronic products. It is guaranteed to perform according to delivery specifications. For any other use apart from general electronic equipment, we cannot take responsibility if the product is used in medical devices, nuclear power control equipment, aerospace equipment, fire and security systems, or any other applications in which there is a direct risk to human life and where extremely high levels of reliability are required. If the product is to be used in any of the above applications, we will need to enter into a separate product liability agreement.
- We cannot accept responsibility for any defect, which may arise form additional manufacturing of the product
(including disassembly and reassembly), after product delivery.
- We cannot accept responsibility for any defect, which may arise after the application of strong external force to the
product.
- We cannot accept responsibility for any defect, which may arise due to the application of static electricity after the
product has passed our company's acceptance inspection procedures.
- We cannot accept responsibility for intellectual property of a third part, which may arise through the application of
our product to our assembly with exception to those issues relating directly to the structure or method of manufacturing of our product.

URL: www.topwaydisplay.com

Document Name: HKT101BTA-C-Manual-Rev0.2.doc Page: 12 of 12

SMART LCD
Command V5.04 Manual

Prepared by: liu
Date: 2017-07-24

Checked by: Date:

Approved by: Date:

Rev.
0.1 0.2
0.3 0.4

Descriptions
- Preliminary Draft release - Add a description of the 0xE8 command
- 4.1, 0xE2, 0xE3 command name correction - Add a description of the 0xE7 command

Release Date
2016-11-02 2017-01-12
2017-05-26 2017-07-24

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 1 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

Table of Content

1 Basic Specifications...................................................................................................................................3

1.1 Hardware connection............................................................................................................................3

2 Command Structure ...................................................................................................................................3

2.1 Communication Packet Structure .........................................................................................................3 2.2 Packet Acknowledgment ......................................................................................................................3

3 Data arrangement .......................................................................................................................................4

3.1 Color Data Value Configuration ............................................................................................................4 3.2 Data / Address / Page_ID / Location Values Configuration..................................................................4

4 Command Descriptions .............................................................................................................................5

4.1 Command table ....................................................................................................................................5 4.2 Config/ Status Function Commands Details.........................................................................................6
4.2.1 hand_shake ( 0x30 ) .....................................................................................................................6 4.2.2 read_version ( 0x31 ) ....................................................................................................................6 4.2.3 read_pg_id ( 0x32 ) .......................................................................................................................7 4.2.4 touch_response ( 0x72/ 0x73/ 0x77/ 0x78/ 0x79 )........................................................................7 4.2.5 set_sys_config ( 0xE0 ).................................................................................................................8 4.2.6 sel_project ( 0xE1 ) .......................................................................................................................9 4.2.7 touch_calib ( 0xE4 ) ......................................................................................................................9 4.2.8 screen_saver (0x5E) .....................................................................................................................9 4.2.9 backlight_ctrl ( 0x5F )....................................................................................................................9 4.2.10 buzzer_touch_sound ( 0x79 ) .......................................................................................................9 4.2.11 buzzer_ ctrl ( 0x7A )......................................................................................................................9 4.2.12 Flash_write ( 0x90 ) ....................................................................................................................10 4.2.13 Flash_read ( 0x91 ).....................................................................................................................10 4.2.14 RTC_read ( 0x9B )......................................................................................................................10 4.2.15 RTC_set ( 0x9C ) ........................................................................................................................11 4.2.16 USR_bin_read ( 0x93 ) ...............................................................................................................11 4.2.17 U_drv_format ( 0xE2 ) ................................................................................................................11 4.2.18 U_drv_unlock ( 0xE3 ) ................................................................................................................11 4.3 Display Control Function Commands Details .....................................................................................12 4.3.1 disp_page ( 0x70 ) ......................................................................................................................12 4.3.2 set_element_fg ( 0x7E )..............................................................................................................12 4.3.3 set_element_bg ( 0x7F ) .............................................................................................................12 4.3.4 Set_codepage (0xE7) .................................................................................................................12 4.3.5 suspend_vp_refresh (0xE8)........................................................................................................13 4.4 VP Function Commands Details.........................................................................................................13 4.4.1 Successive_write ( 0x82 ) ...........................................................................................................13 4.4.2 Successive_read ( 0x83 ) ...........................................................................................................13 4.4.3 BP1_write ( 0x4B ) ......................................................................................................................14 4.4.4 BP1_write_compress ( 0x4C ) ....................................................................................................14 4.4.5 G16_write ( 0x4D ) ......................................................................................................................15 4.4.6 G16_write_rotate ( 0x4E )...........................................................................................................15 4.4.7 System Register Write ( 0x3B )...................................................................................................15 4.4.8 System Register Read ( 0x3C ) ..................................................................................................16 4.4.9 STR_write ( 0x42 ) ......................................................................................................................16 4.4.10 STR_read ( 0x43 ) ......................................................................................................................16 4.4.11 STR_fill ( 0x46 ) ..........................................................................................................................17 4.4.12 N16_write ( 0x3D ) ......................................................................................................................17 4.4.13 N16_read ( 0x3E ) ......................................................................................................................17 4.4.14 N16_fill ( 0x3F )...........................................................................................................................17 4.4.15 N32_write ( 0x44 ) ......................................................................................................................18 4.4.16 N32_read ( 0x45 ) .......................................................................................................................18 4.4.17 N32_fill ( 0x47 )...........................................................................................................................18 4.4.18 N64_write ( 0x48 ) ......................................................................................................................19 4.4.19 N64_read ( 0x49 ) .......................................................................................................................19 4.4.20 N64_fill ( 0x4A ) ..........................................................................................................................19

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 2 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

1 Basic Specifications
TOPWAY Smart LCD serial command is for real-time control and access. Host machine get the data which input through the Smart LCD interface or provide the data for display.
1.1 Hardware connection
Smart LCD serial UART interface are mainly base on RS232-C standard, by default, config as 8N1 115200bps.

2 Command Structure

2.1 Communication Packet Structure

Commands and Response Packet should be format as follow (hostmodule):

Seq

Code

Code type Description

1

0xAA

Packet header 1byte

2

Cmd-code

Command 1byte

code

3

Par-data

Parameter or (*1)

Data

:

:

-

-

:

:

-

-

:

:

-

-

N-3 th

0xCC

Packet tail 4byte

N-2 th

0x33

N-1 th

0xC3

N th

0x3C

Note. *1. Unless otherwise specified,
all the multi-byte values, data, address' byte sequence are MSB first, LSB last.

2.2 Packet Acknowledgment

Packet Acknowledgment is two byte in ASCII (module  host):

Response

code Description

Command (in packet) executed and

":>" In ASCII

wait for next Command

(0x3a, 0x3e)

Command (in packet) error and

"!>" In ASCII

wait for next Command

(0x21,0x3e)

15B
Note.

*1. Packet Acknowledgement response to a valid packet only.

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 3 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

3 Data arrangement

3.1 Color Data Value Configuration

16 bit Color value

16 bit color value

R4 R3 R2 R1 R0 G5 G4 G3 G2 G1 G0 B4 B3 B2 B1 B0

High byte (MSB)

Low byte (LSB)

D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

3.2 Data / Address / Page_ID / Location Values Configuration
64bit value
64 bit number value D63...D56 D55...D48 D47...D40 D39..D32 D31...D24 D23...D16 D15...D8
Byte7 (MSB) D7...D0 D7...D0 D7...D0 D7...D0 D7...D0 D7...D0 D7...D0

D7...D0 Byte0 (LSB)
D7...D0

32bit value
D31...D24 Byte3 (MSB)
D7...D0

32 bit number value

D23...D16

D15...D8

D7...D0

D7...D0

D7...D0 Byte0 (LSB)
D7...D0

16bit value

D15...D8 High Byte (MSB)
D7...D0

16 bit number value

D7...D0 Low Byte (LSB)
D7...D0

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 4 of 19

TOPWAY

SMART LCD Command Manual

4 Command Descriptions

Protocol V5.04

4.1 Command table

Functions Config/ Status Functions

Name hand_shake read_version read_pg_id touch_response

Display Control Functions

set_sys_config sel_project touch_calib screen_saver backlight_ctrl buzzer_touch_sound buzzer_ctrl Flash_write Flash_read RTC_read RTC_set USR_bin_read U_drv_format U_drv_unlock disp_page set_element_fg set_element_bg set_codepage suspend_vp_fresh

VP Functions

Successive_write Successive_read BP1_write BP1_write_comp G16_write G16_write_rotate
System Register Write System Register Read STR_write STR_read STR_fill N16_write N16_read N16_fill N32_write N32_read N32_fill N64_write N64_read N64_fill

Code 0x30 0x31 0x32 0x72/0x73/ 0x77/0x78/ 0x79 0xE0 0xE1 0xE4 0x5E 0x5F 0x79 0x7A 0x90 0x91 0x9B 0x9C 0x93 0xE2 0xE3 0x70 0x7E 0x7F 0xE7 0xE8
0x82 0x83 0x4B 0x4C 0x4D 0x4E
0x3B 0x3C 0x42 0x43 0x46 0x3d 0x3e 0x3f 0x44 0x45 0x47 0x48 0x49 0x4A

Description Read a Hand Shake Read firmware version Read Current page ID see also set_sys_config
System parameter configuration and Baud Rate Specify operating project folder Touch panel calibration Screen saver (backlight dim down time out) backlight brightness control (64 levels) buzzer enable time length (in 10ms step) Buzzer control Write data to the flash Read data from the flash Read the RTC values Set the RTC Read data from the USR_bin Format the U_drv Unlock the U_drv with pre-stored password Display a pre-stored TML file (page) Set the foreground color of STR, N16, N32 or N64 Set the background color of STR, N16, N32 or N64 Sets country character set and code-page character set
Set the screen to pause the refresh and deactivate the touchkey or release the pause to refresh and enable the touchkey Write successive value to VP_N16, VP_N32, VP_N64 Read successive value from VP_N16, VP_N32, VP_N64 Write bit-map (1bpp) data to VP_BP1 Write compressed bit-map (1bpp) data to VP_BP1 Write 16bit (signed integer) graphic array to VP_G16 Rotate the VP_G16 array data inside the module and write a 16bit (signed integer) value into end-of-array Write System Register Read System Register Write string to VP_STR Read string form VP_STR Fill strings to the VP_STR Write 16bit (signed integer) value to VP_N16 Read 16bit (signed integer) value from VP_N16 Fill numbers to the VP_N16 Write 32bit (signed integer) value to VP_N32 Read 32bit (signed integer) value from VP_N32 Fill numbers to the VP_N32 Write 64bit (signed integer) value to VP_N64 Read 64bit (signed integer) value from VP_N64 Fill numbers to the VP_N64

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 5 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.2 Config/ Status Function Commands Details

4.2.1 hand_shake ( 0x30 )

seq

Cmd-code / Par-data Descriptions

1

0x30

Read a Hand Shake

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x30

Command executed

3rd

"T"

4th

"o"

5th

"P"

6th

"w"

7th

"a"

8th

"y"

9th

" "

10th

"H"

11th

"M"

12th

"T"

13th

" "

14th

"R"

15th

"e"

16th

"a"

17th

"d"

18th

"y"

19th

\0

0x54 0x6f 0x70 0x77 0x61 0x79 0x20 0x48 0x4d 0x54 0x20 0x52 0x65 0x61 0x64 0x79 0x00

"Topway HMT Ready\0" in ASCII `\0'(0x00): string end mark

20th

Tail

21st

0xCC 0x33

Communication packet tail

22nd

0xC3

23rd

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.2.2 read_version ( 0x31 )

Seq Cmd-code / Par-data Descriptions

1

0x31

Read firmware version

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x31

Command executed

3rd

"1"

0x31

"1.06\0" in ASCII

4th

"."

0x2e

Where firmware version is V1.06(example)

5th

"0"

0x30

6th

"6"

7th

\0

0x36 0x00

`\0'(0x00): string end mark

8th

Tail

0xCC

Communication packet tail

9th

0x33

10th

0xC3

11th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 6 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.2.3 read_pg_id ( 0x32 )

Seq Cmd-code / Par-data Descriptions

1

0x32

Read Current page ID

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x32

Command executed

3rd

Page ID

Page_IDh Current Page ID in 16bit binary value

4th

Page_IDl

5th

Tail

0xCC

Communication packet tail

6th

0x33

7th

0xC3

8th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.2.4 touch_response ( 0x72/ 0x73/ 0x77/ 0x78/ 0x79 )

seq

Cmd-code / Par-data Descriptions

1

--

Use set_sys_config to config the functions

Touch Release Coordinate Response code (0x72):

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

3rd

X coordinate

4th

5th

Y coordinate

0x72 Xh Xl Yh

Touched release Coordinate Coordinate in 16bit binary value X = horizontal coordinate Y = vertical coordinate

6th

Yl

7th

Tail

0xCC

Communication packet tail

8th

0x33

9th

0xC3

10th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

Touch Down Coordinate Response code ( 0x73 ):

Seq.

Content

Byte in Hex Descriptions

1st

Header

2nd

Command

0xAA 0x73

Communication packet header Touched down Coordinate

3rd

X coordinate

4th

5th

Y coordinate

Xh

Coordinate in 16bit binary value

Xl

X = horizontal coordinate

Yh

Y = vertical coordinate

6th

Yl

7th

Tail

0xCC

Communication packet tail

8th

0x33

9th

0xC3

10th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

Touch Key ID Response code ( 0x78 ):

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x78

Touched release Key_ID defined by TOPWAY TML Graphic

Editor will be response to host

3rd

Page_ID

Page_IDh

Page_ID = the touch key in page(16bit binary value)

4th

Page_IDl

5th

Y coordinate

Key_ID

Key_ID (8bit binary value)

6th

Tail

0xCC

Communication packet tail

7th

0x33

8th

0xC3

9th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 7 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

Touch Key ID Response code ( 0x79 ):

Seq. 1st 2nd

Content Header Command

Byte in Hex 0xAA 0x79

Descriptions Communication packet header Touched down Key_ID defined by TOPWAY TML Graphic

Editor will be response to host

3rd

Page_ID

Page_IDh

Page_ID = the touch key in page(16bit binary value)

4th

Page_IDl

5th

Y coordinate

Key_ID

Key_ID (8bit binary value)

6th

Tail

0xCC

Communication packet tail

7th

0x33

8th

0xC3

9th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

Touch Key VP_ADD+VP_Value Response code ( 0x77 ):

Seq. 1st 2nd 3rd

Content Header Command VP_ADD

Byte in Hex 0xAA 0x77
Addr3MSB

Descriptions Communication packet header Touch Key VP_ADD+VP_Value Response code VP Address

4th

Addr2

0x080000 ~ 0x08FFFF:VP_N16 Address

5th

Addr1

0x020000 ~ 0x02FFFF:VP_N32 Address

6th

Addr0(LSB) 0x030000 ~ 0x03FFFF:VP_N64 Address

0x000000 ~ 0x01FFFF:VP_STR Address

7th

Data

:

No.of byte

:

:

VP_N16: 2byte

: :

:

VP_N32: 4byte VP_N64: 8byte

:

VP_STR: string (with end mark (``\0'(0x00)))

:

Tail

0xCC

Communication packet tail

:

0x33

:

0xC3

:

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.2.5 set_sys_config ( 0xE0 )

seq

Cmd-code / Par-data Descriptions

1

0xE0

Baud Rate and system parameter configuration

2

0x55

3

0xAA

4

0x5A

5

0xA5

6

Baud_Set

Baudrate Set:

0x00 = 1200bps

0x01 = 2400bps

0x02 = 4800bps

0x03 = 9600bps

0x04 = 19200bps

0x05 = 38400bps

0x06 = 57600bps

0x07 = 115200bps

7

sys_par1

Bit7 = 0: Touch panel function disable

Bit7 = 1: Touch panel functions enable (*3)(default)

Bit[1..0]: Touch actions configuration (*2, *3)

8

0x00

Reserved

Note.

*1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

*2. Touch panel configuration:

Sys_par1 Sys_par1 Sys_par1

Response

Bit7

Bit1

Bit0

To host

Descriptions

0

0

0

Null

Not touch panel functions

1

0

1

Coordinates

Touch down Coordinate will be response to host

1

1

0

Coordinates

Touch release Coordinate will be response to host

1

1

1

Key ID

Touch Key_ID defined by TOPWAY TML Graphic Editor will be

response to host

*3. see set_touch section for response code

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 8 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.2.6 sel_project ( 0xE1 )

seq

Cmd-code / Par-data Descriptions

1

0xE1

Select project folder

2

Prj_ID

0~9, project ID

0: System execute the default project "THMT"

1~9: System execute the project "THMT01"~"THMT09"

Note.

*1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.2.7 touch_calib ( 0xE4 )

seq

Cmd-code / Par-data Descriptions

1

0xE4

Touch panel calibration

2

0x55

3

0xAA

4

0x5A

5

0xA5

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details) *2. Keep pressing the touch panel during power on, could also trigger the touch_calib function

4.2.8 screen_saver (0x5E)

seq

Cmd-code / Par-data Descriptions

1

0x5E

Screen saver

2

Time1h

time out time in seconds, range: 0x0000 ~ 0xffff

3

Time1l

(0x0000: disable screen saver function) (*2)

4

PWM_LE

PWM_LE = 0 ~ 0x3F (default 0x19 in dim down),

the backlight dimmed level in screen saving mode (*2)

Screensavers brightness can not be greater than the backlight

brightness.

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

*2. default value defined by TML graphic editor configuration

4.2.9 backlight_ctrl ( 0x5F )

seq

Cmd-code / Par-data Descriptions

1

0x5F

backlight brightness control

2

PWM_LE

PWM_LE=0x00 ~ 0x3F (*2)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

*2. default value defined by TML graphic editor configuration

4.2.10 buzzer_touch_sound ( 0x79 )

seq

Cmd-code / Par-data Descriptions

1

0x79

buzzer touch sound control

2

Time

Sounding time length (in 10ms), range 0x00~0x3F

0x00= disable (*2)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details) *2. default value defined by TML graphic editor configuration

4.2.11 buzzer_ ctrl ( 0x7A )

seq

Cmd-code / Par-data Descriptions

1

0x7A

Buzzer control

2

Loop count

Loop count, Range: 0x01 ~ 0xFF.

0xFF = buzzer infinite loop

3

T1

Buzzer play time 1

Range: 0x00 ~ 0xFF (0~25.5s)(unit 100ms)

4

T2

Buzzer play time 2

Range: 0x00 ~ 0xFF (0~25.5s)(unit 100ms)

5

Freq1

T1 time Buzzer frequency, Unit 100 Hz

Ranges: 0x05 ~ 0x32 (500Hz ~ 5KHz)

0x00 = T1 time period buzzer turn off

6

Freq2

T2 time Buzzer frequency, Unit 100 Hz

Ranges: 0x05 ~ 0x32 (500Hz ~ 5KHz)

0x00 = T1 time period buzzer turn off

Note: 1. The buzzer sound time is (T1 + T2)*100ms

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 9 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.2.12 Flash_write ( 0x90 )

seq

Cmd-code / Par-data Descriptions

1

0x90

Write data to the flash at specified address

2

Address3(MSB)

the specified start address to write

3

Address2

Address range =0x00000 ~ 0x03FFFF

4

Address1

5

Address0(LSB)

6

Data_Lengthh

The no. of data byte to write.

7

Data_Lengthl

Length =0x0001 ~ 0x0400

8

Data

data to write.

:

:

:

:

:

:

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.2.13 Flash_read ( 0x91 )

seq

Cmd-code / Par-data Descriptions

1

0x91

Read data from the flash at specified address

2

Address3(MSB)

the specified start address to write

3

Address2

Address range =0x00000 ~ 0x03FFFF

4

Address1

5

Address0(LSB)

6

Data_Lengthh

The no. of data byte to read

7

Data_Lengthl

Length =0x0001 ~ 0x0400

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

2nd

Command

0xAA 0x91

Communication packet header Command executed

3rd

Data

data

Read back data

:

:

:

:

:

Tail

0xCC

Communication packet tail

:

0x33

:

0xC3

:

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.2.14 RTC_read ( 0x9B )

seq

Cmd-code / Par-data

1

0x9B

Descriptions Read the current RTC value

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x9B

Command executed

3rd

Date

Year

Year: 00~99 (00=year 2000) (8bit binary value)

4th

Month

Month: 01~12 (8bit binary value)

5th

Day

Day: 01~31 (8bit binary value)

6th

Time

Hour

Hour 00~23 (24hr format)(8bit binary value)

7th

Minute

Minutes 00~59 (8bit binary value)

8th

Second

Second 00~59 (8bit binary value)

9th

Tail

0xCC

Communication packet tail

10th

0x33

11th

0xC3

12th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 10 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.2.15 RTC_set ( 0x9C )

seq

Cmd-code / Par-data Descriptions

1

0x9C

Set the RTC

2

Year

Year = 00~99(2000 ~ 2099)

3

Month

Month = 00~12

4 5

Date Hour

Date = 00~31 Hour = 00~23 Minute = 00~59

6

Minute

Second = 00~59

7

Second

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.2.16 USR_bin_read ( 0x93 )

seq

Cmd-code / Par-data Descriptions

1

0x93

Read USR_bin data from the flash at specified address

2

Address3(MSB)

the specified start address to write

3

Address2

Address range = 0x00000 ~ 0x03FFFF

4

Address1

5

Address0(LSB)

6

Data_Lengthh

The no. of data byte to read

7

Data_Lengthl

Length = 0x0001 ~ 0x0400

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

2nd

Command

0xAA 0x93

Communication packet header Command executed

3rd

Data

data

Read back data

:

:

:

:

:

Tail

0xCC

Communication packet tail

:

0x33

:

0xC3

:

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.2.17 U_drv_format ( 0xE2 )

seq

Cmd-code / Par-data Descriptions

1

0xE2

Format the USB drive.

2

0x55

All the files (include the security lock file) will be erased.

3

0xAA

4

0x5A

5

0xA5

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.2.18 U_drv_unlock ( 0xE3 )

seq

Cmd-code / Par-data Descriptions

1

0xE3

Unlock the USB drive of file read/write with pre-stored password.

2

PW

PW: password in ASCII

:

:

Length = 127max.

: :

: `\0'

`\0'(0x00): string end mark

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 11 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.3 Display Control Function Commands Details

4.3.1 disp_page ( 0x70 )

seq

Cmd-code / Par-data Descriptions

1

0x70

Display a pre-stored TML file(page)

2

Page_IDh

Page_ID = 0~999

3

Page_IDl

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.3.2 set_element_fg ( 0x7E )

Seq Cmd-code / Par-data Descriptions

1

0x7E

Set foreground colors of the STR, N16, N32 or N64

2

Element

0x00 = STR; 0x01 = N16, N32, N64

3

Page_IDh

Page_ID = 0~999

4

Page_IDl

5

Element_ID

VP_STR = 0~127; N16, N32, N64 = 0~119

6

0x00

Reserve

7

FGh

Foreground color(0~0xffff)

8

FGl

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.3.3 set_element_bg ( 0x7F )

Seq Cmd-code / Par-data Descriptions

1

0x7F

Set background color of the STR, N16, N32 or N64

2

Element

0x00 = STR; 0x01 = N16, N32, N64

3

Page_IDh

Page_ID = 0~999

4

Page_IDl

5

Element_ID

VP_STR = 0~127, N16, N32, N64 = 0~119

6

Mode

0x00: non transparent; 0x01 : transparent

7

BGh

Background color(0 ~ 0xffff)

8

BGl

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.3.4 set_codepage (0xE7)

Seq Cmd-code / Par-data

1

0xE7

2

Country

3

Codepage

Note.

*1. Country and CodePage table

Country Code Descriptions

1

USA

2

France

3

Germany

4

United Kingdom

5

Demark I

6

Demark II

7

Sweden

8

Italy

9

Spain

10

Japan

11

Norway

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

--

URL: www.topwaydisplay.com

Descriptions Sets country character set and code-page character set 1 ~ 11, country character set 1 ~ 22, code-page character set

Code Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Descriptions 437 (OEM ­ United States) 737 (OEM ­ Greek 437G) 852 (OEM ­ Latin II) 860 (OEM ­ Portuguese) 863 (OEM ­ Canadian French) 865 (OEM ­ Nordic) 866 (OEM ­ Russian) 874 (ANSI/OEM ­ Thai) 932 (ANSI/OEM ­ Japanese Shift-JIS) 1250 (ANSI - Central Europe) 1251 (ANSI ­ Cyrillic) 1252 (ANSI ­ Latin I) 1253 (ANSI ­ Greek) 1254 (ANSI ­ Turkish) 1255 (ANSI ­ Hebrew) 1256 (ANSI ­ Arabic) 1257 (ANSI ­ Baltic) 1258 (ANSI ­ Viet Nam) GB2312 GBK EUC_KR Big5

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 12 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.3.5 suspend_vp_refresh (0xE8)

Seq Cmd-code / Par-data Descriptions

1

0xE8

Set the screen to pause the refresh and deactivate the touchkey or

2

55

release the pause to refresh and enable the touchkey

3

AA

4

5A

5

A5

6

Mode

0x00: release the pause to refresh and enable the touchkey

0x01: pause the refresh and deactivate the touchkey

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4 VP Function Commands Details

4.4.1 Successive_write ( 0x82 )

Seq Cmd-code / Par-data Descriptions

1

0x82

Write successive value to VP_N16, VP_N32, VP_N64

2

Addr3(MSB)

VP_N16 Address = 0x080000 ~ 0x08FFFF (should be aligned every 2

3

Addr2

byte)

4 5

Addr1 Addr0(LSB)

VP_N32 Address = 0x020000 ~ 0x02FFFF (should be aligned every 4 byte) VP_N64 Address = 0x030000 ~ 0x03FFFF (should be aligned every 8

byte)

6

Length

The number of data to write (Length = 1~255)

7

Data 1(MSB)

the value to write

8

Data 2

No. of byte of Data:

9
: :

Data 3
: Data n(LSB)

VP_N16 = Length *2, VP_N32 = Length *4, VP_N64 = Length *8,

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.2 Successive_read ( 0x83 )

Seq Cmd-code / Par-data Descriptions

1

0x83

Read successive value to VP_N16, VP_N32, VP_N64

2

Addr3(MSB)

VP_N16 Address = 0x080000 ~ 0x08FFFF (should be aligned every 2

3

Addr2

byte)

4 5

Addr1 Addr0(LSB)

VP_N32 Address = 0x020000 ~ 0x02FFFF (should be aligned every 4 byte) VP_N64 Address = 0x030000 ~ 0x03FFFF (should be aligned every 8

byte)

6

Length

The number of data to write (Length = 1 ~ 255)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x83

Command executed

3rd

VP_ADD

Addr3(MSB VP Address

4th

Addr2

0x080000 ~ 0x08FFFF:VP_N16 Address

5th

Addr1

0x020000 ~ 0x02FFFF:VP_N32 Address

6th

Addr0(LSB) 0x030000 ~ 0x03FFFF:VP_N64 Address

7rd

Length

NO.

No. of data

8rd : : (n-1)th nth

Data

Data n(MSB) : :
Data1 Data0(LSB)

No. of byte of Data: VP_N16 = Length *2, VP_N32 = Length *4, VP_N64 = Length *8,

(n+1)th

Tail

0xCC

Communication packet tail

(n+2)th

0x33

(n+3)th

0xC3

(n+4)th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 13 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.3 BP1_write ( 0x4B )

Seq Cmd-code / Par-data Descriptions

1

0x4B

Write raw bit-map data to the VP_BP1

2

Addr3(MSB)

VP_BP1 Address = 0x040000 ~ 0x05FFFF

3

Addr2

4

Addr1

5

Addr0(LSB)

6

Length3(MSB)

the number of data

7

Length2

Length = 1 ~ 98304

8

Length1

9

Length0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details) *2. After the above command issued, it follow with the raw data byte with out communication packet structure. *3. over all command flow

HOST BP1_write Command (in communication packet structure) Raw 1bpp image data

Flow 


module Instruct to wait for data....
Store the data into VP_BP1

(without communication packet structure)



Response code ":>" in ASCII

(without communication packet structure)

4.4.4 BP1_write_compress ( 0x4C )

Seq Cmd-code / Par-data Descriptions

1

0x4C

Write compressed bit-map data to the VP_BP1

2

Addr3(MSB)

VP_BP1 Address = 0x040000 ~ 0x05FFFF

3

Addr2

4

Addr1

5

Addr0(LSB)

6

Length3(MSB)

the number of data

7

Length2

Length = 1 ~ 98304

8

Length1

9

Length0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

*2. After the above command issued, it follow with the compressed data byte with out communication packet structure.

*3. over all command flow

HOST BP1_write Command (in communication packet structure) compressed 1bpp image data (without communication packet structure)

Flow 



module Instruct to wait for data....
Store the data into VP_BP1
Response code ":>" in ASCII (without communication packet structure)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 14 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.5 G16_write ( 0x4D )

Seq Cmd-code / Par-data Descriptions

1

0x4D

Write graph values to the VP_G16 array

2

Addr1_H

VP_G16 Address = 0x060000 ~ 0x07FFFF

3

Addr1l

4

Addr2h

5

Addr2l

6

Sizeh

Array-size = 1 ~ 1024

7

Sizel

(*2, *3)

8

Data(MSB)

16 bit data array

9

Data(LSB)

(no. of byte = 2x array-size)

10

Data(MSB)

11

Data(LSB)

:

:

:

:

:

:

:

:

:

:

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details) *2. Array-size = no. of 16bit values *3. Array-size suggest to be same at the size value defined in TML editor

4.4.6 G16_write_rotate ( 0x4E )

Seq Cmd-code / Par-data Descriptions

1

0x4E

Write graph values to the last position of VP_G16 array

with rotation effect

2

Addr1_H

VP_G16 Address = 0x060000 ~ 0x07FFFF

3

Addr1_L

4

Addr2_H

5

Addr2_L

6

Size_H

Array-size to be rotate = 1 ~ 65535

7

Size_L

(*2. *3)

8

Data(MSB)

16 bit data value to be add to the end-of-array

9

Data(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details) *2. Array-size = no. of 16bit values

*3. Array-size suggest to be same at the value defined in TML editor

4.4.7 System Register Write ( 0x3B )

seq

Cmd-code / Par-data Descriptions

1

0x3B

System Register Write Command

2

Addr3(MSB)

3 4

Addr2 Addr1

Timer_Ctrl0 Address = 0xFFFF00 
Timer_Ctrl7 Address = 0xFFFF07

5

Addr0(LSB)

6

Data

the value to write

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 15 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.8 System Register Read ( 0x3C )

seq

Cmd-code / Par-data Descriptions

1

0x3C

System Register Read Command

2

Addr3(MSB)

3 4

Addr2 Addr1

Address = 0xFFFF00 
Address = 0xFFFFFF

5

Addr0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x3C

Command executed

3rd

Addr3(MSB)

4th 5th 6th

Address

Addr2 Addr1 Addr0(LSB)

Address = 0xFFFF00 
Address = 0xFFFFFF

7th

Data

Data(1Byte) the value of the register

8th

9th 10th

Tail

0xCC 0x33 0xC3

Communication packet tail

11th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

*2. When Timer reach the 0x00000000 or 0x7FFFFFFF, a notification will be provided a 0x77 response code with the corresponding

Timer Address and Value.(See touch_response(0x77)for details)

4.4.9 STR_write ( 0x42 )

Seq Cmd-code / Par-data Descriptions

1

0x42

Write string to VP_STR

2

Addr3(MSB)

the VP_STR Address = 0x00000 ~ 0x01FFFF

3

Addr2

(each VP_STR = 128 bytes)

4

Addr1

(address value must be divisible by 128)

5

Addr0(LSB)

6

data

String to write

:

:

Total no. of byte in string 128

:

:

:

`\0'

`\0'(0x00): string end mark

Note.

*1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.10 STR_read ( 0x43 )

Seq Cmd-code / Par-data Descriptions

1

0x43

Read string from VP_STR

2

Addr3(MSB)

the VP_STR Address = 0x00000 ~ 0x01FFFF

3

Addr2

(each VP_STR = 128 bytes)

4

Addr1

(address value must be divisible by 128)

5

Addr0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

Response code:

Seq. 1st 2nd 3rd

Content Header Command String data

Byte in Hex 0xAA 0x43 data

Descriptions Communication packet header Command executed String code

:

:

:

:

:

\0

0x00

``\0'(0x00): string end mark

:

Tail

0xCC

Communication packet tail

:

0x33

:

0xC3

:

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 16 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.11 STR_fill ( 0x46 )

Seq Cmd-code / Par-data Descriptions

1

0x46

Write string to VP_STR

2

Addr3(MSB)

he VP_STR Address = 0x00000 ~ 0x01FFFF

3

Addr2

(each VP_STR = 128 bytes)

4

Addr1

(address value must be divisible by 128)

5

Addr0(LSB)

6

Lengthh

the number of VP_STR (including the start address) to be filled

7

Lengthl

Length = 1 ~ 1024

8

data

String to write

:

:

Total no. of byte in string 128

:

:

:

`\0'

`\0'(0x00): string end mark

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.12 N16_write ( 0x3D )

Seq Cmd-code / Par-data Descriptions

1

0x3D

Write 16bit number to VP_N16

2

Addr3(MSB)

VP_N16 Address = 0x080000 ~ 0x08FFFF

3

Addr2

(each VP_N16 = 2 byte)

4

Addr1

(address value must be divisible by 2)

5

Addr0(LSB)

6

High Byte

The 16 bit value to write

7

Low Byte

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.13 N16_read ( 0x3E )

Seq Cmd-code / Par-data Descriptions

1

0x3E

Read 16bit number from VP_N16

2

Addr3(MSB)

VP_N16 Address = 0x080000 ~ 0x08FFFF

3

Addr2

(each VP_N16 = 2 byte)

4

Addr1

(address value must be divisible by 2)

5

Addr0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x3E

Command executed

3rd

N16 value

Data1(MSB) 16 bit value

4th

Data0(LSB)

5th

Tail

0xCC

Communication packet tail

6th

0x33

7th

0xC3

8th

0x3C

Note.

*1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.4.14 N16_fill ( 0x3F )

Seq Cmd-code / Par-data Descriptions

1

0x3F

Fill 16bit number to the VP_N16

2

Addr3(MSB)

VP_N16 Address = 0x080000 ~ 0x08FFFF

3

Addr2

(each VP_N16 = 2 byte)

4

Addr1

(address value must be divisible by 2)

5

Addr0(LSB)

6

Lengthh

the number of VP_N16 (including the start address) to be filled

7

Lengthl

Length = 1 ~ 32768

8

High Byte

the 16 bit value to fill

9

Low Byte

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 17 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.15 N32_write ( 0x44 )

Seq Cmd-code / Par-data Descriptions

1

0x44

Write 32bit number to VP_N32

2

Addr3(MSB)

VP_N32 Address = 0x020000 ~ 0x02FFFF

3

Addr2

(each VP_N32 = 4 byte)

4

Addr1

(address value must be divisible by 4)

5

Addr0(LSB)

6

Data3(MSB)

the 32 bit no. value write.

7

Data2

8

Data1

9

Data0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.16 N32_read ( 0x45 )

Seq Cmd-code / Par-data Descriptions

1

0x45

Read 32bit number from VP_N32

2

Addr3(MSB)

VP_N32 Address = 0x020000 ~ 0x02FFFF

3

Addr2

(each VP_N32 = 4 byte)

4

Addr1

(address value must be divisible by 4)

5

Addr0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x45

Command executed

3rd

N32 value

Data3(MSB) 32 bit value

4th

Data2

5th

Data1

6th

Data0(LSB)

7th

Tail

0xCC

Communication packet tail

8th

0x33

9th

0xC3

10th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.4.17 N32_fill ( 0x47 )

Seq Cmd-code / Par-data Descriptions

1

0x47

Fill 32bit number to the VP_N32

2

Addr3(MSB)

VP_N32 Address = 0x020000 ~ 0x02FFFF

3

Addr2

(each VP_N32 = 4 byte)

4

Addr1

(address value must be divisible by 4)

5

Addr0(LSB)

6

Lengthh

the number of VP_N32 (including the start address) to be filled

7

Lengthl

Length = 1 ~ 16384

8

Data3(MSB)

the 32 bit no. value to fill

9

Data2

10

Data1

11

Data0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 18 of 19

TOPWAY

SMART LCD Command Manual

Protocol V5.04

4.4.18 N64_write ( 0x48 )

Seq Cmd-code / Par-data Descriptions

1

0x48

Write 64bit number to VP_N64

2

Addr3(MSB)

VP_N64 Address= 0x030000 ~ 0x03FFFF

3

Addr2

(each VP_N64 = 8 byte)

4

Addr1

(address value must be divisible by 8)

5

Addr0(LSB)

6

Data7(MSB)

the 64bit no. value write.

7

Data6

:

:

:

:

12

Data1

13

Data0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

4.4.19 N64_read ( 0x49 )

Seq Cmd-code / Par-data Descriptions

1

0x49

Read 64bit number from VP_N64

2

Addr3(MSB)

VP_N64 Address= 0x030000 ~ 0x03FFFF

3

Addr2

(each VP_N64 = 8 byte)

4

Addr1

(address value must be divisible by 8)

5

Addr0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details

Response code:

Seq.

Content

Byte in Hex Descriptions

1st

Header

0xAA

Communication packet header

2nd

Command

0x49

Command executed

3rd

N64 value

Data7(MSB) 64 bit value

4th

Data6

:

:

:

:

9th

Data1

10th

Data0(LSB)

11th

Tail

0xCC

Communication packet tail

12th

0x33

13th

0xC3

14th

0x3C

Note. *1. The Response code with communication packet format (see Communication Packet Structure Section for details)

4.4.20 N64_fill ( 0x4A )

Seq Cmd-code / Par-data Descriptions

1

0x4A

Fill 64bit number to the VP_N64

2

Addr3(MSB)

VP_N64 Address= 0x030000 ~ 0x03FFFF

3

Addr2

(each VP_N64 = 8 byte)

4

Addr1

(address value must be divisible by 8)

5

Addr0(LSB)

6

Lengthh

the number of VP_N64 (including the start address) to be filled

7

Lengthl

Length = 1 ~ 8192

8

Data7(MSB)

the 64 bit no. value to fill

9

Data6

:

:

:

:

14

Data1

15

Data0(LSB)

Note. *1. Command should be transferred in communication packet structure (see Communication Packet Structure Section for details)

URL: www.topwaydisplay.com

Document Name:SMART LCD Command v5.04 Manual Rev0.4.doc Page: 19 of 19



References

Adobe Acrobat Pro 9.0.0