STM32 interrupt application

1. Introduction to interruption The code is mainly distributed in the firmware library stm32f10x_exti.h and stm32f10x_exti.c File. Here we first STM32 IO Some basic concepts of port interrupt. STM32 Each of IO Can be used as an external interrupt Interrupt input port, which is also true STM32 The power of. ...

Added by yousaf931 on Tue, 21 Sep 2021 00:43:53 +0300

Single chip microcomputer learning (3 - turn on the LED light)

Note: the model of this single chip microcomputer is STC15F2K60S2 principle As shown in the figure, light emitting diodes L1-L8 are in common positive connection, and VCC is the positive pole of power supply, with high level. It is known that the LED is on in the forward direction and off in the reverse direction. In order to make the diode l ...

Added by Cogen on Mon, 20 Sep 2021 23:29:51 +0300

STM32 -- code analysis of USART receiving and transmitting communication experiment (suitable for wildfire stm32f103ZE)

1, Experiment 1 programming ideas Use the serial port debugging assistant to print out and receive data Serial port receiving and sending (characters are sent in the serial port assistant. Set the number of hexadecimal display to be numbers) Overall idea: 1. Enable RX and TX pins GPIO clock and USART clock; 2. Initialize GPIO and multiplex GP ...

Added by visualed on Mon, 20 Sep 2021 05:44:43 +0300

Understanding and application of STM32 ADC

preface ADC is widely used in the project. ADC and DAC are digital / analog converters. But I don't use much DAC, because I usually use sensors to detect external analog quantities, and then convert them into digital quantities for data processing and application, such as temperature and humidity sensors, inductors, black-and-white tra ...

Added by cfemocha on Wed, 08 Sep 2021 20:11:13 +0300

STM32IO port 8 modes

1 . input float 2 Input and pull-up 3 . input drop-down 4 . analog input 5 . open drain output 6 Push pull output 7 Push pull multiplexing function 8 . open drain multiplexing function IO port basic structure: Input float     Input pull-up     The three input drop ...

Added by iwanpattyn on Thu, 02 Sep 2021 21:16:15 +0300