TM!479,12User’s Guide RS-232 to I2C Host Adapter with ASCII Fast Mode Interface
11DB-25 Serial Port PinoutDB-25 Pin 2, Transmit Data from the Host Computer to the iPortDB-25 Pin 3, Receive Data from the iPort to the Host Computer.
123. I2C Interface ConnectorThe iPort/AFM Host Adapter includes a four wire, positive locking, modularconnector (see Appendix A for more info on these
13Hardware ConfigurationPull-up ResistorsThe iPort/AFM Host Adapter includes a slide switch used to enable ordisable internal 1.8K ohm Pull-Up resisto
14Part 2iPort Utility Pack forWindowsV5
15iPort Utility Pack for Windows1. Introduction to Utility PackThis product includes two (2) Windows applications (Message Manager andMessage Center)
16iPort Message ManagerThe Message Manager operates with all versions of the iPort I2C Bus HostAdapter. Using this program you can perform all four (4
172. System Requirementsa. One of the following:1. iPort (#MIIC-201) Windows to I2C Bus Host Adapter.2. iPort/AI (#MIIC-202) RS-232 to I2C Bus Host Ad
18iPort Message Center for Windows Introduction to Message CenterThe iPort Message Center supports I2C Master Transmit and Receiveactivities for all v
19Opening ScreenMain ApplicationI2C Message OperationsIn order to communicate with another I2C device, a user must take thefollowing steps:1. Start
203. Select the PC ComPort where the iPort is connected to your computer.4. Use the Options menu to override default Baud Rate and I2C Bus Clock
IntroductionThe MCC iPort/AFM (#MIIC-203) RS-232 to I2C HostAdapter with ASCII Fast Mode Interface allows any PC,Host Computer, or Data Terminal with
21You can insert a new message between existing messages by clicking onceon message below where you want to insert, press the “Insert” button onyour k
22iPort Message Manager Software for Windows Introduction to Message ManagerThe MCC iPort Message Manager Software, when used in conjunction withan M
23Opening ScreenMain ApplicationI2C Message OperationsIn order to communicate with another I2C device, a user must take thefollowing steps:1. Starting
24Basic Set Up ScreenBasic Set-upSelect the PC ComPort attached to your iPort and the baud rate, then clickOK. The Communications Events window on the
25Advanced Set Up ScreenAdvanced Set-upOn the Advanced Set-up screen you can set the following parameters:1. iPort I2C Slave AddressSelect iPort’s I2C
26Diagnostic Set Up ScreenDiagnostic Set-up (iPort Only)On the Diagnostic Set-up screen you can set the following parameters:1. iPort Log File LevelSe
27Sending MessagesMaster Operations1. To Master Transmit DataOn the main screen, set the Master Tx Message Bytes edit box to the datayou want to send
282. To Master Receive DataOn the main screen, use the I2C Destination Address list control to set theslave address of the device you want to communic
29Slave OperationsTo Slave Transmit a message:Enter data to be transmitted in the Slave Tx Message Bytes control by singleclicking. Binary data bytes
30Part 3Programmer’s ReferenceASCII Command Interface DefinitionsV2
Copyright© 2002 by Micro Computer Control Corporation. All rightsreserved. No part of this publication may be reproduced by any meanswithout the prior
31iPort/AFMQuick StartFollow these steps to start sending and receiving I2C messages:1. Install iPort/AFM as directed in the “Installation Instruction
32iPort/AFM ASCII Text Interface CommandsNote: [CR] = Carriage Return Code or Enter Key.Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767]C
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
34Command: Ctrl/R,Ctrl/R,Ctrl/R ‘iPort ResetResponse. * ‘iPort/AFM ReadyDefault Setting: NoneStatus Display This command displays current iPort/AFM s
35Close I2C Connection This command disconnects iPort/AFM from the I2C Bus.Command: /C[CR] 'Close I2C Connection Response: /CCC[CR] 'Close
36The RTS/CTS protocol uses two additional wires in the cable connectingcommunicating devices. The RTS wire is an output signal. It indicates that the
37Command: /H[0|1][CR] 'Hex Only Display [0 = Disabled, 1 = Enabled] Response: * 'iPort/AFM Ready Default Setting: EnabledSet iPort/AFM’s
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
39Master Read Message This command causes iPort/AFM to read the specified number of data bytes fromthe currently selected Destination I2C Slave Addres
40Slave Transmit Message This command should be issued to iPort/AFM in response to a Slave TransmitRequest (/STR). This command causes iPort/AFM to wr
Table of Contents:Part 1RS-232 to I2C Host Adapter w/ASCII Fast Mode InterfaceOverview... 8
41/Sab~7Ecd[CR] ‘Tilde embedded in ASCII Printable characters /S12~0D24[CR] ‘Carriage Return embedded in ASCII Printable charactersMaster Transmit M
42Default Setting: NoneExamples:/Tabcd1234[CR] ‘ASCII Printable characters "abcd1234" /T~00~01~02[CR] ‘Binary data bytes 00, 01,02 /*T~00
43Command: /X[S|~xx|R|r|P|0|1|?|D|d|C|c|L|A| |"]..., then Press Enter or ESCape Enter /X followed by zero or more sub-command
44Mid Level Response: /XCC0000[CR]Low Level Command:/X dc dCcDCcdCcdCcDCcDCcDCcdCc DCAcdCcdCcdCcdCcdCcdCcdCcDCc DCAcdCcdCcdCcdCcdCcdCcDCcdCc DCAcdCcdC
45Display Tx bYte Count (requires V2.00+)Returns the number of bytes received by the slave device in the last master transmitmessage.Command: /Y[CR]
46Asynchronous Interface Events Asynchronous Events are those iPort/AFM interface activities initiated by theiPort/AFM I2C Host Adapter in response to
47The received text is a representation of the data bytes within the Slave Receivemessage. The format of this data is controlled by the current settin
48iPort/AFM Prompts iPort/AFM Prompts are messages generated by iPort/AFM in response to Hostcomputer commands.iPort/AFM Ready Prompt: * ‘iPort/AFM R
49iPort/AFM Connection Closed Prompt: /I88[CR] ‘iPort/AFM Connection is Closed.Cause: Host is attempting to perform an I2C Bus message operation whil
50Example CodeThe following examples are written in MS Visual Basic V3 for Windows using theserial communications control (MSCOMM.VBX). It can be use
Master Operations ... 26To Master Transmit Data ... 26To Master Rece
51If Msg$ = Chr$(13) Then Msg$ = "" ' Remove CR If Msg$ = Chr$(10) Then Msg$ = "" ' Remove LF If Msg$ = "*"
52ElseIf (StrComp(iPortResp$, "/BC2") = 0) Then ' iPort/AFM Baud Change 2 {115.2K} TextBox.Text = "iPort/AFM Baud Change 0 {115.2K
53TextBox.Text = "/I83 Arbitration Loss" 'Update DisplayElseIf (StrComp(iPortResp$, "/I84") = 0) Then TextBox.Text = "/I
54iPort/AFM Revision ReportThis section defines revisions and changes made to the iPort/AFM interface:Revision: 1.021. Initial ReleaseRevision: 2.001.
55Software License AgreementBY INSTALLING THIS SOFTWARE, YOU ARE AGREEING TO BECOMEBOUND BY THE TERMS OF THIS AGREEMENT. IF YOU DO NOTAGREE TO THE TE
56implied, included but not limited to the implied warranties of merchantabilityand fitness for a particular purpose. The Purchaser assumes entire ri
57Appendix AInterface Connector and Plug InformationMCC uses two (2) different connectors and plug assemblies. These parts are allcompatible with one
iNterrupt Signal Assert... 46iNterrupt Signal Release ... 46iPort/AFM Prompt
8Part 1Model MIIC-203RS-232 to I2C Host Adapter w/ASCII Fast Mode InterfaceModel MIIC-203
9RS-232 to I2C Host Adapter w/ASCII Fast Mode InterfaceOverviewThe MCC iPort/AFM (#MIIC-203) RS-232 to I2C Host Adapter with ASCIIFast Mode Interface
10RS-232 Serial Port ConnectorPacking SlipThis package includes the following items:• iPort/AFM (#MIIC-203) RS-232 to I2C Host Adapter with ASCII Fast
Kommentare zu diesen Handbüchern