Program design summary of the 12th Blue Bridge Cup single chip microcomputer provincial competition

Program design summary of the 12th Blue Bridge Cup single chip microcomputer provincial competition You can find the problem online by yourself, but you won't give it here. Here is a summary of the following points: General code 1, Remember the basic latch selection code void HC138_Init(unsigned char Yn) { switch(Yn) { ...

Posted by paegn on Mon, 07 Feb 2022 06:56:08 +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

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

Course design of Hangdian digital circuit -- taxi meter

Course design of Hangdian digital circuit -- taxi meter Experimental purpose (1) Learn the dynamic scanning method of nixie tube, be further familiar with the method of module call, and exercise the ability of programming and designing digital system. (2) Master the skills and methods of flexibly using Verilog HDL language for various descrip ...

Posted by JohnMC on Thu, 03 Feb 2022 03:47:59 +0100

Raspberry pie science experiment 4B--05_ horse race lamp

Small experiment catalogue Raspberry pie science experiment 001 turn on the first LED 002 light up the LED lamp group 003_ Switch control LED light 004_ Obtain temperature and humidity 005_ Running lamp (ws2812b)) preface For unknown reasons, in a burst of smoke, my raspberry pie 4B motherboard and interface board were reimbursed. ...

Posted by anothersystem on Wed, 02 Feb 2022 19:45:10 +0100

Learning notes and understanding of PID algorithm

PID algorithm type There are two forms of PID algorithm in engineering First define a structure typedef struct PID { float Proportion;//P float Integral; //I float Derivative;//D float PrevError;//Last error float LastError;//Last error float Error; //Current error float DError; float SumError; //Cumulative sum ...

Posted by harshilshah on Wed, 02 Feb 2022 18:56:02 +0100

STM32 notes: high precision pulse width meter dual input capture + DMA mode

This paper introduces how to use STM32F107VC(Waveshare Open107V experimental board) to realize high-precision pulse width meter (duty cycle). Development environment: IDE: STM32CubeIDE 1.8 Firmware library: stm32cube_ FW_ F1_ V1. eight point four Function generation: RIGOL DG5072 function signal generator generates 0-3.3V square wave, 10KHz ...

Posted by sellfisch on Tue, 01 Feb 2022 14:12:47 +0100

51 MCU timer interrupt detailed understanding

1. First attach code examples #include <AT89X52.H> #define uint unsigned int #define uchar unsigned char uint i,j; main(){ i=0; j=0; EA=1; //Interrupt master switch on ET0=1;//Timer T0 interrupt allowed ET1=1;//Timer T1 interrupt allowed TR0=1;// Start timer T0 TR1=1;// Start timer T1 TMOD=0x11;//Mode 1 of timer T0 mode 1 o ...

Posted by rjlowe on Tue, 01 Feb 2022 08:29:09 +0100