User’s GuideRS-232 to I2C Host AdapterASCII Fast Modewith iPort Utility Pack Softwarewww.mcc-us.com
21 OverviewThe MCC iPort/AFM RS-232 to I2C Bus Host Adapter with ASCII Fast Mode(#MIIC-203) allows any PC, Host Computer, or Data Terminal to become a
3RS-232 Serial Port Connector1.4 Packing SlipThis package includes the following items:• iPort/AFM RS-232 to I2C Bus Host Adapter (#MIIC-203).•I2C Int
4The I2C adapter implements the RS-232 interface using the following pins:2.1.1 DB-25 Serial Port PinoutDB-25 Pin 2, Transmit Data from the Host Compu
5Receptacle ConnectorAn I2C Interface Cable (White=SCL, Red=+5VDC, Green=SDA, Black=Ground) isprovided to connect to an external I2C Bus. Since there
6/INT signal level, and send a notification to the host computer when the /INT signalchanges state.3 Hardware Configuration3.1 Pull-up ResistorsThe I2
7supported include time-outs, device reset, and Packet Error Check byte processing.The non-supported SMBus features may, or may not, permit the use of
8• Wear an earth grounded wrist strap, or discharge any static charge build-up,when handling the I2C adapter or any target system devices.• Ensure tha
9If you have any questions on I2C adapter setup and configuration, please contact ourtechnical support department via our web site.
10
11Part 2 - iPort Utility Pack for WindowsPart 2iPort Utility PackforWindowsV5.2
IntroductionThe MCC iPort/AFM™ RS-232 to I2C Host Adapter with ASCII Fast Mode(#MIIC-203) allows any PC, Host Computer, or Data Terminal with an RS-23
12
131 iPort Utility Pack for WindowsThe iPort Utility Pack for Windows is your express lane to I2C Buscommunications. The Utility Pack includes two (2)
141.2 iPort Message ManagerThe iPort Message Manager operates with all versions of our I2C Bus HostAdapters. Using the Message Manager, you can perfor
152 System RequirementsOne of the following MCC I2C Bus adapters:1. iPort (#MIIC-201) Windows to I2C Bus Host Adapter.2. I2C Bus Host Adapter Variable
16Main Application4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receiveactivities for all MCC I2C Bus host a
17Opening ScreenMain Application4.1 Message Center OperationsCommunicating with another device on the I2C Bus is easy. Just install the softwareas des
184.1.3 Select the Communications PortUse the “Using Com:” control to select the RS-232 communication port connectedto the I2C adapter. Message Center
19Use the I2C Message Editor to:1. Set I2C Address.The I2C Address is the I2C slave address of the slave device being addressedon the bus. All slave
20Sending an I2C message with doStop enabled will cause the message to beterminated with a Stop Condition. Sending an I2C message with doStopdisabled
214.1.8 Saving or Loading Message ListsMessage Center I2C message lists can be saved to, or loaded from, a disk file. Tosave the current message list,
Copyright© 2004 by Micro Computer Control Corporation. All rights reserved. Nopart of this publication may be reproduced by any means without the prio
224.2 Command Line ArgumentsThe Message Center can be controlled via command line arguments. This featureallows the Message Center to be accessed from
234.2.1 Set Adapter TypeiPort iPort (#MIIC-201)iPort/AI iPort/AI (#MIIC-202)iPort/AFM iPort/AFM (#MIIC-203)Variable Variable Clock (#MIIC-201-V)The Ad
244.2.5 Enable /INT Signal MonitorMonitor/INT (on INT supported adapters only. Default=OFF)Enable /INT signal monitoring.4.2.6 Stop On BusyStopOnBusy
25Generate a host computer beep if the adapter returns a "Bus Arbitration Loss"response to the host computer. Bus Arbitration Loss occurs wh
264.2.15 Auto OpenAutoOpen Auto Open Link to I2C AdapterOpen link to adapter.4.2.16 Auto SendAutoSend Auto Send I2C Message ListSend I2C messages load
27Main Application5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receiveactivities for all MCC I2C Bus
28Opening ScreenMain Application5.1 Message Manager OperationsCommunicating with another device on the I2C Bus is easy. Just install the softwareas de
29Basic Set Up Screen5.1.3 Establish Adapter Communications LinkOn the main screen, click the Open button to view the Set Up Screen. Three levelsof se
30Advanced Set Up Screen5.1.3.2 Advanced SetupOn the Advanced Setup screen you can set the following parameters:Adapter’s Own I2C Slave AddressSelect
31Diagnostic Set Up Screenmain screen Communications Events window.5.1.3.3 Diagnostic Setup (on supported adapters)On the Diagnostic Set-up screen you
Table of ContentsPart 1 - iPort/AFM RS-232 to I2C Bus Host Adapter ...11 Overview ...
325.1.4 Sending I2C Messages5.1.4.1 Master Operations5.1.4.1.1 Specifying the Destination AddressThe Destination Address is the I2C slave address of t
335.1.4.1.3 Auto RepeatThe situation often arises, where you would like to automatically repeat a mastermessage operation.The Message Manager supports
34Click OK to accept the data.Sending Master Transmit MessagesClick the Master Tx button to write the specified Master Tx Data Bytes to theselected de
35Negative Acknowledge Last ByteOn supported adapters, the doNak checkbox gives you the option to acknowledge,or negatively acknowledge, the last byte
366 Uninstalling iPort Utility PackClick, Start | Programs | iPort Utility Pack | uninstall.Follow the on screen instructions.
37Part 3 - iPort/AFM Programmer’s ReferencePart 3Programmer’s ReferenceASCII Command InterfaceDefinitions
38Programmer’sQuick StartCreating a custom iPort/AFM program is easier if you know what to expect. Followthese steps to manually control the iPort/AFM
39iPort/AFMASCII Command InterfaceNote: [CR] = Carriage Return Code or Enter Key.Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767]Command De
40 /Stext[CR]Slave Transmit MessageWrite the specified data bytes to a requesting I2C Master Receiver device. /(*)Ttext[CR]Master Transmit MessageMast
41Command: //[CR] 'Status Display Response: iPort/AFM I2C Host Adapter w/ASCII Fast Mode Interface Vxx.xx Copyright © xxxx, Micro Computer Contro
Installing from the Web...154 iPort Message Center ...16Message Cent
42Transmit or Receive operation. Command: /Dxx[CR] 'Set Destination I2C Slave Address Response 1: * 'iPort/AFM Ready Response 2: /I89[CR]
43by Host communication driver software, and are not visible at the applicationprogram level.The RTS/CTS protocol requires a serial port, cabling, and
44Response 2: /I89[CR] 'Invalid Command Argument Default Setting: 6EI2C Bus Clock Rate ControlSet the I2C Bus master clock rate. (0=23, 1=86, 2=1
45/O Open I2C Connection /(*)Rn Master Rx Message *=No Stop /S(text) Slave Tx Message /(*)T(text) Master Tx Message *=No Stop/Un Set I2C Bus Time-o
46Enter Byte Count (Decimal 0...32767) then Press Enter, or ESCape to Cancel. AByte Count of Zero (0) represents a Variable Length message, where the
47the I2C Bus, the iPort/AFM outputs a Slave Transmit Request to its Host device,and initiates an I2C Clock Stretch (SCL Low) until a Slave Transmit c
48Enter Message Bytes (0 or more Printable ASCII or Hex-equivalent ~00..~FF), thenPress Enter, ESCape to Cancel.Note: The tilde (~) character and the
49Set I2C Bus Time-oUt in msecSet bus time-out in milliseconds.The iPort/AFM reports a bus time-out if no intra-byte bus activity for the specifiedtim
50S = Send Start~xx = Send Byte (xx = 00...FF)(response = A or N)R = Read Byte with Ack (response = ~xx)r = Read Byte with Nak (response = ~xx)P = Sen
51Low Level Response: /XCC0000[CR]Master read three bytes from slave address 0x4F. First two bytes are acknowledgedby master.Command: /X S ~4f Rrr P [
Starting the Message Manager ...29Select the Adapter ...29Establish Adapter
52Command: /Y[CR] 'Tx bYte CountResponse: /TBCn[CR] 'n =00000...32767
53Asynchronous Interface Events Asynchronous Events are those iPort/AFM interface activities initiated by theiPort/AFM I2C Host Adapter in response to
54The received text is a representation of the data bytes within the Slave Receivemessage. The format of this data is controlled by the current settin
55Cause: iPort/AFM has detected an error condition on the I2C Bus. The hostcomputer should retry the last command or issue an iPort/AFM Reset command.
56host. The host should reissue the correct command.iPort/AFM RS-232 Receive Buffer OverflowPrompt: /I90[CR] ‘iPort/AFM RS-232 Receive Buffer Overflo
57Example CodeThe following examples are written in MS Visual Basic V3 for Windows using theserial communications control (MSCOMM.VBX). It can be use
58Communication Event ProcessingStatic Sub Comm1_OnComm () Static LineBuf$While Comm1.InBufferCount Msg$ = Comm1.Input ' Get Comm input character
59ElseIf (StrComp(iPortResp$, "/BC0") = 0) Then ' iPort/AFM Baud Change 0 {19.2K} TextBox.Text = "iPort/AFM Baud Change 0 {19.2K}
60TextBox.Text = "/I83 Arbitration Loss" 'Update DisplayElseIf (StrComp(iPortResp$, "/I84") = 0) Then TextBox.Text = "/I
61iPort/AFM Revision ReportThis section defines revisions and changes made to the iPort/AFM interface:Revision: 2.001. Add Firmware Version command.2.
Close I2C Connection ...43Set Destination I2C Slave Address ...44Echo/Prompt Contr
62Appendix A - I2C Connector InformationInterface Connector and Plug InformationMCC uses two (2) different connectors and plug assemblies. We have fou
63Declaration of ConformityThis Declaration of Conformity is issued by the indicated company which is solely responsiblefor the declared compliance.Pr
iPort/AFM Revision Report ....63Additional Information ....63Appendix A -
1Part 1 - iPort/AFM RS-232 to I2C Bus Host AdapterPart 1RS-232toI2C Bus Host AdapterwithASCII Fast ModeUser’s GuideModel: MIIC-203
Comentarios a estos manuales