01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

AL<br />

CX<br />

Slave address, LSB:0 => Transmit, LSB:1 => Receive<br />

Number of bytes to transmit or receive<br />

ES:BX<br />

Buffer address<br />

Return Value<br />

Comments<br />

Success: Carry flag cleared<br />

Failure: Carry flag set and AL contains I2C error code<br />

If an odd slave address is specified in AL then this function will dwell here until either CX bytes are<br />

received and stored in user buffer at [ES:BX], or until an error occurs. For an even slave address this<br />

function will dwell here until CX bytes from user buffer at [ES:BX] are transmit or until an error occurs.<br />

If the direction or the slave address changes, this functions executes the I2C restart function<br />

automatically. This will insert a I2C start condition on the bus. After this, the I2C address is send again.<br />

Related Topics<br />

Top of list<br />

Index page<br />

I2C Transmit/Receive Character<br />

Interrupt 0xAA service 0x84: Release I2C Bus<br />

Parameters<br />

AH<br />

0x84<br />

Comments<br />

Top of list<br />

Index page<br />

This function generates an I2C stop condition. (The Bus will be released). At next call of transmit or<br />

receive functions, the address will be send again.<br />

Interrupt 0xAA service 0x8b: Restart the I2C Bus<br />

Parameters<br />

Page 319 / 400

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

Saved successfully!

Ooh no, something went wrong!