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