Gebruiksaanwijzing /service van het product MIIC-203 van de fabrikant MCC
Ga naar pagina of 56
TM !479,12 User’s Guide RS-232 to I 2 C Host Adapter w ith ASCII Fast Mode Interface with iPort Utility Pack for Windows www. m c c - u s . c o m.
Introduction The MCC iPort/AFM (#MIIC-203) RS-232 to I 2 C Host Adapter with ASCII Fast Mode Interface allows any PC, Host Computer, or Data Terminal with an RS-232 port to become an I 2 C Master or Slave device, transmitting or receiving I 2 C messages to one or more I 2 C devices across an I 2 C Bus.
Copyright© 2002 by Micro Computer Control Corporation. All rights reserved. No part of this publication may be reproduced by any means without the prior written permission of Micro Computer Control Corporation, PO Box 275, Hopewell, New Jersey 08525 USA.
Table of Contents: Part 1 RS-232 to I 2 C Host Adapter w/ASCII Fast Mode Interface Overvi ew .............................................................. 8 i P o r t / A F M A d a p t e r ................................................. 8 iPort Utility Pac k Softwa re .
M a s t e r O p e r a t i o n s ................................................. 2 6 T o M a s t e r T r a n s m i t D a t a ....................................... 2 6 To Mast er Receive Data ........................................ 2 7 S l a v e O p e r a t i o n s .
i N t e r r u p t S i g n a l A s s e r t ......................................... 4 6 i N t e r r u p t S i g n a l R e l e a s e ....................................... 4 6 i P o r t / A F M P r o m p t s ...........................................
8 Part 1 Model MIIC-203 RS-232 to I 2 C Host Adapter w/ASCII Fast Mode Interface Model MIIC-203.
9 RS-232 to I 2 C Host A dapter w /A SCII Fast Mode Interface Ov erv iew The MCC iPort/AFM (#MIIC-203) RS-232 to I 2 C Host Adapter with ASCII Fast Mode Interface allows any PC, Host Computer, or Data.
10 RS-232 Serial Port Connector Packing Slip This package includes the following items: • iPort/AFM (#MIIC-203) RS-232 to I 2 C Host Adapter with ASCII Fast Mode Interface. • 4 Foot I 2 C Interface Cable. (#CAB4) • 1Ft. /INT-Trigger Cable (#AXM-12G) • Serial Port Cable, 9F/25M, 1 Foot Long.
11 DB-25 Serial Port Pinout DB-25 Pin 2, Transmit Data from the Host Computer to the iPort DB-25 Pin 3, Receive Data from the iPort to the Host Computer. DB-25 Pin 4, Request to Send from the Host Computer to iPort. DB-25 Pin 5, Clear to Send from the iPort to the Host Computer.
12 3. I 2 C Interface Connector The iPort/AFM Host Adapter includes a four wire, positive locking, modular connector (see Appendix A for more info on these parts) for interfacing to an external I 2 C Bus. Lines provided include I 2 C Clock (SCL), Data (SDA), Ground, and +5VDC.
13 Hardw are Configuration Pull-up Resistors The iPort/AFM Host Adapter includes a slide switch used to enable or disable internal 1.8K ohm Pull-Up resistors on the SCL, SDA, and INT lines. Every I 2 C Bus system must have at least one Pull-Up on each line.
14 Part 2 iPort Utility Pack for Windows V5.
15 iPort Utility Pack for Windows 1. Introduction to Utility Pack This product includes two (2) Windows applications (Message Manager and Message Center) that help a user get started sending and receiving I 2 C Bus messages quickly. iPort Message Center The iPort Message Center operates with all versions of the iPort I 2 C Bus Host Adapter.
16 iPort Message Manager The Message Manager operates with all versions of the iPort I 2 C Bus Host Adapter. Using this program you can perform all four (4) modes of I 2 C Bus messages activity, inclu.
17 2. System Requirements a. One of the following: 1. iPort (#MIIC-201) Windows to I 2 C Bus Host Adapter. 2. iPort/AI (#MIIC-202) RS-232 to I 2 C Bus Host Adapter with ASCII Interface 3. iPort/AFM (#MIIC-203) RS-232 to I 2 C Bus Host Adapter with ASCII Fast Mode Interface.
18 iPort Message Center for Window s Introduction to Message Center The iPort Message Center supports I 2 C Master Transmit and Receive activities for all versions of the iPort I 2 C Bus Host Adapter. With this program you can create, save, and execute scripts of I 2 C Master messages.
19 Opening Screen Main Application I 2 C Message Operations In order to communicate with another I 2 C device, a user must take the following steps: 1.
20 3. Select the PC ComPort where the iPort is connected to y our computer. 4. Use the Options menu to override default Baud Rate and I 2 C Bus Clock rate settings. 5. Establish a link to the iPort with the Open button. The iPort Message Center software sets the iPort ’ s own I 2 C Slave address to 0xFE.
21 You can insert a new message between existing messages by clicking once on message below w here you want to insert, press the “ Insert ” button on your key board, this will bring up the I 2 C Message Editor screen, set all information and click OK.
22 iPort Message Manager Softw are for Window s Introduction to Message Manager The MCC iPort Message Manager Software, w hen used in conjunction with an MCC iPort allows a PC to become an I 2 C Master or Slave device, transmitting or receiving I 2 C messages between the PC and one or more I 2 C devices across an I 2 C Bus.
23 Opening Screen Main Application I 2 C Message Operations In order to communicate with another I 2 C device, a user must take the following steps: 1.
24 Basic Set Up S creen Basic Set-up Select the PC ComPort attached to your iPort and the baud rate, then click OK. The Communications Events window on the Main Screen should report “ I 2 C Open Successful ” . If this message does not appear, check the iPort connections and power.
25 Advanced Set Up Screen A dvanced Set-up On the Advanced Set-up screen you can set the follow ing parameters: 1. iPort I2C Slave Address Select iPort ’ s I 2 C slave address. iPort w ill acknowledge messages sent to this address. 2 .iPort General Call Enabled allows iPort to respond to the I 2 C general call address (00).
26 Diagnostic Set Up Screen Diagnostic Set-up (iPort Only) On the Diagnostic Set-up screen you can set the follow ing parameters: 1. iPort Log File Level Select iPort logging level.1 gives minimal info, 4 is verbose. Use the log file to troubleshoot communication problems.
27 Sending Messages Master Operations 1. To Master Transmit Data On the main screen, set the Master Tx Message Bytes edit box to the data you w ant to send by single clicking on the box. For example: To send a 0x05(hexadecimal) to the device, enter ~05 in the edit box.
28 2. To Master Receiv e Data On the main screen, use the I 2 C Destination Address list control to set the slave address of the device you w ant to communicate with. Main Application Screen On the lower part of the main screen, set the By tes to MasterRx edit box to the number of bytes y ou want to read.
29 Slave Operations To Slav e Transmit a message: Enter data to be transmitted in the Slave Tx Message Bytes control by single clicking. Binary data by tes are entered using a three character Hex-Equivalent format (~00 ... ~FF), you may also type in ASCII text.
30 Part 3 Programmer ’ s Reference ASCII Command Interface Definitions V2.
31 iPort/AFM Quick Start Follow these steps to start sending and receiving I 2 C messages: 1. Install iPort/AFM as directed in the “ Installation Instructions ” section of this User ’ s Guide. 2. Use a terminal emulator program (like the Windows Terminal Program or Windows Hyperterminal) to get started.
32 iPort/AFM ASCII Text Interface Comm ands Note: [CR] = Carri age Return Code or Enter Key . Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767] Command Description Ctrl/R,Ctrl/R,Ctrl/R iPort/AFM Reset This command resets the iPort/AFM to its default state.
33 /N( [0|1|A|R] )[CR] iNterrupt Signal Monitor/Control/Status Sets Monitor/Control/Status of INT line. [0 = Disable, 1 = Enable, A = Assert, R = Release/CR=Status] /O[CR] Open I 2 C Connection Activates iPort/AFM as an I 2 C device attached to the bus.
34 Command: Ctrl/R,Ctrl/R,Ctrl/R ‘ iPort Reset Response. * ‘ iPort/AFM Ready Default Setting: None Status Display This command displays current iPort/AFM status. Command: //[CR] 'Status Display Response: iPort/AFM I 2 C Host Adapter w/ASCII Fast Mode Interface Vxx.
35 Close I 2 C Connection This command disconnects iPort/AFM from the I 2 C Bus. Command: /C[CR] 'Close I 2 C Connection Response: /CCC[CR] 'Close Connection Complete Default Setting: 'Closed Set Destination I 2 C Slave Address This command sets the destination I 2 C Slave Address (Hex 0,2.
36 The RTS/CTS protocol uses two additional wires in the cable connecting communicating devices. The RTS wire is an output signal. It indicates that the device generating the signal has buffer space available, and can receive. The CTS wire is an input signal.
37 Command: /H[0|1][CR] 'Hex Only Display [0 = Disabled, 1 = Enabled] Response: * 'iPort/AFM Ready Default Setting: Enabled Set iPort/AFM ’ s Own I 2 C Slave Address This command sets iPort/AFM's own I 2 C Slave Address (Hex 2.
38 // Status Display /B[0|1|2] RS-232 Baud Rate Control (0=19.2, 1=57.6, 2=115.2KHz) /C Close I2C Connection /Dxx Set Destination I2C Slave Address /E[0|1] Echo/Prompt Control (0=Disable, 1=Enable) /F.
39 Master Read Message This command causes iPort/AFM to read the specified number of data bytes from the currently selected Destination I 2 C Slave Address with or without generating an I 2 C Stop condition after the last byte is received. Enter Byte Count (Decimal 0.
40 Slave Transmit Message This command should be issued to iPort/AFM in response to a Slave Transmit Request (/STR). This command causes iPort/AFM to write the specified data bytes to the requesting I 2 C Master Receiver device. Enter Message Bytes (1 or more Printable ASCII or Hex-equivalent ~00.
41 /Sab~7Ecd[CR] ‘ Tilde embedded in ASCII Printable characters /S12~0D24[CR] ‘ Carriage Return embedded in ASCII Printable characters Master Transmit Message This command causes iPort/AFM to writ.
42 Default Setting: None Examples: /Tabcd1234[CR] ‘ ASCII Printable characters "abcd1234" /T~00~01~02[CR] ‘ Binary data bytes 00, 01,02 /*T~00~01~02[CR] ‘ Binary data bytes 00, 01,02 w.
43 Comm and : /X[S|~xx|R| r|P|0| 1| ? | D|d|C| c|L|A| |"]..., then Press Enter or ESCape Enter /X fo llowed by zero or more sub-comm ands, th e [CR] Response: /XCC(see com m ands below)[CR] High Level Sub-Com mands: S = Send Start ~xx = Send Byte (xx = 00.
44 Mid Level Response: /XCC0000[CR] Low Level Com m and:/X dc dCcDCcdCcdCcDCcDCcDCcdCc DCAc dCcdCcdCcdCcdCcdCcdCcDCc DCAcdCcdCcdCcdCcdCcdCcDCcdCc DCAc dCcdCcdCcdCcdCcdCcdCcDCc DCAc dCD[CR] Low Level Response: /XCC0000[CR] Master read three bytes from slave address 0x4F.
45 Display Tx bYte Count (requires V2.00+) Returns the num ber of bytes received by the slave device in the last master transm it m essage. Command: /Y[CR] 'Tx bYte Count Response: /TBCn[CR] 'n =00000.
46 Asynchronous Interface Events Asynchronous Events are those iPort/AFM interface activities initiated by the iPort/AFM I 2 C Host Adapter in response to activities on the I 2 C Bus. Slave Transmit Request This event is caused by the reception of an I 2 C Bus Slave Transmit message directed at the current iPort/AFM ’ s own Slave address.
47 The received text is a representation of the data bytes within the Slave Receive message. The format of this data is controlled by the current setting of the Hex Only Display Control .
48 iPort/AFM Prompts iPort/AFM Prompts are messages generated by iPort/AFM in response to Host computer commands. iPort/AFM Ready Prompt: * ‘ iPort/AFM Ready Cause: iPort/AFM is ready for the next Host command.
49 iPort/AFM Connection Closed Prompt: /I88[CR] ‘ iPort/AFM Connection is Closed. Cause: Host is attempting to perform an I 2 C Bus message operation while the iPort/AFM Connection is Closed. The Host should issue an Open I 2 C Connection command before attempting to perform I 2 C Bus message operations.
50 Example Code The following examples are written in MS Visual Basic V3 for Windows using the serial communications control (MSCOMM.VBX). It can be used as a guide in implementing iPort/AFM interface programs in other programming languages and operating environments.
51 If Msg$ = Chr$(13) Then Msg$ = "" ' Remove CR If Msg$ = Chr$(10) Then Msg$ = "" ' Remove LF If Msg$ = "*" Then ' if iPort/AFM Ready Msg$ = "****&qu.
52 ElseIf (StrComp(iPortResp$, "/BC2") = 0) Then ' iPort/AFM Baud Change 2 {115.2K} TextBox.Text = "iPort/AFM Baud Change 0 {115.2K} " ' Test for iPort/AFM Asynchronous Interface Events ElseIf (StrComp(iPortResp$, "/SRC") = 0) Then ' Slave Rx Complete Processing TextBox.
53 TextBox.Text = "/I83 Arbitration Loss" 'Update Display ElseIf (StrComp(iPortResp$, "/I84") = 0) Then TextBox.Text = "/I84 I2C Bus Error Detected" ElseIf (StrComp(iPortResp$, "/I85") = 0) Then TextBox.
54 iPort/AFM Revision Report This section defines revisions and changes made to the iPort/AFM interface: Revision: 1.02 1. Initial Release Revision: 2.
55 Software License Agreement BY INSTALLING THIS SOFTWARE, YOU ARE AGREEING TO BECOME BOUND BY THE TERMS OF THIS AGREEMENT. IF Y OU DO NOT AGREE TO THE TERMS OF THIS AG REEMENT, PROMPTLY RETURN THE EN.
56 implied, included but not limited to the implied warranties of merchantability and fitness for a particular purpose. The Purchaser assumes entire risk as it applies to the quality and performance of the Softw are.
57 Appendix A Interface Connector and Plug Information MCC uses two (2) different connectors and plug assemblies. These parts are all compatible with one another and are interchangeable. Connectors Molex SEMCONN ACCESS.bus Receptacle Connector Molex Part # 15-83-0064 AMP SDL (Shielded Data Link) Connectors for ACCESS.
Een belangrijk punt na aankoop van elk apparaat MCC MIIC-203 (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 MCC MIIC-203 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 MCC MIIC-203 vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding MCC MIIC-203 leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over MCC MIIC-203 krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van MCC MIIC-203 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 MCC MIIC-203 kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met MCC MIIC-203 . 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.