SUPER MICRO Computer MIIC-203 manual

Page 50

If Msg$ = Chr$(13) Then Msg$ = ""

' Remove CR

If Msg$ = Chr$(10) Then Msg$ = ""

' Remove LF

If Msg$ = "*" Then

' if iPort/AFM Ready

Msg$ = "****"

‘ Substitute Token

CharIn$ = Chr$(13)

‘ Terminate Line

End If

 

LineBuf$ = 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

' iPort/AFM Baud Change 0 {19.2K}

TextBox.Text = "iPort/AFM Baud Change 0 {19.2K} "

ElseIf (StrComp(iPortResp$, "/BC1") = 0) Then

' iPort/AFM Baud Change 1 {57.6K}

TextBox.Text = "iPort/AFM Baud Change 1 {57.6K} "

51

Image 50
Contents 479,12 Introduction Page Table of Contents Programmer’s Reference Ascii Command Interface Definitions Page Part Model MIIC-203RS-232 to I2C Host Adapter Ascii Fast Mode Interface OverviewInterconnects RS-232 Serial Port ConnectorSystem Requirements Packing Slip+5VDC Power Jack DB-25 Serial Port PinoutI2C Interface Connector INT, Interrupt Signal ControlHardware Set-Up Connecting to a 3.3v SystemConnecting to an SMBus System Pull-up ResistorsIPort Utility Pack for Windows IPort Message Center Introduction to Utility PackIPort Message Manager Software Installation Page I2C Message Operations Page Page Page Establish iPort Link Starting the programSelect iPort Device Basic Set-up Advanced Set-up Diagnostic Set-up iPort Only Sending Messages Master Operations To Master Transmit DataTo Master Receive Data To Slave Receive a message Uninstalling iPort Utility PackTo Slave Transmit a message Programmer’s Reference IPort/AFM Quick Start IPort/AFM Ascii Text Interface Commands Command DescriptionIPort/AFM Reset Synchronous Interface EventsStatus Display RS-232 Baud RateEcho/Prompt Control Close I2C ConnectionSet Destination I2C Slave Address Flow ControlI2C General Call Control Hex Only Display ControlI2C Bus Clock Rate Control Command Menu DisplaySet iPort/AFM’s Own I2C Slave Address Interrupt Signal Control/Status Open I2C ConnectionMaster Read Message Slave Transmit Message Master Transmit Message Display Firmware Version requires V2.00+ EXtended Commands requires V2.00+Set I2C Bus Time-oUt in msec Page Issue a Read WCR command to a Xicor X9241 at slave address Display Tx bYte Count requires V2.00+ Slave Receive Complete Asynchronous Interface EventsSlave Transmit Request General Call Receive CompleteI2C Bus Time-out Detected INterrupt Signal AssertINterrupt Signal Release IPort/AFM Ready I2C Bus Error Detected IPort/AFM Prompts Slave Not AcknowledgingIPort/AFM Connection Closed Invalid Command ArgumentInvalid iPort/AFM Command Slave Transmit Request Not ActiveMaster Receive Message Example CodeIPort/AFM Initialization Communication Event ProcessingPage Page Page Additional Information IPort/AFM Revision ReportRevision Micro Computer Control CorporationLimited Warranty Life Support ApplicationsLimitation of Remedies and Damages Appendix a