【文件属性】:
文件名称:写操作指令-gearman::xs在centos下的编译安装方法
文件大小:2.26MB
文件格式:PDF
更新时间:2021-06-25 07:01:36
309 SH3673
(2) 从机发送模式
从机发送模式中,从机发送一系列数据给主机。传送完一个字节,如果主机回应“应答”信息,则SH367309准备发送下一个
字节;如果主机回应“不应答”,则不继续发送数据(如果主机还在继续读取数据,则返回全“1”数据),等待主机发送“停止条件”或
者“重复起始条件”。
S SLA+R DATA Ack P or S
Nack P or S
Reception of the own
slave address and
transmission of one
or more data bytes
DATA
SH367309 Actions
Other Device Actions
All '1'
Ack Ack DATA
(3) 从机接收模式
从机接收模式中,从主机接收一系列数据。
S SLA+W Ack DATA Ack P or S
Nack P or S
Reception of the own
slave address and one
or more data bytes, All
are acknowledged
Ack DATA
SH367309 Actions
Other Device Actions
Nack P or S
12.3.5 通信协议
12.3.5.1 概述
TWI通讯协议包括两部分:读写EEPROM寄存器和读写RAM寄存器。
当VPRO管脚外接EEPROM烧写电压VPRO时,TWI通信可写EEPROM寄存器。
TWI通讯中,SH367309作为从机,其固定地址为:
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
0 0 1 1 0 1 0 R/W
12.3.5.2 EEPROM寄存器读写协议
(1) 写操作指令