迪文科技论坛

 找回密码
 立即注册
搜索
查看: 1160|回复: 0

【reprint】【01.teaching】T5L C51 development environment construction

[复制链接]

15

主题

115

回帖

1836

积分

金牌会员

Rank: 6Rank: 6

积分
1836
发表于 2022-5-12 14:36:44 | 显示全部楼层 |阅读模式
This lesson introduces the T5L C51 development environment setup
This video is provided by diwen Developer Forum user ID Xiong Jiayu

The lecture is as follows

1、T5L Dwin screen resource introduction
The so-called T5L Deven screen here is actually a general reference, including T5L1(low resolution) and T5L2(high resolution) two versions,T5L1 chip and T5L2 chip development mode is exactly the same, the internal resources are basically the same, the most important difference is T5L2 chip can drive higher resolution LCD screen,T5L The chip is a dual-core processor, one is OS core, which is used to store the business logic code of our users. This core is actually a mature and stable 51 single chip microcomputer, with the main frequency up to 250MHZ, and the peripheral resources are much richer than the traditional 51 single chip microcomputer. The other core is GUI core, which runs a DGUS II system for specialized responsible for building and rendering GUI graphical interface, built-in 2 d hardware acceleration, we can make the graphical interface to refresh and extremely smooth switch, division of labor between the two nuclear cooperation, make our business logic code and separation between GUI graphical interface, realize the "high cohesion and low coupling" programming thought, when we need to update the graphics community in the code At the moment, our OS core can communicate with the GUI core through the "DGUS variable memory", which we will discuss in more detail in a later section

2、T5LDwin screen development mode
T5L Diwen screen development methods are diverse, Development mode can be divided into "TA instruction set development" and "DGUS development", among which TA instruction development is based on the pre-defined instruction set development, similar to the development mode of serial screen, but here we mainly introduce "DGUS development". 4, DGUS is an abbreviation of DWIN Graphic flexibility Software, and under "DGUS development", depending on the type of code placed in the OS core, it can be divided into "DWIN OS development" and "C51 development". These two types of development are mutually exclusive, and only one can be selected. The specific differences are as follows:
DWIN OS development: It is divided into virtual machine layer and DWIN OS layer. The kernel firmware of virtual machine layer (T5L_OS*.bin) is officially provided by Divin, while the code of DWIN OS layer is written by our users. DWIN OS layer is run based on virtual machine layer, so it is necessary to download the kernel firmware of virtual machine layer before downloading DWIN OS programs,DWIN OS programs can be written in C language or assembly language, when written in C language, the official DWIN C Compiler software is used to compile the project, when written in assembly language, the official OSBuild software is used to compile the project

C51 development: this is our traditional 51 microcontroller development method, written in C language, the use of Keil integrated development tools, the use of DownLoadFor8051 tools for code download,C51 development method is all the development of efficiency and the highest ability to customize, so this video tutorial is the C51 development method

3、Compare that to other GUI development approaches on the market
(1) Use third-party GUI libraries like Emwin,touchGFX,littleVGL, etc  

(2) Use serial screen to develop
This simple development way, is not too high demands on the hardware, but need your external a microprocessor via a serial port to communicate and serial interface screen, is a way of the development of the instruction set, different manufacturer of serial interface screen, instruction set will be different, because through the serial port communication, slow, for the interface of a large number of data update project, so the development way is overwhelmed



(3) Developed using T5L Dwin SCREEN C51i
It is in this video tutorial teaching way of development, this way can be said to be a desire in GUI development, development of simple, of low hardware requirements, does not need external a microprocessor, because the required hardware modules are T5L chip to encapsulate inside, so for us, this way of hardware cost should be the lowest, this way can realize the cool Smooth, GUI interface, the ability of the custom is high also, if a blemish, that is if the T5L internal OS kernel (that is, 8051 nuclear) into a 32-bit microprocessor is better, a peripheral resources will be more difficult, IO pin number will be more available, then in the face of large projects don't panic, I believe, the official also are moving in This direction diligently!

4、Development environment setup
(1)Install the Keil integrated development tool
(2)Install the DGUS Tool interface design Tool
(3)Install the DownLoadFor8051 download tool  
(4)Install the AGDI driver  
(5)Installing the Serial Port Driver

5、Create a C51 project template
For details, see the documentation



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-11-22 00:31 , Processed in 0.104104 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表