"Industry Control Chat" is a professional information and service platform under the "Machinery Industry Press" brands "Machinery Industry Control" and "Machinery Industry Communication", dedicated to helping readers keep up with cutting-edge information and master core technologies in the fields of electricity, communication, and automation, quickly enhancing their professional competence. Click on the blue WeChat name to quickly follow us.
In today’s rapidly developing Internet of Things (IoT) technology, we are stepping into an intelligent era of connectivity. Embedded system design, as the cornerstone of the IoT, plays an increasingly important role. It not only connects the physical world with the digital world but also, with its powerful data processing and control capabilities, endows IoT devices with intelligence and life. Today, let us take the development of the DGUS color LCD display as an example and enter the wonderful world of embedded system design!
The DMT32240C035_06WN is a DGUS color LCD display produced by Beijing Dwin Technology Co., Ltd. This display is based on the T5 dual-core CPU, with a GUI and OS core frequency of 250MHz and very low power consumption. The physical size is 3.5 inches, with a display resolution of 320×240 pixels, no touch function, powered by 5V, using a 16-bit color palette (5R6G5B), and can display 65K colors with 100 levels of brightness adjustment.
The DGUS color LCD display has two external interfaces: a ribbon cable and an SD card slot. The ribbon cable consists of a UART serial communication port and power (four lines: VDD, TXD, RXD, VSS), connected to the mainboard of the ventilator to send display commands from the mainboard to the color LCD display; the SD card slot is used to download display interfaces and configurations developed with DGUS.
The DGUS color LCD display can easily display Chinese characters, numbers, symbols, graphics, images, curves, dashboards, etc., through the DGUS development software, making subsequent modifications particularly easy, fundamentally changing the development method of LCD displays that use dot matrix displays, saving a lot of manpower and resources. DGUS differs from the general development method of LCD displays, representing a completely new development approach. The microcontroller sends display commands through the UART serial communication interface, and changes in displayed content can be achieved by page switching.
The sizes of the DGUS color LCD displays include 2.0in, 2.4in, 2.8in, 3.0in, 3.5in, 4.0in, 4.1in, 4.3in, 4.5in, 5.0in, 5.6in, 5.7in, 6.8in, 7.0in, 8.0in, and up to 21.5in in various specifications.
For detailed introductions, you can refer to the official website of Beijing Dwin Technology Co., Ltd.: http://www.dwin.com.cn/. Other domestic manufacturers producing similar color LCD displays include Guangzhou Dacai Optoelectronics Technology Co., Ltd., with the official website: http://www.gz-dc.com/.
The storage space of the DMT32240C035_06WN color LCD display is introduced as follows.
The data variable space is a maximum of 128KB dual-port RAM, where the two CPU cores exchange data through the data variable space, with each address being of Word type, and the address space ranging from 0 to 0xFFFF. The partition definitions are shown in Table 1.

Among them, the variable address range 0x0100~0x0FFF is reserved for system use, including a 2KB system variable interface, 4KB system reserve, and a 2KB voice playback write data buffer; the variable address range 0x1000~0xFFFF is available for user use. Additionally, the product will provide some basic libraries, which pre-allocate the variable address range 0xA000~0xFFFF, so the actual programming application can use the address space from 0x1000~0x9FFF, mainly for storing data variables, text variables, icon variables, and basic graphic variables. Access is done using the 0x82 (write)/0x83 (read) command, in units of words.
The DGUS color LCD display has a 64MB Flash memory as the font (icon) storage. Among them, the last 32MB is reused for font and music space. The first 32MB is divided into 128 font spaces of 256K each, with corresponding font space IDs ranging from 0 to 127, as detailed in Table 2. Users can only use space IDs from 24 to 127 to store font or icon files, meaning that the filenames must start with numbers from 24 to 127. When storing files, ensure that the storage space exceeds the file size; if the file size exceeds 256KB, it occupies multiple IDs, and the next file cannot use already occupied IDs.

The DGUS color LCD display has a dedicated 64M Flash memory for image storage, capable of storing 245 images with a resolution of 320×240, all used as background display interfaces, and named with numbers indicating their ID, allowing easy switching of display interfaces by changing the respective ID.
The T5 DWIN OS has a total of 2048 registers, divided into 8 pages for access, with each page containing 256 registers, corresponding to R0~R255.
The register page definitions are shown in Table 3.

Among them, the interface registers are used for quick access to hardware resources, as shown in Table 4.



The CFG file in DGUS II is different from the CONFIG.txt in the past DGUS. The past CONFIG.txt was generated directly by the configuration software into the DWIN_SET folder, while the CFG file in DGUS II is written by the user and manually placed in the DWIN_SET folder. Both serve similar functions, but in the CFG file, the user can configure more content; specific configuration details are shown in Table 5.

Note:
1) The CFG file cannot be generated directly through software for now; you can copy the 22.BIN file generated by the DGUS II software, edit it, and then rename the file and change its suffix.
2) The naming of the CFG file must be consistent with the product kernel used. If the DMT32240C035_06WN used is a T5UID1 kernel product, then the full name of the CFG file should be T5UID1.CFG.
3) It is recommended that users copy a CFG file from the cloud disk examples for modification. The content of the T5UID1.CFG file in the current project is shown in Figure 1.

The DGUS configuration software introduced below is the latest version DGUS_V.730 from Dwin Technology Co., Ltd.
1) Unzip the “DGUS_V730” compressed package; the files after extraction are shown in Figure 2.
2) In the extracted folder, find the “DGUS Tool V7.30.exe” file, right-click to copy the shortcut to the desktop, forming a software icon on the desktop as shown in Figure 3.


3) Once the software installation is complete, double-click the icon on the desktop to use it.
4) If the software cannot be opened after installation, a major reason may be that the necessary runtime environment driver is not installed (the software runtime environment driver refers to the driver that Beijing Dwin Technology Co., Ltd. requires during the development of the DGUS configuration software; only by adding this driver software can it run normally). If the software opens but the DGUS configuration tool is unusable, it may be because the compressed package of the installed software was not extracted on the disk where the software runtime environment driver is located. Therefore, it is best to extract the compressed package on the disk where the software runtime environment driver is located.

Recommended Reading


<Click on the book cover for details>
▊《Embedded System Design and Comprehensive Case Practices》