STM32 interrupt and DMA communication programming

1, Interrupt Data output mode: Interrupt process: Interrupt program execution process: Function of interrupt: 1. It can solve the contradiction of data transmission between fast CPU and slow external devices. 2. The CPU can serve multiple external devices in time-sharing to improve the utilization of the computer. 3. The CPU can handle th ...

Posted by predator on Mon, 08 Nov 2021 21:22:44 +0100

9 51 single chip microcomputer - (HC-SR04) ultrasonic ranging module

4.9 (HC-SR04) ultrasonic ranging module 4.9.1 physical drawing of ultrasonic module There is no ultrasonic ranging module on the experimental board, which is used in the form of external module. Figure 4-9-1 Figure 4-9-2 Function introduction of GPIO port of ultrasonic module: (1) VCC supplies 5V power (2) . GND is the ground wire ( ...

Posted by bradcis on Mon, 08 Nov 2021 06:44:27 +0100

STM32 interrupt and DMA communication programming

1, Experimental principle The whole process of interrupt is divided into interrupt occurrence → interrupt processing → interrupt return. Interrupt occurrence: when the CPU is processing an event A, another event B occurs and requests the CPU to handle it quickly.Interrupt processing: when the CPU receives the request, it pauses t ...

Posted by jaygattis on Sat, 06 Nov 2021 21:16:30 +0100

Start up process analysis of STM32 MCU

Preparatory knowledge When the MCU of ARM Cortex series is reset and powered on, it will obtain the vector table from the memory address of 0x00000000. The user software can also modify the storage address of the vector table by writing to the VTOR register. This value is equivalent to flash_ The offset of the base address, so that the program ...

Posted by rainbowsntoffee on Wed, 03 Nov 2021 19:48:08 +0100

[FPGA serial of punctual atom] Chapter 26 infrared remote control experiment - FPGA Development Guide from the new starting point of punctual atom_ V2.1

1) Experimental platform: new starting point V2 development board of punctual atom 2) Platform purchase address: https://detail.tmall.com/item.htm?id=609758951113 2) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-300792-1-1.html 3) Students interested in punctual atomic FPGA can add group d ...

Posted by shah on Wed, 03 Nov 2021 05:08:42 +0100

[STM32] realize serial communication based on STM32F407 interrupt mode

1, Interrupt introduction Specific introduction and reference articles: [STM32] lighting of interrupt switch based on STM32F407 2, Interrupt mode to realize serial communication 1. New construction Create an STM2CubeMX project for STM32F407: 2. Project setting Setting RCC Set the high-speed external clock HSE and select the external ...

Posted by jonnyw6969 on Tue, 02 Nov 2021 18:18:23 +0100

STM32 CANFD Basics

catalogue Which STM32 have CANFD peripheralsReference documentsCAN-FD characteristicsCAN-FD formatCAN 2.0 VS CAN-FDSTM32 FDCAN peripheral characteristicsBit time and sampling pointMessage RAMFilter settingsRx FIFORx Buffer VS Rx FIFOTx Buffer, Tx FIFO, Tx QueueOperation modeTransceiver delay compensation TDCClock calibrationLow power modeU ...

Posted by drcphd on Mon, 01 Nov 2021 17:04:02 +0100

STM32 firmware library configures PWM output for use with KEIL logic analyzer

This article belongs to the production of STM32 balance car. It mainly discusses and analyzes how to use STM32 to output PWM, and use KEIL's own simulation logic analyzer to check the PWM waveform. preface As a saying goes, the best way to learn something is to speak it and record it yourself. The learning of STM32 balance car is a lon ...

Posted by guest on Mon, 01 Nov 2021 10:13:18 +0100

Serial communication test bull knife

1, USART serial communication program of STM32 1.USART introduction 1. Baidu Encyclopedia: Universal synchronous / asynchronous serial receiver / transmitterUSART is a full duplex universal synchronous / asynchronous serial transceiver module. The interface is a highly flexible serial communication device. 2. Main features Full dupl ...

Posted by lkq on Sat, 30 Oct 2021 14:54:11 +0200

Serial Communication Trial Knife - STM32 Serial Communication USART Output Hello world

1. Introduction to USART Universal Synchronous Asynchronous Receiver and Transmitter is a serial communication device that provides flexibility for full duplex data exchange with external devices. Unlike USART, there is also a UART(Universal Asynchronous Receiver and Transmitter), which cuts out the synchronous communication function on ...

Posted by willpower on Thu, 28 Oct 2021 20:21:48 +0200