
Important Notice of Current Detection USB HUB Based on CH334H and AT32F403A
Regarding the Solution to the Debug Entry Error after Burning the Program:
I soldered a new piece today and encountered the same problem. After checking, I found that the memory has not been expanded. The solution is to burn the program. First use ISP or run the sram/extend_sram routine to extend the memory to 224K, which will solve the problem. Someone asked me a similar question before, but I forgot about this step at that time. I'm really sorry.
The extended memory program HEX has been added to the attachment, which can be expanded after burning. Update
log
2023-03-16 Update the first version of the source code lcd_usb_hub.zip and firmware lcd_usb_hub.hex.
Overview
CH334 and CH335 are 4-port USB that comply with the USB2.0 protocol specification. HUB controller chip, the upstream port supports USB2.0 high speed and full speed, and the downstream port supports USB2.0 high speed 480Mbps, full speed 12Mbps and low speed 1.5Mbps. It not only supports the low-cost STT mode (a single TT schedules 4 downlink ports in a time-sharing manner), but also supports the high-performance MTT mode (4 TTs each correspond to 1 port and are processed concurrently). Industrial-grade design, streamlined peripherals, can be applied to computer and industrial computer motherboards, peripherals, embedded systems, etc.
Project Description
This project is based on the CH334H QFN packaged USB2.0 HUB chip launched by Nanjing Qinheng Microelectronics Co., Ltd., which supports MTT mode. Compared with the traditional SL2.1 and SL2.2S, it improves the performance in full-speed and low-speed modes. transmission efficiency. At the same time, based on the original CH334H, four INA199s are used as differential amplifiers, and AT32F403A is used as the main control chip to complete current and voltage sampling and refresh them on the screen.
Some instructions on re-engraving
1. Please refer to Board1_1 for PCB, V1 is backed up as the previous verification board.
2. For the acrylic shell, you can refer to the "Appearance" document and export it as a DXF file for icon printing.
3. Program burning requires flying wires to test points on the PCB, which is more complicated and requires some patience.
About the program
burning method:
1. Manually compile the source code in lcd_usb_hub.zip
2. Download the ISP tool: https://www.arterytek.com/download/TOOL/Artery_ISP_Programmer_V2.0.08.zip
Press the onboard BOOT0, and then press Reset under RST, use the serial port to USB for the flying line, enter ISP mode, and then use the above tools to select the downloaded HEX file to download.
Material purchase address
1. Resistor and capacitance, purchase according to BOM
2. AT32F403ARGT7 (for reference): https://item.taobao.com/item.htm?spm=a1z09.2.0.0.58012e8d2148SX&id=668864848623&_u=e2dklb45ec14
3. CH334H (for reference only): https://item.taobao.com/item.htm?spm =a1z09.2.0.0.58012e8d2148SX&id=685199066514&_u=e2dklb45aa40
4. INA199: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.58012e8d2148SX&id=57211973 0153&_u=e2dklb457c8c
5. Sampling resistor: https:// item.taobao.com/item.htm?spm=a1z09.2.0.0.58012e8d2148SX&id=563886560114&_u=e2dklb4563a3
6. Screws (select M3* 5 (50 pieces)): https://detail.tmall.com/item.htm? id=624811454452&spm=a1z09.2.0.0.58012e8d2148SX&_u=e2dklb4557c8
7. Display (1.14 inches): https://item.taobao.com/item.htm?spm=a1z09.2.0.0.1d2b2e8dalne4B&id=6750 62075899&_u=e2dklb4532c4
7. Copper Column: M3*8 M3*5+6
display picture


