Manual Calibre UK UCA93

25 pages 0.17 mb
Download

Go to site of 25

Summary
  • Calibre UK UCA93 - page 1

     Calibre UK Ltd 2003  CALIBRE UCA 93 I2C Communi cations A dap ter Issue 1.0 01/07/2003 ...

  • Calibre UK UCA93 - page 2

    CALIBRE Issue 1.0 Page i 01/07/03 Welcome to t he Calibre UCA93 adjustab le voltage I 2 C Adapter. T his Adapter provid es full I 2 C bi-directional compatibility as either a master or slave from within a Windows 98 2000 or Windows X P environment. If you have an y queries relating to this o r any other I 2 C product supplied by Calibre please visi ...

  • Calibre UK UCA93 - page 3

    CALIBRE Issue 1.0 Page ii 01/07/03 Contents INTRODUCT ION 1 1.1. General Introduc tion 1 1.2. Pack ing List 1 1.3. Configuring the Adapter 1 1.4. Bus T erm ination and Protection 1 1.5. Connecting the Adapter to your Sy stem 1 1.6. Bus Capacitance Lim itations/Cable Choic e 2 1.7. Variable Voltage Bus Power Supply 2 INSTALLING T HE ADAPTER UNDER W ...

  • Calibre UK UCA93 - page 4

    CALIBRE Issue 1.0 Page 1 01/07/03 INTRODUCT ION 1.1. General Intr oduction The UCA93 is a USB V1.1 to I 2 C Adapter based on the PIC 16F 874 mic rocontroller using a Philips PCF8584 for the bus m onitor func tion. It features f ull I 2 C bi-directional com patibility as either a m aster or slave. I 2 C connections are m ade via a 9 way “ D” soc ...

  • Calibre UK UCA93 - page 5

    CALIBRE Issue 1.0 Page 2 01/07/03 IO 1 is a 5V T TL input and c an only be us ed on 5V tolerant systems . Pin Function 1 NC – DO NOT CONNECT 2I O 0 3I O 1 40 V 1.6. Bus Cap acitance Limitatio ns/Cable Choice The m axim um allowable capacitance on the I 2 C bus in norm al m ode depends on the value of the SCL and SDA master pull-ups, but never exc ...

  • Calibre UK UCA93 - page 6

    CALIBRE Issue 1.0 Page 3 01/07/03 INSTALLING THE A DA PT ER UNDER WINDOWS 2.1. Introduc tion This section details the installation of the UCA93 I 2 C com munic ations Adapter under W indows 98® / W indows2000® and W indows XP®. The appearanc e of the dialog boxes during the installation of new hardware varies depending on the version of W indows ...

  • Calibre UK UCA93 - page 7

    CALIBRE Issue 1.0 Page 4 01/07/03 LIBRA RIES FOR PROGRAMMING IN M ICROSOFT W INDOWS ENVIRONM ENTS 3.1. Introduc tion Each utility is documented in a s tandard for mat which lis ts its nam e, usage, f unction and ef fect on the Adapter is given. T he Adapter should be setup pr ior to any data transfer. W ithin the DLL there are two versions of som e ...

  • Calibre UK UCA93 - page 8

    CALIBRE Issue 1.0 Page 5 01/07/03 3.2. Function Prototy pes If you are using ‘C’ or ‘C++’ copy the file CALUCA.H into the directory containing your project and add the line: #include " CALUCA.H" The f ollowing functions ar e implem ented in the windows libraries:- extern __decls pec(dllim port) int W INAPI Setup (int, int, int, in ...

  • Calibre UK UCA93 - page 9

    CALIBRE Issue 1.0 Page 6 01/07/03 If y ou are using Visual Basic c opy the f ile UCA93LV.BAS into the director y c ontaining y our project and add the file UCA93LV.BAS to your project: The f ollowing functions ar e implem ented in the windows libraries:- Public Declare F unction Setup% Lib "USBDLL_XP.dll" (ByVal OwnAddress%, ByVal Sclk%, ...

  • Calibre UK UCA93 - page 10

    CALIBRE Issue 1.0 Page 7 01/07/03 3.3. Function Description 3.3.1. Setup Function specif ication int Setup(int OwnAddress, int Clock Speed, int BusVoltage, int PullUpsOn, int SlaveBlock Tim eout) Parameters are: int ownaddress This is the I2C address to which the Adapter is to r espond in slave m ode. T his form s the upper 7 bits of the 8 bit addr ...

  • Calibre UK UCA93 - page 11

    CALIBRE Issue 1.0 Page 8 01/07/03 Wr i t e B y t e Function spec ification Int W riteByte(int DataBy te) Parameters are: int DataByte This is the byte of data to be written. Parameters returned int ErrCode . If the trans fer tim e out occ urs error code 8002H is returned otherwise the status is returned. Prerequisites Adapter m ust be conf igured u ...

  • Calibre UK UCA93 - page 12

    CALIBRE Issue 1.0 Page 9 01/07/03 Usually a data pointer would already have been written using WriteByte. Functional desc ription Sends a start code and the s lave address. The func tion waits f or the address to be sent. Should a tim e-out oc cur during the sending of an addr ess then an error code 8004H is r eturned, otherwise the status is retur ...

  • Calibre UK UCA93 - page 13

    CALIBRE Issue 1.0 Page 10 01/07/03 3.3.9. Block W rite Function spec ification void Block W rite(int SlaveW riteAddres s, int MSB_W ordAddres s, int LSB_W ordAddress,int NoBytesToSend, int NoT ries ) Parameters are: int SlaveAddress This is the address to be access ed via the I2C, e.g. A0H int MSB_W or dAddress , int LSB_W ordAddress This is the lo ...

  • Calibre UK UCA93 - page 14

    CALIBRE Issue 1.0 Page 11 01/07/03 This is the num ber of tim es the Adapter is to try to send the address. Param eters returned None. Prerequisites Adapter m ust be conf igured using setu p. Functional desc ription T his f unction causes the Adapter to read a block of data via the I2C bus . 3.3.13. GetBlock Data Function spec ific ation int GetBlo ...

  • Calibre UK UCA93 - page 15

    CALIBRE Issue 1.0 Page 12 01/07/03 3.3.16. Block SlaveTrans mitter Status Function spec ification int Block SlaveT ransm itterStatus ( void)) Parameters are: None Parameters returned int Transf erStatus . Returns 0 if the transfer has not been com pleted. Returns the a status if the trans fer is com pleted (see below). Bit 0 Set if a write addres s ...

  • Calibre UK UCA93 - page 16

    CALIBRE Issue 1.0 Page 13 01/07/03 3.3.18. Block SlaveReceiverStatus Function spec ific ation int BlockSlaveReceiver Status (void)) Parameters are: None Parameters returned int Transf erStatus . Returns 0 if the no data has been received. Returns the a status if the trans fer is com pleted (see below). Bit 0 Not Used Bit 1 Not Used Bit 2 Not Used B ...

  • Calibre UK UCA93 - page 17

    CALIBRE Issue 1.0 Page 14 01/07/03 3.3.21. W rite_IO_Pin Function spec ification int W rite_IO_Pin (int IO Number , int IOState) Parameters are: int IONumber The num ber of the IO pin (0 or 1) to be driven int IOState The requir ed state (0 or 1) of the selec ted IO pin Parameters returned int Returns a 0 if function s ucces sful. Returns 0x800D if ...

  • Calibre UK UCA93 - page 18

    CALIBRE Issue 1.0 Page 15 01/07/03 3.3.23. SendAddressNoStatus Function spec ification void SendAddres sNoStatus(int SlaveAddr ess, int SetNac k, int NoT ries) Parameters are: int SlaveAddress This is the address to be access ed via the I2C, e.g. A0H. int SetNack This controls whether the Adapter tr ansm its an ack nowledge down the I 2 C bus on re ...

  • Calibre UK UCA93 - page 19

    CALIBRE Issue 1.0 Page 16 01/07/03 3.3.27. RestartNoStatus Function spec ification void Restar tNoStatus(int SlaveAddres s, int SetNack , int NoT ries) Parameters are: int SlaveAddress The addres s to be acces sed via the I2C, e.g. A1H. int SetNack This controls whether the Adapter tr ansm its an ack nowledge down the I 2 C bus on reception of a by ...

  • Calibre UK UCA93 - page 20

    CALIBRE Issue 1.0 Page 17 01/07/03 The Real- Time Bus M onit or To ins tall the monitor run the setup progr am loc ated in the CD_USBUSB_Monitor folder, follow the instruc tions given by the installation wiz ard. Before attem pting to run the m onitor program ensure that the device drivers are installed c orrectly in accordanc e with this manual. ...

  • Calibre UK UCA93 - page 21

    CALIBRE Issue 1.0 Page 18 01/07/03 A ppendix A I 2 C Communications A dapter Status Codes This is an eight bit register , read using the GetStatus routine. Each individual bit has its own meaning as follows: Bit 7 (MSB) - The (old) PIN Bit To all intents and purposes, this bit is now redundant. Previous Calibre I2C pr oducts used this bit to synchr ...

  • Calibre UK UCA93 - page 22

    CALIBRE Issue 1.0 Page 19 01/07/03 A ppendix B Migration Notes for Existing Calibre I2C Customers Thes e notes are intended fo r custom ers who have code working on one or m ore of Calibre UK’s existing AT or PCI based adapters and wish to conver t it to work with the new UCA93 Adapter. The fundam ental differ ences are a m uc h reduced relianc e ...

  • Calibre UK UCA93 - page 23

    CALIBRE Issue 1.0 Page 20 01/07/03 The slave functions of the UCA93 dif fer m ost f rom traditional Calibre AT and PCI bus based pr oducts. A user must m ak e a pre-deter mined dec ision whether to put the adapter into m aster, s lave transm itter or slave receiver m odes. T he adapter’s own address is es tablished as part of the Setup func tion. ...

  • Calibre UK UCA93 - page 24

    CALIBRE Issue 1.0 Page 21 01/07/03 W hen the mast er term inates the trans fer, the adapter c ompletes sending the data block to the host together with a single status byte indicating how the transfer went, and the data is put into a global variable. The Bloc kSlaveRec eiverStatus f unction waits for this status byte and the byte can be interpreted ...

  • Calibre UK UCA93 - page 25

    CALIBRE Issue 1.0 Page 22 01/07/03 When the T HE MO ST COM M ONLY AS KED I2C QUEST IONS General Que stions Question I get corrup ted transf ers why is this? Answer The m ost lik ely reason for c orrupted trans fers is either incor rect bus ter mination or exces sive capacitanc e - see the m anual for details. Question Do you have software to talk t ...

Manufacturer Calibre UK Category Network Card

Documents that we receive from a manufacturer of a Calibre UK UCA93 can be divided into several groups. They are, among others:
- Calibre UK technical drawings
- UCA93 manuals
- Calibre UK product data sheets
- information booklets
- or energy labels Calibre UK UCA93
All of them are important, but the most important information from the point of view of use of the device are in the user manual Calibre UK UCA93.

A group of documents referred to as user manuals is also divided into more specific types, such as: Installation manuals Calibre UK UCA93, service manual, brief instructions and user manuals Calibre UK UCA93. Depending on your needs, you should look for the document you need. In our website you can view the most popular manual of the product Calibre UK UCA93.

A complete manual for the device Calibre UK UCA93, how should it look like?
A manual, also referred to as a user manual, or simply "instructions" is a technical document designed to assist in the use Calibre UK UCA93 by users. Manuals are usually written by a technical writer, but in a language understandable to all users of Calibre UK UCA93.

A complete Calibre UK manual, should contain several basic components. Some of them are less important, such as: cover / title page or copyright page. However, the remaining part should provide us with information that is important from the point of view of the user.

1. Preface and tips on how to use the manual Calibre UK UCA93 - At the beginning of each manual we should find clues about how to use the guidelines. It should include information about the location of the Contents of the Calibre UK UCA93, FAQ or common problems, i.e. places that are most often searched by users in each manual
2. Contents - index of all tips concerning the Calibre UK UCA93, that we can find in the current document
3. Tips how to use the basic functions of the device Calibre UK UCA93 - which should help us in our first steps of using Calibre UK UCA93
4. Troubleshooting - systematic sequence of activities that will help us diagnose and subsequently solve the most important problems with Calibre UK UCA93
5. FAQ - Frequently Asked Questions
6. Contact detailsInformation about where to look for contact to the manufacturer/service of Calibre UK UCA93 in a specific country, if it was not possible to solve the problem on our own.

Do you have a question concerning Calibre UK UCA93?

Use the form below

If you did not solve your problem by using a manual Calibre UK UCA93, ask a question using the form below. If a user had a similar problem with Calibre UK UCA93 it is likely that he will want to share the way to solve it.

Copy the text from the picture

Comments (0)