写寄存器的标准流程为:
- Master发起START
- Master发送I2C addr(7bit)和w操作0(1bit),等待ACK
- Slave发送ACK
- Master发送reg addr(8bit),等待ACK
- Slave发送ACK
- Master发送data(8bit),即要写入寄存器中的数据,等待ACK
- Slave发送ACK
- 第6步和第7步可以重复多次,即顺序写多个寄存器
- Master发起STOP
图例:
写一个寄存器:

写多个寄存器:

文 | 力卉编程
写一个寄存器:
写多个寄存器:
文 | 力卉编程
本文标题:FPGA笔记 | I2C写寄存器的标准流程 | 力卉编程
本文链接:https://www.haomeiwen.com/subject/llwwfhtx.html
网友评论