0% found this document useful (0 votes)
18K views16 pages

COF Screen Application DevelopmentT5L DGUSII20220610

This document provides an overview and specifications for the COF Screen Application Development(T5L_DGUSII). It includes: 1) A dual-core ASIC with 8MB SPI Flash storage, 512KB user database, and real-time data transmission between cores. 2) 50-pin connector with various I/O including 3 UARTs, 1 CAN, 5 ADCs, and 2 PWM outputs. 3) Support for standard or custom operating systems and display functions including variables, animations, touch detection, and downloading.

Uploaded by

ZillaIlloz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18K views16 pages

COF Screen Application DevelopmentT5L DGUSII20220610

This document provides an overview and specifications for the COF Screen Application Development(T5L_DGUSII). It includes: 1) A dual-core ASIC with 8MB SPI Flash storage, 512KB user database, and real-time data transmission between cores. 2) 50-pin connector with various I/O including 3 UARTs, 1 CAN, 5 ADCs, and 2 PWM outputs. 3) Support for standard or custom operating systems and display functions including variables, animations, touch detection, and downloading.

Uploaded by

ZillaIlloz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

COF Screen Application Development(T5L_DGUSII)

1 Overview
(1) Based on T5L0 dual-core ASIC, both GUI and OS cores run at 200MHz main frequency with very low power
consumption.
(2) 8Mbytes low-cost SPI Flash, JPEG image and icon compressed storage. The size of background image
storage can be specified.
(3) 512Kbytes Nor Flash on-chip user database, 128Kbytes data variable space.
(4) Support standard T5 DWIN OS platform or 8051 development OS CPU core.
50Pin FPC leads to 22 IOs, 3 UARTs, 1 CAN, 5 ADs and 2 PWMs.
Customization services are available.
4 AD values are passed to the OS core in real-time via UART3 at up to 16KSPS sampling rates each. Real-
time control of 2 PWMs via UART3 updated as fast as 32uS.
(5) 20mS DGUS cycle, extremely smooth UI. Support pre-installed configuration module development mode,
which greatly improves UI development speed and quality.
(6) Display variables can be turned on, off or modified in the application to achieve complex display
combination functions.
(7) Touch variables can be turned on, off or modified in the application to achieve complex touch combination
functions.
(8) Support download and configuration by SD interface and display of download file.
(9) Support CTP sensitivity adjustment, convenient for user applications of front-mounted panel (up to 6mm
thick tempered glass)
(10) Ultra-thin, highly integrated COF structure, providing the extremely price-performance ratio and design
simplification.
(11) Support ED4 USB downloader.

DWIN Technology -1- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)

2 External Interface(50Pin 0.5mmFPC)


PIN# Definition I/O Description
1 +5V I
2 +5V I Power supply, DC3.6-5.5V.
3 GND GND
4 GND GND GND
5 GND GND
6 AD7 I 5 input ADCs. 12-bit resolution in case of 3.3V power supply. 0-3.3V input voltage. Except for AD6, the rest
7 AD6 I data is sent to OS core via UART3 in real-time with a 16KHz sampling rate. AD1 and AD5 can be used in
8 AD5 I parallel, and AD3 and AD7 can be used in parallel, which equals to two 32KHz sampling AD. AD1, AD3,
9 AD3 I AD5, AD7 can be used in parallel, which equals to a 64KHz sampling AD; the data is summed 1024 times
10 AD2 I and then divided by 64 to obtain a 64Hz 16bit AD value by oversampling.
11 +3.3 O 3.3V output, maximum load of 150mA.
External MOSFET to drive buzzer or speaker. The external 10K resistor should be pulled down to the
12 SPK O
ground to ensure that the power-on is low level.
13 SD_CD IO
14 SD_CK O
15 SD_D3 IO
SD/SDHC interface. The SD_CK connects a 22pF capacitor to GND near the SD card interface.
16 SD_D2 IO
17 SD_D1 IO
18 SD_D0 IO
19 PWM0 O 2 16-bit PWM output. The external 10K resistor should be pulled down to the ground to ensure that power-
on is low level.
20 PWM1 O
The OS core can be controlled in real-time via UART3.
21 P3.3 IO If using RX8130 or SD2058 I2C RTC to connect to both IOs, SCL should be connected to P3.2, and SDA
22 P3.2 IO connected to P3.3 in parallel with 10K resistor pull-up to 3.3V.
It can be used as an external interrupt 1 input at the same time, and supports both low voltage level or
23 P3.1/EX1 IO
trailing edge interrupt modes.
It can be used as an external interrupt 1 input at the same time, and supports both low voltage level or
24 P3.0/EX0 IO
trailing edge interrupt modes.
25 P2.7 IO
26 P2.6 IO
27 P2.5 IO
28 P2.4 IO
29 P2.3 IO
30 P2.2 IO
31 P2.1 IO
32 P2.0 IO
33 P1.7 IO
34 P1.6 IO

36 P1.4 IO
37 P1.3 IO
38 P1.2 IO
39 P1.1 IO
40 P1.0 IO
41 UART4_TXD O
42 UART4_RXD I UART4
43 UART5_TXD O
44 UART5_RXD I UART5
45 P0.0 IO
46 P0.1 IO
47 CAN_TX O
48 CAN_RX I CAN interface
49 UART2_TXD O
50 UART2_RXD I UART2(UART0 of OS core)

The HDL662S adapter board can be used to connect the USB interface to the SD card interface and lead the
signal out to the 2.54mm adapter board.

DWIN Technology -2- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)

3 DGUS Functions
3.1 Display Variables
Data
Function
No. Function length Description
code
(Word)
The change range of a data variable linearly corresponds to a group of ICON
display; when the variable changes, the icon automatically switches
01 0x00 Variable icon display 1 accordingly. It is mostly used for detailed dashboard and progress bar
display. Support background overlay and transparency settings, background
filter intensity can be set.
A fixed value data variable corresponds to 3 different icon indication states:
no display, display fixed icon, and display animated icon. It is mostly used for
variable alarm prompts.
02 0x01 Animation icon display 2 The variable occupies 2-word positions, and the (VP+1) position is reserved;
the icon ID cannot exceed 255 (0xFF). Support background overlay and
transparency settings, you can set the animation speed. Support single play
mode, background filter intensity can be set.
The change range of a data variable corresponds to the change of the
display position of an icon (slider). It is mostly used for the indication of liquid
03 0x02 Slider Display 1
level, dial and a progress meter. Support background overlay and
transparency settings, background filter intensity can be set.
Use ICON to replace font library to display variable data, support
04 0x03 Artistic variable display 1/2/4 background overlay and transparency setting, background filter intensity can
be set.
Play a group of full-screen pictures at the specified speed. It is mostly used
05 0x04 Picture Animation display No
for boot interface or screen saver.
Corresponding linearly to the angle data of the variation range of a data
variable, and then rotating an ICON according to the corresponding angle
06 0x05 Icon rotation display 1
data to display it. The background filter intensity can be set. It is mostly used
for pointer dashboard display.
The 0/1 state of each bit of a data variable corresponds to two of the 8
different display schemes, and the ICON (or icon animation) is used for the
07 0x06 Bit variable icon display 3 corresponding display. The background filter intensity can be set. It is mostly
used to display the switch status, such as the operation (animation) and stop
(stationary icon) of the fan.
The JPEG icon page that exceeds the screen resolution is displayed by
JPEG icon panning panning up and down or left and right on the screen window. Cooperate with
08 0x07 4
display 0x0C touch variable to realize icon sliding selection.
The background filter intensity can be set.
The JPEG icon of the variable buffer is superimposed and displayed in the
specified area of the current page, and the display brightness and
Variable data JPEG icon Max
09 0x08 transparency can be set. VP=5AA5 turns on the display, VP+1=JPEG data
overlay display 120KB
buffer length, VP+2=JPEG data start. The background filter intensity can be
set.
According to the definition of the variable buffer, the icon is quickly copied
Fast batch data icon Max
10 0x09 from the background or video memory and displayed to the specified
copy and paste 64KB
location.
Display a data variable according to the specified format (integer, decimal,
whether with the unit) with the specified font and size of Arabic numerals.
11 0x10 Data variable display 1/2/4 Support character spacing adjustment/non-adjustment selection, support
integer bit invalid zero display/non-display selection. Supports sawtooth
optimized 8bit encoding font library.
Display the character string in the specified text box display area in the
Max
12 0x11 Text display specified format (decided by the selected font). Supports sawtooth optimized
2K
8bit encoding font library.
Display RTC in the text according to user edit format. Supports sawtooth
13 0x12_00 Text format RTC display No
optimized 8bit encoding font library.
Use the ICON to rotate, and display the Gregorian calendar RTC with the
14 0x12_01 Dial format RTC display No
pointer dial mode.
The variable data is displayed at intervals of ASCII characters specified by
the user in byte HEX mode. It is mostly used for timing display, such as
15 0x13 HEX data display Max 8
displaying 0x1234 as 12:34. Supports sawtooth optimized 8bit encoding font
library.
User Scroll the text stored in the variable space in the designated area of the
16 0x14 Text scrolling display
defined screen.

DWIN Technology -3- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
Display the data variable in a designated display window, and highlight the
selected value. Combined with the touch screen sliding or incremental
adjustment, the data can be scrolled and displayed. It can also be controlled
17 0x15 Data window indication 2
by DWIN OS to adjust the speed. Supports sawtooth optimized 8bit
encoding font library.
The variable occupies 2-word positions, and the (VP+1) position is reserved.

Based on DGUS II font, display the string in the specified text box with no
DGUSII text display
scaling support.
18 0x16 (Text display without Max 2K Compared to 0x11 text display, this function mainly displays text without
jaggies)
sawtooth and display multiple languages with direct font change.

Configuration icon font


19 0x17 library scrolling wheel 4 The basic functions are the same as the data window instructions.
display
GTF icon font text Max
20 0x18 Highly efficient display of icon characters.
display 128
Based on the curve buffer data to automatically match and display the real-
Real-time curve (trend 2K per time curve (trend graph). You can specify the display area, center axis
21 0x20 graph) channel coordinates, display scale (enlarge/reduce), and set the direction of the
curve.
22 0x21_01 Drawing_point Set point (x, y, color)

23 0x21_02 Drawing_End Connection End point connection (color, (x0, y0), ... (xn, yn))

24 0x21_03 Drawing_rectangle Display rectangle, color, position and size are controllable.

Fill the specified rectangular area with controllable filling color, position and
25 0x21_04 Drawing_Rectangle Fill
size.
Drawing_Picture Copy Copy an area from the specified picture and paste it on the currently
26 0x21_05
and Paste displayed page.
27 0x21_06 Drawing_ICON display User The ICON is displayed, and the icon library can be selected.
28 0x21_07 Plot_spectrum display defined Set point (x, y, color)

Drawing_Closed Area Select the seed location and fill the closed solid color area with the specified
29 0x21_08
Fill color.

The frequency spectrum (vertical line) is displayed according to the variable


30 0x21_09 Plot_spectrum display
data, and the line color and position are controllable.

Drawing_Rectangular Perform xOR operation on the bitmap data of the specified rectangle field
31 0x21_0D
Domain xOR with the specified color, which is mostly used for highlighting.
Drawing_two-color Each bit represents 1 point, and the two-color bitmap display can be quickly
32 0x21_0E
bitmap display performed in the designated area.
Circulate the content of the designated area, and the moving direction can
be set. It is used for the simple realization of dynamic operation effects such
33 0x24 Area scrolling 1
as a flow chart and progress bar on the screen. Variables are occupied by
the system and should not be used by users.

Max Display the QR code graphics on the screen according to the specified
34 0x25 QR code display
259 content.

Adjust the area display Adjust the display brightness of the designated display area to highlight or
35 0x26 1
brightness dilute the background display.

Max After the page switch, the predefined data is transferred to the variable or
36 0x30 Data variable transfer
11 UART once.

Remark
 For more specific function description, please refer to " DGUS LCM Development Guide".
 VP refers to the storage location (pointer) of the user variable storage.
 When setting the variable description pointer in the PC configuration software development, the display
variable configuration information will be stored in the user variable space pointed by the variable description
pointer, which can be accessed through UART or DWIN OS to dynamically turn on, turn off or modify the
variable configuration information to realize complex display variable combination functions.

DWIN Technology -4- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
3.2 Touch Variables
Function Data length
No. Function Description
code (Word)
Record various data such as integers and fixed-point decimals into the specified
Variable Data variable storage space.
01 00 1/2/4
Input Pop-up keyboard transparency can be set.
Support configuration touch control.
Popup Click to trigger a pop-up menu that returns the key code of the menu item.
02 01 1
window Pop-up menu transparency can be set.
Click the button to perform +/- on the specified variable, and you can set the step and
Incremental
03 02 1 the upper and lower limits.
Adjustment
Set 0-1 range cyclic adjustment to enable column checkbox function.
Drag
04 03 1 Drag and drop slider to achieve variable data input. The scale range can be set.
Adjustment
Click the button to return the button value to the variable directly, and support bit
Return Key
05 05 1 variable return.
code
Support press time threshold setting function.
ASCII or GBK Chinese character text input method supports cursor movement and
editing.
06 06 Text Input Max 127
You can set the input status and input length to be saved at the (VP-1) position.
ASCII input mode pop-up keyboard transparency can be set.
Click on the touch screen to return data to the variable as specified.
Synchrodata
07 08 User defined Return to UART mode is not supported, but it is possible to realize touch data
Return
uploaded automatically.
Rotation
08 09 1 Drag adjustment of circular categories.
Adjustment
The touch screen slides in the X- or Y-axis direction according to the specified area
Sliding and returns the relative adjustment value in real-time.
09 0A 2
Adjustment Combined with the data window indication display variable, dynamic scrolling word
adjustment can be achieved. VP holds and return data is at (VP+1) position.

The touch screen slides in the X-axis or Y-axis direction according to the specified
area to achieve dynamic page dragging.
You can set the target and area of the page switch, and the variable display of the
10 0B Page Sliding No current page will be dragged along. If there are other touch buttons on the sliding
page and the whole page (including dragging touch buttons) needs to be turned by
gestures, the touch priority of sliding gesture to turn the page must be set to the
highest. Support animated actions at the end of the gesture.

Sliding Icon Combined with the 0x07 display variable (JPEG icon panning display) to achieve
11 0C 4
Selection icon page sliding selection.

Remark
 For more specific function description, please refer to "T5L_DGUSII Application Development Guide".
 The touch configuration file (13*.BIN) cannot exceed 256Kbytes.
 The touch command access interface defined in the 0x00B0 variable space can be accessed through UART
or DWIN OS to dynamically turn on, turn off or modify the variable configuration information to realize
complex display variable combination functions.

DWIN Technology -5- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)

3.3 UART Communication Protocol(UART2)


The system debugging UART2 mode is fixed to 8N1, and the baud rate can be set. The data frame consists of 5
data blocks.
Data block 1 2 3 4 5
Definition Frame Header Length Command Data CRCCheck(optional)
Length 2 1 1 N 2
Description 0x5AA5 Including command, data and CRC 0x80/0x81/0x82/0x83
Sample(witho 5A A5 check
04 83
00 10 04
ut check)
Sample(check 5A A5 06 83 00 10 04 25 A3
)
The CRC check on/off is controlled by bit 0x05.6 of the configuration file.

The UART2 debug interface commands are described as follows.


Command Data Description
Send:
Register page (0x00-0x08)+register address (0x00- Specify the address to start writing the data string to the register.
0x80 0xFF) + data written
Answer:
The write command is answered.
0x4F 0x4B.
Send:
Register page (0x00-0x08) + register address (0x00-
0xFF) + byte length of the read data(0x01-0xFB) Start reading data from the specified register.
0x81
Answer:
Register page (0x00-0x08) + register address (0x00- The data is answered.
0xFF) + data length + data
Send: Write data string (word data) to variable space starting from the
Variable space first address (0x0000-0xFFFF) + specified address. Do not write the space reserved by the
0x82 written data system.
Answer:
0x4F 0x4B. Write instruction answer.
Send:
Variable space first address (0x0000-0xFFFF) + Read word data of the specified length from the specified
address of the variable space.
byte length of the read data(0x01-0x7D)
0x83 Answer:
Variable space first address + byte length of the The data is answered.
variable data + the read variable data

The register pages are defined as follows.


Register Page ID Definition Description
0x00-0x07 Data register 256 per group, R0-R255
0x08 Interface register DR0-DR255. For details, please refer to "DWIN OS Development Guide
based on T5" 3.4 Interface register definition description.

3.4 UART Communication Protocol(UART3)


(1) The GUI core sends AD1, AD3, AD5, AD7 data (12-bit) to the OS core in the following command frame format.
0xAA + AD1 high 4-bit:AD3 high 4-bit + AD1 low byte + AD3 low byte + AD5 high 4-bit:AD7 high 4-bit + AD5 low
byte +AD7 low byte + 7 bytes accumulation and low byte from 0xAA.
If AD1 data is 0x0123, AD3 data is 0x456, AD5 data is 0x0789, AD7 data is 0x0ABC, then the GUI core send AA
14 23 56 7A 89 BC F6 to the OS core.
(2) The OS core sends PWM0 and PWM1 duty cycle data (16-bit) to the GUI core in the command frame format:
0xAA + PWM0 value + PWM1 value + 5 bytes of accumulation and low byte from 0xAA.
If the PWM0 data is 0x1234 and PWM1 data is 0x5678, then the OS core sends AA 12 34 56 78 BE to the GUI
core.

DWIN Technology -6- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
4 System Variable Interface(system variable address range of x0000-0x0FFF)
Data with the same background color in the table is updated at the same time, and rewriting must be completed
at one time.
Length
VP Definition Description
(word)
0x00 Reserved 4 Undefined
0x04 System_Reset 2 Writing 0x55AA 5AA5 resets the T5L CPU once.
D3: write 0x5A to enable DWIN OS once (write into 1MB Nor Flash), clear after
operation.
D2: File type
0x06 OS_Update_CMD 2
0x10: DWIN OS program must start from 0x1000, update 28KB at every time.
0xA5: 8051 code, update 64KB at every time.
D1:0: Start address of SRAM to save program to update, it must be even.
D7: Mode: 0x5A=read 0xA5=write, clear after operation.
NOR_FLASH_RW D6:4: Start address of Nor Flash. Must be even. 0x000000-0x03:FFFE, 256KWords.
0x08 4
_CMD D3:2: Start address of data variable space. Must be even.
D1:0: Data length to read/write. Must be even.
0x0C Reserved 3
Application software version. D1 stands for GUI version, D0 stands for
0x0F Ver 1
DWIN OS version.
D7=Year (0-0x63) D6=month(0-0x0C), D5=day(0-0x1F), D4=week(0-0x6),
D3=hour(0-0x17), D2=minute(0-0x3B), D1=second(0-0x3B), D0 undefined. Data
0x10 RTC 4
format is HEX.
Need hardware support. If there is no RTC on hardware, user can write RTC data.
0x14 PIC_Now 1 Display current page ID.
0x15 GUI_Status 1 GUI status feedback: 0x0000=free, 0x0001=processing 13.bin and 14.bin.
D7: 0x5A=touch panel data is updated.
0x16 4 D6: touch panel status. 0x00=release, 0x01=first press, 0x02=lift,
TP_Status
0x03=pressingD5:D4=X coordinate D3:D2=Y coordinate
D1:D0=0x0000
0x1A-0x30 Reserved 23 Undefined
0x31 1 D1: 0x5A : backlight brightness value, AD0-AD7 instant value has updated. D0:
LED_Now Current backlight brightness value, 0x00-0x64.
0x32 8 Instantaneous value of AD0-AD7, 1 word per AD. Voltage=AD
AD0-AD7 value*3300/4095 mV.
Instantaneous value Voltage = AD value*3300/65520 mV, AD4 is the voltage of the backlight current
sampling resistor.
0x3A-0x79 Reserved 64 Undefined
0x7A LCD_HOR 1 Horizontal resolution of the screen
0x7B LCD_VER 1 Vertical resolution of the screen
0x7C-0x7F Reserved 4 Undefined
D3: 0x5A = enable the parameter configuration once, clear after operation. D2: touch
panel sensitivity configuration value, read only.
D1: touch panel mode configuration value, read only. D0: system status setting.
7: Serial port CRC check 0=off 1=on, read only.
0x80 System_Config 2 6: Reserved, write 0.
5: Power on load 22 file to initialize variable space. 1= load 0= no load, read only.
4: Variable automatic upload setting 1= on, 0= off, read and write.
3: Touch panel audio control 1= on 0= off, read and write.
2: Touch panel backlight standby control
1-.0: Display direction 00=0° 01=90° 10=180° 11=270°, read and write.
Set standby backlight.
0x82 LED_Config 2 D3= Turn on brightness, 0x00-0x64; When backlight standby control is off, D3 can
be used for brightness adjustment interface.
D2= Turn off brightness, 0x00-0x64; D1:0=wait time /10 ms.
D3: 0x5A = enable page operation once, clear after operation. D2: Mode.
0x01=page switch (Display the image specified in the image storage area to the
0x84 PIC_Set 2
current background page).
D1:D0: picture ID.
D3=write 0x5A to enable PWM0 setting once, clear after operation.
0x86 PWM0_Set 2 D2=the frequency division coefficient D1:D0=PWM0 accuracy PWM0 carrier
frequency=825.7536MHz/(the frequency division coefficient*PWM0 accuracy)

DWIN Technology -7- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
D3=write 0x5A to enable PWM0 setting once, clear after operation.
0x88 PWM1_Set 2 D2=the frequency division coefficient D1:D0=PWM0 accuracy PWM0 carrier
frequency=825.7536MHz/(the frequency division coefficient*PWM0 accuracy)
0x8A-0x9B Reserved 18 Undefined
0x9C RTC_Set 4 D7:D6= write 0x5AA5 to enable RTC setting once;D5:D0=year, month, day, hour,
minute, second, all in HEX format. Need hardware RTC support.
The on-chip Flash saves WAE music playback settings:
D3: Segment ID of this playback, 0x00-0xFF. WAE file location is specified by CFG
WAE configuration file.D2: Number of segments, fixed 0x01. Clear after DGUS operation.
0xA0 2
Music_Play_Set Under buzzer mode, it is buzz time, unit: 8 ms.
D1: Volume, unit: 1/64; Initial value is 0x40(100%).
D0:Feedback, 0x00=stop, 0x01=pause, 0x02=playing.
0xA2-0xA9 Reserved 8 Undefined
D11: 0x5A= enable external memory operation, clear after operation. D10: Operation
mode
D10=0x10, read 16MB SPI NOR FLASH data
D9:font library ID, 0x10-0x1F, 256Kbytes per font library, maximum 4Mbytes D8:D6:
the starting address of data in the font library is defined according
to the Word, 0x0000-0x01FFFF
D5:D4: The first address of the read data variable space, which must be even.
0xAA External 6 D3:D2: The length of the data read, defined according to the Word, must be even.
16Mbytes D1:D0: undefined, write 0x00.
FLASH
For D10=0x02 write 32Kbytes data block into 16MB SPI NOR FLASH.
write
operation D9:D8: 32Kybtes memory block address, 0x0000-0x01FF, correspond to 16Mbytes
memory.
D7:D6: The first address of the update data stored in the data variable space must
be even.
D5:D4: After the completion of this operation, the time of delay waiting for the next
write operation, unit: 1ms.
DGUS refresh will stop during the delay wait to prevent errors caused by incomplete
updates.
D3:D0: Undefined, write 0x00.
D10=0x03, font copy
D9:D8: Source font ID, 0x0000-0x001F, 256Kbytes per font library, maximum
4Mbytes.
D7:D6: Target font ID, 0x0000-0x003F.
D5-D4: Number of font to copy, 0x0000-0x0010. D3:D0: Undefined, write 0x00.
0xB0: 0x5AA5= enable accessing touch control interface once. Clear after CPU
operation.
0xB1: Page ID of touch control.
0xB2: High byte: touch control ID (set in DGUS II development software), 0x01-
0xFF;
Touch instruction Low byte: touch control code, 0x00-0x7F. 0xB3: Access mode
0xB0 36 0xB4-0xD3: data to modify of mode 0x02, 0x03. Mode 0x0000: turn off this touch
access interface
control.
Mode 0x0001: turn on this touch control.
Mode 0x0002: Read this touch control and write it to SRAM that 0xB4 pointing to.
Mode 0x0003: update current touch control with data that 0xB4 pointing to,
the format and data length must be the same.
0xD4: 0x5AA5=enable the operation once, clear after operation. 0xD5: press mode.
0x0001=press, 0x0002=release, 0x0003=keep pressing, 0x0004=touch (press +
release)
0xD6: X coordinate of press position. 0xD7: Y coordinate of press position.
After simulating mode 0x0001 and 0x0003, must simulate 0x0002.
TP operation When the assembly touch function is running, x= 0xAA:KH y=0xA5:KL will directly
0xD4 4
simulation return the key values KH and KL to the assembly touch. For example, when
variables are input in assembly mode, the coordinates (0xAAF0, 0xA5F0) will cause
the input to end immediately.
When the 13 touch file is designed with keying function, X coordinate = 0xFF: key
code y coordinate = 0x0001 will trigger the corresponding keying function.
0xD8_H: 0x5A = enable the overlay display.
0xD8_L: the position of ICL file which the pointer icon is saved at. 0xD9: the pointer
Pointer icon icon ID.
0xD8 4 0xDA: the X coordinates of pointer icon. 0xDB: the Y coordinates of pointer icon.
overlay display
The pointer icon is always displayed in the background filtering mode, and
the background filtering intensity is fixed at 0x08.

DWIN Technology -8- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
0xDC Reserved 4 Undefined
D3: write 0x5A to enable the CRC checking once, clear after operation. D2: memory
type selection
0x00= font space (16Mbytes memory) 0x02=DWIN OS code
0x03=Nor flash database (LIB file). D1:D0: data interface.
▶ Enable the CRC
Font check mode: D1= start font ID (256KB for each font); D0= the number of 4KB
0xE0 Memory CRC check 2 blocks checked, 0x00-0xFF.
OS code check mode: D1:D0= starting at 0x1000, the byte length of OS code to be
checked is 0x0001-0x7000.
Nor flash database mode: D1:D0=Nor flash database ID, fixed validation of 4KB data
each time.
▶After checking
Return CRC value.
0xE2_H: 0x5A initiates a single color bitmap export and clears after CPU operation.
0xE2_L: write 0x00.
0xE3: X-coordinate in the upper left corner of the screen area.
Monochrome
0xE4: Y-coordinate in the upper left corner of the screen area.
bitmap export of
0xE2 6 0xE5: X-coordinate in the lower right corner of the screen area.
specified areas of
0xE6: lower right Y-coordinate of the screen area;
the screen
0xE7: the starting address of the variable memory where the output bitmap is stored,
must be an even number. The bitmap data stored in the variable memory follows the
MSB, double word alignment pattern.
0xE8-0xEF Reserved 8 Undefined
D7: 0x5A = enable the music playback operation, clear after operation. D6: mode,
0x00 = stop(clear the buffer), 0x01 = suspend(reserve the buffer), 0x02 = start.
0xF0 Interface of 4 D5:D4: undefined, write 0x00.
playing music D3:D2: Variable memory address for storing music data, even.
flow data D1:D0: Music data word length, maximum 8KWords, even; data is 16bit integer
format.
D15: 0x5A = enable the drawing touch window.
D14: operation mode, 0x00 = normal mode, 0x01 = initialization (clear after
initialization).
D13: parameter configuration.
0xF4 Painting interface 8 7-2 reserved, write 0.
1-0 painting buff processing mode after page changing. 0x00 = close, 0x01
= re-initialization, others = unchanged. D12: reserved, write 0x00.
D11: line width, from 0x01 - 0x0F.
D10:D8: painting color, D6=RED D5=GREEN D4=BLUE
0xFC Reserved 4 D7:D4:0x00
Write the coordinate position of the window upper left corner(x,y). D3:D2: the width
0x100-0x2FF Reserved 512 Undefined
0x300-0x30F: state feedback for 8 channel curve buffers ( read only advised), 2
words per channel, high word is the storage pointer location (0x0000-0x07FF) where
curve data is stored, and low word is the effective data length of curve buffer
(0x0000-0x0800). Writing 0x0000 to the effective data length of the curve buffer will
cause the curve unable display.
0x310-0x311: start writing curve buffer data
0x300-0x37F Dynamic curve
D3: D2:0x5AA5 enable the writing curve buffer data operation once, and clear after
interface
operation.
128 D1: the number of data blocks, 0x01-0x08. D0: undefined, write 0x00.
0x312-0x37F: data block written to the curve buffer, which is 16 bits unsigned.
Single data block: data channel ID (0x00-0x07) + data word length (0x01-0x6E) +
data. With dynamic curve display enabled, start at 0x1000 and create a data buffer
for each curve according to 2Kwords per channel. The CH0 buffer is 0x1000-
0x17FF, the CH1 buffer is 0x1800-0x1FFF, and so on, the unused curve buffer
zones can be used as user variables. Also users can directly overwrite the curve
buffer data and then modify 0x300-0x30F corresponding storage pointer position
and data length to ensure the correct display of the curve.
0x380-0xEFF Reserved 3044 Undefined
After setting variables to change the automatic upload function, this function is
enabled.
0x0F00 Variable change 2 D3=5A means variable change,D2:D1= variable memory pointer, D0= variable
length (word).
0xF02-0xFFF Reserved 254 Undefined
User variable occupancy address range: 0x1000-0xFFFF

DWIN Technology -9- www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
4.1 Network communication interface (0x0400-0x04FF)
Length Reference
VP Definition Description
(word) value
Network Interface
0x400 1 0x5AA5 indicates that the network communication interface is enabled. 5AA5
Switch

D5:D4=0x5AA5 indicates that the specified RMA space data is


uploaded to the server once immediately and cleared after processing.
RMA Alarm 3
0x401 D3:D2=Address of the RMA variable memory word to be uploaded. All 00
D1:D0=Length of the RMA variable memory word to be uploaded.

Reserved 0x404 12 Reserved. All 00

High byte=0x5A means the device description is valid.


Low byte=Encoding method and length of device description text.
1
0x410 .7-.6:Encoding method 0x00=UNICODE 0x01=GBK(recommended). 5A4C
.5-.0:Description text length 0x00-0x34
Device 4Bytes Device Manufacturer ID, allocated by DWIN, 0xFFFF:0000-
Description 0x411 2 00000001
0xFFFF:FF segment reserved.
(Device
Description) 2Bytes The classification of each manufacturer's equipment, as per the
0x413 1 0001
DWIN Classification Standard, is done by the equipment manufacturer.

4bytes Device number under each classification given by the


0x414 2 User-
manufacturer.
defined
0x416 26 Device description text, up to 52 Bytes.

The interval for RMA to automatically refresh the server, 0x0000-


0x430 1 0xFFFF, in 0.1 seconds. 012C
0x0000 means no automatic refresh.

RMA (variable memory mapped to the server) read space start


0x431 1 1000
address, word address. Unreadable when out of bounds.
Device RMA read space size in 128Words, maximum 64KWords; 0x0000
Description 0x432 1 0004
means unreadable.
(RMA mapping)
RMA write space start address, can overlap with the read space.
0x433 1 2000
Unwritten when out of bounds.

RMA write space size in 128Words, maximum 64KWords; 0x0000


0x434 1 0004
means unwritten.

0x435 3 Reserved. All 00

Remote upgrade interface enable.


0x438 1 0x5AA5 means the device is enabled for remote upgrade interface, the 5AA5
system will automatically detect Buffer.

The packet timeout timer configuration for remote upgrades in 0.1


0x439 1 0064
seconds.

The 1st remotely upgradeable space of the device (corresponding to


1MB Flash of T5L, aligned to 4KB) is defined ad follows.
D7=0x5A indicates that the remote upgrade space is enabled. 5A00 0100
0x43A 4
D6-D3: 32bit start address of upgradeable space (lower 12bit is 0), up 0000 00F0
Device
to 4GB.
Description
D2-D0: Size of upgradeable space in 4KB, up to 4GB.
(Remote
Upgrade) The 2nd remotely upgradeable space of the device corresponds to 5A00 0000
0x43E 4
16MB-64MB of image and font memory. 0000 1000

0x442 4 The 3rd remotely upgradeable space of the device. Not used. All 00
0x446 4 The 4th remotely upgradeable space of the device. Not used. All 00

Remote Upgrade Buffer Interface Definition.


5A
D7=0x5A means the remote upgrade buffer is valid.
00
0x44A 2 D6=Upgrade mode 0x00=Communication end for checking the data 0B
CRC, and the host is notified to resend the error frame. B0
D5=The number of buffer that can be used for remote upgrade, 0x01-

DWIN Technology - 10 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
0x10, up to 16.
D4=Higher byte (word address) of the start address of Buffer0; the
lower 8bit of this address is 0x00.
Each Buffer takes up a fixed space of descending 2304 words (0x900).
Single Buffer Definition (the first 512 bytes are the control interface,
and the next 4KB are data)
D0: 0x5A indicates that the remote upgrade of this buffer is started
once and cleared after CPU processing.
D1: Select one of the 4 remote upgrade spaces (0x00-0x03) for 4KB
block write operation.
D2-D5: Write remote upgrade space target address; low 12bit is 0.
D6-D7: data byte length, 0x0001-0x1000.
D8-D9: data CRC checksum.
D10-D511: Reserved.
D512: Data start, up to 4096 bytes.
0x44C 4 Reserved.

Device
Description 0x450 48 Reserved. All 00
Reserved

D31:0x5A indicates that the communication device description data is


valid.
D30:Encoding method and length of the device description text.
.7-.6:Encoding method 0x00=UNICODE 0x01=GBK(recommended).
.5-.0:Description text length 0x00-0x14
D29:Communication device category 0x01=WiFi D28:Communication
Communication device status, bit definition:
User-
Device 0x480 16 .7 Device operating status 0=Configuring 1=Normal. defined
Description
.6-.3 undefined, write 0.
.2-.0 Signal quality, 0x00-0x07 for 8 levels, 0x00 means worst, 0x07
means best.
D27-D20=8Bytes MAC address of communication device, low (D20)
alignment.
D19-D0: Communication device description information in text format,
up to 20Bytes.

Communication Communication device customization, such as WiFi username, User-


0x490 112
Device Reserved password, etc. defined

The device description information is configured by the corresponding contents of the 22 initialization file 0x0800-
0x09FF address (with or without the 22 file initialization variable buffer enabled).

DWIN Technology - 11 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)

5 SD Interface
SD card upgrade does not support online hot-swappable updates. In order to prevent hot-swapping from
affecting Flash operations, you must strictly follow the instructions to power off the screen first, insert the SD
card, and then power on to download
The T5L-based UART LCM SD/SDHC interface supports the following file downloads and updates
File Type Naming rule Description
T5L_UI*.BIN
Program files Application.
T5L_OS*.BIN
DWIN OS program DWINOS*.BIN DWIN OS program and code must start from 0x1000.
OS CPU 8051
T5L51*.BIN Applications developed by users based on the OS 8051 platform.
program
NOR Flash database ID+(optional) filename.LIB Each ID corresponds to 2KWords of memory with ID range 0-79.
The database is located in the on-chip NOR Flash and is 160KWords in
Font ID+(optional) filename.
Font files size and can be used for user data or DWIN OS program library file
BIN/DZK/HZK/GTF
storage.
DGUS input method
12*.BIN Stored in the 12 Font library.
files
DGUS touch files 13*.BIN Stored in the 13 Font library, cannot exceed 32KB.
DGUS variable files 14*.BIN Stored in the 14 Font library, cannot exceed 256KB and must be in
DGUS2 format.
DGUS variable Stored in the 22 Font library, load 0x2000-0x1FFFF address and
22*.BIN
initialization files initialize the variable space of 0x1000-0xFFFF.

Must be JPEG ICO file format in DGUS2 format. In case of multi-chip


JPEG image and Flash extension, make sure 1 image data is stored in each Flash.
Font ID + (optional) filename. ICL
icon files DGUS2 V4.0 and above must use DGUS V7.623 and above to generate
ICL files.

Music files Font ID + (optional) filename. WAE It must be in DGUS2 format and generated by DWIN special tool.
Configuration module number from 0x0000-0xFFFF amd each ID
Configuration module number ID + corresponds to 32KB memory space. In case of multiple Flash
UI configuration files
(optional) file name. UIC expansion, make sure that 1 configuration module data is stored in each
Flash.
Hardware Don't download incompatible CFG files that may cause screen
T5LCFG*.CFG malfunction. Users can contact customer service to get the CFG
configuration files
files needed.
CRC checksum files T5*.CRC CRC32 checksum after SD card download data.

The 8MB Flash memory is divided into 32-word libraries by 256Kbytes each, which can be used to store word
libraries, icon libraries, and configuration files, and the background image ICL file is usually named as 23.ICL.
(DMG10600F070_01W has 16MB Flash and its memory is divided into 64-word libraries. For 16MB Flash
products, the background image ICL file is usually named as 32.ICL. )
The download file must be placed in the DWIN_SET folder in the root directory of the SD card or SDHC card of
4KB sector and FAT32 format.

DWIN Technology - 12 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
5.1 T5LCFG*.CFGconfiguration file
Category Address Lengt Definition Description
h
Recognition 0x54 0x35 0x4C
0x00 5 Fixed content
configuration 0x43 0x31

7: UART CRC checksum 0=Off 1=On


6: Buzzer / music playback selection, 0=Buzzer 1=Music playback
5: Power-on load file initialization variable space 1= Load 0= No Load
Parameter
0x05 1 4: touch variable automatic upload setting 1=On 0= Off
configuration
3: touch panel audio control 1=On 0= Off
2: touch panel backlight standby control 1=On 0= Off
1-.0: display direction 00 = 0°, 01 = 90°, 10 =180° ,11 = 270°

7-6: Reserved. Write 0.


1: OS CPU user 8051 program download encryption setting, 0=unencrypted
Parameter 1=encrypted.
0x06 1
configuration 1 If you select encrypted, the user 8051 program should be encrypted by DWIN's
System special tool before download.
configuration 0: Reserved. Write 0.

Music WAE file


0x07 1 0x00-0x3F(00-63)
save position
Background
0x08 1 picture ICL file 0x10-0x3F(16-63), correspond to 12MB-4MB background picture space
save position
Touch panel
Set range 0x01-0xFF , by default 0x28 , reporting point rate
0x09 1 reporting point rate
=400Hz/set value
setting
Serial port baud Baud rate setting value=3225600/baud rate 115200bps, set value=0x001C,
0x0A 2
rate setting maximum value 0x03FF

Normal operation
0x0C 1 and startup 0x00-0x64, unit 1%
brightness
Backlight
standby Standby
0x0D 1 0x00-0x64, unit 1%
configuration brightness

Wake up time after


0x0E 2 0x0001-0xFFFF,unit 10 ms
standby

Display_Config_E 0x5AA5= Enable the configuration. It has been configured at the factory. Users do
0x10 2
n not need to configure it again.

Data latch phase setting:0x00=PCLK falling edge 0x01=PCLK


0x12 1 PCLK_PHS
rising edge

0x13 1 PCLK_DIV PCLK frequency=206.4/PCLK_DIV setting:PCLK frequency (MHz)

0x14 1 H_W

0x15 1 H_S

LCD 0x16 2 H_D Horizontal (X direction) resolution


configuration
0x18 1 H_E

0x19 1 V_W

0x1A 1 V_S

0x1B 2 V_D Vertical (Y) resolution

0x1D 1 V_E

0x1E 1 TCON_SEL 0x00= do not need to configure TCON

0x1F 1 Reserved Write 0x00

TP 0x5A= Enable the configuration. It has been configured at the factory. Users do not
0x20 1 TP_Set_En
configuration need to configure it again

DWIN Technology - 13 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
Touch panel mode configuration
7-.4(high 4bit), select touch panel type: 0x0*= 4-wire resistive touch panel
0x1*= Driving IC capacitive touch panel such as GT911, GT9271 or GT9110 IC
0x2*=ILI9881H Incell CTP
0x3*=ILI driving IC capacitive touch panel such as ILI2117
0x4*= ILI driving IC capacitive touch panel such as ILI2130
0x5*=Betterlife driving IC capacitive touch panel such as BL8825 0xF*= 5-wire
resistive touch panel
0x21 1 TP_Mode
3 Resistive touch panel calibration: 0=off; 1=on, enable when SD card downloading
is in process
2-.0 (low 3bit) Coordinate setting:
2 X coordinate selection: 0= from 0 to Xmax; 1=from Xmax to 0;
1 Y coordinate selection: 0= from 0 to Ymax; 1=from Ymax to 0;
0 X,Y exchange: 0=XY; 1=YX
When the RTP is calibrated, the screen display cannot be configured as a deflection
display.

TP sensitivity setting: 0x00-0x1F, 0x00 lowest sensitivity, 0x1F highest sensitivity.


0x22 1 TP_Sense Default sensitivity is 0x14, which is higher sensitivity. (ILI9881 is 0x01-0x06).
0xFF will not configure touch (using the hardware initial value).

TP frequency selection, suitable for ILI9881H. Fixed frequency ranges from 0x01
0x23 1 TP_Freq
to 0x14, and 0x00 represents frequency hopping.

Clock output
0x24 1 Reserved Write 0x00.
configuration
0x27 1 BUZZ_Set_En 0x5A= Enable the configuration.

Buzzer frequency=BUZZ_Freq_DIV1) KHz.825753.6


0x28 1 BUZZ_Freq_DIV1
BUZZ_Freq_DIV1
BUZZ 0x29 2 BUZZ_Freq_DIV2 Factory settings: DIV1=0x6E, DIV2=0x0BB8, correspond to the 2.5KHz frequency.
configuration
Buzzer duty ratio settings:
0x2B 2 BUZZ_Freq_Duty High level duty ratio=BUZZ_Freq_Duty / BUZZ_Freq_DIV2. Factory settings:
0x00F0 corresponds to 8% high level duty ratio.
0x2D 1 BUZZ_Time Buzzing time after touch action, unit 10 ms; Factory setting: 0x0A
Power-up
0x2E 1 Init_File_Set_En 0x5A Start once to configure the power-up initialization variable file ID.
initialization
variables
0x2F 1 Init_File_ID The configured power-up initialization variable file ID and the default is 0x16.
File ID
configuration
Reserved 0x30 16 Reserved Write 0x00.

0x5AA5 means setting the name of SD download folder once, which are saved in
0x40 2 SD_Set_En
the device Flash. It will not be lost after power off.

Setting for Character length


name of 0x42 1 of download folder 0x01-0x08
download name
folder
Up to 8 ASCII characters (only 0-9, a-z, A-Z, -, _ ). Invalid character setting will use
0x43 8 Folder name
"DWIN_SET" as the default value, which is effective after power off and restart.

0x4B 37 Reserved Write 0x00.

Attention: Users can configure the parameters in the green background of the CFG file as needed, but if
you feel uncertain or need to modify the parameters in the white background, never hesitate to contact
customer service. We are always willing to offer assistance.

DWIN Technology - 14 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
5.2 T5*.CRC file format
Category Address Length Definition
File identification 0x0000 4 Fixed to 0x43 0x52 0x43 0x10 .
CRC result 0x0004 4 Specify the final result of the checksum location data, after CRC32 checksum in order.
Reserved 0x0008 7 Write 0x00.
OS kernel code 0x000F 1 Write 0x5A means the OS core code CRC check is performed.
2 0x10 = ID of the LIB file to be verified.0x11 = number of files to be verified starting with this ID.
LIB file check 0x0010 0x00 indicates the end of LIB file checksum.
Font file check
0x0012 62 The remaining 31 defined positions.
0x50 = ID of the font file to be verified. 0x51= number of files to be verified starting from this ID,
0x00 indicates the end of the font file checksum.
Reserved 0x0050
2 For off-chip NOR Flash, the font file size is 256KB.For off-chip NAND Flash, the font file size is
Category
8MB; and the last file should not be used or verified due to the presence of bad blocks.
0x0052 254 The remaining 127 defined locations.
File identification 0x0150 176 Write 0x00.
CRC32 is calculated using the polynomial X32+X26+X23+X22+X16+X12+X11+X10+X8+X7+X5+X4+X2+X+1 .

DWIN Technology - 15 - www.dwin-global.com


COF Screen Application Development(T5L_DGUSII)
Appendix 1Record of Revision
Date Content Version
2021.12.02 First release V1.0

2022.05.05 Add 4.1 Network Communication Interface. Update chapter 1. V1.1

Update chapter 5 CFG configuration attention, background ICL file naming method and 16MB Flash
2022.06.10 V1.2
product memory description.
If you have any questions about the use of this document or any DWIN product, or if you would like more
information about DWIN products, please contact us.
Tel: +86 400 018 9008
QQ: 400 018 9008
Email: [email protected]
Thank you all for continuous support of DWIN, and your approval is the driving force of our progress!

DWIN Technology - 16 - www.dwin-global.com

You might also like