Calibre UK PICA93LV user manual Further Information

Page 30

CALIBRE

￿

￿

FURTHER INFORMATION

A)Philips Semiconductors Technical Handbook Book 4 Parts 12a and 12b. These give details of the I2C compatible ICs, and the I2C Bus specification. The PCF8584P used on the adapter is included in later editions. Where the data sheet and this manual disagree, this manual should always be followed when using the adapter.

B)Philips Components Data Sheet for PCF8584

C)Philips Application Note No EIE/AN90001 Interfacing PCF8584 I2C bus controller to 80(C)51 family micro controllers. This gives some useful code but is not written directly for the PC. Please note - the hardware information on the PCF8584 given in this application note sometimes contradicts the data sheet referenced in 8.2, in general the data sheet is correct; the only exception is that a Stop should be sent as C3 (Hex) - as shown in the application, not 43 (hex) - implied in the data sheet ) see Appendix B of this manual for details of control codes. Where in doubt, follow this manual.

Issue 1.3

Page 27

22/07/99

Image 30
Contents Calibre Calibre CopyrightContents General Introduction Configuring the AdapterIntroduction Packing ListInstalling the Adapter Typical PC ConnectionPower Supply Connecting the Adapter to Your SystemConnector Pinout Bus Capacitance Limitations\C\CLIB\CPICA.LIB Software Utilities\C\CLIB\SPICA.LIB \C\CLIB\MPICA.LIB\B\SOURCE\PROMREAD.BAS DOS Qbasic Library/Programs\B\SOURCE\I2CINC.BAS \B\SOURCE\PROMWRIT.BASWindows LIB/DLL Functions Int ownaddress Using the UtilitiesRoutines Int sclkInt i2cstatus Int slaveaddressInt setnack Calibre Int i2cdata Calibre Int i2cstatus Number if the adapter is to read from the slave Sclk% Qbasic RoutinesOwnaddress% I2cstatus%Slaveaddress% Setnack% I2cdata%See Appendix a for details status codes I2cstatus% Is to read from the slave Libraries for Programming in Microsoft Windows Environments Int baseaddressInt statuswait Int ErrCode Int wrDataSendaddress Address to be accessed via the I2C, e.g. A1H Int sendbytesint far *transferarray Int far *transferarrayInt bsent Int getbytesint far *transferarray Int nobytesreadSlave using the adapter Further Information Bit 7 MSB The Pending Interrupt Not PIN Bit Bit 4 The Bus Error BER BitAppendix a Parallel I2C Communications Adapter Status Codes Bit 6 Not UsedAppendix B Parallel I2C Communications Adapter Control Codes Question Do you have software to talk to my........? Question Get corrupted transfers why is this?Most Commonly Asked I2C Questions QuestionCode. Why? Please Email Your Query to