MCC MIIC-203 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of MCC MIIC-203, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of MCC MIIC-203 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of MCC MIIC-203. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of MCC MIIC-203 should contain:
- informations concerning technical data of MCC MIIC-203
- name of the manufacturer and a year of construction of the MCC MIIC-203 item
- rules of operation, control and maintenance of the MCC MIIC-203 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of MCC MIIC-203 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of MCC MIIC-203, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the MCC service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of MCC MIIC-203.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the MCC MIIC-203 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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 [...]

  • 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 [...]

  • Page 7

    8 Part 1 Model MIIC-203 RS-232 to I 2 C Host Adapter w/ASCII Fast Mode Interface Model 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 [...]

  • 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) [...]

  • 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[...]

  • 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[...]

  • 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[...]

  • Page 13

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

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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.[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • Page 29

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

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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 [...]

  • 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[...]

  • 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 [...]

  • 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) /[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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 ([...]

  • 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[...]

  • 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[...]

  • 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:[...]

  • 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[...]

  • 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[...]

  • 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] [...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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[...]

  • 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 [...]

  • 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,[...]

  • 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[...]

  • 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[...]