Home

SUPER MICRO Computer MIIC-203 Network Card User Manual

image

Contents

1. Quick Start RS 232 Pon Settings Advanced Setup Diagnostic Setup PC Comport iPort s Own DC Slave Address GA Pa iPort Log File Level 2 ZS or e wm e 3 a xi al a General Call LOG COMI Baud Rate Enabled Disabled Log File Name i 19 200 E y torino aE nas Manat Bit Rata eee 100 11s 200 C 12 5 KHz 100 KHz SZ HE 400 EE Ge Kae Serial Port Settings AAdvanced Setup 4 Diagnostic Setup DC Bus Time Qut msec 1000 TT Enable INT Monitor Diagnostic Set Up Screen Diagnostic Set up Port Only On the Diagnostic Set up screen you can set the following parameters 1 Port Log File Level Select iPort logging level 1 gives minimal info 4 is verbose Use the log file to troubleshoot communication problems 2 Log File Name iPort log file name if enabled 3 Log File Size Lines iPort log file length if enabled 4 Set the Destination Slave Address On the main screen use the I C Destination Address list control to set the slave address of the device you want to communicate with Additional operating information is available by viewing the Status and Log File Option available only for the iPort 26 Sending Messages Master Operations 1 To Master Transmit Data On the main screen set the Master Tx Message Bytes edit box to the data you want to send by single clicking on the box For example To send a 0x05 hexadecimal to the device
2. 0 Then General Call Rx Complete Processing TextBox Text LineBuf Update Display ElseIf StrComp iPortResp STR 0 Then Slave Tx Request Processing Comml Output S 00 01 Send Slave Tx Msg Comml Output Chr 13 Terminate Command TextBox Text LineBuf Update Display ElseIf StrComp iPortResp NSA 0 Then INterrupt Signal Assert Detected TextBox Text iNterrupt Signal Assert Detected Update Display ElseIf StrComp iPortResp NSR 0 Then INterrupt Signal Release Detected TextBox Text iNterrupt Signal Release Detected Update Display Test for iPort AFM Response Messages ElseIf StrComp iPortResp 0 Then TextBox Text Port AFM Ready Update Display ElseIf StrComp iPortResp SNA 0 Then TextBox Text SNA Slave Not Acknowledging ElseIf StrComp iPortResp I81 0 Then TextBox Text I81 Port AFM Busy Update Display Elself StrComp iPortResp 183 0 Then 32 TextBox Text I83 Arbitration Loss Update Display Elself StrComp iPortResp I84 0 Then TextBox Text I84 DC Bus Error Detected ElseIf StrComp iPortResp I85 0 Then TextBox Text I85 DC Bus Time out Detected ElseIf StrComp iPortResp I88 0 Then TextBox Text 188 Port AFM Connection Closed ElseIf StrComp iPortResp 189 0 Then TextBox Text 189 Invalid Command Argument ElseIf StrComp iPortResp I8A 0 T
3. LineBuf Msg Add new text to line buffer If CharIn Chr 13 Then if Carriage Return detected iPortResp Left LineBuf 4 Isolate Response Code Test for iPort AFM 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 Display ElseIf StrComp iPortResp STC 0 Then Slave Tx Complete Processing TextBox Text STC Slave Tx Complete ElseIf StrComp iPortResp CCC 0 Then Close Connection Complete Processing TextBox Text CCC Close Connection Complete ElseIf StrComp iPortResp BC0 0 Then Port AFM Baud Change 0 19 2K TextBox Text 1Port AFM Baud Change 0 19 2K Elself StrComp iPortResp BC1 0 Then Port AFM Baud Change 1 57 6K TextBox Text Port AFM Baud Change 1 57 6K 51 ElseIf StrComp iPortResp BC2 0 Then Port AFM Baud Change 2 115 2K TextBox Text Port AFM Baud Change 0 115 2K Test for iPort AFM Asynchronous Interface Events ElseIf StrComp iPortResp SRC 0 Then Slave Rx Complete Processing TextBox Text LineBuf Update Display ElseIf StrComp iPortResp GRC
4. Note 2 The tilde character and the Carriage Return CR character are used as special marker characters within all iPort AFM transmit text messages These characters may not be used 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 AFM automatically translates Hex equivalent characters to their single byte value for transmission across the PC Bus All entered data bytes are transmitted to the requesting Master Receiver device Slave Transmit stops upon receiving the first negative acknowledgment Nack from the Master Receiver Command Stext CR Slave Transmit Message Response 1 STC CR Slave Transmit Complete Response 2 I88 CR Port Connection Not Open Response 3 IBA CR Slave Transmit Request Not Active Cmd Ignored Default Setting None Examples Sabcd1234 CR ASCII Printable characters abcd1234 S 00 01 02 CR Binary data bytes 00 01 02 40 Sab 7Ecd CR Tilde embedded in ASCII Printable characters S12 0D24 CR Carriage Return embedded in ASCII Printable characters Master Transmit Message This command causes iPort AFM to write the specified data bytes to the currently selected Destination DC Slave Address with or without generating an PC Stop condition after the last byte is transmitted Enter Message Bytes 0 or more Printable ASCII or Hex equivalent 00 FF then
5. enter 05 in the edit box Click Ok and then the Master TX button to send the message 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 Master Tx Data Edit Lx Master Tx Message Bytes Enter ASCII Text or Hex 00 FF Data VAAVESTAANESTAA EG AASE x Cancel Example to send message 0x01 0x02 0x03 type in 01 02 03 You have the option to Auto Repeat a transmitted message upon completion by checking the Auto Repeat box Also you may do a DoStop which will perform repeated starts automatically 27 2 To Master Receive Data On the main screen use the 1 C Destination Address list control to set the slave address of the device you want to communicate with 4 Micro Computer Control Corp Port Message Manager E ell xi File Options Help Quick Start ne CMCC Port AFM Message Manager us Communication Events Master Tx bytes to write 3 amp Master Rx bytes to read 1 Master Rx bytes received 1 Master TxRx Transfer Complete DC Destination Address Master Tx Message Data ASCII Text or Hex 00 FF fac 00 01 92 5 FW doStop Master Tx a I Auto Repeat f Received Messages kK Hex Display 02 El 02 02 02 fi Kaes Sal Bytes to Master Rx 1 M doStop Master Rx iPo C iPort Al CARONIA Slave Tx Message Data ASCII Text or Hex 00
6. Assert Prompt NSA CR iNterrupt Signal Assert low Detected iNterrupt Signal Release Prompt NSR CR iNterrupt Signal Release high Detected 47 iPort AFM Prompts iPort AFM Prompts are messages generated by iPort AFM in response to Host computer commands iPort AFM Ready Prompt Port AFM Ready Cause 1Port AFM is ready for the next Host command Slave Not Acknowledging Prompt SNA CR Slave Not Acknowledging Cause There is no response I C Slave Address Acknowledgment during a Master Transmit or Receive operation from an DC Slave device at the current Destination PC Address iPort AFM Busy Prompt I181 CR Port AFM Busy Cause Host attempted a Master operation while iPort AFM was busy Host should repeat the last command PC Bus Arbitration Loss Prompt I183 CR PC Arbitration Loss Detected Cause iPort AFM lost DC Bus Arbitration while Master Transmitting or Master Receiving an PC message Host should repeat the last command FC Bus Error Detected Prompt I84 CR FC Bus Error Detected Cause iPort AFM has detected a error condition on the DC Bus Host should repeat the last command or issue an Port AFM Reset command PC Bus Time out Detected Prompt I85 CR C Bus Time out Detected Cause iPort AFM issues this command when an UC Bus message lasts for more than 1 second No corrective action is taken by iPort AFM No Host response is required but this event can be used to
7. become an I C Master or Slave device transmitting or receiving TC messages between the PC and one or more PC devices across an IC Bus The iPort Message Manager is designed to be a simple application for experimenting with IC messages It provides methods to 1 Set the device s I C Slave address General Call Enable and other operating parameters 2 Master Transmit ASCII text or Hex 00 FF data to a specified 1 C Slave Receiver device 3 Master Receive data from a specified I C Slave Transmitter device 4 Perform Master Read after Write operation 5 Slave Transmit data to a requesting DC Master Receive device 6 Display Slave Receiver data 7 Assert or release the INT signal iPort AFM only Each Port Message Manager TC message can include up to 23 bytes of 8 bit ASCII binary data although the Port itself is capable of sending or receiving TC messages up to 64K bytes in length 22 I C Message Operations In order to communicate with another FC device a user must take the following steps 1 Starting the program Start Programs iPort Utility Pack Port Message Manager 2 Select iPort Device Select which device you are operating with by choosing the corresponding image Opening Screen or the correct checkbox on the main application lt 4 Micro Computer Control Corp Port Message Manager File Options Help Quick Start MICC i ey Port AFM Mes
8. can perform all four 4 modes of TC Bus messages activity including e Master Transmit e Master Receive e Slave Transmit e Slave Receive lt 4 Micro Computer Control Corp iPort Message Manager E 54 x File Options Help Quick Start WIN MICC Port AFM Message Manager 33 Communication Events Master Tx bytes to write 3 Master Rx bytes to read 1 Master Rx bytes received 1 Master TxRx Transfer Complete DC Destination Address Master Tx Message Data ASCII Text or Hex 00 FF 00 01 02 T Auto Repeat Mas Received Messages V Hex Display Ess Bytes to Master Rx H lv doStop Master Rx iPo C Port Al iPortAFM Slave Tx Message Data ASCII Text or Hex 00 FF 00 01 02 Open Close Assert INT Release ANT 16 2 System Requirements a One of the following 1 Port MIIC 201 Windows to TC Bus Host Adapter 2 Port Al MIIC 202 RS 232 to I C Bus Host Adapter with ASCII Interface 3 iPort AFM MIIC 203 RS 232 to I C Bus Host Adapter with ASCII Fast Mode Interface b Windows 95 or higher c 1 free RS 232 Serial Port 3 Software Installation Windows 95 and Above 1 Insert software distribution diskette into floppy drive 2 Select Start Run Type A SETUP EXE 3 Follow instructions on screen iPort Message Center for Windows Introduction to Message Center The Port Message Center supports TC Master Transmit and R
9. read from or written to the iPort AFM when addressed as an FC Bus slave Interrupt monitoring is enabled upon receiving an enable command from the host computer Interrupt monitoring causes the iPort AFM to send notification to the host computer when the INT signal changes state Hardware Configuration Pull up Resistors The iPort AFM Host Adapter includes a slide switch used to enable or disable internal 1 8K ohm Pull Up resistors on the SCL SDA and INT lines Every TC Bus system must have at least one Pull Up on each line Use this switch to configure the iPort AFM appropriately for your system Connecting to a 3 3v System 1 Shut off iPort internal pull ups See Pull up Resistor section 2 Use external pull ups to 3 3 volts The iPort uses a 5 volt device 3 3v is high enough for the iPort to see a Logical 1 Connecting to an SMBus System 1 Shut off iPort internal pull ups See Pull up Resistor section 2 Use external SMBus rated approx 15k ohm pull up resistors Hardware Set Up 1 Attach your Port AFM MIIC 203 to an open ComPort on your computer If your ComPort has a DB9 connector use DB 9F to DB 25M Serial Port Adapter Cable included with your iPort AFM to connect 2 Connect the power supply provided or see Interconnect Section 5VDC Power Jack 3 Connect I C Interface Cable to iPort AFM and your 1 C device If your device does not have the matching connector 15830064 you can cut the end of the ca
10. s communications Flow Control to match your terminal Enter Ixx xx 02 FE even to set iPort AFM s Own DC Slave Address Enter O to Open the iPort AFM Connection The iPort AFM does not need to be connected to an I C Bus to open a connection Enter Dxx xx 00 FE even to select a Destination UC Slave Address Enter Ttext text ASCII or Hex Equivalent 00 FF to Master Transmit a message to the current Destination PC Slave device 10 Enter Rn n 0 32767 to Master Read a message from the current Destination DC Slave device Syntax CR Carriage Return The following sections provide detailed information on all iPort AFM ASCII Commands and Prompts For the latest product information and application note visit our web site at http www mcc us com 31 iPort AFM ASCII Text Interface Commands Note CR Carriage Return Code or Enter Key Syntax Select Optional xx 00 FE n 0 32767 Ctrl R Ctrl R Ctrl R iPort AFM Reset This command resets the iPort AFM to its default state CR Status Display Display iPort AFM status information B 01112 CR RS 232 Baud Rate Control Set the RS 232 Baud rate 0 19 2 1 57 6 2 115 2 Baud C CR Close DC Connection Disconnect from the PC Bus Dxx CR Set Destination PC Slave Address Set the destination DC Slave Address for subsequent Master Transmit or Receive operations E O 1 CR Echo Prompt Control 0
11. 9241 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 Ox3f 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 00 FF Issue an Increment Wiper command to a Xicor X9241 at slave address 0x50 Command X S 50 20 1 P CR Response XCCAA CR Issue an Decrement Wiper command to a Xicor X9241 at slave address 0x50 Command X S 50 20 0 P CR Response XCCAA CR 44 Display Tx bYte Count requires V2 00 Returns the number of bytes received by the slave device in the last master transmit message Command Y CR Tx bYte Count Response TBCn CR n 00000 32767 45 Asynchronous Interface Events Asynchronous Events are those iPort AFM interface activities initiated by the iPort AFM IC Host Adapter in response to activities on the DC Bus Slave Transmit Request This event is caused by the reception of an DC Bus Slave Transmit message directed at the current 1Port AFM s own Slave address Prompt STR CR Slave Transmit Request Command Stext CR Slave Transmit Text The normal Host computer response is to send a Slave Transmit Text Stext CR command Note Upon receiving a Slave Transmit request from a Master Receiver devic
12. Disable 1 Enable Enable Disable data entry echo and prompts F OI1 CR Flow Control 0 XON XOFF 1 RTS CTS Select serial communication handshaking protocol G 011 CR PC General Call Control 0 Disable 1 Enable Enables Disables iPort AFM response to DC Bus General Call 00 messages H 011 CR Hex Only Display Control 0 Disable 1 Enable Controls display format of received message data Ixx CR Set iPort AFM s Own IC Slave Address Sets iPort AFM s own DC Slave Address iPort AFM will respond to PC Bus messages sent to this address K 011 213 CR PC Bus Clock Rate Control Set PC Bus Clock Rate Control 0 23 1 86 2 100 3 400 KHz Command Menu Display Display Port AFM s Command Menu 32 N OI1IAIR CR iNterrupt Signal Monitor Control Status Sets Monitor Control Status of INT line 0 Disable 1 Enable A Assert R Release CR Status O CR Open DC Connection Activates iPort AFM as an TC device attached to the bus Rn CR Master Read Message Read the specified number of data bytes from the current Destination PC Slave device No Stop for Repeated Start S text CR Slave Transmit Message Write the specified data bytes to a requesting PC Master Receiver device T text CR Master Transmit Message Master Transmit the specified data bytes to the current Destination DC Slave device No Stop for Repeated Start Un CR DC Bus Time oUt Set DC Bus Time oUt in
13. FF 00 01 02 en Close Assert INT Release ANT Main Application Screen 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 Master RX button to receive the message Data received from the slave is displayed in the Received Messages text box on the main screen The Communications Events window should report Master RX Transfer Complete If this message does not appear check the slave device address connections and power If you get a Slave Not Acknowledging message in the Communications Events window this could mean you have the wrong address in the I C Destination Address or the device is not answering to its address You have the option to Auto Repeat a transmitted message upon completion by checking the Auto Repeat box Also you may do a DoStop which will perform repeated starts automatically Another option you have is to do DoNak which allows you to Ack or Nak the last byte coming from a Slave Transmitter Some Slave Transmitter Devices require a Nak on the final byte going across the bus Option only available for the windows iPort 28 Slave Operations To Slave Transmit a message Enter data to be transmitted in the Slave Tx Message Bytes control by single clicking Binary data bytes are entered using a three character Hex Equivalent format 00 FF you may also type i
14. FM Initialization ARAS AS RON OEN ERE CES 49 Master Transmit Message occ nung o4 ki ig kG RARI LIRA Li 49 Master Receive Message gt oxic crt e eine Bau Oa Skea SER Ak T eR AAA 49 Communication Event Processing 0 0 e cee eee ene nee 49 iPort AFM Revision Report 53 Additional Information LL 53 Software License Agreement 54 APPORRE EE 56 Part 1 Model MIIC 203 RS 232 to IFC Host Adapter w ASCII Fast Mode Interface Model MIIC 203 RS 232 to 1 C Host Adapter IPORT AFM w ASCII Fast Mode Interface Overview The MCC iPort AFM MIIC 203 RS 232 to 1 C Host Adapter with ASCII Fast Mode Interface allows any PC Host Computer or Data Terminal with an RS 232 port to become an I C Master or Slave device transmitting or receiving 1 C messages to one or more I C devices across an TC Bus PRODUCT FEATURES Turn ANY Computers Serial Port into an DC Port Supports Standard 100 and Fast 400 DC Bus Activity High Performance Bus Co Processor Maximum Bus Throughput with Low Overhead 19 2 57 6 and 115 2 k selectable Baud Rates WS Supports Bus Master and Slave Transmit and Receive and INT Signaling Compatible with 3v to 5v I C at up to 400kbit s Compatible with iPort AI applications The iPort AFM system consists of the following components 1 iPort AFM Adapter This adapter plugs into an RS 232 Port on a host computer and generates TC Bus signals 2 iPort Utility Pac
15. HE SOFTWARE OR PRINTED MATERIALS FOR A FULL REFUND The computer files and materials supplied in this package are non exclusively licensed to Purchasers of the MCC Port IC Host Adapter Distribution of the MCC iPort Utility Pack software IMSGCTR EXE and any other computer files supplied as part of the MCC Port Utility Pack is strictly limited to employees of the Purchasing Company Violation of any of the above provisions automatically terminates the Purchaser s license Life Support Applications MCC Products are not designed for use in life support appliances devices or systems where the malfunction of a MCC Product can reasonably be expected to result in a personal injury Limited Warranty MCC warrants as the sole warranty that the disks on which the Software is furnished will be free of defects in materials and workmanship under normal use and conditions for a period of thirty 30 days from the date of purchase No distributor dealer or any other entity or person is authorized to expand or alter this Agreement MCC does not warrant that the functions contained in the Software will be uninterrupted or error free Except as stated above in this paragraph the Software is provided as is without warranty of any kind either expressed or 55 implied included but not limited to the implied warranties of merchantability and fitness for a particular purpose The Purchaser assumes entire risk as it applies to the quality
16. Press Enter ESCape to Cancel Note The tilde character and the Carriage Return CR character are used as special marker characters within all Port AFM transmit text messages These characters may not be used 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 AFM automatically translates Hex equivalent characters to their single byte value for transmission across the IC Bus All entered data bytes are transmitted to the Destination PC 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 PC Stop condition Sending Master Transmit messages with No Stop allows the Master to retain exclusive control of the C Bus until it finally sends a Stop During this time the Master can send additional Repeated Start Master Transmit or Master Receive messages to the same or other I C Slave devices Command Ttext CR Master Transmit Message No Stop Response 1 MTC CR Master Transmit Complete Response 2 SNA CR Slave Not Acknowledging Response 3 I81 CR 1Port AFM is Busy Command Ignored Response 4 I83 CR PC Arbitration Loss Detected Response 5 I88 CR Port Connection Not Open 4 Default Setting None Examples Tabcd1234 CR ASCII Printable characters ab
17. User s Guide IPORT AFM RS 232 to I C Host Adapter with ASCII Fast Mode Interface with Port Utility Pack for Windows Port AFM ASCII Fast Mode MICC Micro Computer Control Small Area Network Specialists www mcc us com Introduction The MCC iPort AFM MIIC 203 RS 232 to I C Host Adapter with ASCII Fast Mode Interface allows any PC Host Computer or Data Terminal with an RS 232 port to become an TC Master or Slave device transmitting or receiving TC messages to one or more I C devices across an TC Bus This user s guide describes the installation and operation of the iPort AFM MIIC 203 RS 232 to 1 C Host Adapter with ASCII Fast Mode Interface and iPort Utility Pack Software for Windows MCC products are licensed to use the PC Bus Purchase of Philips DC components conveys a license under the Philips PC patent to use the components of the I C system provided the system conforms to the PC specifications defined by Philips PC is a trademark of Philips Corporation Copyright 2002 by Micro Computer Control Corporation All rights 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 merchantab
18. and performance of the Software Should the Software prove defective the Purchaser and not MCC authorized MCC distributors or dealers assume the entire cost of all necessary servicing repair or correction Limitation of Remedies and Damages MCC s entire liability and remedy will be the replacement of any disks not meeting MCC Limited Warranty explained above In no event will MCC be liable for any damages direct indirect incidental or consequential including damages for lost profits lost savings or other incidental or consequential damage arising out of the use or inability to use such Software even if MCC has been advised of the possibility of such damages or for any claim by any other party In no event will MCC s liability of damages to the Purchaser or any other person ever exceed the amount of the license fee paid by the Purchaser to use the Software regardless of the form of the claim This Agreement is governed by the laws of the State of New Jersey USA except federal law governs copyrights and registered trademarks If a provision of this Agreement is deemed invalid by any court having jurisdiction that particular provision will be deemed deleted and will not affect the validity of any other provision of this Agreement TEL 609 466 1751 FAX 609 466 4116 EMAIL info mcc us com For the latest product information application notes and free software updates visit our Web Site at http www mcc us com 56 Appe
19. ble and attach the individual wires to your device or you can purchase our clip lead cable CABCL 4 Connect INT line if used Part 2 iPort Utility Pack for Windows V5 iPort Utility Pack for Windows 1 Introduction to Utility Pack This product includes two 2 Windows applications Message Manager and Message Center that help a user get started sending and receiving 1 C Bus messages quickly iPort Message Center The Port Message Center operates with all versions of the Port 1 C Bus Host Adapter With this program you can create save and execute scripts of the following modes of DC Bus message activity e Master Transmit e Master Receive t Micro Computer Control Corp iPort Message Center SCROLL IML File Options Help MICC Port AFM Message Center Open Link send M Auto Repeat M Send On INT Msg Address RAV Message Data Bytes Stop Delay msec Ww Ww WW WW WW WW WW WW WW WW WW WW WW WW WW lt lt lo j o e o o j o e o o o lo e i E Status lt lt Link Closed gt Using Com pe Device Select ANT Signal 7 Stop On Beep On C Port I Enable Monitor I Busy J Busy C iPort Al IT Arb Loss IT Arb Loss O Signal Level 7 Slave Nak JT Slave Nak F ANT Assert iPort AFM 15 iPort Message Manager The Message Manager operates with all versions of the Port TC Bus Host Adapter Using this program you
20. cd1234 T 00 01 02 CR Binary data bytes 00 01 02 T 00 01 02 CR Binary data bytes 00 01 02 with No Stop Tab 7Ecd CR Tilde embedded in ASCII Printable characters T12 0D24 CR Carriage Return embedded in ASCII Printable characters Set PC Bus Time oUt in msec Set bus time out in msec 0 disable The iPort AFM reports a bus time out if no bus activity for the specified time occurs within an DC Bus message Command Unnnn CR I2C Bus time oUt Response Display Firmware Version requires V2 00 Display firmware version Command V CR Firmware Version Response VCCXX XX CR Major XX XX Minor eXtended Commands requires V2 00 The eXtended commands are used to generate out of spec signaling eXtended commands cannot use the DC hardware to control the SCL and SDA lines as the DC hardware only generates I2C 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 interrupted at any time by internal interrupts The eXtended commands run directly off the command characters as they are received on the RS 232 link Speed of execution of eXtended commands is controlled by the RS 232 baud rate the execution speed of the firmware delays caused by execution interruptions that may occur while a command is executing and I2C Bus clock stretching by external slave devices The following commands manipulate t
21. d General Call Enabled 1Port s own Slave Address 6EH DC Bus Clock Rate 100 KHz iNterrupt Signal Released DC Bus Time oUt 10000 msec RS 232 Baud Rate This command sets the RS 232 Baud Rate 0 19 2k 1 57 6k 2 115 2k Command B 011 2 CR Set RS 232 Baud Rate Response 1 BCO CR Baud Change Complete Response 2 BC1 CR Baud Change Complete Response 3 BC2 CR Baud Change Complete Response 3 I89 CR Invalid Command Argument Default Setting BO CR 34 Close DC Connection This command disconnects iPort AFM from the PC Bus Command C CR Close PC Connection Response CCC CR Close Connection Complete Default Setting Closed Set Destination UC Slave Address This command sets the destination DC Slave Address Hex 0 2 FE for all subsequent Master Transmit or Receive operation Command Dxx CR Set Destination DC Slave Address Response 1 1Port AFM Ready Response 2 I89 CR Invalid Command Argument Default Setting 00 Echo Prompt Control This command enables or disables data entry echo and prompts used as feedback to manual operations from a computer terminal Command E OI1 CR Echo Prompt Control 0 Off 1 On Response 1Port AFM Ready Default Setting Off Flow Control This command selects the serial communication handshaking protocol to be use in communicating with the Host computer iPort AFM implements either XON XOFF by default or RTS CTS flow control protoc
22. detect bus problems 48 iPort AFM Connection Closed Prompt I88 CR iPort AFM Connection is Closed Cause Host is attempting to perform an PC Bus message operation while the iPort AFM Connection is Closed The Host should issue an Open DC Connection command before attempting to perform DC Bus message operations Invalid Command Argument Prompt IS9 CR Invalid Command Argument Detected Cause This event normally indicates the value of a Host command argument was out of range The Host should reissue command with correct arguments Slave Transmit Request Not Active Prompt ISA CR Slave Transmit Request Not Active Cause This event indicates the Host attempted to issue a Slave Transmit Text command when no Slave Transmit Request was present Invalid iPort AFM Command Prompt I8F CR Invalid iPort AFM Command Cause This event normally indicates that an invalid command was issued by the Host The Host should reissue the correct command iPort AFM RS 232 Receive Buffer Overflow Prompt I90 CR iPort AFM RS 232 Receive Buffer Overflow Cause This event normally indicates that data sent to the iPort AFM via the RS 232 serial port has been lost Check your Host Computer Serial Port Flow Control XON XOFF or Hardware to make sure it matches current iPort AFM Flow Control Also check if Host Computer FIFO buffers in the 16550 UART are enabled If so reduce Transmit Buffer level 49 Example Code The foll
23. e on the PC Bus iPort AFM outputs a Slave Transmit Request to its Host device and initiates an DC 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 FC Bus Slave Receive Complete This event is caused by the reception of an DC Bus Slave Receive message directed at the current 1Port AFM s own Slave address 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 SRCtext CR Slave Receive Complete Command None Required General Call Receive Complete This event is caused by the reception of an I C Bus Slave Receive message directed at the IC General Call Address 00 when iPort AFM s General Call recognition is enabled 46 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 PC Bus Time out Detected Prompt I85 CR PC Bus Time out Detected Cause iPort AFM issues this response when an PC Bus message lasts for more than 1 second No corrective action is taken by iPort AFM No Host response is required but this event can be used to detect bus problems iNterrupt Signal
24. eceive activities for all versions of the Port TC Bus Host Adapter With this program you can create save and execute scripts of TC Master messages The MCC iPort Message Center Software when used with an MCC iPort allows a PC to become an I C Master transmitter or receiving device sending TC messages between the PC and one or more IC devices across an TC Bus The iPort Message Center is designed to be a simple application for experimenting with TC messages It provides methods to 1 Edit a list of IC Master Transmit or Receive Messages 2 Save and or Load a list of C Master messages to from disk 3 Transmit the current list of DC Master messages with the option to auto repeat upon completion or send on INT assert low Port AFM only Each Port Message Center VC message can include up to 32 bytes of 8 bit data with an optional time delay at the completion of each message I C Message Operations In order to communicate with another I C device a user must take the following steps 1 Start Programs iPort Utility Pack Port Message Center 2 Select which device you are operating with by choosing the corresponding image Opening Screen or the correct checkbox on the main application Micro Computer Control Corp Port Message Center Port Message Center Micro Computer Control Small Area Network Specialists Port ag iPort Al iPort AFM Select Your I C Bus Host Adapter Rag S TM 32 c
25. es all bytes read except the last If not disabled the message is then terminated with an DC Stop condition Sending Master Receive messages with No Stop allows the Master to retain exclusive control of the TC Bus until it finally sends a Stop During this time the Master can send additional Repeated Start Master Transmit or Master Receive messages to the same or other I C Slave devices Command Rnnnn CR Master Read Message No Stop Response 1 MRCtext CR Master Read Complete Response 2 SNA CR Slave Not Acknowledging Response 3 I81 CR 1Port AFM is Busy Command Ignored Response 4 I83 CR DC Arbitration Loss Detected Response 5 I88 CR Port Connection Not Open Response 6 I89 CR Invalid Command Argument Default Setting None 39 Slave Transmit Message This command should be issued to iPort AFM in response to a Slave Transmit Request STR This command causes iPort AFM to write the specified data bytes to the requesting DC Master Receiver device Enter Message Bytes 1 or more Printable ASCII or Hex equivalent 00 FF then Press Enter or ESCape to Cancel Note 1 Upon receiving a Slave Transmit request from a Master Receiver device on the PC Bus iPort AFM outputs a Slave Transmit Request to its Host device and initiates an DC 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 FC Bus
26. he DC Clock SCL and data SDA lines 42 Command X SI xxIRIrlPIOII IDIdICIcILIAI I then Press Enter or ESCape Enter X followed by zero or more sub commands the CR Response XCC see commands below CR High Level Sub Commands S Send Start xx Send Byte xx 00 FP response A or N R Read Byte with Ack response xx r Read Byte with 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 Misc Sub Commands space no action comment no action Examples Master transmit three 2 to slave address Ox4e using high level mid level and low level sub commands High Level Command X S 4e 01 02 03 P CR High Level Response XCCAAAA CR Mid Level Command X S 01001110 00000001 00000010 00000011 P CR 43 Mid Level Response XCC0000 CR Low Level Command X de dCcDCcdCcdCcDCcDCcDCcdCc DCAc dCedCedCedCedCedCedCeDCe DCAcdCedCedCedCedCedCeDCedCe DCAc dCedCedCedCedCedCedCeDCe DCAc dCD CR Low Level Response XCC0000 CR Master read three bytes from slave address Ox4F First two bytes are acknowledged y 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 X
27. hen TextBox Text I8A Slave Tx Request Not Active ElseIf StrComp iPortResp I8F 0 Then TextBox Text I8F Invalid Port AFM Command ElseIf StrComp iPortResp I90 0 Then TextBox Text 190 iPort AFM Rx Buffer Overflow Else TextBox Text LineBuf Other Update Display End If LineBuf End If Wend End Sub 53 iPort AFM Revision Report This section defines revisions and changes made to the Port AFM interface Revision 1 02 1 Initial Release Revision 2 00 1 Add Firmware Version Command 2 Add eXtended Commands 3 Add Tx bYte Count Command Additional Information For additional information on the UC Bus please refer to the following The DC and How to Use It http www mcc us com 12chowto htm 80C51 Based 8 Bit Microcontroller Data Handbook Philips Semiconductors Tel 800 227 1817 FC Peripherals for Microcontrollers Data Handbook Philips Semiconductors Tel 800 227 1817 Micro Computer Control Corporation PO Box 275 17 Model Avenue Hopewell New Jersey 08525 USA Tel 609 466 1751 Fax 609 466 4116 WWW www mcc us com 7 30 2 203 wpd 54 Software License Agreement BY INSTALLING THIS SOFTWARE YOU ARE AGREEING TO BECOME BOUND BY THE TERMS OF THIS AGREEMENT IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT PROMPTLY RETURN THE ENTIRE PRODUCT WITHIN 7 DAYS WITH ALL ITS CONTENTS TO THE PLACE OF PURCHASE WITH A NOTE THAT YOU RETAIN NO COPIES OF T
28. ility or fitness for any particular purpose Further Micro Computer Control Corporation reserves the right to revise the product described in this publication and to make changes from time to time in the content hereof without the obligation to notify any person of such revisions or changes Life Support Applications MCC Products are not designed for use in life support appliances devices or systems where the malfunction of a MCC Product can reasonably be expected to result in a personal injury WARNING This equipment can radiate levels of radio frequency energy that may cause interference to communications equipment Operation of this equipment may cause interference with radio television or other communications equipment The user is responsible for correcting such interference at the expense of the user Printed in the United States of America Table of Contents Part 1 RS 232 to PC Host Adapter w ASCII Fast Mode Interface OVGIMICW 4345S np EE dia italia IPOVAEM Adaptere SN E diede iPort Utility Pack SW E ESA Programmer s Reference a oo 5 eae Reg ARI nta Packing Slip ta eee EE System Requirements ich SAS EAS SL Interconnects ciociara arretra ali DB 25 Setial Port PIQUE e sess Bee twa 4 e eS a DB 9 Serial Port Boat score Ae ee Robi tov DC Power Jack ios tc pts idos Vis lg resede pale PC Interface Connector INT iNterrupt Signal re ENEE Hardware Configuration a SEN ENEE EE ENEE RENE AN EE EE TEE EES Connect
29. ing to a 3 3v System 2544255 A LA de LEI Connecting to an SMBus System Hardware Set Up sois o E Eat E ebe SA AR Part 2 iPort Utility Pack For Windows Introduction to Utility Pack oo TPort Message Center is don nied oats eS awd onesies wai Ga deed Cad oats Port Message Manager osos nenie a Sealed ANAL System e e E CEET Software Installation lt cirie tea ds Introduction to Message Center PC Message Operations ee ee pa oo he ie OA Introduction to Message Manager FC Message EE Basi SEU a eege de Ee A RE ENEE SETUP A EE rai IR tee EE EE et el UR Un gn Master Operations aero Ehe Arte rie i ERE ri sei vos 26 To Master Transmit Data cl sani A AS ieee ss 26 To Master Receive Data SEARS 27 Slave Operations wesna naerenn ri EE 28 To Slave Transmit a Messages A nei 28 To Slave Receive a message sassari 28 Uninstalling iPort Utility Pack 28 Part 3 Programmer s Reference ASCI Command Interface Definitions BI e EE 20 ASCII Command Interface Definitions mo 31 Synchronous Interface Events EEN NEEN ENEE ra 32 POr AEM Reset cy A AAA At 32 Status Display 200 oa ET 33 RS 232 Baud R ta gta A gala a Ee 33 Close C Connection cuecen i vs eed eg eee n 34 Set Destination DC Slave Address n n onnon 0 34 Echo Prompt Control vr de da ds Bea ees 34 Plow Control e bo cities to reno sali o r Kee e Rat 34 FE General Call Controlados usais dl eras tale aria a 35 Hex On
30. is just a mouse click away 3 Opening Screen tr Micro Computer Control Corp Port Message Center SCROLL IML File Options Help Quick Start il MCC Port AFM Message Center q Open Link Bend Sase Link IV Auto Repeat M Send On ANT Msg Address RAV Message Data Bytes Stop Delay msec a ZSSSSSSSSSSSSSSE lt EEEEEEEKEERKEEE IS Status lt lt Link Closed gt i Device Select INT Signal Stop On Beep On f AE Enable Monitor Ge Lo SC Usin Com RIS IPO o rb Loss rb Loss A 221 amp iPon AFM O Signal Level C Slave Nak JT Slave Nak I ANT Assert Main Application The Main Application screen is opened by selecting an image on the Opening Screen 19 3 Select the PC ComPort where the Port is connected to your computer 4 Use the Options menu to override default Baud Rate and I C Bus Clock rate settings 5 Establish a link to the Port with the Open button The Port Message Center software sets the iPort s own PC Slave address to OxFE 6 To open an existing message list click File Open List on the menu bar To enter or edit a message List open the I C Message Editor screen by double clicking on a message row in the spreadsheet Quick Start 12C Address Msg Direction do Stop Delay msec m C Read Yes 0 n 04 BR Write C No 100 Write Parameters Enter 0 or more bytes of Hex 00 FF Data to Send t
31. k Software This software package included with each iPort includes the iPort Message Manager and Message Center applications to easily send and receive TC Bus messages 3 Programmer e Reference This section includes ASCII command interface definitions and example code to assist in developing a custom application for the iPort AFM adapter Packing Slip This package includes the following items e Port AFM MIIC 203 RS 232 to IFC Host Adapter with ASCII Fast Mode Interface 4 Foot I C Interface Cable CAB4 1Ft INT Trigger Cable AXM 12G Serial Port Cable 9F 25M 1 Foot Long C9F25M1 1Ft INT Trigger Cable HAXM 12G Port AFM User s Guide Port Utility Pack for Windows Software Power Supply Standard 120VAC 60Hz USA Plug MWT 5VA European 220VAC 50Hz European Plug MWT 5VAE International 120 220 240VAC 50 60Hz Int Plug selection MWT 5VAI System Requirements a Host computer b 1 free RS 232 Serial Port Interconnects The I C Bus Host Adapter includes four interconnections 1 RS 232 Serial Port Connector RS 232 Serial Port Connector 5VDC Power Jack INT Line 12c Interface Connector This connector provides connection to the serial port on the PC Use the C9F25M1 cable to adapt the Port to 9 pin serial ports DB 25 Serial Port Pinout DB 25 Pin 2 Transmit Data from the Host Computer to the iPort DB 25 Pin 3 Receive Data from the iPort to the Host Computer DB 25 Pin 4 Request
32. ll Address 00 messages Command G 011 CR FC General Call 0 Disabled 1 Enabled Response 1Port AFM Ready Default Setting Enabled Hex Only Display Control This command controls Hex Only 00 FF output of Master or Slave received data When enabled all received DC message data bytes are displayed in Hex 00 FF form When disabled received DC message data bytes representing ASCII printable characters are displayed as their ASCII printable character Non ASCII printable data bytes are always displayed in Hex 00 FF form 36 Command H 0I1 CR Hex Only Display 0 Disabled 1 Enabled Response 1Port AFM Ready Default Setting Enabled Set iPort AFM s Own UC Slave Address This command sets iPort AFM s own PC Slave Address Hex 2 FE Subsequent UC messages to this address will cause iPort AFM to become an active Slave device on the bus Command Ixx CR Set iPort AFM s Own DC Slave Address Response 1 1Port AFM Ready Response 2 I89 CR Invalid Command Argument Default Setting 6E PC Bus Clock Rate Control Set the DC Bus master clock rate 0 23 1 86 2 100 3 400KHz Command K 011 213 CR Ser iPort AFM s Clock Rate Response 1 Default Setting K2 CR The iPort AFM clock rate for standard commands is controlled by the oscillator crystal we use on our microcontroller This crystal has been selected to give accurate RS 232 baud rates as the RS 232 baud rate
33. ly Display Contol Veas SAS 35 Set iPort AFM s Own DC Slave Address 36 PC Bus Clock Rate Control 36 Command Menu Display 25 assisi anar EE Ee AS 36 iNterrupt Signal Control Status LL 37 Open TE Connection AAA SEENEN 37 Master Read leale 38 Slave Transmit Message ca chewed ahi ENEE asa 39 Master Transmit Message spessori erena kia Dee Sak SACRO ORES e E 40 Set DC Bus time oUt in msec sarreran peana ccc cee eens 41 Display Firmware Version sopra toto DIA 41 extended Commands vasti EE 41 Display Tx bYte Count pus raid tri tao 44 Asynchronous Interface Events i iii is tos 45 Slave Transmit Request cut surreale 45 Slave Receive Complelexge 2753 usalo sati AAA AS a 45 General Call Receive Complete EEN 45 I C Bus Time out Detected 46 iNterrupt Signal Asset ica das dress EA 46 Nterrupt Signal Release casilla ad IA 46 IPO AEM PtOMplS ar E PER ee iii 47 POE ARM Reddy a li EEA RSA LEA ARE BERRA SERS 47 Slave Not Acknowledging uu ili darei 47 IPOLVAEM BUSY arresi iii 47 e e TE ER EE 47 PC Bus Error Detected ccc ence tenn ees 47 PC Bus Time out Detected 47 iPort AFM Connection Close 48 Invalid Command Argument 43 6206 date ere tia eee eae ae Gra a 48 Slave Transmit Request Not Active oo oooocooooooooonocoomo o 48 Invalid iPort AFM Command 48 iPort AFM RS 232 Receive Buffer Overflow o o o ooooooo 48 Example TEE iper 49 E Reset a ee 49 IPort A
34. msec 0 Disable V CR Display Firmware Version Major XX XX Minor Requires Version 2 0 or later X CR eXtended Commands See Prompt or User s Guide Requires Version 2 0 or later Y CR Display Tx bYte Count Requires Version 2 0 or later Note An online version of this programmer es reference is available at http www mcc us com 203ug htm Synchronous Interface Events Synchronous Events are those iPort AFM interface activities initiated by the Host computer iPort AFM Reset This command resets iPort AFM to its default state This command consists of three 3 sequential Ctr R characters Ctr R is the character code Decimal 18 and Hexadecimal 12 and can also be generated by holding down the Ctrl Key and pressing R Note It is recommended that the Host computer turn off all serial port flow control before sending this command Flow control should be enabled once the response is received 33 Command Ctrl R Ctrl R Ctrl R iPort Reset Response Port AFM Ready Default Setting None Status Display This command displays current iPort AFM status Command CR Status Display Response iPort AFM DC 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 RS 232 Baud Rate 19 2KHz Destination DC Slave Address 4EH Echo Prompt Disabled Flow Control XON XOFF Hex Only Display Enabled PC Connection Close
35. must exactly match the rate used by the host computer Master I2C clock rates are the fastest possible given the required crystal frequency Slave I2C clock rates are driven by the external master device with possible clock stretching as required to store or retrieve message data Command Menu Display This command displays 1Port AFM s command menu Command M CR Command Menu Display Response iPort AFM Command Menu Syntax Select Optional xx 00 FE n 1 32767 37 B 01112 IC IDxx E 011 F 011 G 011 H 0 1 Ixx Set K 0 11213 IM IN OI1IAIR O Rn S text T text Un IN X Y Status Display RS 232 Baud Rate Control 0 19 2 1 57 6 2 115 2KHz Close DC Connection Set Destination DC Slave Address Echo Prompt Control 0 Disable 1 Enable Flow Control 0 XON XOFF 1 RTS CTS General Call Control 0 Disable 1 Enable Hex Only Display Control 0 Disable 1 Enable iPort AFM s Own DC Slave Address DC Bus Clock Rate Control 0 23 1 86 2 100 3 400 KHz Menu Display iNterrupt Signal Monitor Control Status 0 Disable 1 Enable A Assert R Release lt CR gt Status Open DC Connection Master Rx Message No Stop Slave Tx Message Master Tx Message No Stop Set I2C Bus Time oUt in msec O 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
36. n ASCII text These bytes are automatically transmitted when a Slave Transmit Request is received from a Master device To Slave Receive a message Data bytes received from a Master Transmitter are automatically displayed in the Received Message window Received binary data is displayed using a three character Hex Equivalent format 00 FF By selecting the Hex Display checkbox the data is displayed as Hexadecimal data Uninstalling iPort Utility Pack Click Start Programs iPort Utility Pack uninstall Follow the on screen instructions 29 Part 3 Programmer s Reference ASCII Command Interface Definitions V2 iPort AFM Quick Start Follow these steps to start sending and receiving I C messages 1 2 ON 0 Install iPort AFM as directed in the Installation Instructions section of this User s Guide Use a terminal emulator program like the Windows Terminal Program or Windows Hyperterminal to get started Remember to select the correct Com Port COMI COM2 and set the terminal emulator to 19200 Baud 8 Data Bits No Parity and 1 Stop Bit Enter to get an iPort AFM Status Report Note All iPort AFM commands are terminated with a Carriage Return character On most terminal emulators press the Enter key Enter E1 to Enable the Echo Prompt feature This makes it easier for a person to interact with the Port AFM from a terminal Enter F0 or F1 to set iPort AFM
37. ndix A Interface Connector and Plug Information MCC uses two 2 different connectors and plug assemblies These parts are all compatible with one another and are interchangeable 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 Plugs Molex SEMCONN ACCESS bus Plug Molex Part 15 83 1564 AMP SDL Shielded Data Link Plug for ACCESS bus Bush Amp Part 520851 1 Ferrule Amp Part 520433 1 SDL Shell Amp Part 520461 1 SDL Shell Amp Part 520460 1 SDL Amp Part 4 520424 1 Additional Cables Available MCC Part CAB4 PC Interface Cable 48inches 4ft MCC Part CAB8 I C Interface Cable 96 inches 8ft MCC Part CAB16 PC Interface Cable 192 inches en MCC Part CABCL I C and SMBus Clip Lead Cable MCC Part AXM 12G 1 Ft INT Trigger Cable 57
38. o Slave w DK X Cancel Now you can a Set the I C address i e 4C 4E etc b Set Msg Direction Read or Write c Do stop yes or no Repeated starts d Set time delay delay in msec controls speed of activity e Write message data from 00 to FF or read count f Click OK Repeat above steps for additional messages 20 You can insert a new message between existing messages by clicking once on message below where you want to insert press the Insert button on your keyboard this will bring up the PC Message Editor screen set all information and click OK 7 On the main screen click on Send to transmit the current list of 1 C Master messages with the option to auto repeat upon completion or send on INT assert low Once the link has opened successfully you are now an active 1 C node Messages are entered into the message spreadsheet and are transmitted upon clicking the Send button Data received as part of a Master Receive message replaces the OxFF placeholders in the message spreadsheet control If you get a Slave Not Acknowledging message in the Communications Events window this could mean you have the wrong address in the I C Destination Address or the device is not answering to its address 21 iPort Message Manager Software for Windows Introduction to Message Manager The MCC iPort Message Manager Software when used in conjunction with an MCC Port allows a PC to
39. ols Flow control is used by the iPort AFM 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 11 is used to enable the flow of data XOFF Hexadecimal 13 is used to stop the flow of data 35 The RTS CTS protocol uses two additional wires in the cable connecting communicating devices The RTS wire is an output signal It indicates that the device generating the signal has buffer space available and can receive The CTS wire is an input signal It indicates that the other device has buffer space available and can receive In general XON XOFF requires a minimal three wire connection Ground Transmit Data and Receive Data This protocol does insert control characters into the stream of data and may not be appropriate for all Host systems If supported 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 Command F OI1 CR Flow Control 0 XON XOFF 1 RTS CTS Response 1Port AFM Ready Default Setting XON XOFF FC General Call Control This command enables or disables iPort AFM response to UC Bus General Ca
40. owing 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 AFM interface programs in other programming languages and operating environments Note This example code is available online at http www mcc us com 202ug htm ExampleCode iPort AFM Reset Comml Output Chr 18 Comml Output Chr 18 Comm1 Output Chr 18 iPort AFM Initialization Comml Output f0 Comml Output Chr 13 Comml Output 170 Comml Output Chr 13 Comml Output d4e Comml Output Chr 13 Comml Output o Comml Output Chr 13 Master Transmit Message Comml Output T 00 01 Comml Output Chr 13 Master Receive Message Comml Output R10 Comml Output Chr 13 Ctrl R Ctrl R Ctrl R Set iPort AFM XON XOFF Flow Control Set 1Port AFM s Own Slave Address Set Destination Slave Address Open PC Connection Send Master Tx Command Terminate Command Send Master Rx Command Terminate Command Communication Event Processing Static Sub Comm1_OnComm Static LineBuf While Comm InBufferCount Msg Comm1 Input Get Comm input character CharIn Msg 50 If Msg Chr 13 Then Msg Remove CR If Msg Chr 10 Then Msg Remove LF If Msg Then if 1Port AFM Ready Msg Substitute Token CharIn Chr 13 Terminate Line End If LineBuf
41. roximately 250ma of regulated 5VDC is available at the I C interface connector to power external devices If the iPort AFM is powered from the 1 C connector the unit requires 50ma of regulated 5VDC 3 PC Interface Connector The iPort AFM Host Adapter includes a four wire positive locking modular connector see Appendix A for more info on these parts for interfacing to an external I C Bus Lines provided include I C Clock SCL Data SDA Ground and 5VDC Front 4321 SCL 5 SDA GND Receptacle Connector An DC Interface Cable White SCL Red 5VDC Green SDA Black Ground is provided to connect to a external IC Bus Since there is no standard I C Bus connector you may want to cut off one end of the cable and add a connector compatible with your target system Additional DC Interface Cables 4 ft 8ft or 16 ft and above mentioned modular connectors are available from MCC Clip Lead cables are also available see Appendix A 4 INT Interrupt Signal Control The iPort AFM provides an open drain input output INT which can be connected to a corresponding pin on a master or slave The INT Signal allows the iPort AFM to participate in INT master and or slave communications An interrupt output INT low is generated upon receiving an iNterrupt assert command from the host computer Resetting and reactivating the interrupt signal is achieved when a release command is received from the host computer or data is
42. rt connections and power 24 iPort Message Manager Setup x Quick Start RS 232 Port Settings Advanced Setup PC Comport Port s Own DC Slave Address 2 6C 3 y i El 70 El General Call Baud Rate Enabled Disabled 19 200 R 57 600 DC Bus Master Bit Rate 115 200 125 KHz 100 KHz n C 23 KHz 400 KHz C 86 KHz E K DC Bus Time Out msec Dog X Cancel I Enable INT Monitor Serial Port Settings Advanced Setup A Diagnostic Setup Advanced Set Up Screen Advanced Set up On the Advanced Set up screen you can set the following parameters 1 Port 12C Slave Address Select iPort s I C slave address Port will acknowledge messages sent to this address 2 iPort General Call Enabled allows Port to respond to the PC general call address 00 General call is used to broadcast an I C message to multiple devices 3 IFC Bus Master Bit Rate iPort iPort AFM The speed of the Bus will run 100KHz is standard mode 400kHz is fast mode Use other rates if you are having trouble talking to a very slow slave device 4 C Bus TimeOut Msec iPort iPort AFM Control how long Port will wait before reporting an TC Bus intra message timeout 0 None 1 32767 msec 5 Enable INT monitor iPort AFM only Enables monitoring of the INT signal state INT state changes are reported in the main screen Communications Events window 25 iPort Message Manager Setup x
43. sage Manager Micro Computer Control Corp iPort Message Mamager p TET a Manag AAA C Port Message Manager zi o Computer Control inati Small Area Network Specialists DC Destination Address Master Tx Message Data ASCII Text or Hex 00 FF 68 zl 00 01 02 BA i EC Lk doStop Master em z T Auto Repeat Master Tx es KR Hex Displa Port Por Al iPort Al iPort4AFM 2 f Select Your I C Bus Host Adapter i Wm Wm p DeviceSelect Bytes to Master Rx 1 KW doStop Waste SS TM Es C Gan FC is just a mouse click away C iPort Al iPort AFM SI 3 ave Tx Message Data ASCII Text or Hex 00 FF Opening Screen I Etat Main Application The Main Application screen is opened by selecting an image on the Opening Screen 3 Establish iPort Link On the Message Manager main screen click the Open button to view the Set Up Screen You now have three options of set up for the Message Manager Basic Set up Advanced Set up and Diagnostic Set up 23 iPort Message Manager Setup X Quick Start RS 232 Port Settings PC Comport 2 3 4 El Baud Hate C 19 200 57 600 115 200 E Cancel Serial Port Settings Advanced Setup Diagnostic Setup Basic Set Up Screen Basic Set up Select the PC ComPort attached to your iPort and the baud rate then click OK The Communications Events window on the Main Screen should report IC Open Successful If this message does not appear check the Po
44. signal allows the iPort AFM to participate in INT master and or slave communications Command NO CR Disable Monitor N1 CR Enable Monitor NA CR Assert INT Signal NR CR Release INT Signal Response Default Setting NO NR Open PC Connection This command activates iPort AFM as an active device on the DC Bus Command O CR Response OCC CR Default Setting Open DC Connection Open Connection Complete Closed 38 Master Read Message This command causes iPort AFM to read the specified number of data bytes from the currently selected Destination CC Slave Address with or without generating an DC Stop condition after the last byte is received 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 DC Slave device indicates the number of additional trailing bytes are available to read iPort AFM 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 received text is a representation of the data bytes within the Master Receive message The format of this data 1s controlled by the current setting of the Hex Only Display Control If the device acknowledges its UC Slave Address the specified number of bytes are read from the current Destination TC Slave Address iPort AFM acknowledg
45. to Send from the Host Computer to iPort DB 25 Pin 5 Clear to Send from the iPort to the Host Computer DB 25 Pin 7 Ground between Host Computer and iPort DB 9 Serial Port Pinout DB 9 Pin 3 Transmit Data from the Host Computer to the iPort DB 9 Pin 2 Receive Data from the iPort to the Host Computer DB 9 Pin 7 Request to Send from the Host Computer to iPort DB 9 Pin 8 Clear to Send from the iPort to the Host Computer DB 9 Pin 5 Ground between Host Computer and iPort Transmit Data Receive Data and Ground are required in all cases Request to Send and Clear to Send are required if RTS CTS communication handshaking protocol is selected See the Port AFM Flow Control command Communication Handshaking Protocol Port AFM implements either XON XOFF by default or RTS CTS flow control protocols Either protocol can be selected with the iPort AFM Flow Control command Flow control is used by the Port AFM to limit character flow to and from the Host computer to avoid overflowing internal communication buffers and lost data Communication Parameters 19 200 57 6k or 115 2k Baud No Parity 8 Data Bits 1 Stop Bit The default baud rate is 19 200 until the iPort AFM receives a Baud Change command from the host computer 2 5VDC Power Jack The Port AFM Host Adapter can be powered in one of two ways from the power jack or from the I C interface connector If the unit is powered from the provided 5VDC Wall Transformer app

Download Pdf Manuals

image

Related Search

Related Contents

Clifford 330X1 Automobile Alarm User Manual  Exemples de tâches de communication  Sony XR-C2200 User's Manual  Installation and Operation Manual for Brooks  Physique atomique et nucléaire  Ver ficha técnica  Philips AVENT SCF643  

Copyright © All rights reserved.
Failed to retrieve file