background image

User’s Guide

Ethernet to I

2

C Host Adapter

ASCII Fast Mode

with 

Circuit Sense

www.mcc-us.com

Summary of Contents for iPort/LAN 2

Page 1: ...User s Guide Ethernet to I2 C Host Adapter ASCII Fast Mode with Circuit Sense www mcc us com ...

Page 2: ...apter Virtual Communication Port VCP driver iPort Utility Pack Software for Windows and includes the Programmer s Reference for creating custom applications Additional resources ca be found at www mcc us com iPortLAN 2 Are you new to I2 C Want to know more We suggest you review our paper on the I2 C Bus at www mcc us com I2CBusTechnicalOverview pdf This MCC product uses NXP Philips components and ...

Page 3: ...he 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 A digital device pursuant to part 15 of the FCC rules These limits are designed to provide reasonable protection against interference when the equipment is operated in a commercial environment This e...

Page 4: ...Jack 7 I2 C Mini Interface Connector 7 Interrupt INT Signal Connector 8 3 Hardware Configuration 9 Circuit Sense 9 Power Source Mode 9 Voltage Sense Mode 9 Pull up Resistors 9 Connecting to a Low Voltage Target System 10 Connecting to an SMBus Target System 10 Special Note for SMBus Users 10 4 ESD Electrostatic Discharge Precautions 11 Host Computer Grounding 11 Grounding Solutions 11 5 Virtual Co...

Page 5: ...r Communications Link 24 Entering or Editing I2 C Messages 24 Set I2 C Address 25 Set Message Read Write Direction 25 Specify Repeated Start Messages 25 Set Time Delay 26 Specify Write Data or Read Byte Count 26 Inserting and Deleting Messages 27 Saving or Loading Message Lists 27 Send the Message List 27 Special Event Handling 27 Slave Not Acknowledging 28 Command Line Arguments 29 Set Adapter Ty...

Page 6: ... Slave Address 37 General Call Enable 37 I2 C Bus Master Bit Rate 37 I2 C Bus Time Out 37 Enable INT Signal Monitor 37 Diagnostic Setup 38 Log File Level 38 Log File Name 38 Log File Size 38 Sending I2 C Messages 39 Master Operations 39 Specifying the Destination Address 39 Repeated Start Messages 39 Auto Repeat 40 Master Transmitting Data 40 Specifying Master Tx Message Bytes 40 Sending Master Tr...

Page 7: ...Call Control 50 Hex Only Display Control 50 Set iPort LAN s Own I2 C Slave Address 51 I2 C Bus Clock Rate Control 51 Command Menu Display 51 Interrupt Signal Control Status 52 Open I2 C Connection 52 Master Read Message 53 Slave Transmit Message 53 Master Transmit Message 55 Set I2 C Bus Time oUt in msec 56 Display Firmware Version 56 eXtended Commands 56 Display Tx bYte Count 59 Asynchronous Inte...

Page 8: ...mmand 62 iPort LAN Receive Buffer Overflow 63 Example Code 64 iPort LAN Reset 64 iPort LAN Initialization 64 Master Transmit Message 64 Master Receive Message 64 Communication Event Processing 65 iPort LAN Revision Report 68 Additional Information 68 Appendix A I2 C Connector Information 69 Declaration of Conformity 70 ...

Page 9: ...1 Part 1 iPort LAN 2 Ethernet to I2 C Bus Host Adapter Part 1 Ethernet to I2 C Bus Host Adapter with Circuit Sense User s Guide Model MIIC 210 ...

Page 10: ...work access to become an I2 C Master or Slave device transmitting or receiving I2 C messages between the PC and one or more direct local LAN or remote Internet I2 C devices across an I2 C Bus Circuit Sense our new I2 C Bus voltage sensing technology allows the iPort LAN 2 to work with the latest I2 C Bus devices at voltages as low as 0 5 volts ...

Page 11: ...Flow Control XON XOFF or RTS CTS User Terminal Interface Echo Prompt Enable or Disable User Data Format HEX or ASCII HEX Supported I2 C Bus Activities Master and Slave Functions Transmit Receive and TxRx Data Functions Multi Master Arbitration Loss Detection I2 C Bus Error Detection Clock Stretch Detection Processing Bus Time Out Detection Interrupt Signal Generation and Detection 7 bit Slave Addr...

Page 12: ...le 5 wire 1ft Ethernet Interface Cable Standard 3 ft Global 5VDC Power Supply iPort LAN 2 Quick Start Guide iPort LAN 2 Travel Case Online Items iPort LAN 2 Datasheet iPort LAN 2 User s Guide this document iPort LAN 2 Virtual ComPort Driver iPort LAN 2 Utility Pack Software Application Software Software Development Tools www mcc us com iPortLAN 2 ...

Page 13: ... programming is required The iPort LAN 2 VCP is available to the host computer whenever the iPort LAN is attached to an accessible network 1 3 iPort Utility Pack Software The iPort Utility Pack Software package includes the iPort Message Center and Message Manager applications to help you easily send and receive I2 C Bus messages 1 4 iPort LAN 2 Programmer s Resources Our MS NET Class Library and ...

Page 14: ...crossover Ethernet cable to connect the iPort LAN 2 directly to the Ethernet port on a host computer 2 1 1 Virtual Communications Port VCP The iPort LAN 2 provides a Virtual Communications Port VCP interface via a software driver installed on the host computer Once the driver is installed Windows will automatically create a new ComPort COMn on the host computer The VCP hides the complexities of a ...

Page 15: ... position up to 100ma of 5VDC power is available to external circuits via the V wire in the I2 C Bus connector Power via the I2 C Bus interface connector V Pin If 300ma of REGULATED 5V power is available in the target system and the Mode switch is in Source position the I2 C Bus adapter can be powered via the V pin in the I2 C Bus connector See the Hardware Setup section for additional details 2 3...

Page 16: ...errupt INT signal is an extra pin found on some I2 C 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 The iPort LAN 2 provides an open drain INT signal which can be connected to a corresponding pin on a master or slave device The INT signal allows the iPort LAN 2 to participate in interrupt s...

Page 17: ... on earlier versions of MCC I2 C Bus host adapters Voltage Sense Mode The V pin is connected to the external I2 C Bus system pull up supply voltage 0 5v to 5v Vcc and automatically adjusts iPort LAN 2 SCL SDA and INT Voltage Sense circuit levels to match 0 3Vcc LowMAX 0 7Vcc HighMIN In Voltage Sense Mode the voltage of the iPort LAN 2 SCL SDA and INT internal pull ups if enabled is equal to the ex...

Page 18: ...an SMBus Target System If you are connecting the I2 C adapter to a SMBus target system you should follow these steps BEFORE applying power Shut off the I2 C adapter s internal pull ups See Pull up Resistor section Use external SMBus rated appoximately15k ohms pull up resistors These pull ups may already be present in the target system Visit our I2 C versus SMBus FAQ page www mcc us com I2CSMBusFAQ...

Page 19: ...ations If the computer chassis is NOT connected to earth ground for some reason i e use of a two prong power mains plug the host computer power supply ground will float to some unknown voltage potential Case 2 Laptop Computers Laptop computers present special ESD problems Most laptop computers use an external double insulated mains power supply which is NOT connected to the mains earth ground This...

Page 20: ... the warranty of this product 5 Virtual ComPort Communication between a host computer and the iPort LAN 2 is based upon a Virtual ComPort VCP driver installed on the host computer and a network connection between the host computer and the iPort LAN 2 The VCP driver associates a host computer ComPort number with the network address of the iPort LAN 2 Once the VCP driver is installed the host comput...

Page 21: ... over the Internet A Virtual ComPort VCP driver is installed on the host computer and a Standard Ethernet Cable is used to connect the iPort LAN 2 to its local network The iPort LAN 2 is assigned a local Static or Dynamic IP address on its local network During VCP driver installation on the host computer the iPort LAN 2 is assigned the public IP address of the iPort LAN 2 local Modem Router and a ...

Page 22: ...ort LAN 2 driver installer feature The iPort LAN 2 uses the Digi RealPort Virtual ComPort Driver The Setup Wizard runs at the completion of the iPort Utility Pack installation Use the Setup Wizard to add the iPort LAN 2 Virtual ComPort to the host computer After the iPort Utility Pack is installed the iPort LAN 2 VCP driver installer can also be run from the Windows Start menu ...

Page 23: ...etup Wizard scans your network for connected iPort LAN 2 devices For Direct or Local connected devices select the found device and click Next For Remote connected devices select Device Not Listed and click Next ...

Page 24: ...AN 2 See the Digi RealPort Setup Wizard Help or the Digi RealPort Advanced Setup Guide included in the iPort Utility Pack Documents for information on RealPort VCP setup and configuration In addition to during initial iPort Utility Pack installation the iPort LAN 2 VCP driver can be installed modified or removed at any time by clicking Start Programs iPort Utility Pack Drivers Install Uninstall iP...

Page 25: ... assigned to the iPort LAN 2 2 I2 C Bus Connection Connect the I2 C Bus mini clip lead cable to the I2 C adapter and your I2 C device MCC also offers an I2 C mini interface cables that are compatible with our adapters You may not need to or want to connect the V wire to your target system Refer to the 5VDC Power Jack and Hardware Configuration sections for details on pull up resistors and connecti...

Page 26: ...18 Part 2 iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows ...

Page 27: ...r 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 with all versions of our I2 C Bus Host Adapters With the Message Center you can create save and automatically execute scripts of I2 C Bus messages I2 C Bus message activity includes Master Transmit Ma...

Page 28: ...ager 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 Master Receive Slave Transmit Slave Receive ...

Page 29: ...y but can be very useful when communicating with I2 C Bus devices 3 1 Installing from the Web Visit MCC s web site www mcc us com and click on the Upgrades Updates link 1 Under Application Software click the iPort Utility Pack for Windows link 2 Click to download the ZIP file 3 Unzip the downloaded file storing the files in a temporary folder 4 Click on Setup exe 5 Follow the instructions on scree...

Page 30: ...s 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 Master messages to from disk 3 Transmit the current list of I2 C Master messages with the option to auto repeat upon completion send on INT signal assertion with INT signal supported adapters only and bee...

Page 31: ...he 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 I2 C adapter you are using by clicking the corresponding adapter image see Opening Screen or the Device Select checkbox see Main Application Screen ...

Page 32: ...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 successfully you are an active I2 C node I2 C messages entered into the message spreadsheet can be transmitted upon request If the link open is not successful follow the on screen directions Make sure the c...

Page 33: ...ons 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 Direction As a bus master device the I2 C adapter can write data to or read data from any device on the bus Use the Msg Direction control to specify if the current message is a master write or master ...

Page 34: ...Center 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 Count Enter the hexadecimal data you want to write to a slave receiver device or the number of data bytes to read from a slave transmitter Message Center supports up to 32 bytes of 8 bit data per messag...

Page 35: ...es 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 in response to an INT signal assertion with INT signal supported adapters only To send the list manually click the Send button on the main application screen To send the list in response to an INT s...

Page 36: ...ng 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 acknowledging their address Consult the slave device s data sheet for details ...

Page 37: ...Monitor INT 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 adapter busy BeepOnArbLoss Beep on I2 C Bus arbitration loss BeepOnNak Beep on Slave Negative Acknowledgment BeepOn INT Beep on INT signal assert low AutoLoad Load I2 C message list file Au...

Page 38: ...on screen will be presented 4 2 2 Set RS 232 Communication Port 1st Available ComPort Default COM1 COM99 Set the RS 232 communications port attached to the I2 C adapter 4 2 3 Set RS 232 Baud Rate BAUD19200 Default BAUD57600 iPort AFM iPort USB iPort LAN i2cStick ONLY BAUD115200 iPort AFM iPort USB iPort LAN i2cStick ONLY Set the RS 232 Baud Rate i2cStick internally re maps to 115 2K baud 4 2 4 Set...

Page 39: ... 2 7 Stop On Arbitration Loss StopOnArbLoss Default OFF Stop sending I2 C messages if the adapter returns a Bus Arbitration Loss 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 Acknowledgment StopOnNak Default OFF Stop sending I2 C messages if the adapter retu...

Page 40: ...t computer 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 supported adapters only Default OFF Generate a host computer beep if the adapter returns an INT Signal Assert response to the host computer INT Signal Assert occurs if INT Signal Monitoring is enab...

Page 41: ...a 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 with the AutoLoad command 4 2 17 Auto Exit AutoExit Auto exit after sending the message list Message Center will auto exit after sending the last message in the I2 C message list ...

Page 42: ...on 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 text or Hex 00 FF data to a specified I2 C Slave Receiver device 3 Master Receive data from a specified I2 C Slave device 4 Perform Master Read after Write operations 5 Slave Transmit data to a request...

Page 43: ...stall 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 I2 C adapter you are using by clicking the corresponding adapter image see Opening Screen or the Device Select checkbox see Main Screen ...

Page 44: ...tion to legacy RS 232 USB and Ethernet based Virtual Communication Ports Message Center supports USB and network connected local or remote RS 232 ports via the Windows Com driver Select from the list of available baud rates Then click OK After a few moments the Communication Events window on the Main Application screen should report I2 C Open Successful If open is not successful follow the on scre...

Page 45: ...0 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 standard mode 400kHz is fast mode Available rates are I2 C adapter dependant I2 C Bus Time Out Specify how long the I2 C adapter will wait before reporting an I2 C Bus inter byte time out 0 no time out 1 t...

Page 46: ...omputer 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 Name Specify a log file name Unless a path is specified the log file will be created in the current working directory Log File Size Specify log file length in lines The log file overwrites earlier entri...

Page 47: ... 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 of the message The next message sent across the bus begins with a Start Condition in this case a Repeated Start An I2 C Bus master that successfully sends a message on the bus owns the bus until that...

Page 48: ...ntering 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 hexadecimal data bytes Each hexadecimal byte is entered as two ASCII Hex characters 00 to FF preceded by a tilde character ASCII text and hex data can be intermixed as long as each hex byte is preceded by ...

Page 49: ...ur 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 read For example Set this to 1 to read a single byte Click on the MasterRx button to read the data from the selected slave device Data received from the slave is displayed in the Received Messages t...

Page 50: ...ions 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 text box is automatically sent to a requesting master upon receiving a slave transmit request Like Master Transmit data Slave Transmit data is entered with the data editor To enter data to be transmitted click on the Slave Tx Message Bytes text box to ope...

Page 51: ...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 2 Uninstalling VCP Device Driver The USB VCP Device Driver can be uninstalled using Windows Device Manager Start Settings Control Panel System Device Manager Ports COM LPT The Ethernet VCP Device Driver can...

Page 52: ...44 Part 3 iPort LAN 2 Programmer s Reference Part 3 Programmer s Reference ASCII Command Interface Definitions ...

Page 53: ...select the correct Com Port COM1 COM2 and set the communication parameters to 19200 Baud 8 Data Bits No Parity and 1 Stop Bit 3 Enter CR to get an iPort LAN 2 Status Report Note All iPort LAN 2 commands are terminated with a Carriage Return CR character On most terminal emulators press the Enter key 4 Enter F0 CR XON XOFF or F1 CR RTS CTS to set iPort LAN s communications Flow Control to match you...

Page 54: ...munication handshaking protocol G 0 1 CR I2 C General Call Control 0 Disabled 1 Enabled Enables Disables iPort LAN response to I2 C Bus General Call 00 messages H 0 1 CR Hex Only Display Control 0 Disabled 1 Enabled Controls display format of received message data Ixx CR Set iPort LAN s Own I2 C Slave Address Sets iPort LAN s own I2 C Slave Address iPort LAN will respond to I2 C Bus messages sent ...

Page 55: ...slave device Requires iPort AI 2 iPort AFM 2 i2cStick iPort USB 2 iPort LAN 2 Synchronous Interface Events Synchronous Events are those iPort LAN 2 interface activities initiated by the Host computer iPort LAN 2 Reset Reset iPort LAN 2 to its default state The reset command consists of three 3 sequential Ctrl R characters Ctrl R is the character code Decimal 18 and Hexadecimal 0x12 When using a te...

Page 56: ...al Call Enabled iPort s 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 57 6k 2 115 2k Command B 0 1 2 CR Set Serial Com Baud Rate Response 1 BC0 CR Baud Change Complete Response 2 BC1 CR Baud Change Complete Response 3 BC2 CR Baud Change Complete Re...

Page 57: ...tocol to be used in communicating with the Host computer iPort LAN implements either XON XOFF by default or RTS CTS flow control protocols Flow control is used by the iPort LAN to limit character flow to and from the Host computer to avoid overflowing internal communication buffers and lost data The XON XOFF protocol inserts characters directly into the ASCII data stream XON Hexadecimal 0x11 is us...

Page 58: ... XOFF 1 RTS CTS Response iPort LAN 2 Ready Default Setting XON XOFF I2 C General Call Control Enables or disables iPort LAN 2 response to I2 C Bus General Call Address x00 messages Command G 0 1 CR I2 C General Call 0 Disabled 1 Enabled Response iPort LAN 2 Ready Default Setting Enabled Hex Only Display Control Controls Hex Only 00 FF output of Master or Slave received data When enabled all receiv...

Page 59: ...r 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 by the host computer Actual master I2 C clock rates are close to but not faster than the stated rates Slave I2 C clock rates are driven by the external master device with possible clock stretching as required to store or retrieve message data ...

Page 60: ...Version Major XX XX Minor X Extended Cmds See Prompt or User s Guide Y Display Tx bYte Count with Last Rx Ack Bit Interrupt Signal Control Status The INT signal allows the iPort LAN 2 to participate in INT master and or slave communications Control Command N0 CR Disable Monitor N1 CR Enable Monitor NA CR Assert INT Signal NR CR Release INT Signal Status Command N CR Status Response NSA INT Asserte...

Page 61: ...ly Display Control If the slave device acknowledges its I2 C Slave Address the specified number of bytes are read The iPort LAN 2 acknowledges all bytes read except the last If not disabled the message is then terminated with an I2 C Stop condition Sending Master Receive messages with No Stop allows the Master to retain exclusive control of the I2 C Bus until it finally sends a Stop During this ti...

Page 62: ...ed within the text of a message but must be replaced by the following Hex equivalent characters Tilde replaced by 7E Carriage Return replaced by 0D iPort LAN automatically translates Hex equivalent characters to their single byte value for transmission across the I2 C Bus All entered data bytes are transmitted to the requesting Master Receiver device Slave Transmit stops upon receiving the first n...

Page 63: ...gle byte value for transmission across the I2 C Bus All entered data bytes are transmitted to the Destination I2 C Slave Receiver device Master Transmit stops upon receiving the first negative acknowledgment Nack from the Slave Receiver If not disabled the message is then terminated with an I2 C Stop condition Sending Master Transmit messages with No Stop allows the Master to retain exclusive cont...

Page 64: ...CR Major XX XX Minor eXtended Commands The eXtended commands are used to generate out of spec signaling eXtended commands cannot use the adapter s I2 C hardware to control the SCL and SDA lines as the I2 C hardware only generates I2 C compatible signals The eXtended commands use firmware to bit bang the SCL and SDA lines This firmware cannot operate as fast as the hardware and it can be interrupte...

Page 65: ...Nak response xx P Send Stop Mid Level Sub Commands 0 Send 0 Bit 1 Send 1 Bit Read Bit response 0 or 1 Low Level Sub Commands D Set SDA High d Set SDA Low C Set SCL High c Set SCL Low L Read SCL response 0 or 1 A Read SDA response 0 or 1 Miscellaneous Sub Commands space no action comment no action Examples Master transmit three bytes to slave address 0x4e using high level mid level and low level su...

Page 66: ...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 X S 50 a0 3f P CR Response XCCAAA CR Issue a Read WCR command to a Xicor X9241 at slave address 0x50 Command X S 50 90 R P CR Response XCCAA xx CR xx 0...

Page 67: ...receive the state of the last received Acknowledgment bit Note The byte count and last received acknowledgment bit state can be used for SMBus Packet Error Check PEC error detection See SMBus v1 1 specification for details Command Y CR Tx bYte Count with last received Ack bit Response TBCn CR n 00000 32767 Response TBCn A N CR n 00000 32767 A ACK N NACK ...

Page 68: ... Request 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 on the I2 C Bus Slave Receive Complete This event is caused by the reception of an I2 C Bus Slave Receive message directed at the current iPort LAN 2 s own Slave address The received text is a repr...

Page 69: ...smit or Receive operation from an I2 C Slave device at the current Destination I2 C Address iPort LAN Busy Prompt I81 CR iPort LAN 2 Busy Cause The host computer attempted a Master operation while iPort LAN 2 was busy The host computer should wait for any previously issued command to complete process any pending slave events and retry the last command I2 C Bus Arbitration Loss Prompt I83 CR I2 C A...

Page 70: ... The host computer is attempting to perform an I2 C Bus message operation while the iPort LAN 2 Connection is Closed The host computer should issue an Open I2 C Connection command before attempting to perform I2 C Bus message operations Invalid Command Argument Prompt I89 CR Invalid Command Argument Detected Cause This event normally indicates the value of a host command argument was out of range ...

Page 71: ...ort has been lost Check the host computer s Serial Port Flow Control XON XOFF or Hardware to make sure it matches current iPort LAN 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 On Windows based host computers see the Device Manager COM port Advanced Settings You may need to power down the host computer for...

Page 72: ... Ctrl R Comm1 Output Chr 18 Ctrl R Comm1 Output Chr 18 Ctrl R iPort LAN Initialization Comm1 Output f0 Set iPort LAN 2 XON XOFF Flow Control Comm1 Output Chr 13 Comm1 Output i70 Set iPort LAN 2 s Own Slave Address Comm1 Output Chr 13 Comm1 Output d4e Set Destination Slave Address Comm1 Output Chr 13 Comm1 Output o Open I2 C Connection Comm1 Output Chr 13 Master Transmit Message Comm1 Output T 00 0...

Page 73: ...ft LineBuf 4 Isolate Response Code Test for iPort LAN Synchronous Interface Events If StrComp iPortResp OCC 0 Then Open Connection Complete Processing TextBox Text OCC Open Connection Complete ElseIf StrComp iPortResp MTC 0 Then Master Transmit Complete Processing TextBox Text MTC Master Tx Complete ElseIf StrComp iPortResp MRC 0 Then Master Rx Complete Processing TextBox Text LineBuf Update Displ...

Page 74: ...essing 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 Request Processing Comm1 Output S 00 01 Send Slave Tx Msg Comm1 Output Chr 13 Terminate Command TextBox Text LineBuf Update Display Test for iPort LAN Response Messages ElseIf StrComp iPortResp 0 Then Tex...

Page 75: ...extBox Text I88 iPort LAN 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 Active ElseIf StrComp iPortResp I8F 0 Then TextBox Text I8F Invalid iPort LAN Command ElseIf StrComp iPortResp I90 0 Then TextBox Text I90 iPort LAN Rx Buffer Overflow Else TextBox Text LineBuf Other Upda...

Page 76: ...ional information on the I2 C Bus please refer to the following What is I2 C www mcc us com I2CBusTechnicalOverview pdf Frequently Asked Questions FAQ www mcc us com faq htm The I2 C and How to Use It www mcc us com i2chowto htm I2C bus specification and user manual NXP Semiconductors N V www nxp com documents user_manual UM10204 pdf Home NXP Semiconductors www nxp com ...

Page 77: ...64 mm 025 square pin header and plug assemblies for the I2 C Bus interface I2 C Header Receptacle Molex C Grid SL 70553 Header Molex Part 70553 0004 I2 C Plug Housing Molex C Grid SL 70066 Crimp Housing Molex Part 50 57 9405 Molex C Grid SL 70058 Crimp Terminal Molex Part 16 02 0102 iPort LAN 2 I2 C cables are available online at www shop mcc us com ...

Page 78: ...ile 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 CE Declaration of Conformity We Micro Computer Control Corporation of 83 Princeton Avenue 1D PO Box 275 Hopewell New Jersey 08525 USA declare under our sole responsibility that the iPort LAN 2 MIIC 210 to which this declaration re...

Reviews: