STM32 notes: high precision pulse width meter dual input capture + DMA mode

This paper introduces how to use STM32F107VC(Waveshare Open107V experimental board) to realize high-precision pulse width meter (duty cycle). Development environment: IDE: STM32CubeIDE 1.8 Firmware library: stm32cube_ FW_ F1_ V1. eight point four Function generation: RIGOL DG5072 function signal generator generates 0-3.3V square wave, 10KHz ...

Posted by sellfisch on Tue, 01 Feb 2022 14:12:47 +0100

Use of queue in CMSIS/FreeRTOS

In the embedded system with streaming data processing, queue is almost inevitable to be used, but the FreeRTOS routines provided by most development boards do not contain queue, so you have to study it yourself. This time, my example inserts the data received from the serial port into the queue by bytes and then let another thread process it. T ...

Posted by kaushikgotecha on Tue, 01 Feb 2022 05:24:37 +0100

STM32 timer triggers ADC multi-channel continuous sampling, and DMA caches the results

The ADC of STM32 is very flexible. In terms of sampling trigger, it supports not only software trigger, timer or other hardware circuit automatic trigger, but also automatic trigger of the next channel / round conversion after conversion. Storage of conversion results: it supports not only software reading and transfer, but also DMA automatic s ...

Posted by Snake PHP on Mon, 31 Jan 2022 10:16:58 +0100

STM32_ Basic introduction_ NVIC interrupt priority management

Continue to pay attention to Ajie's online update of nanny notes ~ ~ adhere to the daily shift Reference: STM32 Chinese reference manual V10 - Chapter 9 interrupts and events catalogue 1, NVIC interrupt priority grouping Interrupt priority packet register Describe the difference between preemption priority and response priority: Interru ...

Posted by gregor63 on Sun, 30 Jan 2022 16:32:55 +0100

While my roommate was playing the peak game, I quietly learned the SysTick timer of STM32

CSDN blog home page ID : Eterlove One by one, record my study and life! Standing on the shoulders of giants of Giants! This article is original, please indicate the source and author! preface We often use delay to complete some project requirements, and often use the software delay achieved by CPU empty cycle to realize it. Its method has t ...

Posted by turtlefox on Sun, 30 Jan 2022 01:45:51 +0100

STM32 learning notes (four serial port communication 3 serial port register library function configuration)

1, Common serial port register USART_SR status register Function: the status register is applicable to detect the status of the serial port at this time. Mainly focus on two bits: RXNE and TC (bits 5 and 6). RXNE (non empty read data register): when this bit is set to 1, it indicates that data has been received and can be read out (that is, t ...

Posted by jumpingmatflash on Fri, 28 Jan 2022 18:12:59 +0100

[lianshengde W806 starting notes] IX. DMA

Windows 10 20H2 HLK-W806-V1.0-KIT WM_SDK_W806_v0.6.0 From W806 MCU chip specification V2.0 and WM_W800_register manual V2.1 DMA controller It supports up to 8 channels and 16 DMA request sources, and supports linked list structure and register control. Amba2.0 standard bus interface, 8 DMA channels Support DMA operation based on me ...

Posted by pipe_girl on Thu, 27 Jan 2022 18:14:06 +0100

STM32 porting modbus communication protocol concise tutorial

  catalogue 1, Content discussed in this paper 2, Tools and source code 3, Modbus overview 4, Modbus RTU communication protocol 5, Complete Modbus I / O code 6, Complete Modbus logic function 7, Testing and verification 1, Content discussed in this paper This paper briefly introduces the Modbus communication protocol, realizes t ...

Posted by cidesign on Thu, 27 Jan 2022 08:45:09 +0100

Summary of assembly language used in freertos

Multiple memory access exclamatory mark! Indicates the value of the base register Rd to be incremented or decremented. The timing is before or after each access. Increase / decrease in words (4 bytes). Ldr R1,=0x10000000 //Starting address of transmitted data 0x10000000 LDMIA R1!,{R0,R4-R6} //Load from left to ...

Posted by karikamiya on Wed, 26 Jan 2022 11:51:53 +0100

STM32 multi-channel ADC sampling to obtain analog output data of GY-25A inclination sensor

STM32 multi-channel ADC sampling to obtain analog output data of GY-25A inclination sensor GY-25A module is a new type of inclination sensor module, which has the functions of X-axis and Y-axis analog angle output and serial port angle output. This paper introduces that STM32 obtains the angle data of GY-25A analog output and adopts the multi- ...

Posted by Guffi on Tue, 25 Jan 2022 08:07:06 +0100