STM32F407ZE realizes Multi-sensor Detection and data upload to oneNet based on RT thread and ZigBee

1, RT thread 1. Introduction RT thread nano is a minimalist version of hard real-time kernel. It is developed by C language, adopts object-oriented programming thinking, and has a good code style. It is a tailorable, preemptive real-time multitasking RTOS. Its memory resources are very small, and its functions include relatively complete ...

Posted by believer on Wed, 12 Jan 2022 10:18:23 +0100

STM32-NVIC Interrupt Priority Grouping-Interrupt Priority Settings

STM32 - Interrupt Priority Management NVIC 1.NVIC interrupt priority grouping The full name of NVIC is Nested vectoredinterrupt controller, which is a nested vector interrupt controller. Searching the vector table in the STM32F Chinese Reference Manual will find the corresponding break instructions.The CM4/CM7 kernel supports 256 interrupt ...

Posted by drfate on Tue, 11 Jan 2022 18:34:50 +0100

STM32 USART serial communication

1, Introduction Universal synchronous asynchronous transceiver (USART) provides a flexible method for full duplex data exchange with external devices using the industry standard NRZ asynchronous serial data format. USART uses fractional baud rate generator to provide a wide range of baud rate options. It supports synchronous unidirectional comm ...

Posted by Sonic_Rage on Tue, 11 Jan 2022 11:49:03 +0100

STM32: turn on the LED with the key in the rotation training mode

summary There are two communication modes between CPU and peripherals: rotation training and interrupt; The so-called rotation training is to actively ask about a certain status to see if it is a certain value, and if so, take action; Once an interrupt occurs, it will actively notify the CPU; This chapter will study how to respond to key press ...

Posted by dreamdelerium on Mon, 10 Jan 2022 23:55:03 +0100

STM32MP157 experiment DMA (Memory To Memory)

Design requirements Use DMA to move data from memory A to memory B 1, Basic knowledge DMA (Direct Memory Access) Direct Memory Access can greatly reduce the workload of CPU. The CPU executes instructions according to the content of the code. Among these instructions, there are instructions for calculation, control program and data tr ...

Posted by tim_ver on Wed, 05 Jan 2022 16:12:10 +0100

STM32 - understanding the clock system

preface Clock system is an essential part of MCU. This paper will discuss the following problems: What is a clock?How to understand the STM32 clock structure?Why does MCU have multiple clock sources?How does STM32 configure the clock? catalogue 1, Clock introduction 2, STM32 clock tree 2.1 STM32F10X clock source 2.2 system clock 3, ...

Posted by TheSeeker on Wed, 05 Jan 2022 13:20:25 +0100

U8g2 software i2c porting to stm32

U8g2 software i2c porting to stm32 Using stm32f407, the software i2c drives the oled screen Screen is 128 * 64, 0.96 inch monochrome oled screen, driver chip ssd1306 Development environment: VSCODE+EIDE Development language: C/C + + mixed programming Step 1: prepare data U8g2 source code https://github.com/olikraus/u8g2 download Down ...

Posted by kevdotbadger on Wed, 05 Jan 2022 03:40:18 +0100

stm32 serial port custom protocol receives a string of hexadecimal data (convert two bytes into decimal data) + some basic knowledge of serial port

1, Basic storage unit bit: A digit in a binary number, which can be 0 or 1. It is the smallest unit of data in a computer. Byte s: The basic unit of data in a computer. Every 8 bits form a byte. All kinds of information need at least one byte to be stored and processed in the computer. For example, an ASCII code is represented by one byt ...

Posted by soloslinger on Tue, 04 Jan 2022 22:58:52 +0100

Bisher - acoustooptic electronic organ based on single chip microcomputer

Bisher - acoustooptic electronic organ based on single chip microcomputer Note: this resource can be obtained in WeChat official account: Kevin learning station. 1, Work display 1.1. Physical drawing of works 1.2 welding layout 1.3 PCB schematic diagram 1.4 PCB diagram 2, Design process 2.1 basic design idea of the syst ...

Posted by dthomas31uk on Tue, 04 Jan 2022 20:33:43 +0100

Key points for debugging STM32+SDIO+FATFS on platforms with DMA and CACHE

1. Preface FATFS tutorials and processes are common, and its platforms cover from 8051 core MCU to Cortex-M7 core high-performance MCU and even higher performance application processors. However, most STM32 tutorials and routines bypass this mode using D-Cache writeback mode and DMA. For example, the processes of punctual atoms and wildfire ...

Posted by fhil85 on Mon, 03 Jan 2022 11:03:59 +0100