You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DeveloperAlpha 48b48663ce -u origin main 3 months ago
..
EIDE -u origin main 3 months ago
EWARM -u origin main 3 months ago
Inc -u origin main 3 months ago
MDK-ARM -u origin main 3 months ago
Src -u origin main 3 months ago
readme.txt -u origin main 3 months ago

readme.txt

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

================================================================================
                                样例使用说明
                             Sample Description
================================================================================
功能描述:
此样例演示了USART的自动波特率检测功能。调试助手发送一个字符0x7FMCU反馈字符
串Auto BaudRate Test。

Function descriptions:
This sample demonstrates the automatic baud rate detection feature of USART. 
When the debugging assistant sends a character 0x7F, the MCU will respond with 
the string: "Auto BaudRate Test".

================================================================================
测试环境:
测试用板PY32F403_STK
MDK版本5.28
IAR版本9.20
GCC版本GNU Arm Embedded Toolchain 10.3-2021.10

Test environment:
Test board: PY32F403_STK
MDK Version: 5.28
IAR Version: 9.20
GCC Version: GNU Arm Embedded Toolchain 10.3-2021.10

================================================================================
使用步骤:
1. 编译并下载程序到MCU
2. 通过USB转TTL模块连接PC与STK板STK板与USB转TTL模块的连线方式如下
   STK板        USB转TTL模块
   PA02(TX) --> RX
   PA03(RX) --> TX
   GND      --> GND
3. PC端打开串口调试助手正确连接上通讯COM口波特率设置为9600
4. 调试助手发送一个字符0x7FMCU反馈字符串Auto BaudRate Test

Example execution steps:
1. Compile and download the program to the MCU;
2. Connect the PC and STK board with a USB to TTL module. The connection between 
   the STK board and the USB to TTL module is as follows:
   STK board        USB to TTL module
   PA02(TX) --> RX
   PA03(RX) --> TX
   GND      --> GND
3. Open a serial debugging assistant on the PC and connect to the appropriate 
   COM port with the baud rate set to 9600;
4. The debugging assistant sends a character 0x7F, and the MCU responds with 
   the string "Auto BaudRate Test";

================================================================================
注意事项:
1. 不注释掉宏AUTO_BAUD_MODE0main.c中上位机发送1字节的波特率检测0x7F如果
   MCU检测成功返回字符Auto BaudRate Test
2. 注释掉宏AUTO_BAUD_MODE0main.c中上位机发送1字节的波特率检测0x55如果MCU
   检测成功返回字符Auto BaudRate Test

Notes:
1. If the AUTO_BAUD_MODE0 macro is not commented out (in main.c), when the host 
   computer sends a 1-byte baud rate detection signal 0x7F, the MCU will respond 
   with the string: "Auto BaudRate Test".
2. If the AUTO_BAUD_MODE0 macro is commented out (in main.c), when the host 
   computer sends a 1-byte baud rate detection signal 0x55, the MCU will respond 
   with the string: "Auto BaudRate Test".

================================================================================