User’s Guide USB to I2C Host Adapter ASCII Fast Mode with iPort Utility Pack Software www.mcc-us.
Introduction The MCC iPort/USB™ USB to I2C Host Adapter with ASCII Fast Mode (#MIIC-204) allows any Windows 2000, XP, Vista(x86/x64), or 7(x86/x64) PC, with a free USB port or self-powered USB hub, to become an I2C Master or Slave device, transmitting or receiving I2C messages between the PC and one or more I2C devices across an I2C Bus.
Copyright© 2011 by Micro Computer Control Corporation. All rights are 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 respect to the contents hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose.
Table of Contents Part 1 - iPort/USB USB to I2C Bus Host Adapter . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort/USB USB to I2C Bus Host Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort/USB Virtual Communications Port (VCP) . . . . . . . . . . . . . . . . . . . . . . . . . iPort Utility Pack Software . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 iPort Utility Pack for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 iPort Message Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 iPort Message Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3 iPort Utility Pack Installation . . . . . . . . . . . . . . .
Load I2C Message List File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Saved I2C Message List File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Auto Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Auto Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Auto Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part 3 - iPort/USB Programmer’s Reference . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ASCII Command Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Synchronous Interface Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort/USB Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Invalid iPort/USB Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 iPort/USB Receive Buffer Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Example Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort/USB Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iPort/USB Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part 1 - iPort/USB USB to I2C Bus Host Adapter Part 1 2 USB to I C Bus Host Adapter with ASCII Fast Mode User’s Guide Model: MIIC-204 1
1 Overview The MCC iPort/USB USB to I2C Bus Host Adapter with ASCII Fast Mode (#MIIC-204) allows any Windows 2000, XP, Vista, or 7 PC with a free USB port or self-powered USB hub, to become an I2C Master or Slave device, transmitting or receiving I2C messages between the PC and one or more I2C devices across an I2C Bus. iPort/USB Product Features: Add an I2C port to ANY Windows 2000, XP, Vista(x86/x64), 7(x86/x64) PC. Compatible with USB 2.0 Specifications.
standard serial communication programming methods to work unchanged. No special USB programming is required. The iPort/USB VCP is available to the host computer whenever the iPort/USB is attached to the host computer. 1.3 iPort Utility Pack Software This free software package includes the iPort Message Center and Message Manager applications to help you easily send and receive I2C Bus messages. 1.
2.1 USB Connector The USB connector provides connection from the I2C adapter to a USB port on the host computer or self-powered USB hub. The iPort/USB operates as a high-power (>100 mA) bus-powered USB device, with limited target system power. Additional target system power can be provided via an optional external power supply. 2.1.1 Virtual Communications Port (VCP) The iPort/USB provides a Virtual Communications Port (VCP) interface via a host computer driver.
supply. See the “Hardware Setup” section for additional details. 2.3 I2C Interface Connector The I2C adapter includes a four wire, positive locking, modular receptacle connector (see Appendix A) for interfacing to an external I2C Bus. Lines provided include I2C Clock (SCL), I2C Data (SDA), Ground, and +5V. Minimum wiring for I2C Bus communications include I2C Bus Clock, Data, and Ground. Connect the +5V (V) wire to the target system to power the target system from either: 1 USB derived power.
standard I2C Bus connector, you may want to cut off one end of the cable and add a connector compatible with your target system. Additional I2C Interface Cables, Clip-Lead Cables, and modular connectors are available from MCC (see Appendix A). 2.1 Interrupt (/INT) Signal Connector The Interrupt (/INT) signal is an extra pin found on some I2C devices. The /INT signal allows a slave-only device to attract the attention of a bus master device by lowering the /INT signal to a logical low voltage level.
If you are connecting the I2C adapter to a 3.3 volt target system, you should follow these steps BEFORE applying power: • Shut off the iPort/USB internal pull-ups (See Pull-up Resistor section). Use external pull-ups to the target system’s 3.3V power. These pull-ups may already be present in the target system. • Disconnect the I2C Bus connector +5V wire from the target system. The iPort/USB will be powered from the USB, and the target system will be powered by its own 3.3V power supply.
care must be taken to avoid electrostatic discharge. Failure to follow ESD protection procedures when using the I2C adapter could damage the host computer, I2C adapter, or the target system, and void product warranty coverage. 4.1 Host Computer Grounding Case 1 - Desktop and Single-board Computers. The chassis on a desktop or single-board host computer must be connected to earth ground to comply with safety regulations. If the computer chassis is NOT connected to earth ground for some reason (i.e.
the common earth ground point. • If unsure how to properly ground system components, seek electrical expert help. WARNING: Any damage caused by Electrostatic Discharge (ESD) through inadequate earth grounding is NOT covered under the warranty of this product. 5 Driver Software Set-Up This section provides information on how to install, update, and uninstall the iPort/USB software driver. 1.
(Start | Settings | Control Panel | System | Device Manager | Ports (COM & LPT)), or the Driver Uninstall short-cut on the iPort Utility Pack Start menu. 6. Hardware Set-Up This section provides information on connecting the I2C adapter to your host computer and I2C Bus target system. 1. USB Connection After completing the Driver Installation instructions above, plug the iPort/USB adapter into a free USB port on your host computer or selfpowered USB hub.
provides additional power to the target system via the I2C connector. See “+5VDC Power Jack” section for additional details. If you have any questions on I2C adapter setup and configuration, please visit our FAQ page (http://www.mcc-us.com/faq.htm), or contact our technical support team (support@mcc-us.com).
12
Part 2 - iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows 13
14
1 iPort Utility Pack for Windows The iPort Utility Pack for Windows is your express lane to I2C Bus communications. The Utility Pack includes two (2) Windows-based applications (Message Center and Message Manager) that will help you get started sending and receiving I2C Bus messages quickly and easily. 1.1 iPort Message Center The iPort Message Center, our most popular application, operates with all versions of our I2C Bus Host Adapters.
1.2 iPort Message Manager The iPort Message Manager operates with all versions of our I2C Bus Host Adapters.
2 System Requirements One of the following MCC I2C Bus adapters: 1. i2cStick (#MIIC-207) USB to I2C Bus Host Adapter. 2. iPort/USB (#MIIC-204) USB to I2C Bus Host Adapter. 3. iPort/AFM (#MIIC-203) RS-232 to I2C Bus Host Adapter with ASCII Fast Mode Interface. 4. iPort/AI (#MIIC-202) RS-232 to I2C Bus Host Adapter with ASCII Interface 5. iPort (#MIIC-201) Windows to I2C Bus Host Adapter. 6. iPort DLL/USB (#MIIC-201D/U) I2C Bus Host Adapter. 7. Variable Clock Rate (#MIIC-201-V) I2C Bus Host Adapter.
4 iPort Message Center The iPort Message Center supports I2C Master Transmit and Master Receive activities for all MCC I2C Bus host adapters. With this program you can create, save, and execute scripts of I2C Master messages. Main Screen (Typical) The iPort Message Center allows a PC to become an I2C Master transmitter or receiving device, sending I2C messages between the PC and one or more I2C devices across an I2C Bus.
4.1 Message Center Operations Communicating with another device on the I2C Bus is easy. Just install the software as described in Section 3, then follow these simple steps: 4.1.1 Starting the Message Center Click, Start *Programs *iPort Utility Pack*iPort Message Center 4.1.2 Selecting the Adapter Select the I2C adapter you are using by clicking the corresponding adapter image (see Opening Screen), or the Device Select checkbox (see Main Application Screen).
4.1.3 Select the Communications Port Use the “ComPort:” control to select the communication port connected to the I2C adapter. If a USB-based device is selected, the serial number for the adapter is displayed (Win 2000, XP+ only). In addition to legacy RS-232 ports and iPort/USB based Virtual Communication Ports, Message Center supports USB and network connected local or remote RS-232 ports via the Windows Com driver. 4.1.
Use the I2C Message Editor to: 1. Set I2C Address. The I2C Address is the I2C slave address of the slave device being addressed on the bus. All slave addresses are displayed as even numbers (00...FE), representing the 7 most significant bits of the 8-bit slave address transmitted on the bus (aaaa aaa0). The I2C adapter automatically supplies the 8th, least significant, Read/Write bit when it sends the slave address across the bus.
across the bus begins with a Start Condition, in this case a Repeated Start. An I2C Bus master, that successfully sends a message on the bus, owns the bus until that master sends a message with a terminating Stop Condition. The Repeated Start operation allows the bus master to retain control of the bus while sending one or more messages on the bus. This prevents other bus masters, in a multi-master system, from accessing the bus and interfering with message sequences.
4.1.7 Inserting and Deleting Messages You can insert a new message between existing messages by clicking once on a message below where you want to insert, then press the “Insert” key on your keyboard. The Message Editor also remembers the last message displayed, so double clicking on a blank spreadsheet row will allow you to copy a message. Delete a message by single clicking on the message row and pressing the “Delete” key on your keyboard. 4.1.
4.1.11 Slave Not Acknowledging If you get a “Slave Not Acknowledging” message in the Status window, this could indicate you have the wrong address in the I2C Destination Address, or the device is not answering to its address. Some slave devices temporarily stop acknowledging their address. Consult the slave device’s data sheet for details.
4.2 Command Line Arguments The Message Center can be controlled via command line arguments. This feature allows the Message Center to be accessed from a batch file or another program. Message Center Command Line Arguments Command Description iPort, iPort/AI, iPort/AFM, Variable, iPort/USB, i2cStick Specify I2C adapter type.* COM1...COM99 Specify RS-232 communication port. BAUD19200, BAUD57600, BAUD115200 Set RS-232 Baud Rate.* CLOCK12.
4.2.1 Set Adapter Type i2cStick iPort/USB iPort/AFM iPort/AI iPort Variable i2cStick (#MIIC-207) iPort/USB (#MIIC-204) iPort/AFM (#MIIC-203) iPort/AI (#MIIC-202) iPort (#MIIC-201) Variable Clock (#MIIC-201-V) The Adapter Type argument should be the first argument in the argument list as it controls the availability of other arguments. If the Adapter Type is not specified, the startup adapter selection screen will be presented. 4.2.2 Set RS-232 Communication Port 1st Available ComPort COM1...
nearest available supported rate. 4.2.5 Enable /INT Signal Monitor Monitor/INT (on INT supported adapters only. Default=OFF) Enable /INT signal monitoring. 4.2.6 Stop On Busy StopOnBusy (Default=OFF) Stop sending I2C messages if the adapter returns a "Busy" response to the host computer. 4.2.7 Stop On Arbitration Loss StopOnArbLoss (Default=OFF) Stop sending I2C messages if the adapter returns a "Bus Arbitration Loss" response to the host computer.
4.2.10 Beep On Arbitration Loss BeepOnArbLoss (Default=OFF) Generate a host computer beep if the adapter returns a "Bus Arbitration Loss" response to the host computer. Bus Arbitration Loss occurs when another I2C Bus master wins arbitration while the adapter is attempting to become a bus master. 4.2.11 Beep On Slave Negative Acknowledgment BeepOnNak (Default=OFF) Generate a host computer beep if the adapter returns a "Slave Not Acknowledging" response to the host computer.
4.2.14 Saved I2C Message List File AutoSave=filename AutoSave="file name" Automatically save message list to the specified file upon executing AutoExit. Use to save message data read from a slave transmitter device. 4.2.15 Auto Open AutoOpen Auto Open Link to I2C Adapter Open link to the adapter. 4.2.16 Auto Send AutoSend Auto Send I2C Message List Send I2C messages loaded with the AutoLoad command. 4.2.17 Auto Exit AutoExit Auto exit after sending the message list.
5 iPort Message Manager The iPort Message Manager supports I2C Master and Slave, Transmit and Receive activities for all MCC I2C Bus host adapters, allowing a PC to become an I2C Master or Slave device, transmitting or receiving I2C messages between the PC and one or more I2C devices across an I2C Bus. Main Screen (Typical) The Message Manager is designed to be a simple application for experimenting with I2C messages. Message Manager provides methods to: 1.
5.1 Message Manager Operations Communicating with another device on the I2C Bus is easy. Just install the software as described in Section 3, then follow these simple steps: 5.1.1 Starting the Message Manager Click, Start *Programs *iPort Utility Pack*iPort Message Manager 5.1.2 Select the Adapter Select the I2C adapter you are using by clicking the corresponding adapter image (see Opening Screen), or the Device Select checkbox (see Main Screen).
5.1.3 Establish Adapter Communications Link On the main screen, click the Open button to view the Set Up Screen. Three levels of setup options are available, Basic, Advanced, and Diagnostic. Only Basic setup is required. Basic Set Up Screen 5.1.3.1 Basic Setup Use the “ComPort” control to select the communication port connected to the I2C adapter. If an iPort/USB is selected, the serial number for the selected adapter is displayed (Win 2000, XP+ only).
Advanced Set Up Screen 5.1.3.2 Advanced Setup On the Advanced Setup screen you can set the following parameters: Adapter’s Own I2C Slave Address Select the I2C adapter’s own slave address. The adapter will acknowledge messages sent to this slave address. The default address is 0x6E. General Call Enable General Call Enable allows the I2C adapter to respond as a slave receiver to the I2C General Call Address (0x00). General Call is used by a master to broadcast an I2C message to multiple devices.
Diagnostic Set Up Screen 5.1.3.3 Diagnostic Setup (on supported adapters) On the Diagnostic Set-up screen you can set the following parameters: Log File Level A log file is available for troubleshooting communication problems between the host computer and the I2C adapter. The log file is an ASCII text file viewable with any text editor. Select logging level. Level 1 provides minimum information. Level 4 provides maximum information. Log File Name Specify a log file name.
5.1.4 Sending I2C Messages 5.1.4.1 Master Operations 5.1.4.1.1 Specifying the Destination Address The Destination Address is the I2C slave address of the slave device being addressed on the bus. All slave addresses are displayed as even numbers (00...FE), representing the 7 most significant bits of the 8-bit slave address transmitted on the bus (aaaa aaa0). The I2C adapter automatically supplies the 8th, least significant, Read/Write bit when it sends the slave address across the bus.
5.1.4.1.3 Auto Repeat The situation often arises, where you would like to automatically repeat a master message operation. The Message Manager supports auto-repeat with the Auto Repeat checkbox. You can automatically repeat a master operation by checking the Auto Repeat control before clicking the Master Tx, Master Rx, or Master TxRx buttons. The master operation repeats until the Auto Repeat control is unchecked. 5.1.4.1.
Click OK to accept the data. Sending Master Transmit Messages Click the Master Tx button to write the specified Master Tx Data Bytes to the selected destination slave device. If Auto Repeat is checked, the message will automatically repeat upon completion. The Communications Events window on the main screen should report “Master Tx Complete.” If this message does not appear, check the slave device address, connections, and power.
Negative Acknowledge Last Byte On supported adapters, the doNak checkbox gives you the option to acknowledge, or negatively acknowledge, the last byte read from a slave device. Some Slave Transmitter Devices require a negative acknowledgment on the final byte read from the slave device. I2C adapters not supporting this option automatically negatively acknowledge the last byte read. 5.1.4.1.
based adapters, the Virtual Communications Port (VCP) Device Driver. The following instructions can be used to remove either or both software components from your computer. 6.1 Uninstalling iPort Utility Pack for Windows To uninstall the iPort Utility Pack for Windows software, use the Windows Control Panel “Programs and Features” (formerly “Add or Remove Programs”) utility. Note that uninstalling the iPort Utility Pack for Windows software does not uninstall the device or driver software. 6.
40
Part 3 - iPort/USB Programmer’s Reference Part 3 Programmer’s Reference ASCII Command Interface Definitions 41
Programmer’s Quick Start Creating a custom iPort/USB program is easier if you know what to expect. Follow these steps to manually control the iPort/USB from your computer’s keyboard and screen. 1 Install the iPort/USB as directed in the “Hardware Set-Up” section of this User’s Guide. 2 Use a terminal emulator program, like Windows’ Hyperterminal, to start communicating with the I2C adapter.
iPort/USB ASCII Command Interface Note: [CR] = Carriage Return Code or Enter Key. Syntax: [Select], (Optional), xx = [00..FE], n = [0..32767] Command Description Ctrl/R,Ctrl/R,Ctrl/R iPort/USB Reset This command resets the iPort/USB to its default state. //[CR] Status Display Display iPort/USB status information. /B[0|1|2][CR] Serial Communication Baud Rate Control Set the serial communication baud rate (0 = 19.2, 1 = 57.6, 2 = 115.2 Baud) /C[CR] Close I2C Connection Disconnect from the I2C Bus.
/Stext[CR] Slave Transmit Message Write the specified data bytes to a requesting I2C Master Receiver device. /(*)Ttext[CR] Master Transmit Message Master Transmit the specified data bytes to the current Destination I2C Slave device. * = No Stop for Repeated Start. /Un[CR] I2C Bus Time-oUt Set I2C Bus Time-oUt in msec (0=Disable) /V[CR] Display Firmware Version (Major XX.XX Minor) /X[CR] eXtended Commands (See Prompt or User’s Guide) /Y[CR] Display Tx bYte Count (Requires Firmware V2.
Command: //[CR] 'Status Display Response: iPort/USB I2C Host Adapter w/ASCII Fast Mode Interface Vxx.xx Copyright © xxxx, Micro Computer Control Corp. Visit our Web Site at: http://www.mcc-us.com Serial Communications Baud Rate (19.
Set the destination I2C Slave Address (Hex 0,2...FE) for all subsequent Master Transmit or Receive operations. Command: /Dxx[CR] Response 1: * Response 2: /I89[CR] Default Setting: 00 'Set Destination I2C Slave Address 'iPort/USB Ready 'Invalid Command Argument Echo/Prompt Control This command enables or disables data entry echo and prompts used as feedback to manual operations from a computer terminal.
these control characters are normally automatically stripped out of the data stream by Host communication driver software, and are not visible at the application program level. The RTS/CTS protocol requires a serial port, cabling, and Host communication driver software that supports the additional control signals.
Response 1: * Response 2: /I89[CR] Default Setting: 6E 'iPort/USB Ready 'Invalid Command Argument I2C Bus Clock Rate Control Set the I2C Bus master clock rate. (0=23, 1=86, 2=100, 3=400 KHz) Command: /K[0|1|2|3][CR] 'Set iPort/USB's Clock Rate Response 1: * 'iPort/USB Ready Default Setting: /K2[CR] The iPort/USB I2C Bus master clock rate is controlled by the frequency of the oscillator used in the adapter.
/O /(*)Rn /S(text) /(*)T(text) /Un /V /X[...]... /Y Open I2C Connection Master Rx Message *=No Stop Slave Tx Message Master Tx Message *=No Stop Set I2C Bus Time-oUt in msec 0=Disable) Display Firmware Version (Major XX.XX Minor) Extended Cmds (See Prompt or User's Guide) Display Tx bYte Count Interrupt Signal Control/Status The INT signal allows the iPort/USB to participate in INT master and/or slave communications.
Enter Byte Count (Decimal 0...32767) then Press Enter, or ESCape to Cancel. A Byte Count of Zero (0) represents a Variable Length message, where the first byte read from the I2C Slave device indicates the number of additional trailing bytes that are available to read. The iPort/USB automatically reads the first byte, then the additional bytes as specified by the first byte. All message bytes including the Length byte are returned to the Host computer.
the I2C Bus, the iPort/USB outputs a Slave Transmit Request to its Host device, and initiates an I2C Clock Stretch (SCL Low) until a Slave Transmit command is received from the Host computer. While clock stretching, no other messages can be transmitted on the I2C Bus. Note 2: The tilde (~) character and the Carriage Return (CR) characters are used as special marker characters within all iPort/USB transmitted text messages.
Enter Message Bytes (0 or more Printable ASCII or Hex-equivalent ~00..~FF), then Press Enter, ESCape to Cancel. Note: The tilde (~) character and the Carriage Return (CR) characters are used as special marker characters within all iPort/USB transmitted text messages.
Set I2C Bus Time-oUt in msec Set bus time-out in milliseconds. The iPort/USB reports a bus time-out if no inter-byte bus activity for the specified time occurs within an I2C Bus message. Command: /Unnnnn[CR] 'I2C Bus time-oUt (nnnn = 0 (disable)...32000 msec) Response: * 'iPort/USB Ready Default Setting: 10000 msec (10 seconds) Display Firmware Version Display firmware version Command: /V[CR] 'Firmware Version Response: /VCCXX.XX[CR] '(Major XX.
S = Send Start ~xx = Send Byte (xx = 00...
Low Level Response: /XCC0000[CR] Master read three bytes from slave address 0x4F. First two bytes are acknowledged by master. Command: /X S ~4f Rrr P [CR] Response: /XCCA~xx~xx~xx[CR] ‘(xx = 00...FF) Master transmit a Write WCR command to a Xicor X9241 at slave address 0x50. WCR data is 0x00. Command: /X S ~50 ~a0 ~00 P [CR] Response: /XCCAAA[CR] Master transmit a Write WCR command to a Xicor X9241 at slave address 0x50. WCR data is 0x3f.
Command: /Y[CR] Response: /TBCn[CR] 'Tx bYte Count 'n =00000...
Asynchronous Interface Events Asynchronous Events are those iPort/USB interface activities initiated by the iPort/USB I2C Host Adapter in response to activities on the I2C Bus. Slave Transmit Request This event is caused by the reception of an I2C Bus Slave Transmit message directed at the current iPort/USB’s own Slave address. Prompt: /STR[CR] Command: /Stext[CR] ‘Slave Transmit Request ‘Slave Transmit Text The normal Host computer response is to send a Slave Transmit (/Stext[CR]) command.
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 iPort/USB Ready Prompt: * ‘iPort/USB Ready Cause: iPort/USB is ready for the next Host command.
Cause: iPort/USB has detected an error condition on the I2C Bus. The host computer should retry the last command or issue an iPort/USB Reset command. I2C Bus Time-out Detected Prompt: /I85[CR] ‘I2C Bus Time-out Detected Cause: iPort/USB issues this response when it detects a byte transfer delay greater than the specified I2C Bus Time-oUt period. No corrective action is taken by the iPort/USB regarding I2C Bus activity.
host. The host should reissue the correct command. iPort/USB Receive Buffer Overflow Prompt: /I90[CR] ‘iPort/USB Serial Receive Buffer Overflow Cause: This event normally indicates that data sent to the iPort/USB via the serial port has been lost. Check the host computer’s Serial Port Flow Control (XON/XOFF, or Hardware) to make sure it matches current iPort/USB Flow Control. Also, check if the host computer’s FIFO buffers in its 16550 UART are enabled. If so, reduce or disable Transmit Data Buffering.
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/USB interface programs in other programming languages and operating environments. Note: Sample code is also available online at: www.mcc-us.com iPort/USB Reset Comm1.Output = Chr$(18) Comm1.Output = Chr$(18) Comm1.Output = Chr$(18) 'Ctrl/R 'Ctrl/R 'Ctrl/R iPort/USB Initialization Comm1.
Communication Event Processing Static Sub Comm1_OnComm () Static LineBuf$ While Comm1.InBufferCount Msg$ = Comm1.
ElseIf (StrComp(iPortResp$, "/BC0") = 0) Then ' iPort/USB Baud Change 0 {19.2K} TextBox.Text = "iPort/USB Baud Change 0 {19.2K} " ElseIf (StrComp(iPortResp$, "/BC1") = 0) Then ' iPort/USB Baud Change 1 {57.6K} TextBox.Text = "iPort/USB Baud Change 1 {57.6K} " ElseIf (StrComp(iPortResp$, "/BC2") = 0) Then ' iPort/USB Baud Change 2 {115.2K} TextBox.Text = "iPort/USB Baud Change 0 {115.
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) Then TextBox.Text = "/I88 iPort/USB Connection Closed" ElseIf (StrComp(iPortResp$, "/I89") = 0) Then TextBox.Text = "/I89 Invalid Command Argument" ElseIf (StrComp(iPortResp$, "/I8A") = 0) Then TextBox.
iPort/USB Revision Report This section defines revisions and changes made to the iPort/USB interface: Revision: 1.00 1 Initial Release Additional Information For additional information on the I2C Bus, please refer to the following: “What is I2C?” www.mcc-us.com/I2CBusTechnicalOverview.pdf “Frequently Asked Questions (FAQ)” www.mcc-us.com/faq.htm "The I2C and How to Use It" www.mcc-us.com/i2chowto.htm "80C51-Based 8-Bit Microcontroller" Data Handbook. Philips Semiconductors, Tel.
Appendix A - I2C Connector Information Interface Connector and Plug Information MCC uses two (2) different connectors and plug assemblies. We have found these parts to be compatible. I2C Receptacle 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 I2C Plug Connectors Molex SEMCONN ACCESS.bus Plug Molex Part # 15-83-1564 AMP SDL (Shielded Data Link) Plug for ACCESS.
Declaration of Conformity This Declaration of Conformity is issued by the indicated company which is solely responsible for the declared compliance.