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.

AH<br />

AL<br />

0x8F<br />

PIO pin number, [0..13]<br />

Return Value<br />

none<br />

Comments<br />

The default I2C data pin is PIO 1<br />

To change the I2CDAT pin this function must be called before the I2C initialize function (0x80) is called.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Initialize I2C Bus Function<br />

Select I2C Clock Pin<br />

Interrupt 0xAA service 0x90: SPI Init<br />

Init the SPI Interface.<br />

SPI specifies four signals: clock (SCLK); master data output, slave data input (MOSI); master data input,<br />

slave data output (MISO); and slave select (CSS). The slave select signal pin is not specified with the SPI<br />

init function and not activated with the SPI read and write functions. The user has to enable any other<br />

PIO pin for that purpose and should serve this pin manually.<br />

Parameters<br />

AH<br />

BX<br />

CL<br />

CH<br />

DL<br />

Must be 0x90<br />

Mode, must be 0<br />

Pio number for SPI Clock Pin (SCLK)<br />

Pio number for SPI Input Pin (MISO)<br />

Pio number for SPI Output Pin (MOSI)<br />

Return Value<br />

none<br />

Page 321 / 400

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

Saved successfully!

Ooh no, something went wrong!