uc/OS System Porting

1. Use CubeMX to build STM32F103HAL Library Select the STM32F103C8 chip, as shown below, to configure RCC and SYS and serial USART1 Set pin PC13 to GPIO_Output Set HSE, PLLCLK, HCLK to 72HZ in Clock Setup Project 2. Download uCOSIII source code Source connection: https://pan.baidu.com/s/10RqsDRecbmVteWmDv2oUNQ Extraction Code: 1234 Once ...

Added by jobs on Wed, 08 Dec 2021 02:05:59 +0200

32 single chip microcomputer controls the rotation of YINGDIAN T80 motor

32 single chip microcomputer controls T80 brushless motor through good YINGDIAN regulation Control principle of electric regulator Why do we need electrical regulation The speed, positive and negative indicators of brushless motor are realized by changing the duty cycle and frequency of control signal (PWM). We can easily control PWM wit ...

Added by alivec on Mon, 06 Dec 2021 21:26:31 +0200

STM32F103C8T6 porting uC/OS-III system based on HAL Library

catalogue 1, Using CubeMX to build STM32F103 HAL Library Project   2, Prepare uC/OS-III source code 3, Prepare project documents ​   4, HAL library project migration file 1. Configure uCOS related files for HAL project   2,   Add uCOS related files to the project   3. Add and modify code [primary] (realize sim ...

Added by tomfra on Sun, 05 Dec 2021 10:58:03 +0200

Transplanting uCOS based on HAL library STM32F103C8T8

1. Get uC/OS-III source code 1.1 Download Method Official (slower) http://micrium.com/downloadcenter/Baidu Netdisk (faster, recommended) Links: https://pan.baidu.com/s/1WJpJzT9ha2ua3pJzz4WtBg Extraction Code: 5jt8 1.2 File preparation When the download is complete, open the folder and you can see four file directories: New folder: uC-B ...

Added by cdoyle on Sat, 04 Dec 2021 19:46:16 +0200

STM32 uses RTC(hal)

1, Introduction to RTC 1.1 INTRODUCTION The abbreviation of real-time clock is RTC(Real_Time Clock). RTC is an integrated circuit, usually called clock chip.-The real-time clock is an independent timer. The RTC module has a set of continuous counting counters, which can provide the function of clock calendar under the corresponding softwa ...

Added by yellowepi on Mon, 29 Nov 2021 22:12:51 +0200

An example of OLED screen display based on SPI protocol

catalogue   1, SPI protocol 1.1 SPI introduction 1.2 SPI four wire one point three   SPI four working modes   one point four   SPI sequence diagram   2, Project realization 2.1 experimental preparation 2.2 font extraction 2.3 program code 2.4 hardware connection 2.5 achievement display 3, References Con ...

Added by dsdsdsdsd on Sun, 21 Nov 2021 05:12:04 +0200

Punctual atom STM32F103 (Elite version) -- SystemInit clock, Systick timer, delay delay function

Refer to STM32F1 Development Guide (Elite version) library function version - Chapter 5 1, SystemInit clock initialization function   Use the V3.5 library function, which will be called automatically after system startup:     startup_ stm32f10x_ In XX. S file: ; Reset handler Reset_Handler ...

Added by shantred on Sat, 20 Nov 2021 12:29:38 +0200

Communication between PCs and font reading and display of dot matrix Chinese characters

Connection settings Two usb ports G-G,3.3-3.3,TX-RX,RX-TX Open the serial port assistant to select the file and set the baud rate 1152900 Check accept data to file to view the directory where the file is saved, and then open it after transmission Accepted The higher the baud rate set for file transfer, the shorter the time to transfer ...

Added by John Rowe on Fri, 19 Nov 2021 14:25:59 +0200

STM32 serial communication interrupt configuration

1, There are 8 steps about how to configure serial port transceiver through interrupt 1. Enable serial port clock and enable GPIO clock 2. Pin multiplexing mapping 3.GPIO port mode setting 4. Serial port parameter initialization setting 5. Enable interrupt initialization NVIC 6. Enable serial port 7. Write interrupt processing function ...

Added by SteveFrost on Thu, 18 Nov 2021 03:30:50 +0200

FreeRTOS learning notes

FreeRTOS programming conventions port means interfaceint type is never used, only short and long types are used. In the MCU of Cortex-M kernel, short is 16 bits and long is 32 bitsData type redefinition is implemented in the header file portmacro.h *In keil, the default char is unsigned Variable prefix The prefix of char type variable is c,T ...

Added by hoolahoops on Wed, 17 Nov 2021 14:45:49 +0200