Manual MCC MIIC-203

56 pages 0.4 mb
Download

Go to site of 56

Summary
  • MCC MIIC-203 - page 1

     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 ...

  • MCC MIIC-203 - page 2

    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. This user’s guide describes the installation ...

  • MCC MIIC-203 - page 3

    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. DISCLAIMER : Micro Computer Control Corporation makes no representations or warranties with re ...

  • MCC MIIC-203 - page 4

    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 ........................................... 8 Program me r ’ s R e f e r e n ...

  • MCC MIIC-203 - page 5

    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 .................................................. 2 8 T o S l a v e T r a n s m ...

  • MCC MIIC-203 - page 6

    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 ................................................ 4 7 i P o r t / A F M R e a d y ............................................. 4 7 Slave N ot ...

  • MCC MIIC-203 - page 7

    8 Part 1 Model MIIC-203 RS-232 to I 2 C Host Adapter w/ASCII Fast Mode Interface Model MIIC-203 ...

  • MCC MIIC-203 - page 8

    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 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 ...

  • MCC MIIC-203 - page 9

    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. (#C9F25M1) • 1Ft. /INT-Trigger Cable (#AXM-12G) ...

  • MCC MIIC-203 - page 10

    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. DB-25 Pin 7, Ground between Host Computer and iPort DB-9 Serial Port P ...

  • MCC MIIC-203 - page 11

    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. Receptacle C onnector An I 2 C Interface Cable (White=SCL, Red=+5VDC, Gr ...

  • MCC MIIC-203 - page 12

    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. Use this switch to configure the iPort/AFM appropriately for your sy stem. Connecting to a 3 ...

  • MCC MIIC-203 - page 13

    14 Part 2 iPort Utility Pack for Windows V5 ...

  • MCC MIIC-203 - page 14

    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. With th ...

  • MCC MIIC-203 - page 15

    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, including: • Master Transmit • Master Receive • Slave Transmit • Slave Receive ...

  • MCC MIIC-203 - page 16

    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. b. Windows 95 or higher c. 1 free RS-232 Serial Port. 3. Softw are Installa ...

  • MCC MIIC-203 - page 17

    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. The MCC iPort Message Center Software, w hen used with an MCC i ...

  • MCC MIIC-203 - page 18

    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. Start  Programs  iPort Utility Pack  iPort Message Center 2. Select which device y ou are operating with by choosing the corresponding image (Opening Screen), or the correct checkbox on the ...

  • MCC MIIC-203 - page 19

    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. 6. To open an existing message list, click ...

  • MCC MIIC-203 - page 20

    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. 7. On the main screen, click on Send to transmit the current list of I 2 C Master messages, wi ...

  • MCC MIIC-203 - page 21

    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. The iPort Message Manage ...

  • MCC MIIC-203 - page 22

    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. Starting the program : Start  Programs  iPort Utility Pack  iPort Message Manager 2. Select iPort Dev ice Select which device y ou are operating with by choosing the corresponding image (Op ...

  • MCC MIIC-203 - page 23

    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. ...

  • MCC MIIC-203 - page 24

    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). General call is used t ...

  • MCC MIIC-203 - page 25

    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. 2. Log File Name iPort log file name if enabled. 3. Log File Size (Lines) iP ...

  • MCC MIIC-203 - page 26

    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. Click Ok and then the Master TX button to send the message. The Communications E ...

  • MCC MIIC-203 - page 27

    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. For example: Set this to 1 to read a single ...

  • MCC MIIC-203 - page 28

    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. These bytes are automatically transmitted when a Slave Transmit Request is received from ...

  • MCC MIIC-203 - page 29

    30 Part 3 Programmer ’ s Reference ASCII Command Interface Definitions V2 ...

  • MCC MIIC-203 - page 30

    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. Remember to select the correct Com Port ...

  • MCC MIIC-203 - page 31

    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. //[CR] Status Display Display iPort/AFM status information. /B[0|1|2][CR] RS-232 Ba ...

  • MCC MIIC-203 - page 32

    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. /(*)Rn[CR] Master Read Message Read the specified number of data bytes from the current Destinat ...

  • MCC MIIC-203 - page 33

    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.xx Copyright © xxxx, Micro Computer Control Corp. Visit our Web Site at: ht ...

  • MCC MIIC-203 - page 34

    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...FE) for all subsequent Master Transmit or ...

  • MCC MIIC-203 - page 35

    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. It indicates that the other device has buffer space available, and can receive. In general ...

  • MCC MIIC-203 - page 36

    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...FE). Subsequent I 2 C messages to this address will cause iPort/AFM to become an active Slave device on ...

  • MCC MIIC-203 - page 37

    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[0|1] Flow Control (0=XON/XOFF, 1=RTS/CTS) /G[0|1] General Call Control (0=Disable, 1=Enable) /H[0|1] Hex Only Display Control (0=Disable, 1=Enable) / ...

  • MCC MIIC-203 - page 38

    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...32767) then Press Enter, or ESCape to Cancel. A Byte Count of Zero (0) represent ...

  • MCC MIIC-203 - page 39

    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..~FF), then Press Enter, or ESCape to Cancel. Note 1 ...

  • MCC MIIC-203 - page 40

    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 write the specified data bytes to the currently selected Destination I 2 C Slave Address with or without generating an I 2 C Stop condition after the last ...

  • MCC MIIC-203 - page 41

    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 with No Stop /Tab~7Ecd[CR] ‘ Tilde embedded in ASCII Printable characters /T12~0D24[CR] ‘ Carriage Return embedded in ASCII Printable characters Se ...

  • MCC MIIC-203 - page 42

    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...FF)(response = A or N) R = Read Byte with Ack (response = ~xx) r = Read Byte with Nak ( ...

  • MCC MIIC-203 - page 43

    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. First two bytes are acknowledged by master. Com m a nd: /X S ~4f Rrr P [CR] Res ...

  • MCC MIIC-203 - page 44

    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...32767 ...

  • MCC MIIC-203 - page 45

    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. Prompt: ...

  • MCC MIIC-203 - page 46

    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 . Prompt: /GRCtext[CR] ‘ General Call Receive Complete Command: None Required I 2 C Bus Time-out Detected Prompt: /I85[CR] I 2 C Bus Time-out Detected Cause: iPor ...

  • MCC MIIC-203 - page 47

    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. Slave Not Acknowledging Prompt: /SNA[CR] ‘ Slave Not Acknowledging Cause: There is no response (I 2 C Slave Address Acknowledgment) dur ...

  • MCC MIIC-203 - page 48

    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. Invalid Command Argument Prompt: /I89[CR] ...

  • MCC MIIC-203 - page 49

    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. Note: This example code is available online at: http://www.mcc-us.com/202ug.htm#E ...

  • MCC MIIC-203 - page 50

    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$ = "****" ‘ Substitute Token CharIn$ = Chr$(13) ‘ Terminate Line End If LineBuf$ = LineBuf$ + Msg$ 'Add new text to line buffer If CharIn$ = Chr$(1 ...

  • MCC MIIC-203 - page 51

    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.Text = LineBuf$ 'Update Displ ...

  • MCC MIIC-203 - page 52

    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.Text = "/I85 I2C Bus Time-out Detected" ElseIf (StrComp(iPortResp$, "/I88") = 0) T ...

  • MCC MIIC-203 - page 53

    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.00 1. Add Firmware Version Command. 2. Add eXtended Commands. 3. Add Tx bYte Count Command. Additional Information For additional information on the I 2 C Bus, please refer to the following: “ The ...

  • MCC MIIC-203 - page 54

    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 ENTIRE PRODUCT WITHIN 7 DAYS WITH ALL ITS CONTENTS TO THE PLACE OF PURCHASE, WITH A NOTE THAT YOU RETAIN NO COPIES OF THE SOFTWARE OR PRINTED MATERIALS, ...

  • MCC MIIC-203 - page 55

    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. Should the Software prove defective, the Purchaser (and not MCC, authorized MCC distributors, or dealers) assume the entire cost of a ...

  • MCC MIIC-203 - page 56

    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.bus AMP Part # 4-943197-1 Plugs ...

Manufacturer MCC Category Network Card

Documents that we receive from a manufacturer of a MCC MIIC-203 can be divided into several groups. They are, among others:
- MCC technical drawings
- MIIC-203 manuals
- MCC product data sheets
- information booklets
- or energy labels MCC MIIC-203
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 MCC MIIC-203.

A group of documents referred to as user manuals is also divided into more specific types, such as: Installation manuals MCC MIIC-203, service manual, brief instructions and user manuals MCC MIIC-203. 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 MCC MIIC-203.

Similar manuals

A complete manual for the device MCC MIIC-203, 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 MCC MIIC-203 by users. Manuals are usually written by a technical writer, but in a language understandable to all users of MCC MIIC-203.

A complete MCC 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 MCC MIIC-203 - 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 MCC MIIC-203, 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 MCC MIIC-203, that we can find in the current document
3. Tips how to use the basic functions of the device MCC MIIC-203 - which should help us in our first steps of using MCC MIIC-203
4. Troubleshooting - systematic sequence of activities that will help us diagnose and subsequently solve the most important problems with MCC MIIC-203
5. FAQ - Frequently Asked Questions
6. Contact detailsInformation about where to look for contact to the manufacturer/service of MCC MIIC-203 in a specific country, if it was not possible to solve the problem on our own.

Do you have a question concerning MCC MIIC-203?

Use the form below

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

Copy the text from the picture

Comments (0)