7 haas506 2.0 development tutorial driver SPI

Station B haas development tutorial Teaching video link of station B 1. Hardware diagram 2. Read the register value of spi device Case description: This case is a reading and writing test of spi equipment, which uses different functions to complete two reading and writing methods.When reading and writing spi, you need to operate the ...

Added by Voodoo Jai on Thu, 10 Mar 2022 05:39:09 +0200

STM32-HAL library motor development encoder

Encoder programming is based on STM32F407IG, and the pre basic knowledge is timer input capture. Detailed explanation of principle The types of encoders include incremental encoder, absolute encoder and hybrid absolute encoder. This experiment uses incremental encoder The schematic diagram of the basic encoder is shown in the figure below. Ro ...

Added by nsarisk on Wed, 09 Mar 2022 09:47:54 +0200

Single chip microcomputer -- HLK-W801 driving touch screen

Background introduction Recently, I'm studying lvgl, an open-source embedded image display framework, which is enough to support some resource deficient MCU to display some professional interfaces, such as the following And this Isn't it cool Put down Lvgl and don't watch for the time being. Because it is a user interface, most screens can ...

Added by saad|_d3vil on Wed, 09 Mar 2022 05:11:24 +0200

stm32 configuration summary using Systick tick counter

The system tick timer is a peripheral that exists in all m3 cores, but the number of other timers in m3 cores is different. Therefore, the system tick timer is generally used as the system time base, which is also convenient for the transplantation of RTOS in different chips. 1. Configure tick timer On the graphic page of cubemx, you ...

Added by swampone on Tue, 08 Mar 2022 17:37:48 +0200

S32K clock module and serial communication

summary During the development of S32K series chips, although the SDK is officially provided and has been updated to version 4.02, and there are Processor expert one click configuration, clock, peripherals, interrupts and other components. After configuration, the driver function can be generated and called by one click dragging, and some of t ...

Added by ScotDiddle on Tue, 08 Mar 2022 09:19:20 +0200

Application of PCF8591 module of Blue Bridge Cup single chip microcomputer

sketch PCF8591 is a single chip, single power supply, low power consumption, 8-bit CMOS digital converter According to the acquisition device, it has four analog inputs, one analog output and one Serial I2C bus interface. Serial I / O via I2C bus schematic diagram: Pin definition: SYMBOL PIN DESCRIPTIONtranslationAIN01analog inputs (A ...

Added by alpachino on Sun, 06 Mar 2022 11:16:47 +0200

Building embedded real-time operating system from scratch 3 -- task state switching

1. Preface A walker asked the old Taoist priest, "what did you do before you got the Tao?" Old Taoist priest: "chop firewood, carry water and cook." The walker asked, "what about after gaining the Tao?" Old Taoist priest: "chop firewood, carry water and cook." The walker asked again, "what is T ...

Added by gli on Sun, 06 Mar 2022 09:26:20 +0200

8051 of MCU entry is connected to 1062 LCD display characters

preface Display unit is the most important output device in embedded engineering and electronic products. 16x2 LCD is one of the most commonly used display units. 1602 LCD indicates that there are two lines, each line can display 16 characters, and each character occupies 5X7 matrix space on the LCD. In this paper, we connect 1602 LCD modul ...

Added by MattDunbar on Sun, 06 Mar 2022 06:27:48 +0200

STM32 timer input capture

STM32 timer input capture STM32F429 is used as a timer to capture the PWM waveform, and the cycle, frequency, duty cycle and forward pulse width of the waveform are measured. Basic principles The input acquisition of timer is mainly to measure the frequency, pulse width, duty cycle and other information of input signal. You need to understa ...

Added by astarmathsandphysics on Sat, 05 Mar 2022 15:10:37 +0200

[ESP32] use of HardwareSerial Library

brief introduction HardwareSerial library is a serial driver library written in c + + and applied to esp32 Arduino application environment. After installing the Arduino development environment of ESP32, we have integrated this serial operation library, which can be directly referenced in practical application. Note: ESP32 has three UART ports ...

Added by chronomantic on Fri, 04 Mar 2022 15:03:44 +0200