STM32 SPI obtains the angle data of magnetic angle sensor AS5048A

STM32 SPI obtains the angle data of magnetic angle sensor AS5048A AS5048A is a 14 bit precision magnetic angle detection sensor with SPI interface. In fact, the stability accuracy is only 12 bits, that is, when the detection environment is static, the last two bits of data output are changing and not constant. AS5048A can be used for rotation ...

Posted by cloudbase on Mon, 14 Feb 2022 02:12:39 +0100

[punctual atom MP157 serial] Chapter 23 Linux device tree - extracted from [punctual atom] STM32MP1 embedded Linux Driver Development Guide v1 seven

1) Experimental platform: punctual atom STM32MP157 development board 2) Purchase link: https://item.taobao.com/item.htm?&id=629270721801 3) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-318813-1-1.html 4) Official station B of punctual atom: https://space.bilibili.com/394620890 5) Punc ...

Posted by jarv on Fri, 11 Feb 2022 14:58:11 +0100

STM32 learning from scratch -- detailed explanation of CAN communication code

STM32 learning from scratch @EnzoReventon Detailed explanation of CAN communication code Related links: STM32 learning from scratch - physical layer of CAN communication protocol CAN bus specification v2 0 version Introduction to CAN bus Zhou Ligong - Chinese version of CAN protocol reference material: [wildfire EmbedFire] practical guide f ...

Posted by kante on Wed, 09 Feb 2022 22:35:14 +0100

STM32 input capture function and capture 8-channel waveforms at the same time.

STM32 input capture function uses TIM2 and TIM3 to capture 8-channel waveforms at the same time. One of the requirements of work is to collect two groups of signals to control the stepping motor. It is to collect the square wave of 8 channels, measure the frequency and count the number of pulses. What looks simple has been bumping and bumping ...

Posted by askbapi on Tue, 08 Feb 2022 14:05:08 +0100

STM32 HAL library realizes FreeRTOS+FreeModbus (slave)

Software preparation: FreeModbus source code: Source code address of FreeModbus master and slave Development tools: Keilv5 and CubeMX Hardware platform: STM32F407VET6 (with RS485 interface) 1. Generate Keil project with CubeMX: Skip other basic parts. Here are some points that need attention. Configure the system debugging pin and select the ...

Posted by Dvorak on Tue, 08 Feb 2022 00:53:16 +0100

Alpha system clock and peripheral clock

1, System clock 1. Clock tree 1. The system main frequency of mx6u is 528MHz, but by default, the internal boot rom will set the main frequency of I.MX6U to 396MHz 1. The system clock of mx6u-alpha development board comes from two parts: 32.768KHz crystal oscillator and 24MHz crystal oscillator. The 32.768KHz crystal oscillator is the RTC ...

Posted by ajenkins198621 on Fri, 04 Feb 2022 09:19:16 +0100

Single line communication of STC89C52 single chip microcomputer (DS18B20 temperature)

catalogue Introduction to DS18B20 Structure diagram of DS18B20 temperature sensor: DS18B20 temperature sensor operation configuration: Introduction to single bus Single bus specification​ Single bus timing structure initialization: Send one bit: (master to slave) Receive a bit: (slave to host) Send a byte: Receive a byte: Code examp ...

Posted by mrchuckles2002 on Fri, 04 Feb 2022 08:39:40 +0100

STM32 MDK off chip FLASH download algorithm -- Based on QSPI (W25Q32)

preface The chip STM32H750 is used in a recent project. Its on-chip flash is only 128KB in size (although it is said on the Internet that it actually has 2MB as H743, this method is not used for insurance). Because the project uses RTOS, LWIP, TLS, etc., and the generation program is relatively large, W25Q32 (4MB in size) is added as off chip ...

Posted by Keith Scott on Fri, 04 Feb 2022 06:09:23 +0100

FreeRtos learning notes (10) analysis of task switching principle

FreeRtos learning notes (10) analysis of task switching principle Starting process of STM32 single chip microcomputer SP and PC registers are introduced in, STM32 single chip microcomputer bootloader literacy How to control the program jump from bootloader to APP by controlling SP and PC registers is mentioned in. RTOS task switch ...

Posted by ericorx on Thu, 03 Feb 2022 19:27:07 +0100

FREERTOS learning notes III - message queue

FREERTOS learning notes III - message queue 1. Experimental contents Experiment 2: create two dynamic tasks. Task 1 controls the flashing of LED, and task 2 is used to detect keys. When the key KEY0 is pressed, task 1 is suspended; When key 1 is pressed, task 1 is cancelled and suspended. In Experiment 3, a message queue and two task process ...

Posted by erichar11 on Thu, 03 Feb 2022 10:44:57 +0100