宋元浩

STM32F103C8T6 development board -- Lab_F103C8_1.0

 
Overview






1. Introduction to Lab_F103C8_1.0 development board Lab_F103C8_1.0 development board is a mini development board designed based on STM32F103C8T6. The video explanation is based on STM32CubeMX. The video tutorial will continue to be updated on Station B. Design concept: mainly based on peripheral interface expansion, the peripheral hardware circuits try to give full play to the hardware characteristics of the F1 series, including LED, independent buttons, serial ports (TTL and RS485 interfaces), CAN interfaces, IIC interfaces, SPI interfaces, USB slaves, etc. STM32F103C8T6 small capacity F1 series, main parameters: 20KRAM, 64KROM, up to 72M main frequency, 48 pins, etc. Although small, but the internal functional peripherals are complete, it is not inferior to learning STM32 program design and functional circuit design, very suitable for entry, combined with the mini development board design, easy to carry. 2. B station video link Lab_F103C8_1.0 development board programming tutorial uses STM32CubeMX to design applications. The explanation is unique and contains a lot of dry goods. 01_GPIO, STM32CubeMX configures GPIO usage 02_UART_TX_1, STM32CubeMX configures UART data transmission 02_UART_TX_2, STM32CubeMX configures UART data transmission 02_UART_RX, STM32CubeMX configures UART data reception 02_UART_RX_DMA_IDLE, STM32CubeMX configures UART's DMA+IDLE to achieve multi-data reception 03_kernel, WSOS task manager transplantation 04_Borad, based on WSOS task manager to implement LED, button and buzzer driver functions 05_EXIT, STM32CubeMX configures EXIT external interrupt 06_TIM_UPDATE, STM32CubeMX configures TIM 07_Capture, STM32C ubeMX configures Capture08_HC-SR04, STM32CubeMX configures ultrasonic ranging module 09_VS1838, STM32CubeMX configures infrared decoding 10_RTC_1, STM32CubeMX configures RTC11_RTC_2, STM32CubeMX configures RTC12_PWM, STM32CubeMX configures PWM output 13_GT20_1, STM32CubeMX configures SPI, STM32 SPI application 13_GT20_2, GT20L16S1 dot matrix information serial port printing 14_OLED_1, STM32CubeMX configures IIC interface, transplants OLED driver function 14_OLED_2, OLED driver display function design
2. Data download Since Baidu Netdisk downloads slowly, all course-related resources are placed on Xueyin Online, with a faster download speed. 1) Development environment resource download link: Development environment building resources 2) Tutorial code download download link 01~09 code download 10~14 code download
3) If you don't have a Xueyin online account, you can download the code directly in the project attachment
. III. Lab_F103C8_1.0 development board interface introduction 1. Minimum system design The main chip STM32F103C8T6, with a backup battery, is convenient for RTC (real-time clock) experiments, with button reset, high-speed clock 8M, low-speed clock 32.768, design a 6-pin mode switching interface, download interface leads PA13, PA14, use SWD download. 2. LED interface circuit Design three LEDs, common positive connection 3.3V, low level low level light up. LED is the best carrier for entry-level GPIO operation, and also the operating status of electronic equipment
3. Key interface circuit Design 4-way key input, independent key connection method. SW1 high level input, SW2, SW3, SW4 low level input, MCU's GPIO with pull-up and pull-down input, different level input buttons can experiment with different level input program design. 4. Serial communication interface circuit STM32F103C8T6 has 3 serial port outputs, serial port 2 is used as RS485 interface output, and MAX485 is used as level conversion interface chip. Serial port 1 and serial port 3 are TTL level interfaces, and the corresponding key is the FT (5V voltage resistance) pin interface power supply selection 5V, which is convenient for expanding functional modules. At the same time, the input pin is connected to the pull-up circuit to stabilize the input level. 5. SPI, IIC interface circuit SPI, IIC are the main interfaces for MCU to communicate with peripheral functional chips and modules. The design of SPI, IIC interface is mainly to facilitate the expansion of chips and modules of corresponding interfaces, because the corresponding IO are FT pins, and the interface power supply uses 5V to enhance the scalability.
7. OLED interface circuit OLED interface uses IIC interface, so the development board can only use OLED with IIC interface. In view of the fact that there are two power supply interfaces for OLED on the market, the power supply is not dead in hardware, and the power supply method can be freely selected by placing the pad. 8. SPI memory chip interface circuit The development board is designed with W25Q128, 16M SPI FLASH, which can be used to experiment with SPI communication, static storage, file system, USB flash drive, etc. A font chip, GT20L16S1Y, is also designed to facilitate OLED display of Chinese characters. 9. Buzzer and thermistor interface circuit The buzzer is driven by a transistor, and low level is effective. The buzzer is a necessary prompt device on electronic equipment. The thermistor is used to experiment with MCU AD conversion. 10. USB and CAN interface circuit The USB and CAN interfaces are typical peripherals of the STM32 series MCU. Development based on STM32CubeMX makes the driver design simple. It is also very important to experiment with these two interfaces on an entry-level development board. The interface circuit uses a short-circuit capacitor to switch the USB and CAN interfaces, and the CAN uses the TJA1050 level conversion chip. 11. Automatic download interface circuit The development board is designed with USB to serial port interface. The chip uses CH340C. Only RTS and DTR pins are used to control BOOT0 and RST to realize automatic serial port download. In the absence of STLINK debugger, USB MINI interface line can be used for downloading. 12. Physical display 





 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-18 22:58:32

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号