STM32F103 beginner's opinion

Publisher:春林初盛Latest update time:2017-09-24 Source: eefocusKeywords:stm32f103 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Preemption priority and response priority are actually two priorities contained in an interrupt. The former is a level division of preemption priority, and the latter is a priority division of the same preemption priority.


For example: if the preemption priority of interrupt A is higher than that of B, then the interrupt of A can be triggered in B, ignoring the response priority; if the preemption priorities of A and B are the same, then the response priorities of A and B determine which one responds first.


2. I still don't quite understand the difference between the MCU port and the serial port. The serial port is a physical interface, and the port is a logical window, just like a hard drive, it does have 160G, this is a physical concept;


You divide it into areas ABCD, each with 40G. This is the logical concept.


3. I don’t have a good grasp of the basics of C under MDK. I don’t understand structures and structure pointers, typedef types, volatile and const type modifiers, and I don’t understand u8, u16, u32, vu32, etc.


In short, there is still a long way to go in learning stm32. I have almost forgotten the C and 51 I learned before. I feel that learning 32 is a bit confusing. Well, never mind. I won’t do anything else during the winter vacation. I will devote my youth to it. I hope I can learn something. . .


typedef


Type Aliases


typedef


Type Aliases


typedef


Type Aliases


typedef


Type Aliases


Keywords:stm32f103 Reference address:STM32F103 beginner's opinion

Previous article:STM32F103 Learning Notes (Part 2) Creating a Project Template + Lighting up LED + Buzzer
Next article:Experiment on sending and receiving data using the STM32 serial port

Recommended ReadingLatest update time:2024-11-15 18:19

STM32F103VCT6 low power test (standby mode)
Only the standby mode was tested, which achieves the lowest power consumption of the system.  The schematic diagram is as follows. All soldered at the beginning, S2 is used to enter the standby mode, and S1 is used to wake up.  The test procedure is: #include "stm32f10x.h"#include "system_stm32f10x.h"void Sys_Standby
[Microcontroller]
STM32F103VCT6 low power test (standby mode)
Program for using USART of STM32f103 digital power acquisition circuit and connecting with Bluetooth
The STM32 has rich serial port resources and powerful functions. The STM32F103C8T6 used in this project can provide up to 3 serial ports, with a fractional baud rate generator, support for synchronous single-line communication and half-duplex single-line communication, support for LIN, support for modem operation, sma
[Microcontroller]
Program for using USART of STM32f103 digital power acquisition circuit and connecting with Bluetooth
STM32F103 serial port DMA configuration example
1. Serial port configuration void USART3_Configuration(uint32_t Baudrate) { GPIO_InitTypeDef GPIO_InitStructure; USART_InitTypeDef USART_InitStructure; NVIC_InitTypeDef NVIC_InitStructure; RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3,ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE); GPIO_InitS
[Microcontroller]
STM32F103 PB port is used as an independent button
Some time ago, I drew a minimum system board for STM32F103 due to the project needs. The project requires a lot of hardware resources, so I used the PB port as an independent key input port. After the board was proofed, everything else was fine, but there was a problem when testing the independent key. The scanning mod
[Microcontroller]
STM32F103C8T6 implements serial port IAP method to upgrade firmware
First download the official STM32F10X IAP Bootloader source code, STM32F10x_AN2557_FW_V3.3.0. Source code package address: http://download.csdn.net/download/yunyin_link/10151170 Use Keil4 to open the project code STM32F10x_AN2557_FW_V3.3.0\Project\IAP\MDK-ARM\IAP.uvproj Step 1: Because we are using STM32F103C8T6
[Microcontroller]
STM32F103C8T6 implements serial port IAP method to upgrade firmware
stm32f103c8v6 multiple PWM output
Refer to the output experiment of the MINI board of the Atomic PWM output at the right time. First, attach the PWM output channel The code provided by Atom only has one PWM, but the timer configuration does not need to be changed. We need to modify the PWM.c file 1. Add initialization of channel 2 TIM_OC2Init(T
[Microcontroller]
stm32f103c8v6 multiple PWM output
STM32F103+HAL+PWM+DMA+WS2812
As the title says: Use the HAL library to control WS2812 through the DMA mode of stm32f103r8's PWM The hardware uses TIM3's CHANNEL1. The hardware configuration is as follows: The clock is configured as a normal clock. The arr required for timer 3 to generate a 1.25us cycle is 89 (calculation omitted)
[Microcontroller]
STM32F103+HAL+PWM+DMA+WS2812
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号