Project description: The STM32F103RCT6 minimum system board uses a CH340C USB-to-serial port chip with a built-in crystal oscillator. It has a 5V to 3.3V LOD with a maximum current of 1A, and a SWD download interface. BOOT0 and BOOT1 have leads to facilitate the user to set various settings. In this mode, most of the pins of the microcontroller are drawn out with 2.54mm double row pins to facilitate connection with external circuits. The pins are marked on the back of the PCB. This minimum system board can be downloaded with one click. One click refers to downloading on the computer. Click to download.
Circuit introduction: This system is a minimum system circuit of a microcontroller. It is the same circuit as my previous STM32F103C8T6, but the microcontroller is changed to STM32F103RCT6. This microcontroller has 64 pins. Many industrial control boards use this microcontroller. Circuit The minimum board that makes up my C8T6 has already been explained, so I will reiterate it here.
The red circle 1 is the USB to serial port circuit. There is no crystal oscillator to reduce the board area. A TVS transient suppression diode is added at 5V to prevent the CH340C chip from being damaged by excessive instantaneous voltage. Because the board will not be soldered without this material. There is no such material in the photo of the soldered component. I hope everyone will still solder this part. Inside the red circle 2 is a 5V step-down 3.3V LDO low-dropout voltage regulator. Red circle 3 is the automatic download and automatic operation control circuit. The following figure shows the startup configuration setting mode diagram:
To understand the automatic download and automatic operation control circuit, you must first understand the startup configuration setting mode of STM32. I am using the serial port download, so through the jumper, select BOOT0 to set high level and BOOT1 to set low power. flat. In the circuit in red circle 3, Q2 controls BOOT0 to be high level. Q1 is used to reset the microcontroller to run the user program. You can see it by looking at the timing diagram below. When USB is using serial port communication to download the program, DTR and RTS respectively. First, DTR maintains a high level for almost more than 100 milliseconds and then turns to a low level. RTS remains at a low level until the program is downloaded. Then DTR and RTS are both high at the same time. When RTS is low, it just passes. Q2 sets BOOT0 to high level to realize serial port mode download. BOOT1 requires the user to set low level through short-circuit jumper. After downloading the user program, DTR will be set to high level earlier than RTS, and Q1 will lead Pass, pull down the NRST voltage to achieve reset, Q2 will also be cut off. The BOOT0 pin has a 100K resistor to ground and is set to low level, then the microcontroller will be in the user flash memory storage mode. At this time, the capacitor of the reset circuit will slowly fill up. , you can slightly increase the pull-up resistor of the reset circuit.
Photos of the empty PCB board and after soldering the components
There is a lighting program uploaded in the attachment. Use the PC13-GPIO pin to connect a 470R resistor and a light-emitting diode to the 3.3V positive power supply to flash. The ISP download software uses domestic software. When automatically downloading, everyone must set the same settings as those in the red circle, otherwise the download will not be successful. BOOT1 must be set to ground level, BOOT0 must also be set to high level, and the rest It’s nothing, you can search online and download this software.
The picture below is a photo taken when the LED flashes automatically after downloading the program.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet