当前位置:网站首页>Hardware and interface learning summary
Hardware and interface learning summary
2022-07-05 23:57:00 【Little monk Hanshui temple has no intention】
One 、 Synchronous and asynchronous communication
asynchronous : There is no clock line between the two devices , But both sides of the equipment need to maintain the same communication baud rate , Here's the picture , There is no data cable SCL Clock line .
Sync : Sometimes the clock line , Same communication speed , Therefore, it is no longer necessary to configure the same speed . Here's the picture , In addition to the data line for exchanging information , also SCL Clock line .
Two 、IIC How to mount multiple devices at the same time

I2C Bus is a master-slave structure bus ,I2C Each device on the bus can act as a master or slave device , The master device is used to generate clock signals that allow transmission , And initialize the data transmission of the bus , So the main equipment is usually CPU.
Because a I2C There can be multiple slaves on the bus , In this way, the master device needs to determine the address to communicate with cabinet devices .I2C Bus sang each slave device has a unique 7bit Address physical identification . because I2C Full address 0 For broadcast address , therefore I2C Theoretically, the bus can carry at most 2^7-1=127 Slave devices .
Host sending data flow
1、 When the host detects that the bus is idle , Send a start signal “S”, Start communicating ;
2、 The host then sends a slave address , from 7bit Physical address and 1bit Read and write control bits of W/R form ;
3、 Identify by address , The corresponding slave sends back a reply signal to the host after receiving the command (ACK=0);
4、 After receiving the response signal from the slave, the host starts to send the first byte of data ;
5、 After receiving the data, the slave returns a reply signal ACK;
6、 The host will send the next data byte after receiving the response signal ;
7、 The host sends the last byte and receives ACK after , Send a stop signal to the slave P End this communication and release the bus ;
8、 It's on the slave P After the signal, it also exits the communication with the host .
The process of sending data from the machine
1、 The host sends a start signal , Then send the address bytes ;
2、 After the corresponding slave receives the address bytes , Return a reply signal and send data to the host ;
3、 After receiving the data, the master feeds back a reply signal to the slave ACK;
4、 After receiving the response signal, the slave continues to send the next data to the host ;
5、 When the host finishes receiving data , Send a to the slave NAK, The slave will stop sending after receiving the non reply signal ;
6、 After the host sends a non reply signal , Send another stop signal , Release the bus and end the communication .
3、 ... and 、 What is the interruption process ?
CPU
1、 Judge interruption , Find interrupt number
2、 Determine priority
3、 Save the scene ( Pressing stack )
4、 Find the interrupted service handler
5、 Handle interrupt handlers
6、 Back to the scene , Continue with the original procedure
边栏推荐
- FFMPEG关键结构体——AVCodecContext
- 7.5模拟赛总结
- QT--线程
- 行列式学习笔记(一)
- wx.getLocation(Object object)申请方法,最新版
- Cloudcompare & PCL point cloud randomly adds noise
- 如何让同步/刷新的图标(el-icon-refresh)旋转起来
- 软件测试工程师必会的银行存款业务,你了解多少?
- Use mapper: --- tkmapper
- 4 points tell you the advantages of the combination of real-time chat and chat robots
猜你喜欢

Detailed explanation of APP functions of door-to-door appointment service

What are the functions of Yunna fixed assets management system?

Learn PWN from CTF wiki - ret2libc1

认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)
![[online chat] the original wechat applet can also reply to Facebook homepage messages!](/img/d2/1fd4de4bfd433ed397c236ddb97a66.png)
[online chat] the original wechat applet can also reply to Facebook homepage messages!

There is no network after configuring the agent by capturing packets with Fiddler mobile phones

Rsync remote synchronization

微信小程序---WXML 模板语法(附带笔记文档)

Senparc. Weixin. Sample. MP source code analysis

What are Yunna's fixed asset management systems?
随机推荐
14 MySQL view
Bao Yan notebook IV software engineering and calculation volume II (Chapter 8-12)
C# 反射与Type
VBA fast switching sheet
20220703 week race: number of people who know the secret - dynamic rules (problem solution)
亲测可用fiddler手机抓包配置代理后没有网络
单商户V4.4,初心未变,实力依旧!
Spreadjs 15.1 CN and spreadjs 15.1 en
Configuring OSPF GR features for Huawei devices
Qt 一个简单的word文档编辑器
GFS分布式文件系统
Effet Doppler (déplacement de fréquence Doppler)
Initialiser votre vecteur & initialisateur avec une liste Introduction à la Liste
[day39 literature extensive reading] a Bayesian perspective on magnetic estimation
CloudCompare&PCL 点云随机添加噪声
关于结构体所占内存大小知识
What if the C disk is not enough? Let's see how I can clean up 25g of temp disk space after I haven't redone the system for 4 years?
Zero rhino technology joined hands with the intelligence Club: the "causal faction" forum was successfully held, and the "causal revolution" brought the next generation of trusted AI
7.5模拟赛总结
QT--线程