background image

User’s Guide

   

USB to I

2

C Bus

Host Adapter

with iPort Utility Pack Software

www.mcc-us.com

Summary of Contents for i2cStick

Page 1: ...User s Guide USB to I2 C Bus Host Adapter with iPort Utility Pack Software www mcc us com...

Page 2: ...cost I2 C Bus connector and cabling This user s guide describes the installation and operation of the i2cStick host adapter Virtual Communication Port VCP driver the iPort Utility Pack Software for Wi...

Page 3: ...e malfunction of the product can reasonably be expected to result in a personal injury WARNING Radio Frequency Emissions This equipment has been tested and found to comply with the limits for a Class...

Page 4: ...4 I2 C Interface Connector 4 3 Hardware Configuration 6 Pull up Resistors 6 Connecting a 5V i2cStick to a 3 3 Volt Target System 6 Connecting to an SMBus Target System 6 4 ESD Electrostatic Discharge...

Page 5: ...19 Set Time Delay 20 Specify Write Data or Read Byte Count 20 Inserting and Deleting Messages 21 Saving or Loading Message Lists 21 Send the Message List 21 Special Event Handling 21 Slave Not Acknow...

Page 6: ...Name 32 Log File Size 32 Sending I2 C Messages 33 Master Operations 33 Specifying the Destination Address 33 Repeated Start Messages 33 Auto Repeat 34 Master Transmitting Data 34 Specifying Master Tx...

Page 7: ...ol Status 47 Open I2 C Connection 48 Master Read Message 48 Slave Transmit Message 49 Master Transmit Message 50 Set I2 C Bus Time oUt in msec 51 Display Firmware Version 51 eXtended Commands 52 Displ...

Page 8: ...ick Reset 59 i2cStick Initialization 59 Master Transmit Message 59 Master Receive Message 59 Communication Event Processing 60 i2cStick Revision Report 63 Additional Information 63 Appendix A I2 C Con...

Page 9: ......

Page 10: ...1 Part 1 i2cStick USB to I2 C Bus Host Adapter Part 1 USB to I2 C Bus Host Adapter User s Guide Model MIIC 207...

Page 11: ...Inter byte overhead Free I2 C Message Center Message Manager and iBurner EEPROM Programming utility software Easy to use Virtual Communications Port VCP driver Build custom I2 C Bus applications usin...

Page 12: ...rojects on our web site s Sample Program page 1 5 Packing Slip This package includes the following items i2cStick USB to I2 C Bus Host Adapter MIIC 207 i2cMini Interface 1x5 2 54 mm 100 or i2cMini Cli...

Page 13: ...g communication signals VCP interface TX Transmit Data from the Host Computer to the i2cStick RX Receive Data from the i2cStick to the Host Computer RTS Request to Send from the Host Computer to i2cSt...

Page 14: ...ided to connect the I2 C adapter to an external I2 C Bus An optional i2cMini Clip Lead cable is available to connect the I2 C adapter to a target system Each cable wire is color coded or clearly marke...

Page 15: ...tor 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 I2 C connector 5V wire from the target system The I2 C ada...

Page 16: ...protection procedures when using the I2 C adapter could damage the host computer I2 C adapter or the target system and void product warranty coverage 4 1 Host Computer Grounding Case 1 Desktop and Sin...

Page 17: ...stem is powered Ensure that any devices connected to the target system are properly grounded to the common earth ground point If unsure how to properly ground system components seek electrical expert...

Page 18: ...ol 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 i2cStick to yo...

Page 19: ...nect includes a 5V or 3 3V wire You may not need to or want to connect the V wire to your target system Refer to the Hardware Configuration section for details on pull up resistors and connecting the...

Page 20: ...11 Part 2 iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows...

Page 21: ...12...

Page 22: ...and Message Manager that will help you get started sending and receiving I2 C Bus messages quickly and easily 1 1 iPort Message Center The iPort Message Center our most popular application operates w...

Page 23: ...ger The iPort Message Manager operates with all versions of our I2 C Bus Host Adapters Using the Message Manager you can perform all four 4 modes of I2 C Bus message activity including Master Transmit...

Page 24: ...Bus Host Adapter 7 Variable Clock Rate MIIC 201 V I2 C Bus Host Adapter Windows 2000 XP Vista 7 or higher 1 free RS 232 Serial Port or USB port for USB based adapters 3 iPort Utility Pack Installatio...

Page 25: ...designed to be a simple application for experimenting with I2 C messages It provides methods to 1 Enter Edit a list of I2 C Master Transmit or Receive Messages 2 Save and or Load a list of I2 C Maste...

Page 26: ...e 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 th...

Page 27: ...cations Link Establish the communications link to the I2 C adapter by clicking the Open Link button The Message Center sets the adapter s own I2 C Slave address to 0xFE Once the link has opened succes...

Page 28: ...ns the Read Write bit is always transmitted as a logical 1 aaaa aaa1 Use the I2 C Address control to set the slave address of the slave device you want to address on the bus 2 Set Message Read Write D...

Page 29: ...enter supports time delays after the completion of a message Time delays can be used to synchronize or sequence bus messages with the activity of external devices 5 Specify Write Data or Read Byte Cou...

Page 30: ...s IML that can be edited manually or created with a customer developed program See message list files for details 4 1 9 Send the Message List An I2 C message list can be sent manually or automatically...

Page 31: ...g message in the Status window this could indicate you have the wrong address in the I2 C Destination Address or the device is not answering to its address Some slave devices temporarily stop acknowle...

Page 32: ...Enable INT Signal Monitor StopOnBusy Stop sending on I2 C adapter busy StopOnArbLoss Stop sending on I2 C Bus Arbitration Loss StopOnNak Stop on Slave Negative Acknowledgment BeepOnBusy Beep on I2 C a...

Page 33: ...C adapter 4 2 3 Set RS 232 Baud Rate BAUD19200 Default BAUD57600 iPort AFM iPort USB i2cStick ONLY BAUD115200 iPort AFM iPort USB i2cStick ONLY Set the RS 232 Baud Rate i2cStick internally re maps to...

Page 34: ...oss response to the host computer Bus Arbitration Loss occurs when another I2 C Bus master wins arbitration while the adapter is attempting to become a bus master 4 2 8 Stop On Slave Negative Acknowle...

Page 35: ...uter Slave Not Acknowledging occurs when the adapter is attempting to become a bus master and no slave device acknowledges the transmitted slave address 4 2 12 Beep On INT Assert BeepOn INT on INT sup...

Page 36: ...read from a slave transmitter device 4 2 15 Auto Open AutoOpen Auto Open Link to I2 C Adapter Open link to the adapter 4 2 16 Auto Send AutoSend Auto Send I2 C Message List Send I2 C messages loaded...

Page 37: ...n for experimenting with I2 C messages Message Manager provides methods to 1 Set the I2 C adapter s own I2 C Slave address General Call Enable and other operating parameters 2 Master Transmit ASCII te...

Page 38: ...tall 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 Sel...

Page 39: ...000 XP only In addition to RS 232 and USB based adapters Message Manager supports USB and network connected local or remote RS 232 ports via the Windows Com driver Select from the list of available ba...

Page 40: ...General Call is used by a master to broadcast an I2 C message to multiple devices The default value is enabled I2 C Bus Master Bit Rate Select I2 C Bus speed during master operations 100kHz is standa...

Page 41: ...mputer and the I2 C 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 Nam...

Page 42: ...Messages I2 C Bus communications support an operation called Repeated Start In this operation a message is sent across the bus beginning with a Start Condition but without a Stop Condition at the end...

Page 43: ...tering master transmit data is easy On the main application screen click on the Master Tx Message Bytes box to open the data editor In the data editor enter one or more ASCII text characters or hexade...

Page 44: ...r slave device s data sheet for details 5 1 4 1 5 Master Receive Data Specifying Data to Read On the lower part of the main screen set the Bytes to MasterRx edit box to the number of bytes you want to...

Page 45: ...lso perform I2 C bus slave transmit and receive operations 5 1 4 2 1 Slave Transmit Data Slave transmit data is entered in the Slave Tx Message Bytes text box control on the main screen Data in this t...

Page 46: ...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 Utilit...

Page 47: ...38...

Page 48: ...39 Part 3 i2cStick Programmer s Reference Part 3 Programmer s Reference ASCII Command Interface Definitions...

Page 49: ...tes to 115200 baud 3 Enter CR to get an i2cStick Status Report Note All i2cStick commands are terminated with a Carriage Return CR character On most terminal emulators press the Enter key 4 Enter F0 C...

Page 50: ...le data entry echo and prompts F 0 1 CR Flow Control 0 XON XOFF 1 RTS CTS Select serial communication handshaking protocol G 0 1 CR I2 C General Call Control 0 Disabled 1 Enabled Enables Disables i2cS...

Page 51: ...st sent to slave device Also display last received Acknowledgment bit from slave device Synchronous Interface Events Synchronous Events are those i2cStick interface activities initiated by the Host co...

Page 52: ...own Slave Address xxH I2C Bus Clock Rate 100kHz iNterrupt Signal Released I2C Bus Time oUt 10000 msec Serial Communications Baud Rate This command sets the serial communications baud rate 0 19 2k 1 5...

Page 53: ...computer terminal Command E 0 1 CR Echo Prompt Control 0 Off 1 On Response i2cStick Ready Default Setting Off Serial Communications Flow Control Select the serial communication handshaking protocol t...

Page 54: ...col requires a serial port cabling and Host communication driver software that supports the additional control signals Command F 0 1 CR Flow Control 0 XON XOFF 1 RTS CTS Response i2cStick Ready Defaul...

Page 55: ...ntrolled by the frequency of the oscillator used in the adapter The oscillator frequency has been selected to give accurate RS 232 baud rates as the RS 232 baud rate must exactly match the rate used b...

Page 56: ...t I2C Bus Time oUt in msec 0 Disable V Display Firmware Version Major XX XX Minor X Extended Cmds See Prompt or User s Guide Y Display Tx bYte Count with last received Ack bit Interrupt Signal Control...

Page 57: ...tes within the Master Receive message The format of this data is controlled by the current setting of the Hex Only Display Control If the slave device acknowledges its I2 C Slave Address the specified...

Page 58: ...C Bus Note 2 The tilde character and the Carriage Return CR characters are used as special marker characters within all i2cStick transmitted text messages These characters may not be used within the...

Page 59: ...ext of a message but must be replaced by the following Hex equivalent characters Tilde replaced by 7E Carriage Return replaced by 0D i2cStick automatically translates Hex equivalent characters to thei...

Page 60: ...eturn embedded in ASCII Printable characters Set I2 C Bus Time oUt in msec Set bus time out in milliseconds The i2cStick reports a bus time out if no inter byte bus activity for the specified time occ...

Page 61: ...ile a command is executing and I2 C Bus clock stretching by external slave devices The following commands manipulate the I2 C Clock SCL and data SDA lines Command X S xx R r P 0 1 D d C c L A then Pre...

Page 62: ...cdCcDCcDCcDCcdCc DCAc dCcdCcdCcdCcdCcdCcdCcDCc DCAcdCcdCcdCcdCcdCcdCcDCcdCc DCAc dCcdCcdCcdCcdCcdCcdCcDCc DCAc dCD CR Low Level Response XCC0000 CR Master read three bytes from slave address 0x4F Firs...

Page 63: ...20 0 P CR Response XCCAA CR Display Tx bYte Count Returns the number of bytes received by the slave device in the last master transmit message with an option to received the state of the last receive...

Page 64: ...uest to its Host device and initiates an I2 C Clock Stretch SCL Low until a Slave Transmit Text command is received from the Host computer While clock stretching no other messages can be transmitted o...

Page 65: ...nsmit or Receive operation from an I2 C Slave device at the current Destination I2 C Address i2cStick Busy Prompt I81 CR i2cStick Busy Cause The host computer attempted a Master operation while i2cSti...

Page 66: ...st computer is attempting to perform an I2 C Bus message operation while the i2cStick Connection is Closed The host computer should issue an Open I2 C Connection command before attempting to perform I...

Page 67: ...has been lost Check the host computer s Serial Port Flow Control XON XOFF or Hardware to make sure it matches current i2cStick Flow Control Also check if the host computer s FIFO buffers in its 16550...

Page 68: ...8 Ctrl R Comm1 Output Chr 18 Ctrl R Comm1 Output Chr 18 Ctrl R i2cStick Initialization Comm1 Output f0 Set i2cStick XON XOFF Flow Control Comm1 Output Chr 13 Comm1 Output i70 Set i2cStick s Own Slave...

Page 69: ...LineBuf 4 Isolate Response Code Test for i2cStick Synchronous Interface Events If StrComp iPortResp OCC 0 Then Open Connection Complete Processing TextBox Text OCC Open Connection Complete ElseIf Str...

Page 70: ...ssing TextBox Text LineBuf Update Display ElseIf StrComp iPortResp GRC 0 Then General Call Rx Complete Processing TextBox Text LineBuf Update Display ElseIf StrComp iPortResp STR 0 Then Slave Tx Reque...

Page 71: ...TextBox Text I88 i2cStick Connection Closed ElseIf StrComp iPortResp I89 0 Then TextBox Text I89 Invalid Command Argument ElseIf StrComp iPortResp I8A 0 Then TextBox Text I8A Slave Tx Request Not Acti...

Page 72: ...face Revision 1 00 1 Initial Release Additional Information For additional information on the I2 C Bus please refer to the following What is I2 C www mcc us com I2CBusTechnicalOverview pdf Frequently...

Page 73: ...assemblies for the I2 C Bus interface I2 C Header Molex C Grid SL 70553 Header Molex Part 70553 0004 I2 C Plug Housing Molex C Grid SL 70066 Plug Housing Molex Part 15 83 1564 Molex C Grid SL 70058 C...

Page 74: ...te November 4 2010 Technical file held by Micro Computer Control Corporation 83 Princeton Avenue 1D PO Box 275 Hopewell New Jersey 08525 USA or its applicable authorized distributor or representative...

Reviews: