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.

I2C Bus and SPI Interface - <strong>SC12</strong> <strong>@CHIP</strong>-<strong>RTOS</strong> <strong>V1.10</strong><br />

<strong>IPC<strong>@CHIP</strong></strong> <strong>Documentation</strong> Index I2C Bus / SPI API News<br />

I2C Bus / SPI API<br />

Here are the interface definitions for access to the <strong>IPC<strong>@CHIP</strong></strong>'s I2C bus and Software SPI.<br />

Philips was the inventor of the Inter-IC or I²C-bus, and it is now firmly established as the worldwide de-facto<br />

solution for embedded applications. It is used extensively in a variety of microcontroller-based professional,<br />

consumer and telecommunications applications as a control, diagnostic and power management bus. As a twowire<br />

serial bus, its inherently simple operation was crucial to its emergence as the worldwide de-facto standard.<br />

SPI is a serial bus standard established by Motorola. The Serial Peripheral Interface (SPI) is a synchronous<br />

serial interface useful for communicating with other peripheral or microcontroller devices. These peripheral<br />

devices may be Serial EEPROMs, shift registers, display drivers, A/D converters, etc.<br />

● I2C Bus / SPI API News<br />

API Functions<br />

The I2C Bus / SPI API provides interrupt 0xAA with a service number in the high order byte of the AX register<br />

(AH). This interface provides access to the I2C Bus and Software SPI of the <strong>IPC<strong>@CHIP</strong></strong> for application<br />

programs.<br />

● Interrupt_0xAA_function_0x80:_Initialize the I2C Bus<br />

● Interrupt_0xAA_function_0x81:_Scan I2C Devices<br />

● Interrupt_0xAA_function_0x82:_Transmit / Receive Character<br />

● Interrupt_0xAA_function_0x83:_Transmit/ Receive Block<br />

● Interrupt_0xAA_function_0x84:_Release I2C Bus<br />

● Interrupt_0xAA_function_0x8b:_Restart the I2C Bus<br />

● Interrupt_0xAA_function_0x8E:_Select I2C Clock Pin<br />

● Interrupt_0xAA_function_0x8F:_Select I2C Data Pin<br />

● Interrupt_0xAA_function_0x90:_SPI Init<br />

● Interrupt_0xAA_function_0x95:_SPI Write Block<br />

● Interrupt_0xAA_function_0x96:_SPI Read Block<br />

● Interrupt_0xAA_function_0x97:_SPI Read and Write Block<br />

Interrupt 0xAA service 0x80: Initialize the I2C Bus<br />

Page 316 / 400

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

Saved successfully!

Ooh no, something went wrong!