当前位置:网站首页>Basic knowledge of communication interface
Basic knowledge of communication interface
2022-07-03 09:56:00 【Yiao】
There are two ways for the processor to communicate with external devices
Parallel communication
Transmission principle : All bits are transmitted at the same time
advantage : Fast
shortcoming : It takes up a lot of pin resources
Parallel communication
Transmission principle : Data bits are transmitted in sequence
advantage : Less pin resources
shortcoming : Slow speed
stm32 Communication is mainly serial communication
serial communication
Simplex : Only data can be transmitted in one direction
Half duplex : Allows data to be transmitted in both directions , But it can only be transmitted in one direction at the same time
full duplex : Allows data to be transmitted in both directions at the same time , It's actually a combination of two single duplex , Therefore, the sending and receiving equipment needs to have independent sending and receiving capabilities
communication mode
Synchronous communication : With clock synchronous signal transmission
asynchronous communication : No clock synchronization signal transmission
Commonly used serial communication interface
UART:TXD The sender ,RXD The receiver ,GND Common land , asynchronous communication , Full duplex
stm32f4 Communication interface
UART: Universal asynchronous transceiver
USART: Universal synchronous asynchronous transceiver
UART Asynchronous communication connection method
Communication corresponding pin
Serial number | RXD | TXD |
1 | PA10(PB7) | PA9(PB6) |
2 | PA3(PD6) | PA2(PD5) |
3 | PB11(PC11/PD9) | PB10(PC10/PD8) |
4 | PC11(PA1) | PC10(PA0) |
5 | PD2 | PC12 |
6 | PC7(PG9) | PC6(PG14) |
stm32 Serial communication process
Data receiving process : The external device serially inputs the data into the shift register , The speed is controlled by the agreed baud rate , After the data is completely entered , After entering the buffer register, the data enters the kernel .
Data transmission process : The kernel enters the serial shift register through the buffer register , Send to external devices .
stm32 Parameters to be defined for serial asynchronous communication
1, example : High level when not communicating 1, When low level is detected 0 when , Explain that the communication starts .
2, Data bits :8 Bit or 9 position , One extra bit is parity bit .
Odd check : If the first eight bits of data are high 1 The number of is odd , repair 0, Is an even number of complements 1.
Even check : If the first eight bits of data are high 1 The number of is odd , repair 1, Is an even number of complements 0.
3, Stop bit : Last
4, Baud rate : Both parties agree at the same time .
边栏推荐
- 【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
- How does the memory database give full play to the advantages of memory?
- Project cost management__ Cost management technology__ Article 8 performance review
- Error output redirection
- Introduction to chromium embedded framework (CEF)
- Fundamentals of Electronic Technology (III)__ Chapter 1 resistance of parallel circuit
- Chromium Embedded Framework (CEF) 介绍
- GPIO port details, Hal library operation keys
- 2021-01-03
- NR PUCCH format0 sequence generation and detection mechanism
猜你喜欢
The cyclic shift of PUCCH in NR channel is generated by MATLAB
uniapp 实现微信小程序全局分享及自定义分享按钮样式
Matlab reads hexadecimal numbers and converts them into signed short
开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~
How does the memory database give full play to the advantages of memory?
When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
Getting started with JMX, MBean, mxbean, mbeanserver
Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
STM32 serial communication principle
Hal library sets STM32 clock
随机推荐
UCI and data multiplexing are transmitted on Pusch - Part I
Development of fire power monitoring system
2021-01-03
单片机学到什么程度能找到工作,这个标准不好量化
SCM career development: those who can continue to do it have become great people. If they can't endure it, they will resign or change their careers
Install local sources using yum
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
NR PUCCH format0 sequence generation and detection mechanism
(1) 什么是Lambda表达式
Exception handling of arm
內存數據庫究竟是如何發揮內存優勢的?
Basic knowledge of MySQL database (an introduction to systematization)
[CSDN] C1 training problem analysis_ Part IV_ Advanced web
Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别
C language enumeration type
Schematic diagram and connection method of six pin self-locking switch
[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)
How does the nr-prach receiver detect the relationship between prembleid and Ta
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
Nr-prach:prach format and time-frequency domain