Gebruiksaanwijzing /service van het product ICA93LV van de fabrikant Calibre UK
Ga naar pagina of 27
Revision 1.7 09/12/1999 ICA93LV I 2 C Communications A dapter User Ma nual Contents 1. Introduction 1 1.1. Pack ing List 1 2. Configuring the Adapter 2 2.1. Setting the Adapter Base Addres s 2 2.2. W ait State Generator 2 2.3. Interrupt Generation 3 2.
Revision 1.7 Page 1 of 27 09/12/1999 1. Introduction The I 2 C Com m unications Adapter is a half length PC inter face c ard des igned to fit any IBM PC com patible expansion slot. Based on the Philips PCF8584 bus controller, it f eatures full I 2 C bi-direc tional com patibility as either a m aster or slave.
Revision 1.7 Page 2 of 27 09/12/1999 2. Configuring the A dapter NOTE: MANY COM PONENT S ON THE ADA PTER CARD A RE STATIC SENSIT IVE. OBSERVE NORM AL STA TIC SENSIT IVE PRECA UTIO NS WHEN HANDLING THE CA RD! The adapter is supplied in a s tandard configuration which should suit most applications.
Revision 1.7 Page 3 of 27 09/12/1999 Important Note: Due to the internal operation of the ICA93, it must not be accessed o ver the PC bus (read or w ritten ) more than o nce every nine of it s ow n clock cycles. The ICA93 is clocked at 12MHz ; therefore it MU ST NOT be accessed more than once ev ery 0.
Revision 1.7 Page 4 of 27 09/12/1999 3. Conn ecting th e A dapter to your System 3.1. Connec tor Pinout All external connec tions are m ade via a 9 way “D” sock et: Pin Norm al Mode 10 V 20 V 30 V.
Revision 1.7 Page 5 of 27 09/12/1999 4. Getting Started 4.1. Resetting t he A dapter A reset forces the adapter into a well defined state, ready for initialisation. T he card uses the sam e reset line as the PC so either a power up or hard rese t (press the <RESET> button on your PC) will suff ice.
Revision 1.7 Page 6 of 27 09/12/1999 5. Using the Utilities Each utility is documented in a s tandard for m at, which lists its nam e, us age, function, and ef fect on the adapter is given. Following a reset, the adapter should be setup prior to any data transf er.
Revision 1.7 Page 7 of 27 09/12/1999 Parameters are: int controladdress address of I 2 C control r egister. T his is equal to 1+( base address of adapter s et by links on circuit boar d). Value Returned: int <status> where status is an integer fr om 0x 00 to 0xFF which indic ates the curr ent status of I 2 C Com munications Adapter .
Revision 1.7 Page 8 of 27 09/12/1999 { int base, slv, setnac k; base = 0x310; /* Adapter’s bas address = 0x 310 (hex) */ slv = 0xa0; /* I 2 C Address of s lave, this is a typical */ /* write for an .
Revision 1.7 Page 9 of 27 09/12/1999 /* This will read a by te of data fr om a slave previously addressed */ /* by and with acknowledge already disabled by sendaddress.
Revision 1.7 Page 10 of 27 09/12/1999 #include <dos.h> /* Optional, but rec omm ended if your compiler */ /* supports DO S I/0 functions */ #include <i2c.
Revision 1.7 Page 11 of 27 09/12/1999 Name: setup (baseaddr%, own%, sc lk%) Usage: call setup(bas eaddr%, own%, sclk %) Function: procedure to s et up I 2 C Comm unic ations Adapter. Parameters are: baseaddr% base address of adapter s et by links on circuit board.
Revision 1.7 Page 12 of 27 09/12/1999 baseaddr% = &h310 ‘* adapter’s base addr ess = 0x310 ( hex) * controladdres s% = baseaddr % + 1 status% = FNgets tatus%(contr oladdress%) print”I 2 C Com m unications Adapter Status = “;status % ‘* This will read the I 2 C Comm unic ations Adapter’s c urrent status * 5.
Revision 1.7 Page 13 of 27 09/12/1999 setnack % this controls whether the I 2 C Com munic ations Adapter trans m its and Ack nowledge down the I 2 C Bus on reception of a byte. The last byte received during a transf er m ust not be ac knowledged, in all other c ases ack nowledge mu st be enabled.
Revision 1.7 Page 14 of 27 09/12/1999 Function: procedure to send a Stop (end of c omm unica tion signal) down the I 2 C Bus, ending a transm ission or reception with a slave that was address previously by sendaddress .
Revision 1.7 Page 15 of 27 09/12/1999 slv% = &ha1 ‘* I 2 C Address of slave, this is a ty pical read addres s * ‘* for an I 2 C s tatic RAM or EEPROM* setnack % = 0 ‘* Enable Ack nowledge (s.
Revision 1.7 Page 16 of 27 09/12/1999 baseaddress is the addres s at which the adapter has been ins talled, e.g. 310H ownaddress I2C address to which the adapter is to res pond in slave mode. T his f orm s the upper 7 bits of the 8 bit addres s, the lowest bit being the read (1) or write (0) bit.
Revision 1.7 Page 17 of 27 09/12/1999 Setnack 1 for no ac knowledge 0 for ack nowledge. Paramete rs returned I 2 Cdata, the data read, if a time-out oc curs the Er rCode 8005H is returned. Prerequisites Adapter m ust be conf igured using setup, start and read addr ess sent by sendaddress.
Revision 1.7 Page 18 of 27 09/12/1999 getstatus Function spec ification: Int getstatus ( ) Paramete rs returned I 2 Cstatus, the current value of the bus status . Prerequisites Adapter mus t be configur ed using setup. Functional desc ription The f unction reads status word f rom the adapter and returns it.
Revision 1.7 Page 19 of 27 09/12/1999 W hen all the by tes have been transm itted a stop is issued and the total number of bytes is returned. Sendby tes can only be used in mas ter write m ode.
Revision 1.7 Page 20 of 27 09/12/1999 Getbytes can only be used in m aster read m ode. slavelastbyte Function spec ification void slavelastbyte( ) Paramete rs returned none.
Revision 1.7 Page 21 of 27 09/12/1999 6. Furth er Informatio n The f ollowing references m ay be found usef ul when using the adapter: Philips Semic onductor s Tec hnic al Handbook Book 4 Parts 12a and 12b. T hese give details of the I2C com patible ICs, and the I 2 C Bus specific ation.
Revision 1.7 Page 22 of 27 09/12/1999 7. T he Real-Time Bu s Mo nitor The pr ogram REALTIM1.EX E in the MONTO R director y is a completely non-invasive real-tim e bus monitor which records ac tivity on an I 2 C-bus , post-proc esses the data and s tores the res ults in an ASCII file.
Revision 1.7 Page 23 of 27 09/12/1999 A ppendix A I 2 C Communications A dapter S tatus Codes This is an eight bit register, read using the gets tatus routine.
Revision 1.7 Page 24 of 27 09/12/1999 A ppendix B – I 2 C Communications A dapter Control Codes The Control Regis ter should norm ally be w ritten using the setup, s endaddress and s endstop routines.
Revision 1.7 Page 25 of 27 09/12/1999 A ppendix C - T he M ost Commonly A sked I 2 C Questio ns General Que stions Question Will my adapter work in a Pentium PC? Answer Y es and there is no need to alter LK 4 f rom the position in which your adapter was shipped.
Revision 1.7 Page 26 of 27 09/12/1999 W indows 95 START - Run regedit HKEY_LOCAL_MACHINE | |--S YS TEM | |--CurrentControlSet | |--S ervi ces | |--Cl ass | |--W inRT | |--W inRTdev0 | |--Parameter s |.
Een belangrijk punt na aankoop van elk apparaat Calibre UK ICA93LV (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Calibre UK ICA93LV heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Calibre UK ICA93LV vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Calibre UK ICA93LV leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Calibre UK ICA93LV krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Calibre UK ICA93LV bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Calibre UK ICA93LV kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Calibre UK ICA93LV . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.