迪文科技论坛

 找回密码
 立即注册
搜索
查看: 1164|回复: 1

[DEMO]DMG10768C080_03W T5L DGUS II project

[复制链接]

567

主题

167

回帖

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11966
发表于 2020-9-3 17:39:59 | 显示全部楼层 |阅读模式
The demo mainly demonstrates the main functions of the T5L_DGUSII platform,For a better demo, the description pointer and the 22. Bin file of power-on loading data are used.
For example,
(1)Turn touch sounds on or off
The variable address of 0x80 starts with a 2-word storage instruction:OFF(0x):5A 00 00 30,ON:5A 00 00 38
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to 0x80 to close and open the touch sound.

(2)Reset
The variable address of 0x0004 starts with a 2-word storage instruction(0x):55 AA 5A A5,
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to 0x0004 to reset.

(3)Save into flash
The variable address of 0x0008 starts with a 4-word storage instruction(0x):Save: A5 00 00 00 10 06 00 02,Read:5A 00 00 00 10 06 00 02
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to 0x0008 to Save and Read.

(4)Draw circle
Use basic graphic control.
The instruction(0x): 0005 0001 00FA 0168 0040 F800
So,we just need store the instruction into the 22.bin file that can load data to RAM when power-on,
And then,configure the sync control,after pressing, load the data to the address of basic graphic control to display circle.
With the increment adjustment button,Modify the radius of the circle, the size can be adjusted.

(5)Data window
Combined with sliding gesture adjustment to realize data scrolling,
Cooperated with the increment adjustment to realize the increase and decrease of data,
Combination of description pointer to achieve color and font size changes.

(6)Curve
In order to display curve, just store the instruction into the 22.bin file that can load data to RAM when power-on,
and then,configure the sync control,after pressing, load the data to the address of curve control to display curve.
With the description pointer, the curve can be moved up and down, scaled, and color changed.
For example,
Store the curve data in the variable space 0x1100 and return to the variable address 0x0310 by pressing,
Instructions(0x):5A A5 01 00 01 0C 00 00 00 C8 00 00 00 C8 00 00 00 C8 00 00 00 C8 00 00 00 C8 00 00 00 C8
0x5020 is the description pointer,
So, the drag adjustment control setting the address of the 5025H  to drag the curve up and down,
the increment adjustment control setting the address of the 5029H can realize the curve scaling,
easily,Configure the color value to 0x5027 to change the color of the curve.

本帖子中包含更多资源

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

x
回复

使用道具 举报

4

主题

8

回帖

81

积分

注册会员

Rank: 2

积分
81
发表于 2024-10-12 18:23:04 | 显示全部楼层
谢谢,已下载
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 00:51 , Processed in 0.081706 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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