Single-chip computer training (2021/7/8~2021/7/16) next day
Previous remarks
After a few twists and turns, the next night I came here, it was rained heavily and there was a power failure. Now everything is back to normal and I'll make up for the records from the previous days.
Today's Content
The digital tube is used to display numbers, and keys are used to control addition and subtraction.
Devi ...
Added by RoundPorch on Tue, 18 Jan 2022 13:55:40 +0200
STM32F103 - description and function of general timer
preface
In this section, we will describe and introduce the general timer function of STM32, and also summarize STM32 (VI) and STM32 (VII)
---------------------—
catalogue
1. Introduction to general timer
2. Timer initialization function
3. PWM wave
---------------------—
I Introduction of timer
-------
1. What is a universal timer?
...
Added by McChicken on Tue, 18 Jan 2022 06:18:00 +0200
STM32F103 -- Introduction to EXIT external interrupt
preface
This section will summarize STM32 (V)
Each IO of STM32 can be used as an interrupt input port for external interrupts, which is also the strength of STM32. The interrupt controller of STM32F103 supports 19 external interrupt / event requests. Each interrupt has a status
Bit, each interrupt / event has independent trigger and mask set ...
Added by Fearpig on Mon, 17 Jan 2022 08:33:53 +0200
FreeRTOS operating system -- interrupt management and testing
FreeRTOS operating system learning
preface
Interrupt is a very common feature of microcontroller. Interrupt is generated by hardware. When interrupt is generated, CPU will interrupt the current The MCU of Cortex-M kernel provides a nested vector interrupt for interrupt management Controller (NVIC). The NVIC of Cotex-M3 supports up to 24 ...
Added by Diggler on Mon, 17 Jan 2022 07:22:41 +0200
IIC and SPI communication
IIC
Inter integrated circuit
The serial bus is composed of data line SDA and clock line SCL, which can send and receive data.
SCL: plays a control role in communication.
SDA: bit transfer data.
Software IIC: through the I/O port simulation of single chip microcomputer, use software to control I/O port to simulate communication waveform, an ...
Added by EsOne on Sun, 16 Jan 2022 17:35:27 +0200
[embedded operating system] Experiment 3: interrupt and serial port programming
1, Experimental purpose
Familiar with the hardware connection of serial port of STM32 module;Master the initialization method of serial port, data sending and receiving function;Master interrupt initialization method and interrupt service function;The serial port debugging assistant on PC is used for programming, and the LEDs D7 and D8 o ...
Added by php_guy on Sun, 16 Jan 2022 10:06:01 +0200
Summary of single chip microcomputer principle and interface technology
Bibliography: single chip microcomputer principle and Interface Technology (compiled by Zhu Xiaohui Laiting)
Application of single chip microcomputer: intelligent instrument; Mechatronics; Real time control; Distributed multi machine system; Application in human life.The main development trend of single chip microcomputer: CMOS; Low power cons ...
Added by Nuv on Sat, 15 Jan 2022 10:56:46 +0200
On matrix keyboard, keyboard & display logic of UI interface in a project
stay Last article In, an upscale method is reproduced, using state machine, function pointer, structure, structure pointer, etc. the exception is upscale, but there are some bug s.
First, record the debugging process.
Matrix debugging and other ideas
debugging
First, in the main function of the source code
u8 Key_Value;
int main(void)
...
Added by QuizToon on Sat, 15 Jan 2022 07:29:05 +0200
MSP430F5529 DriverLib library function learning note timer B
Platform: Code Composer Studio 10.3.1 MSP430F5529 LaunchPad™ Development Kit (MSP‑EXP430F5529LP)
Hard knowledge
16 bit timer B(Timer_B) and timer_ Like a, it is an important resource of MSP430 MCU. Timer_ B is often better than Timer_A more powerful, MSP430F5529 MCU timer_ The B timer has 7 capture / compare registers.
Timer_B. featu ...
Added by dasding on Fri, 14 Jan 2022 17:27:15 +0200
Harmony OS device development learning record -- lit the oled through I2C to display Chinese characters and pictures.
Harmony OS device development learning record (12) -- light the oled to display Chinese characters and pictures through I2C.
Based on hispark wifi suite, harmony os 2.0 full code is adopted
1, See the schematic diagram to determine the hardware circuit
Schematic diagram of oled
2, Create a demo file in the source code
First, clone the dri ...
Added by ThE_eNd on Fri, 14 Jan 2022 02:54:53 +0200