[Blue Bridge Cup] detailed explanation of serial communication with dual serial port code
IAP15F2K61S2 MCU has two full duplex serial communication interfaces (serial port 1 and serial port 2)
1. Serial port related register
Each serial port has two data buffers, a shift register, a serial controller and a baud rate generator
1.1 data buffer SBUF
These are two physically independent receiving and transmitting buffers, which ...
Added by alasdair12 on Wed, 02 Feb 2022 06:01:13 +0200
(summary) stm32subeide_ Hal Library_ STM32F103C8T6_CAN bus_ Interrupt reception
catalogue
1, CAN module configuration process
1.1 set the baud rate and related working mode of can in the graphical interface
1.2 code setting can filter and interrupt
2, CAN message sending function
3, CAN information receiving function
4, CAN receive callback function
5, Summary
The default readers of this article have the following ...
Added by wtf on Wed, 02 Feb 2022 03:27:18 +0200
OPENMV configuration record
I just came home with an H7 board. I thought about configuring the openmv part first and then developing the whole H7. This board supports the brush writing of openmv. The firmware brush writing provides the way of internal flash and external flash, which is very convenient.
The board is as follows. It belongs to the weact family. You ...
Added by kef on Wed, 02 Feb 2022 00:58:51 +0200
Transplantation and construction of uCOSIII system multitasking
In the previous section, we built templates and created single tasks. In this section, we build multi tasks uCOSIII system transplantation (I) construction of single task
Task requirements: build three tasks (two LED s and one BUZ)
Refer to the transplantation of wildfire. (my board is different from wildfire, so I need to make s ...
Added by andylyon87 on Tue, 01 Feb 2022 16:09:36 +0200
[Blue Bridge Cup - single chip microcomputer learning notes] DS1302
1, Introduction to DS1302
1. Function introduction
DS1302 includes clock / calendar register and 31 byte (8-bit) data temporary storage register. Data communication is only through one serial input and output port. Real time clock / calendar provides information including seconds, minutes, hours, dates, months and years. Leap year can be adju ...
Added by blizzard on Tue, 01 Feb 2022 10:41:45 +0200
Porter DMA for STM32 data
24.1 about DMA
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. Some of these instructions are used for calculation, some for control programs, and some for transferring data. Among them, the instructions to transfer data, especially a lar ...
Added by Froolah on Tue, 01 Feb 2022 10:22:09 +0200
freertos idle task, blocking delay
Blocking state: if a task is currently waiting for an external event, it is said to be in blocking state.
The delay in rtos is called blocking delay, that is, when a task needs to delay, it will give up the right to use the CPU and enter the blocking state. During the period when the task is blocked, the CPU can execute other tasks (if oth ...
Added by AndrewJ1313 on Mon, 31 Jan 2022 19:20:07 +0200
51 single chip microcomputer series -- timer interrupt
Timer introduction: the timer of 51 single chip microcomputer belongs to the internal resources of single chip microcomputer. The connection and operation of its circuit are completed inside the single chip microcomputer, which can replace the delay function occupying cpu resources.
My 51 single chip microcomputer is externally connected with ...
Added by tllewellyn on Sun, 30 Jan 2022 11:09:43 +0200
The configuration of STM32 USB sound card CUBEMX is very simple, and it takes ten minutes to solve the problem of STM32+PCM5120A
1. Overview
USB sound card is nothing more than USB to send PCM data to I2S peripherals or SAI peripherals. After outputting PCM data to DAC through I2S and converting it into analog signal, connect headphones.
Even the expensive Italian digital interface is no exception.
2. Step by step
2.1 USB receiving audio data
2.2 send audio data t ...
Added by Ang3l0fDeath on Sun, 30 Jan 2022 09:08:44 +0200
2021-06-16 STM32F103 EXTI interrupt identification using firmware library
This paper shows the identification operation of STM32 external interrupt EXTI The content involves: Identification of external interrupt EXTI IO port input and output External interrupt processing of key External interrupt capture method
preface
Here we only explain the code of the core part. The setting of some variables and the in ...
Added by lbraine on Sun, 30 Jan 2022 06:57:55 +0200