ADM1166
WRITE OPERATIONS
The SMBus specification defines several protocols for different
types of read and write operations. The following abbreviations
are used in Figure 39 to Figure 47:
? S = Start
? P = Stop
? R = Read
The master sends a command code telling the slave device
to erase the page. The ADM1166 command code for a page
erasure is 0xFE (1111 1110). Note that for a page erasure to
take place, the page address must be given in the previous
write word transaction (see the Write Byte/Word section). In
addition, Bit 2 in the UPDCFG register (Address 0x90)
must be set to 1.
1 2 3 4 5 6
?
?
W = Write
A = Acknowledge
S
SLAVE
ADDRESS
W
A
COMMAND
BYTE
(0xFE)
A
P
?
A = No acknowledge
Figure 40. EEPROM Page Erasure
The ADM1166 uses the following SMBus write protocols.
Send Byte
In a send byte operation, the master device sends a single
command byte to a slave device, as follows:
As soon as the ADM1166 receives the command byte,
page erasure begins. The master device can send a stop
command as soon as it sends the command byte. Page
erasure takes approximately 20 ms. If the ADM1166 is
accessed before erasure is complete, it responds with a
1.
2.
3.
The master device asserts a start condition on SDA.
The master sends the 7-bit slave address followed by the
write bit (low).
The addressed slave device asserts an acknowledge (ACK)
on SDA.
no acknowledge (NACK).
Write Byte/Word
In a write byte/word operation, the master device sends a command
byte and one or two data bytes to the slave device, as follows:
4.
5.
6.
The master sends a command code.
The slave asserts an ACK on SDA.
The master asserts a stop condition on SDA, and the
1.
2.
The master device asserts a start condition on SDA.
The master sends the 7-bit slave address followed by the
write bit (low).
transaction ends.
In the ADM1166, the send byte protocol is used for two
purposes:
? To write a register address to the RAM for a subsequent
single byte read from the same address, or for a block read
or block write starting at that address, as shown in Figure 39.
3.
4.
5.
6.
7.
8.
9.
The addressed slave device asserts an ACK on SDA.
The master sends a command code.
The slave asserts an ACK on SDA.
The master sends a data byte.
The slave asserts an ACK on SDA.
The master sends a data byte or asserts a stop condition.
The slave asserts an ACK on SDA.
1
2
3
4
5
6
10. The master asserts a stop condition on SDA to end the
S
SLAVE
ADDRESS
W
A
RAM
ADDRESS
(0x00 TO 0xDF)
A
P
transaction.
In the ADM1166, the write byte/word protocol is used for three
Figure 39. Setting a RAM Address for Subsequent Read
purposes:
?
To erase a page of EEPROM memory. EEPROM memory
can be written to only if it is unprogrammed. Before writing
to one or more EEPROM memory locations that are already
?
To write a single byte of data to the RAM. In this case, the
command byte is RAM Address 0x00 to RAM Address 0xDF,
and the only data byte is the actual data, as shown in Figure 41.
programmed, the page(s) containing those locations must
1
2
3
4
5
6
7 8
first be erased. EEPROM memory is erased by writing a
command byte.
S
SLAVE
ADDRESS
W A
RAM
ADDRESS
(0x00 TO 0xDF)
A DATA A P
Figure 41. Single Byte Write to the RAM
?
To set up a 2-byte EEPROM address for a subsequent read,
write, block read, block write, or page erase. In this case, the
command byte is the high byte of EEPROM Address 0xF8
to EEPROM Address 0xFB. The only data byte is the low
byte of the EEPROM address, as shown in Figure 42.
1
2
3
4
5
6
7 8
EEPROM
EEPROM
S W A
SLAVE
ADDRESS
ADDRESS
HIGH BYTE
A
ADDRESS
LOW BYTE
A P
(0xF8 TO 0xFB)
(0x00 TO 0xFF)
Figure 42. Setting an EEPROM Address
Rev. 0 | Page 29 of 32
相关PDF资料
EVAL-ADM1168LQEBZ BOARD EVAL FOR ADM1168LQ
EVAL-ADM1170EBZ BOARD EVALUATION FOR ADM1170
EVAL-ADM1171EBZ BOARD EVALUATION FOR ADM1171
EVAL-ADM1172EBZ BOARD EVALUATION FOR ADM1172
EVAL-ADM1175EBZ BOARD EVALUATION FOR ADM1175
EVAL-ADM1176EBZ BOARD EVALUATION FOR ADM1176
EVAL-ADM1177EBZ BOARD EVALUATION FOR ADM1177
EVAL-ADM1178EBZ BOARD EVALUATION FOR ADM1178
相关代理商/技术参数
EVAL-ADM1168LQEBZ 功能描述:BOARD EVAL FOR ADM1168LQ RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:* 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1169LQEBZ 功能描述:BOARD EVAL FOR ADM1169LQ RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:Super Sequencer® 标准包装:1 系列:PSoC® 主要目的:电源管理,热管理 嵌入式:- 已用 IC / 零件:- 主要属性:- 次要属性:- 已供物品:板,CD,电源
EVAL-ADM1170EBZ 功能描述:BOARD EVALUATION FOR ADM1170 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1171EBZ 功能描述:BOARD EVALUATION FOR ADM1171 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1172EBZ 功能描述:BOARD EVALUATION FOR ADM1172 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1175EBZ 功能描述:BOARD EVALUATION FOR ADM1175 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1176EBZ 功能描述:BOARD EVALUATION FOR ADM1176 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081
EVAL-ADM1177EBZ 功能描述:BOARD EVALUATION FOR ADM1177 RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:- 标准包装:1 系列:- 主要目的:电信,线路接口单元(LIU) 嵌入式:- 已用 IC / 零件:IDT82V2081 主要属性:T1/J1/E1 LIU 次要属性:- 已供物品:板,电源,线缆,CD 其它名称:82EBV2081