COF Screen Application DevelopmentT5L DGUSII20220610
COF Screen Application DevelopmentT5L DGUSII20220610
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.
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.
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.
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.
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.
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.
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.
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
Device
Description 0x450 48 Reserved. All 00
Reserved
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).
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.
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.
Normal operation
0x0C 1 and startup 0x00-0x64, unit 1%
brightness
Backlight
standby Standby
0x0D 1 0x00-0x64, unit 1%
configuration brightness
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.
0x14 1 H_W
0x15 1 H_S
0x19 1 V_W
0x1A 1 V_S
0x1D 1 V_E
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
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.
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.
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.
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!