当前位置:网站首页>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
边栏推荐
- 哪些偏门项目可以做到?自媒体做到月赚一万以上很难吗?
- 行列式学习笔记(一)
- 总结了 800多个 Kubectl 别名,再也不怕记不住命令了!
- Convert Chinese into pinyin
- Qt 一个简单的word文档编辑器
- How much do you know about the bank deposit business that software test engineers must know?
- 单商户V4.4,初心未变,实力依旧!
- Zhongjun group launched electronic contracts to accelerate the digital development of real estate enterprises
- CloudCompare&PCL 点云随机添加噪声
- How to get all the values stored in localstorage
猜你喜欢
GD32F4xx uIP协议栈移植记录
20220703 周赛:知道秘密的人数-动规(题解)
用列表初始化你的vector&&initializer_list简介
跟着CTF-wiki学pwn——ret2libc1
硬件及接口学习总结
Initialize your vector & initializer with a list_ List introduction
After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
单商户V4.4,初心未变,实力依旧!
[day39 literature extensive reading] a Bayesian perspective on magnetic estimation
Learn PWN from CTF wiki - ret2libc1
随机推荐
时区的区别及go语言的time库
Spire Office 7.5.4 for NET
【QT】Qt使用QJson生成json文件并保存
How much do you know about the bank deposit business that software test engineers must know?
软件测试工程师必会的银行存款业务,你了解多少?
哪些偏门项目可以做到?自媒体做到月赚一万以上很难吗?
Asynchronous task Whenall timeout - Async task WhenAll with timeout
[SQL] SQL expansion languages of mainstream databases (T-SQL, pl/sql, pl/pgsql)
Cloudcompare & PCL point cloud randomly adds noise
NSSA area where OSPF is configured for Huawei equipment
【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
Fiddler Everywhere 3.2.1 Crack
传输层协议------UDP协议
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
行列式学习笔记(一)
USB Interface USB protocol
FFMPEG关键结构体——AVCodecContext
Upgrade openssl-1.1.1p for openssl-1.0.2k
5. Logistic regression
Add noise randomly to open3d point cloud