User manual

PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification
Beijing DWIN Technology Co., Ltd. - 20 - www.dwin.com.cn/en
4.8 Firmware Parameter Configuration(0x07)
Add.
Definition
Data
length
Description
0x00
Pic_ID
2
Page ID
0x02
TP_Area
8
Touch button areas(X
s
,Y
s
)(X
e
,Y
e
)
0x0A
Pic_Next
2
Page ID that will switch to, 0xFF**indicates there is no switching.
0x0C
Pic_On
2
The ID number of picture of pressing effects animation, 0xFF** means that there is no button
pressing effect.
0x0E
TP_Code
2
0xFE07
0x10
0xFE
1
0xFE
0x11
Mode
1
Operation mode selection, see the description of the ‘Operating Mode Table’
0x12
DATA_PACK
14
Data packet of operation mode, see the description of the ‘Operating Mode Table’
Operation Mode Table
Mode
Data_Pack
Notes for Data_Pack
Function
0x00
No
No
Load data in register variable area to 0x6F00-0x6FFF variable memory
space(occupied low byte)
0x01
No
No
Load 0x6F00-0x6FFF variable memory space (occupying a low byte) data to the
register variable area; meantime rewrite the corresponding R1-R3,R5-RA of SD
card interface configuration variables
0x02
Tran_Area
Area coordinates need to be
convertedTop left, bottom
right corner
Convert the designated area content into a monochrome bitmap (vertical scale,
print bitmap format) and save it to the data memory pointed by VP pointer.
1.Area Width(Xe-Xs+1)must be the even number
2.Area Height(Ye-Ys+1)must be a multiple of 8
3.*VP Pointer data format is saved as follows
*VPStatus bitsafter processing, set it to be 0x5555
*VP+1 The horizontal word length(Xe-Xs1)&0xFFFE/2
*VP+2Data segment number(Ye-Ys1)&0xFFF8/8
*VP+3 Bitmap data start in MSB method
If the parameter automatically upload feature is enabled (R2.3=1), message
will be uploaded automatically after conversion according to the revised 0x5555
instead of original *VP content.
The command is mainly for printing and output of the screen contents.
*VP
The 1
st
address of the data
buffer where saved the
converted bitmap
0x03
*VP
Data pointer
Send the Tx_Len data seated from *VP pointer position
Tx_Len is a word variablewith length from 0x0001 to 0xFFFF
Tx_LEN
Data length for sending
0x04
The functionality is the same as 0x03, data is sent to COM2(the serial is reserved by system)
0x05
Tran_Area
Area coordinates need to be
convertedTop left, bottom
right corner
Converse the designated area content into a monochrome bitmap (horizontal
scale, print bitmap format) and save it to the data memory pointed by VP
pointer.
1.Area Width(Xe-Xs+1)must be a multiple of 16
2.*VP Pointer data format is saved as follows
*VPStatus bitsafter processing, set it to be 0x5555
*VP+1 The horizontal word length(Xe-Xs1)&0xFFF0/16
*VP+2Data segment number(Ye-Ys1)
*VP+3 Bitmap data start in MSB method
If the parameter automatically upload feature is enabled (R2.3=1), message
will be uploaded automatically after conversion according to the revised 0x5555
instead of original *VP content.
The command is mainly for printing and output of the screen contents.
*VP
The 1
st
address of the data
buffer where saved the
converted bitmap
0x06
Frame_Head
Frame header (2byte)
Send the current touched position to COM2 (System reserved com port), the
format is:
Frame_Head+X+Y+Check(The cumulative Sum for 1 byte of X,Y)
Frame_end.
Frame_End
Frame end (2byte)