|
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)HEX
Firstly,store the HEX data to be displayed into the 22.bin file that can load data to RAM when power-on, so the HEX control page displays the HEX data.
BCD function:
The HEX control turns the BCD function on and off by encapsulating the properties of the control with a description pointer, and by modifying the description information in conjunction with key value returns.
For example,
The data(10 11 12 13 14 15) is stored in the address of 201CH of the 22.bin file,The description pointer is set to 5020H.
As we know,the high_byte of the address of 5024H controls the statue of BCD function,so Write 0x86 to the 5024H high byte to enable BCD function,0x06 to disable.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|