当前位置:网站首页>Hetai ht32 & taojingchi tjc--t0 serial port screen learning notes
Hetai ht32 & taojingchi tjc--t0 serial port screen learning notes
2022-07-21 20:25:00 【LiangWF22】
Set up the serial port screen development environment
Needless to say, the advantages of serial port screen , All the teachers and masters who have used it say well !
Develop special PC software download : Portal Mainly used to design screen interface , Easy and convenient .
1、 After the software is installed, click new project
2、 Choose the directory you need to store , Input file name , Click save
3、 Select the corresponding device ( The equipment number is printed on the back ) I choose TJC3224T024_011
4、 Select the screen display direction and character encoding ( The default can be ), Click on OK Complete the creation of the project
Module data download : Data center http://wiki.tjc1688.com/doku.php?id=start
For the basic introduction of taojingchi screen, please refer to the brother's taojingchi series blog : Portal , The components of each part involve .
Communication between serial port screen and single chip microcomputer
If you haven't contacted the taojingchi serial port screen, you may not know how to connect the screen with the MCU .
The problems encountered may include the following :
(1) Do you need to program the serial port register of the serial port screen ?
In the passive parsing mode , Unwanted . Send statements directly through the single-chip microcomputer / Instructions can rewrite some components of the screen .
Instruction set :https://leoeinstein.lanzous.com/i4ZRUkbc1ji
example : As shown in the figure below , I want to rewrite the progress bar j0 The length of , It only needs
Send the following statement through MCU / Instructions :
change j0.val The value of is 80 Code slice of
// change j0.val Value
Usart_SendStr(COM1_PORT,"j0.val=80");//COM1_PORT It is the serial port on the single chip microcomputer ,j0.val=80 It's a specific instruction
Usart_Sendbyte(COM1_PORT,0xFF);// The following three are terminators
Usart_Sendbyte(COM1_PORT,0xFF);
Usart_Sendbyte(COM1_PORT,0xFF);
All assignment operations are in serial port transmission mode , You must add three
0xff As an end sign
And such as change t0 Of Text content by “99” Of t0.txt Code chip
as follows
Usart_SendStr(COM1_PORT,"t0.txt=");//COM1_PORT It is the serial port on the single chip microcomputer ,t0.txt="99" Is a specific statement / Instructions
Usart_Sendbyte(COM1_PORT,34);// quotes
Int2Char_Send(99);// The integer is converted to character type and sent
Usart_Sendbyte(COM1_PORT,34);// quotes
Usart_Sendbyte(COM1_PORT,0xFF);// The following three are terminators
Usart_Sendbyte(COM1_PORT,0xFF);
Usart_Sendbyte(COM1_PORT,0xFF);
COM1_PORT It is the serial port on the single chip microcomputer ,j0.val=80 It's a specific instruction , For other instructions, please refer to the information of taojingchi serial port screen .
And for SCM serial port configuration , Interested friends can refer to my previous blog post : Hetai HT32F52352 Serial communication learning notes
Serial port screen receives Terminator After that, the display will be refreshed automatically , So I want to change the number of each control / Text , As long as it is sent by MCU sentence / Instructions that will do .
(2) Well designed UI How to download the interface ?
The interface designed on the upper computer , There are two main ways to download to the serial port screen .
First of all 、 Directly through USB_TTL Burner download .
The connection method is as follows: :
Burners | Serial port screen |
---|---|
5V/VCC | 5V/VCC |
GND | GND |
TXD | RXD |
RXD | TXD |
After connecting the line, click “ download ” , After compilation, a pop-up will pop up “ Serial download ” The window of , Select the corresponding serial port number , Click on “ Go online and start downloading ” Wait for the download to complete .
The disadvantage of this method is that the speed is a little slow .
It is worth noting that , On the screen “ Pre initialization event ” Next, you need to set the baud rate of the serial port screen to be consistent with the serial port baud rate of the single chip microcomputer !
Otherwise, the communication will fail .
second 、 Download through memory card .
There is usually a metal memory card slot on the back of the screen , hold UI Copy the interface to the memory card , Then insert the memory card into the card slot , When the screen is turned on, it will automatically read the design interface file .
Faster , Especially download larger UI When you file , apparent advantages .
by the way , There are many serial port screens on the Internet UI Routine for , website : Am I
Active parsing mode , Advanced mode
Advanced mode has not been explored yet ...
Project engineering documents ( In the early generation )
A little demonstration
Areas for improvement
Function encapsulation needs to be improved
About multi page setup , If you need friends, please refer to the following blog post :
Hetai HT32– Tao Jingchi TJC–T0 Serial port screen learning notes ( Two )
Project link :https://download.csdn.net/download/LiangWF22/14909084
Backup links :
https://leoeinstein.lanzous.com/ii1X9knbibi
2021 year 1 month 12 Japan
边栏推荐
- Bert from introduction to practice notebook
- self-attention注意力原理
- 二叉树的4种遍历的递归与非递归实现
- Semantic segmentation, instance segmentation
- Some pits encountered in running TDD net
- Pytorch installation
- Solve zsh:command not found
- [PCB] Based on stm32f103rct6 joystick - Bluetooth module development board - drawing board notes sorting
- Pytorch advanced training skills
- Amy-Tabb机器人世界手眼标定(1、环境搭配)
猜你喜欢
Six relationships between UML models and classes
图的邻接表及其深度优先(DFS)、广度优先(BFS)遍历
[404] the server starts successfully, and the default page cannot be accessed
[PCB] Based on stm32f103rct6 joystick - Bluetooth module development board - drawing board notes sorting
Tensorflow GPU environment configuration
语义分割、实例分割
[PCB] Based on stm32f103rct6 rocker - Bluetooth Module Development Board - drawing Board note arrangement
Pytorch installation
NIO之Channel详解
【404】服务器启动成功,默认页面无法访问
随机推荐
Service层和Dao层真的有必要每个类都加上接口吗
Isempty and isblank
Yum install GCC error
tensorflow-GPU环境配置
Checkpoint in the deep learning source code project
解决 zsh:command not found
(笔记)吴恩达深度学习L4W2
【记录】Optisystem运行卡死,无法点击关闭、输入变量数值等问题解决方法
5. Paddlepaddle 10 lines of code deep learning image classification (cifar)
pycharm 笔记
Database connection failed
3.从零开始paddlepaddle之基本模型构建(与keras和pytorch比对)
(环境配置)TDD-net
Source code analysis of Bert model call
Idea2020 open run dashboard
Analyse du principe du Centre de configuration nacos
Web. Config custom class reading
MySQL installation failed
pytorch的安装
(笔记)吴恩达深度学习L4卷积神经网络W1