In a write transaction, the master writes data to a register at a specified address in the LM95010. A write transaction begins with a Start Bit and ends with an ACK Data Bit, as show in Figure 6-4.
- Device Number This is the address of the slave device accessed. Address "000" is a broadcast address and is responded to by all the slave devices. The LM95010 responds to broadcast messages to the Device Control Register.
- Internal Address This is the register address in the LM95010 that will be written.
- Read/
Write (R/
W) A "0" data bit directs a write transaction.
- Data Bits This is the data written to the LM95010 register, are driven by the master. Data is transferred serially with the most significant bit first. The number of data bits may vary from one address to another, based on the size of the register in the LM95010. This allows throughput optimization based on the information that needs to be written.
- The LM95010 supports 8-bit or 16-bit data fields, as described in Section 7.
- Even Parity (EP) This data bit is based on all preceding bits (Device Number, Internal Address, Read/
Write and Data bits) and the Even Parity bit itself. The parity (number of 1's) of all the preceding bits and the parity bit must be even - i.e. the result must be 0. During a write transaction, the EP bit is sent by the master to the LM95010 to allow the LM95010 to check the received data before using it.
- Acknowledge (ACK) During the write transaction the ACK bit is sent by the LM95010 indicating to the master that the EP was received and was found correct, and that no conflict was detected on the bus (excluding Attention Request - see Section 6.3.13). A write transfer is considered "completed" only when the ACK bit is generated. A transaction that was not positively acknowledged is not considered complete by the LM95010 (i.e. internal operation related to the transaction are not performed) and the following are performed:
- The BER bit in the LM95010 Device Status register is set;
- The LM95010 generates an Attention Request before, or together with the Start Bit of the next transaction
A transaction that was not positively acknowledged is also not considered "complete" by the master (i.e. internal operations related to the transaction are not performed). The transaction may be repeated by the master, after detecting the source of the Attention Request (the LM95010 that has a set BER bit in the Device Status register). Note that the SensorPath protocol neither forces, nor automates re-execution of the transaction by the master.The values of the ACK bit are:
- 1: Data was received correctly;
- 0: An error was detected (no-acknowledge).