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

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

STM32 -- FSMC simulates 8080 timing to light up the LCD

catalogue Monitor introduction Liquid crystal display Basic parameters of display Liquid crystal control principle Introduction to ILI9341 LCD controller Signal line and 8080 timing of LCD FSMC of STM32 is used to simulate 8080 interface timing Introduction to FSMC Memory controller Clock control logic FSMC analog 8080 timing Softwa ...

Added by MCrosbie on Fri, 04 Mar 2022 05:49:17 +0200

STM32 learning from scratch - SPI reading and writing FLASH

STM32 learning from scratch @EnzoReventon SPI read / write FLASH Related links: Introduction to SPI physical layer and FLASH chip SPI protocol layer SPI features and architecture reference material: [wildfire EmbedFire] practical guide for STM32 Library Development -- Based on wildfire Decepticon development board [punctual atom] STM32F4 Dev ...

Added by Scip on Thu, 03 Mar 2022 22:48:05 +0200

Development Notes for embedded linux Driver

1, Mapping from linux physical address to virtual address linux cannot directly operate the physical address. If you need to operate the hardware, you need to convert the physical address into a virtual address first. Because linux enables MMU, you cannot directly operate the physical address. 1. What are the benefits of enabling MMU? (1) Make ...

Added by CashBuggers on Thu, 03 Mar 2022 05:28:51 +0200

Record 6 - stm32f411ceu6 the actual small-scale comprehensive application project

preface The previous learning is divided into several modular knowledge points. The learned knowledge needs to be combined for practice, and the comprehensive and flexible application ability of the learned MCU knowledge is more investigated. (the writing is relatively basic. If there is any error, please correct it) task requirement LE ...

Added by amreiff on Wed, 02 Mar 2022 14:13:12 +0200

10, Linux development board controls LED light equipment

Control LED light equipment Driver Essence: create corresponding device node files for hardware devices When creating equipment files, specify the use of equipment files. application program Control the hardware according to the device file usage specified by the driver Control hardware equipment steps 1. Find the device node file corres ...

Added by Grimloch on Sat, 26 Feb 2022 13:11:19 +0200

STM32 LCD (ILI9341) simulates 8080 timing

LCD with 8080 timing There are four control lines of 8080: RD write enable, WR read enable, DC data / command and CS chip selection 8080 bus has many interfaces: 8 / 9 / 16 / 18 bit interface 8080 general timing Read timing LCD_CS = 0; //Film selection LCD_DC = 1; //Read data LCD_WR = 1; //No writing LCD_RD = 0; //Start readin ...

Added by Kazlaaz on Sat, 26 Feb 2022 12:59:07 +0200

STM32G431 serial port DMA transmission

1. Introduction to G4 series DMA First, introduce the DMA of G4 series. Although the G4 series of 32 is based on the M4 kernel, its DMA channel mapping is quite different from the common F407. First, paste some pictures in the reference manual: I don't know what you can think of after seeing these two pictures. I believe friends who have see ...

Added by MinDFreeZ on Thu, 24 Feb 2022 04:38:19 +0200

linux device adapted touch screen (gt1151)

Record the process of gt1151 touch drive adapter, which is controlled by the full log D1s dot screen strong core. First, to find the touch driver source, you can go to the github repository of goodix and find a generic driver code with the following links: https://github.com/goodix/gt1x_driver_generic.git Drivers/input/touchscreen/gt1x_in Tin ...

Added by yuraupt on Fri, 18 Feb 2022 12:44:24 +0200