Calibre UK PICA93LV user manual Contents

Page 3

CALIBRE

￿

￿

Contents

INTRODUCTION

1

1.1.

General Introduction

1

1.2.

Packing List

1

1.3. . Configuring the Adapter

1

1.4. Bus Termination and Protection

1

1.5.

Installing the Adapter

2

CONNECTING THE ADAPTER TO YOUR SYSTEM

3

2.1.

Connector Pinout

3

2.2.

Bus Capacitance Limitations

3

2.3.

Power Supply

3

2.4.

Resetting the Adapter

3

SOFTWARE UTILITIES

4

3.1.

Introduction

4

3.2.

DOS C Library/Programs

4

3.3.

DOS QBASIC Library/Programs

5

3.4.

Windows LIB/DLL Functions

6

USING THE UTILITIES

7

4.1.

Introduction

7

4.2.

C Routines

7

4.3.

QBASIC Routines

14

4.4. Libraries for Programming in Microsoft Windows Environments

20

FURTHER INFORMATION

27

APPENDIX A Parallel I2C Communications Adapter Status Codes

28

APPENDIX B Parallel I2C Communications Adapter Control Codes

29

THE MOST COMMONLY ASKED I2C QUESTIONS

30

6.1.

General Questions

30

6.2.

DOS Software Questions

30

6.3.

WINDOWS 95 and NT Questions

30

Issue 1.3

Page i

22/07/99

 

￿

 

Image 3
Contents Calibre Copyright CalibreContents Packing List Configuring the AdapterIntroduction General IntroductionTypical PC Connection Installing the AdapterBus Capacitance Limitations Connecting the Adapter to Your SystemConnector Pinout Power Supply\C\CLIB\MPICA.LIB Software Utilities\C\CLIB\SPICA.LIB \C\CLIB\CPICA.LIB\B\SOURCE\PROMWRIT.BAS DOS Qbasic Library/Programs\B\SOURCE\I2CINC.BAS \B\SOURCE\PROMREAD.BASWindows LIB/DLL Functions Int sclk Using the UtilitiesRoutines Int ownaddressInt i2cstatus Int slaveaddressInt setnack Calibre Int i2cdata Calibre Int i2cstatus Number if the adapter is to read from the slave I2cstatus% Qbasic RoutinesOwnaddress% Sclk%Slaveaddress% I2cdata% Setnack%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 wrData Int ErrCodeSendaddress Address to be accessed via the I2C, e.g. A1H Int sendbytesint far *transferarray Int far *transferarrayInt bsent Int nobytesread Int getbytesint far *transferarraySlave using the adapter Further Information Bit 6 Not Used Bit 4 The Bus Error BER BitAppendix a Parallel I2C Communications Adapter Status Codes Bit 7 MSB The Pending Interrupt Not PIN BitAppendix B Parallel I2C Communications Adapter Control Codes Question Question Get corrupted transfers why is this?Most Commonly Asked I2C Questions Question Do you have software to talk to my........?Code. Why? Please Email Your Query to