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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This function initializes the I2C bus. It enables the two defined PIO pins for I2C usage (see also function<br />

8eh and 8fh).<br />

Parameters<br />

AH<br />

0x80<br />

Comments<br />

The user can specify which two PIO are used for I2C clock and data. After calling this initialization<br />

function, these two pins will no longer be available as PIO pins unless the PFE Enable function is called<br />

for these pins following this function call.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Select I2C Clock Pin<br />

Select I2C Data Pin<br />

PFE: Enable Programmable I/O Pins<br />

Interrupt 0xAA service 0x81: Scan I2C Devices<br />

Parameters<br />

AH<br />

AL<br />

CL<br />

Report addresses of slave devices, one at a time.<br />

0x81<br />

First slave address (even address, LSB=0)<br />

Last slave address (even address, LSB=0)<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

AL: 0 no slave found<br />

AL: -1 Timeout<br />

AL: address of the first found slave<br />

This is an iterator function which is called repetitively to determine all connected slaves. Specify on each<br />

successive call a new restricted slave address range until no further address is returned by this function.<br />

Page 317 / 400

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

Saved successfully!

Ooh no, something went wrong!