28.04.2015 Views

MC75 AT Command Set

MC75 AT Command Set

MC75 AT Command Set

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MC75</strong> <strong>AT</strong> <strong>Command</strong> <strong>Set</strong><br />

18.7 <strong>AT</strong>^SSPI<br />

s<br />

In a Transfer Message (Read or Write), the third element is the 7-bit I²C Slave Address (2 characters) that identifies<br />

each single device connected to the bus. The 8 th bit of this byte is the LSB that determines the direction of<br />

the message. If the LSB is "0" the master will write information to the selected slave. If the LSB is "1" the master<br />

will read information sent from the slave.<br />

In a Read Transfer Message on the I²C bus, the size of the expected data must be specified explicitly. This is an<br />

element of 4 characters stating the number of bytes to be read. It must be placed after the I²C Slave Address.<br />

18.7.3 Error Handling on the I²C Bus<br />

Protocol error:<br />

If a protocol error is detected the ASCII value "!" is sent to the <strong>AT</strong> interface. Also, a Stop Condition is sent to the<br />

I²C device.<br />

A protocol error occurs if<br />

• any data / address characters do not equal 0...9, a...f and A...F<br />

• the length of a read word is smaller or greater than 16 bits<br />

• the number of ASCII data is odd (e.g. "af1" instead of "af01")<br />

• the Read or Write request is greater than 2 KB (0x0800).<br />

Acknowledge:<br />

Once a transmission has completed successfully (Write or Read), the special character "+" (ACK) is included in<br />

the Response sent to the <strong>AT</strong> interface.<br />

During a Write Transfer, the I²C driver acknowledges each transferred byte, but the Response contains only one<br />

ACK which is transmitted only if all bytes are successfully transferred. During a Read Transfer, an ACK is sent<br />

when the I²C slave device notifies that it has recognized the I²C Slave Address.<br />

Not Acknowledge:<br />

During a Transmit Transfer, a NAK is given when the I²C Slave Device notifies a failure to receive either the I²C<br />

Slave Address or a data byte. In this case, a Stop Condition is sent to the I²C device.<br />

During a Receive Transfer, a NAK is transmitted only when the I²C does not receive any reponse for the I²C Slave<br />

Address. The I²C device never acknowledges the validity of the received data (by sending an ACK the master<br />

acknowledges each received byte to the slave).<br />

<strong>MC75</strong>_<strong>AT</strong>C_V01.001 Page 436 of 475 6/2/05<br />

Confidential / Released

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!