Home
        MSP UART/Class II User Manual
         Contents
1.                                                                           1 ji  l  i NVEDVIA 190178 i  XNWL 338         1 l         l aids  1  i BIS   lt      Xn  I  1 l      NOUd33  1 l                       A el Pace oe eee  l    88d8 e  i   08I    Ladd e 4  l     I  98d8 e  i ZOSI  i Sada e    I  vada e  i LOSI    S  IL d  l  l     cadd e  008   i Lada e      i NVEDVIA 40078 dWY OSI 338          NOILOAS TVIYIS                                                                                                i     i     zzgdg       l oval 9   l Sin o     2adl e      Gu E  yai   CH N  L  oe eois    Y  G   Wedd       l   l I   D d     yeada e      X 3     OZEZ SH   w H     edd  e   v A     D 1 L 9   i l V I   A coy oy Lo a    i   i   redd EUR     I I   1 I   I D   i     i 189d1       L8VA i   l I   l I   I I   WOH  NILSAS  NVE Xn  N3LSAS viva    PN                      8 1 8 dE 0 SS  8lddl 4 XOS 140d  LI dE O    ISON  IdS  118d1 Of  OSIN                         Series 2040 Test System    MSP UART Class IT User Manual V2 2 MSP Board    MULTIPLE SERIAL PROTOCOL BOARD   The serial communications section of the Multiple Serial Protocol  MSP  board  is designed to communicate with Units Under Test  UUTs  via a variety of  serial protocols  Included are RS 232C  asynchronous RS 422 RS 485  and  Controller Area Network  CAN   Other protocols such as single wire UART  lines and Class II can also be used with this card     The MSP card has four Isolation Amplifiers  ISOAMPs   These amplif
2.    RS422  2 Baudrate  1 to 65000  Baudrate  3 Echo Timeout  0 to 65000  Milliseconds  4 Receive Timeout  0 to 65000  Milliseconds  5 Gap Timeout  0 to 65000  Milliseconds  6 Idle Timeout  0 t0 65000  Milliseconds  8 Check Echo 0   Do not check echo byte  1   Check echo type  Port Code   The port used on the MSP board  Baudrate   The baudrate the MSP board is set to  Echo Timeout   The time to wait for an echo byte   Not currently implemented    Receive Timeout   The time to wait for a response from the sender  Gap Timeout   The maximum time allowed between characters  Idle Timeout   The maximum time to wait for an idle line before transmitting  Check Echo   Flag to compare the echoed byte with the transmitted byte    Note  The gap timeout also determines how long the MSP board will wait before  determining that a generic serial message has ended     EXAMPLES    Dim Value As Long   Call getUARTParams 2 Value  EE Get baudrate   Call getUARTParams 5 Value  ac Get gap timeout     Series 2040 Test System 11    UART Functional Calls MSP UART Class IT User Manual V2 2  load TestMod    The loadTestMod functional call loads a binary test module into memory for  later access by functional calls such as uart01  uart02  and c2dnld  The  module contains test routines that get downloaded via a serial link from the  tester to the DUT by the functional calls  The individual tests in the module  are parsed and indexed after the file is loaded  The size of the index must be  specified since pr
3.    Response codes  SEED codes   00   Valid acceptance of SEED request   D8   DUT did not accept SEED request  KEY codes   D8   DUT did not accept KEY request   33   Product secured   AA   Access allowed   CC   Invalid key   XX   Any other   access denied  EXAMPLES     Dim rmsg 1 To 20  As Byte  Dim smsg 1 To 2  As Byte  Dim rid As Byte    smsg 1     amp H12  smsg 2     amp H34    Call c2sak rid  rmsg   amp  HFA  smsg  HU     Get SEED from DUT  Call c2sak rid  rmsg   amp  HFA  smsg  SH     Send KEY to DUT    Series 2040 Test System 31    Class II Functional Calls MSP UART Class IT User Manual V2 2    c2speed    The c2speed functional call changes the speed of the class2 bus to either  normal or high speed  The call sends and receives the messages required and  instructs the MSP board to change its DLCP speed  For more information see  XDE 3005     Visual BASIC Declaration   Public Sub c2speed rid As Byte  rmsg   As Byte  ByVal sid As Byte  ByVal mode As  Byte     Call c2speed rid  rmsg  sid  mode     WHERE     Received DUT ID if operation error free  error code if not       Data received from DUT     EEG      Response code     E  2       ID of DUT transmitted to DUT     mode    Desired speed mode    01   Normal mode   04   High speed mode    Response codes     00   Successful speed change    D0   MSP board did not respond to speed change    D1   DUT did not accept disable normal communication request   D2     DUT did not accept request to enter high speed mode    EXAMPLES   Di
4.    rmsg   As Byte   ByVal sid As Byte  smsg   As Byte   ByVal raddr as Long     Call uart02 rid  rmsg  sid  smsg  raddr     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Data received from DUT   sid    ID of DUT transmitted to DUT   sms    RAM download module test number and parameters   smsg 1    Test number   smsg 2   n     Parameters for test   raddr    Address to download the test and parameters to   EXAMPLES     Dim rmsg 1 To 20  As Byte   Dim smsg 1 To 3  As Byte   Dim rid As Byte   smsg 1   0    Test number  smsg 2      HAB    Test parameters  smsg 3     amp HCD    Call uart02 rid  rmsg   amp  HFA  smsg   amp  H12345678  oes Set up download   16 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls  uart02nr    The uart02nr functional call sends a MODE 6 message to the product  When  executed  the function links to the product RAM download module  loaded  by    loadTstMod     to form a complete serial communication message  The  function follows the serial protocol outlined in XDE 5024  This function does  not get a response from the product  Communication is at the baud rate set  up by the SetUARTParams call     Visual BASIC Declaration   Public Sub uartO2nr rid As Byte  rmsg   As Byte  ByVal sid As Byte  smsg   As Byte   ByVal raddr as Long     Call uart02nr rid  rmsg  sid  smsg  raddr     WHERE  rid    Received DUT ID if operation error free  error code if not   rms    Data received from DUT   sid   
5.   1   amp  HFA  smsg      Send ID and message to DUT  wait  ee EE 1 second for response from DUT or error code     22 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls    CLASS II Functional Calls    Series 2040 Test System 23    Class II Functional Calls MSP UART Class II User Manual V2 2    MSP   Class II Load Jumper Selections    MSP Board Terminating Node Standard  Unit  Node  Digalog Part Number C   3300pF  R   1 5KOhm C   470pF  R   10 6KOhm    0000 5030 JP7  2 3  JP8  2 3 JP7  1 2  JP8  1 2    0000 5330 JP5  2 3  JP6  2 3 JP5  1 2  JP6  1 2  0000 5332 JP1  2 3  JP2  2 3 JP1  1 2  JP2  1 2  0000 6030 JP1  2 3  JP2  2 3 JP1  1 2  JP2  1 2    NOTE  Jumper selection 2 3 is the jumper position closest to the board  stiffener        24 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls    c2alive    The c2alive functional call sends a tool present message to the DUT to keep  the 5 second activity timer reset  Ifthe message is transmitted without error   rid will equal sid  If there was an error  the error code will be in rid  For more  information  see XDE 3005     Visual BASIC Declaration   Public Sub c2alive rid As Byte  ByVal sid As Byte     Call c2alive rid  sid     WHERE   rid    DUT ID if operation is error free   sid    ID of DUT transmitted to DUT   EXAMPLES     Dim rid As Integer  Dim sid As Integer    sid    amp H55  Calle2alive aids SIAP iii indi Reset timer     Series 2040 Test System 25  
6.   Class II Functional Calls MSP UART Class II User Manual V2 2  c2dnrqst    The functional call c2dnrqst sends a request for block transfer message to the  DUT  For more information see XDE 3005     Visual BASIC Declaration   Public Sub c2dnrqst rid As Byte  rmsg   As Byte  ByVal raddr As Long  ByVal sid As  Byte  ByVal length As Integer     Call c2dnrqst rid  rmsg  raddr  sid  length     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Data array received from DUT   raddr    DUT address for block transfer   sid    ID of DUT transmitted to DUT   length    Maximum data bytes for each block transfer   EXAMPLES   Dim rmsg 1 To 20  As Byte  Dim rid As Byte  Call c2dnrqst rid  rmsg   amp H1111   amp  HFA  20                   Send starting ram address    EE and ID to transfer 20 bytes of data   EN ed hw receive DUT ID and requested data or error code     26 Series 2040 Test System    MSP UART Class IT User Manual V2 2 Class II Functional Calls    c2dnid    The c2dnld functional call allows RAM based test modules to be downloaded  to the DUT  It will also receive the response message from the DUT  For  more information see XDE 3005     Visual BASIC Declaration   Public Sub c2dnld rid As Byte  rmsg   As Byte  ByVal raddr As Long  ByVal sid As Byte   smsg   As Byte  ByVal itimeout As Integer  status As Byte  ByVal mode As Byte      Call c2dnid rid  rmsg  raddr  sid  Smsg  itimeout  status   mode        rid    Received DUT ID if operation error free  
7.   Send ID and wait for a response or error code     Series 2040 Test System 13    UART Functional Calls MSP UART Class IT User Manual V2 2    dnreq    For products that do not have illegal input conditions specified for entering the  factory test mode  the Delco Corporate Serial Data Communications  Specification and XDE 5024 provides a means to enter the factory test mode   This is typically referred to as a MODE 5  Once the request has been granted   RAM download messages via MODE 6  RAM download and execute  may  commence     The dnreq call sends a MODE 5 message to request the product enter  download and execute mode  If the request is granted  a  AA is returned in  rmsg 1   Anything else signifies that the product is busy  Communication is  at the baud rate set up by SetUARTParams     Visual BASIC Declaration   Public Sub dnreq rid As Byte  rmsg   As Byte  ByVal sid As Byte     Call dnreq rid  rmsg  sid     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Data array received from DUT   sid    ID of DUT transmitted to the DUT   EXAMPLES   Dim rmsg 1 To 20  As Byte  Dim rid As Byte  Call dnreq rid  rmsg   amp HFA       eerrrrornrrvernrrvevrrvernnne Send download request to DUT    REESE EN MN NET and wait for response or error code   14 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls  uart01    The UARTO1 functional call sends a MODE 6 message to the product  When  executed  the function links to the prod
8.  ID of transmitted to DUT   sms    RAM download module test number and parameters   smsg 1    Test number   smsg 2   n     Parameters for test   raddr    Address to download the test and parameters to   EXAMPLES     Dim rmsg 1 To 20  As Byte   Dim smsg 1 To 3  As Byte   Dim rid As Byte   smsg 1   0    Test number   smsg 2      HAB    Test parameters   smsg 3     amp HCD   Call uart02nr rid  rmsg   amp  HFA  smsg   amp H12345678                    Set up download     Series 2040 Test System 17    UART Functional Calls MSP UART Class IT User Manual V2 2    xde9067 1    The xde9067_1 functional call is used to receive any type of legal XDE 5024  message  This function receives and checks a message  but only returns the  RID to the calling program  This function will return an error if a message is  not received within the default receive timeout period set up by the  SetUARTParams call  Communication is at the baud rate set up by the  SetUARTParams call     Visual BASIC Declaration   Public Sub xde9067 T rid As Byte     Call xde9067_1 rid     WHERE   rid    Received DUT ID if operation error free  error code if not   EXAMPLES   Dim rid As Byte  Call xde9067 TImdi    Get DUT ID or error code     18 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls    xde9067 2    The xde9067_2 functional call is used to receive any type of legal XDE 5024  message  This function will return an error if a message is not received within  the default receive timeout 
9.  using the DLCP chip on the  MSP board  The message must be disassembled by the caller as the function  receives the message transparently     Visual BASIC Declaration   Public Sub recvDIcp ErrCode As Integer  rmsg   As Byte  rmsgSize As Integer  ByVal  timeout As Double     Call recvDLCP ErrCode  rmsg  rmsgSize  timeout     WHERE     ErrCode    The returned error code       The returned message array       0 to 4096  The size of the Rmsg array     timeout    0 to 65  The time to wait in seconds for message     EXAMPLES    Dim ErrCode As Integer  Dim rmsg 12  As Byte  Dim rmsgSize As Integer    rmsgSize   12  Call recvDlep Errcode  rmsg  rmsgSize  1   Receive message   40 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls    sendDLCP    The sendDIcp functional call sends a message using the DLCP chip on the  MSP board  The message must be fully assembled by the caller as the function  transmits the message transparently     Visual BASIC Declaration   Public Sub sendDIcp ErrCode As Integer  smsg   As Byte  ByVal smsgSize As Integer   ByVal timeout As Double     Call sendDLCP ErrCode  smsg  smsgSize  timeout     WHERE     ErrCode    The returned error code       The message array to send       0 to 4096  The size of the Smsg array     timeout    0 to 65  The time to wait in seconds for an idle line     EXAMPLES    Dim Errcode As Integer  Dim smsg 4  As Byte  Dim timeout As Double    smsg 1  0  smsg 2  1  smsg 3  2  smsg 4  3  Call sendDlep E
10. 00  Baudrate  Default   8192   3 Echo Timeout  0 to 65000  Milliseconds  Default   10   4 Receive Timeout  0 to 65000  Milliseconds Default   1000   5 Gap Timeout  0 to 65000  Milliseconds  Default   15   6 Idle Timeout  0 to 65000  Milliseconds  Default   1000   8 Check Echo 0   Do not check echo byte  1   Check echo type  Default   Port Code   The port to use on the MSP board  Baudrate   The baudrate to set the MSP board to  Echo Timeout   The time to wait for an echo byte   Not currently implemented    Receive Timeout   The time to wait for a response from the sender  Gap Timeout   The maximum time allowed between characters  Idle Timeout   The maximum time to wait for an idle line before transmitting  Check Echo   Flag to compare the echoed byte with the transmitted byte    Note  The gap timeout also determines how long the MSP board will wait before  determining that a generic serial message has ended     EXAMPLES     Call selAkRTbaramsC Ioigat   Set baudrate to 16384   10 Series 2040 Test System    MSP UART Class IT User Manual V2 2 UART Functional Calls  getUARTParams    The getUARTParams functional call retrieves the default parameters used by  the serial functions     Visual BASIC Declaration   Public Sub getUARTParams ByVal index As Integer  Value As Long     Call getUARTParams Index  Value     WHERE   Index    Index of the parameter to get   Value    Value the parameter is set to   INDEX  PARAMETER NAME PARAMETER VALUE  1 Port Code 0   RS232  1   Single line SXR  2
11. Series 2040 Test Systems    MSP  UART Class II  User Manual    Part Number 4200 0178  Version 2 2    Table Of Contents    MSP UART Class II User Manual    3  MSP Block Diagram EE EE 4  MULTIPLE SERIAL PROTOCOL BOARD  5  FUNCTIONAL CAES lidia 6  Sample  Call EE EE EE 6   UART Functional Calls tas tdt asada 7  KEE 8  Ca A A EE 9  SetUARTPara MS nee dida tildado daa aos 10  GetUARTR En E 11  Lad Es A A tet tonic a 12  ADE dd Ge tt ege eebe ie 13  e EE EE echte 14  ET LE RE 15  ATO e Ae ek AE EE 16  OTIA LODA al aaa E 17  Xde9067 EE 18  PIE ED E i N EE EEA E E N 19  RCI OG I AN 20  E A E EEE EE A 21  0006 AN its 22   CLASS II Functional Calida lll ota 23  MSP   Class Il Load Jumper Selections       ervarnrrnrnrrnnnrnvrnnnnrvenvvrrnnrnrenr 24  Ne eee 25  S   TK EE EEE NE EAE EEE 26  Ede 27  EN ee deer erte ert 29  Sl A O ER tes 30  o eegene 32  PAUN o   o PE EE RE uc 33  e TE UE 34  CPTOCCIVG ne e en des de ld 35  e ee 36  A A NN ask 37  A EE EE RE 38    FECVDL CP ET 40    SeNdDLEP APPO ageseent A ee es 41    Additional Functional Calls deres  43  Isolation GEER EEE EET 44  REE EEE RE EE UES E 45  Testhead Muller nina 46  Ro EEE sume rua we pee on eM aE Re 47    APPENDIX A   MSP ERROR CODES   rd onan 49    MSP UART Class II User Manual V2 2 MSP Board    MSP UART Class II User Manual    Version 2 2    Series 2040 Test System 3    MSP UART Class II User Manual V2 2    MSP Board    MSP Block Diagram                                  ayog TODOLOYd TVIHIS AldILINW                       
12. UART Class IT User Manual V2 2    Additional Functional Calls    APPENDIX A   MSP ERROR CODES    100 001  MSP  100 002  MSP  100 003  MSP  100 004  MSP  100 005  MSP  100 006  MSP  100 007  MSP  100 008  MSP  100 009  MSP  100 010  MSP  100 011  MSP  100 012  MSP  100 014  MSP  100 015  MSP  100 020  MSP  100 021  MSP  100 022  MSP  100 025  MSP  100 030  MSP  100 100  MSP  100 101  MSP  100 113  MSP  100 114  MSP  100 116  MSP  100 117  MSP  100 118  MSP  100 119  MSP  100 120  MSP  100 190  MSP  100 191  MSP  100 192  MSP  100 193  MSP  100 194  MSP  100 195  MSP  100 196  MSP  100 200  MSP  100 201  MSP  100 202  MSP  100 203  MSP  100 204  MSP  100 205  MSP  100 206  MSP  100 207  MSP  100 208  MSP    Swe YS YS YS YS YS VY YS VY YS 3  gt  gt  gt  YS 3  gt      gt  gt  gt      gt    gt  gt  YS  amp  3 YS YS  amp  YI aS    No MSP board    SCI port not ready    SCI port overrun    SCI port framing error    SCI port noise error    Invalid function number    Out of memory    MSP board is not responding to commands   TBUS transmit timeout    Invalid message number    Invalid message size    Bus error on board    Unknown command    MSP is already executing a command   UART unknown message    UART unknown parameter    UART buffer overflow    DLCP unknown parameter    Exception on board    C2DNLD Bad mode    C2DNLD Bad test index    C2DNLD Transfer suspended    C2DNLD Transfer aborted    C2DNLD Illegal address    C2DNLD Illegal byte count    C2DNLD Illegal block type    C2DNLD CS 
13. ad parameter error    CAN bad array byte size    CAN message object   s config register bit improperly set for function  called    CAN message object   s control register 0 message valid bit not set   CAN Timeout parameter is either negative or exceeds the  maximum value    CAN controller went busoff due to errors on the CAN bus   CAN message object is busy transmitting messages    CAN message object is busy receiving messages    Frame size not equal to the message object buffer   s frame size   Message object buffer is full    Matching CAN message object not found    Invalid direction parameter    Invalid Message Valid parameter value    Timeout expired before the desired number of messages were  received    Invalid number of frames parameter   too large or equal to zero        Series 2040 Test System    
14. ameter settings on  Testhead power up or reset  A Testhead reset occurs whenever the TClear    function is called     Visual BASIC Declaration   Public Sub dlepParams ByVal paramNumber As Integer  ByVal paramValue As Integer     Call dicpParams paramNumber  paramValue     WHERE     paramNumber    aramValue    Index    1  2    CO vw Ch E    Koch    11    12    13    14    15    16    38    Index of the parameter to set     Value to set the parameter to     Parameter name  Dicp Config   Set Speed  Receive Timeout  Idle Timeout  Direct Command  Disable Retry  Reconfigure  Issue Reset  Flush Previous  Issue Flush  Check Code    Command    Parameter value  Config byte  0   Normal speed  default   1   High speed  0 to 32767 mS  default   100   0 to 32767 mS  default   10   DLCP command and data byte  0   Retry enabled  1   Retry disabled  default   0   Do not configure DLCP  default   1   Configure DLCP before xmit  0   Do not reset DLCP before xmit  default   1   Reset DLCP before xmit  0   Do not clear RFIFO before xmit  1   Clear RFIFO before xmit  default   0   Do not issue flush message  1   Issue flush message before xmit  def   0   Do not check completion code  1   Check completion code after xmit  def   1   Reset Transmitter  2   Flush the firmware receive buffer    Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls    Dicp Config   The config byte to write to the DLCP chip  Should not be used  under normal conditions     Set Speed   Com
15. ee  error code if not   rms    Data received from DUT   sid    ID of DUT transmitted to DUT   sms    Array containing data to be sent to the DUT   itimeout    0 to 32767  Maximum wait time for a    TOUTPUT    response   milliseconds    numbytes    Number of data bytes to transmit  from the smsg array    EXAMPLES     Dim rmsg 1 To 20  As Byte  Dim smsg 1 To 20  As Byte  Dim rid As Byte   Dim i As Integer   For i  I to 20   Data to send  smsg 1   1   Next 1    Call c2nstd rid  rmsg   amp  HFA  smsg  100  20            Send the DUT ID and 20 bytes  ON of data from smsg  wait 100 mS for a response  iaa and DUT data or error code from DUT     Series 2040 Test System 29    Class II Functional Calls MSP UART Class II User Manual V2 2    c2sak    The functional call c2sak sends the seed and key messages to the DUT  For  more information see XDE 3005     Visual BASIC Declaration   Public Sub c2sak rid As Byte  rmsg   As Byte  ByVal sid As Byte  smsg   As Byte  ByVal  mode As Byte     Call c2sak rid  rmsg  sid  smsg  mode     WHERE     Received DUT ID if operation error free  error code if not     Data received from DUT       Response code       SEED  MSB       SEED  LSB    sid     ID of DUT transmitted to DUT  DIM BYTE    sms     Data to send to DUT  DIM  n  BYTE    smsg 1      KEY  MSB    smsg 2     KEY  LSB    mode      Desired SEED KEY mode    00   Get SEED from DUT   FF   Send KEY to DUT    30 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls 
16. eeeeeeeeees Wait 1000 mS for DUT data   Series 2040 Test System 35    Class II Functional Calls MSP UART Class IT User Manual V2 2    c2transceive    The c2transceive functional call allows for free form CLASS2 data transmission  and subsequent reception from a product  The routine will await the  message initiation for a time specified by the caller after which time the  attempt is aborted and an error is returned  For more information see XDE   3005     Visual BASIC Declaration   Public Sub c2transceive xmitbuff   As Byte  ByVal xmitsize As Integer  recvbuff   As  Byte  ByVal timeout As Integer  commerr As Integer     Call c2transceive xmitbuff  xmitsize  recvbuff  timeout     commerr        WHERE   xmitbuff    The buffer containing data to to be transmitted to the DUT   xmitsize    0 to 4096  The transmit data size  number of bytes to transmit  from the buffer    recvbuff    The buffer containing data to to be received from the DUT   timeout    0 to 32767  The time to wait  in milliseconds  for a message  initiation from the DUT   commerr    The results of the communication with the MSP and product   0   NO ERROR    EXAMPLES     Dim smsg 1 To 20  As Byte  Dim rmsg 1 To 20  As Byte   Dim commerror As Integer   Dim i As Integer   For i   1 to 20   Data to transmit    smsg 1   1  Next 1  Call c2transceive smsg  20  rmsg  1000  commerror                    Wait 1000 mS for    EE communication     36 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functio
17. erial    The sendSerial functional call sends a message using the default UART port on  the MSP board  The message must be fully assembled by the calling program   as the function transmits the message transparently  Communication is at the  baud rate set up by the SetUARTParams call     Visual BASIC Declaration   Public Sub sendSerial ResultCode As Integer  smsg   As Integer  ByVal msgLen As  Integer  ByVal timeout As Double     Call sendSerial ResultCode  smsg  msgLen  timeout     WHERE   ResultCode    The returned error code   sms    The message to send  An array of integers with the upper byte in  each array being ignored   msgLen    1 to 4096  Number of bytes to send   timeout    0 to 65  The time to wait in seconds for the receive line to be idle  before transmitting   EXAMPLES   DIM ResultCode As Integer  DIM smsg   As Integer  DIM msgLen As Integer  DIM timeout As Double  msgLen   100  Call sendSerial ResultCode smsg   msgLen 1    0    eeeeeees Send smsg and wait    A ER 1 second for an error code   8 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls    recvSerial    The recvSerial functional call receives a message using the default UART port  on the MSP board  The message must be disassembled by the calling program  as the function receives the message transparently  Communication is at the  baud rate set up by the SetUARTParams call     Visual BASIC Declaration   Public Sub recvSerial ResultCode As Integer  rmsg   As Integer  msgLe
18. error    C2DNLD Incorrect byte count   Mismatched echo    Bad message length from product    Bad checksum from product    Timed out while waiting for response from product   Framing  overrun  or noise error    Timed out while waiting for an idle line   Timed out while waiting for an echo byte   DLCP receive FIFO invalid    DLCP bus shorted    DLCP timed out while waiting for an idle line   DLCP invalid message size    DLCP timed out while waiting for message   DLCP timed out while waiting to transmit   DLCP missing completion code    DLCP completion code indicated no transmit message   DLCP transmitter overrun        Series 2040 Test System 49    Additional Functional Calls    100 209  MSP   100 210  MSP   100 211  MSP   100 212  MSP   100 230  MSP   100 231  MSP   100 232  MSP   100 233  MSP   100 234  MSP   100 235  MSP   100 236  MSP   100 237  MSP   100 238  MSP     100 239  MSP   100 240  MSP     100 241  MSP   100 242  MSP   100 243  MSP   100 244  MSP   100 245  MSP   100 246  MSP   100 247  MSP   100 248  MSP   100 249  MSP     100 250  MSP     50    MSP UART Class II User Manual V2 2    DLCP transmitter lost arbitration    DLCP early completion code received    DLCP circular buffer overflow    DLCP transmit FIFO not empty    CAN controller in reset  sleep  or power down    CAN controller configuration not enabled    CAN register write error    CAN illegal controller message object    MSP timed out while trying to send a CAN message    CAN no message received    CAN b
19. error code if not   rms    Data received from DUT   raddr    DUT address to load and or execute program   sid    ID of DUT transmitted to DUT   sms    TEMPBIN test number and parameters   smsg 1    Test number   smsg 2   n     Parameters for test   itimeout    0 to 32767  Maximum wait time for a    TOUTPUT    response   milliseconds    status    DUT response to block transfer   mode         Mode parameter       0 Execute program at raddr     1 Download program at raddr     2 Download and execute at raddr     Series 2040 Test System 27    Class II Functional Calls MSP UART Class II User Manual V2 2    EXAMPLES    Dim rmsg 1 To 20  As Byte  Dim smsg 1 To 3  As Byte  Dim rid As Byte    Smsg 1    0    Test number  Smsg 2     amp HAB    Test parameters  Smsg 3     amp HCD    Call c2dnld rid  rmsg   amp  H123456   amp  HFA  smsg  1000  status   amp H1       eee  EEE Salada ei ta is see aah Teall ante tice vce lat le cade Download program    28 Series 2040 Test System    MSP UART Class IT User Manual V2 2 Class II Functional Calls    c2nstd    The functional call c2nstd allows transmission and reception of nonstandard  class 2 messages between the DUT and the functional tester  For more  information see XDE 3005     Visual BASIC Declaration   Public Sub c2nstd rid As Byte  rmsg   As Byte  ByVal sid As Byte  smsg   As Byte  ByVal  itimeout as Integer  ByVal numbytes As Integer     Call c2nstd rid  rmsg  sid  smsg  itimeout  numbytes        rid    Received DUT ID if operation error fr
20. ertification Procedure  TMUX is  available to the USER and may be used to readback Instrumentation Amplifier  outputs     Visual BASIC Declaration   Public Sub TMux ByVal Chan As Integer     Call TMux Chan     WHERE   Chan     0 TDAC input via Patchboard     1 Instrumentation amplifier  0     2 Instrumentation amplifier  1     3 Instrumentation amplifier  2     4 Instrumentation amplifier  3     5 Reserved     6 Reserved     7 Reserved     8 Reserved     9 Reserved     10 Reserved     11 Reserved     12 Reserved     13  19 5 TBUS power supply     14  19 5 TBUS power supply     15  15 TBUS power supply     16  5 TBUS power supply     17  15 TBUS power supply     18  5 2 TBUS power supply     19 Reserved     20 Reserved     21  15PB Patchboard power supply     22  5PB Patchboard power supply     23  15PB Patchboard power supply     24 Analog ground     25 Reserved     26 Reserved     27 Reserved     Series 2040 Test System 47    Additional Functional Calls    28  29  30  31  32  33  34    EXAMPLES   Dim Chan As Integer    Call TMux 1     48    MSP UART Class II User Manual V2 2    Reserved    Reserved    Analog Source Board    TDAC via internal P S mux    65 Volt DC Supply  DC1       65 Volt DC Supply  DC1      65 Volt DC Supply  DC2      65 Volt DC Supply  DC2     Reserved    Reserved    Reserved    Reserved     40 Volt DC Supply     40 Volt DC Supply    TDAC via the HV Test MUX     s  la Multiplexes Instrumentation Amp  0 to Sig3 on the AMS     Series 2040 Test System    MSP 
21. h a 160 Hz filter     Series 2040 Test System 45    Additional Functional Calls    TDAC input via Patchboard  Instrumentation Amplifier  0  Instrumentation Amplifier  1  Instrumentation Amplifier  2  Instrumentation Amplifier  3   Reserved   Reserved   Reserved   Reserved   Reserved   Reserved   Reserved   Reserved    19 5 TBUS power supplu   19 5 TBUS power supply    15 TBUS power supply    5 TBUS power supply    15 TBUS power supply    5 2 TBUS power supply  Reserved   Reserved    15 PB Patchboard power supply   5 PB Patchboard power supply   15 PB Patchboard power supply  Analog ground   Reserved   Reserved   Reserved   Reserved   Reserved   Analog Source Board   TDAC via internal P S multiplexer   65 Volt DC Supply  DC1       65 Volt DC Supply  DC1     65 Volt DC Supply  DC2       65 Volt DC Supply  DC2     Reserved   Reserved   Reserved   Reserved    40 Volt DC Supply    40 Volt DC Supply   TDAC via the HV Test MUX    0  1  2  3  4  5  6  7  8       MSP UART Class II User Manual V2 2    CALL TMUX Chan     Sig3  Er   Monitor Only   K   Connector  or Analog  Motherboard    Testhead Multiplexer    46    Series 2040 Test System    MSP UART Class IT User Manual V2 2 Additional Functional Calls    TMux    The Selftest Multiplexer provides readback of system signals via Sig3  which is  returned to the AMS via the Analog Motherboard  It is used in calibrating the  D A s  ARB s and the AMS using TDAC as a Reference  TDAC is calibrated to a  secondary standard during the Digalog C
22. iers have  differential inputs followed by a programmable gain stage  the output of which  is fed through a programmable filter  The inputs of the amplifiers are    floating     and can measure small voltage differences in the presence of large common  mode voltages  The Isolation Amplifiers share the functional call INST with the  Instrumentation Amplifier card  This functional call is covered later in this  manual     Series 2040 Test System 5    MSP Board MSP UART Class IT User Manual V2 2    FUNCTIONAL CALLS    The following section contains the functional calls for the MSP board  Visual  BASIC declarations and parameters are shown for each call and follow this  format     Sample Call    Visual BASIC Declaration   Public Sub Sample ByVal Param1 As Long  ByVal Param2 As Single  ByVal Param3 As    Double   Call Sample Param1  Param2  Param3   WHERE   Param1    Min  to Max   Property  e g   time  voltage  or current  given in the  required units of measure  e g   seconds  volts  or amps    Param2    Min  to Max2  Property  e g   time  voltage  or current  given in the  required units of measure  e g   seconds  volts  or amps    Param3      Min3 to Max3  Property  e g   time  voltage  or current  given in the  required units of measure  e g   seconds  volts  or amps      6 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls    UART Functional Calls    Series 2040 Test System 7    UART Functional Calls MSP UART Class IT User Manual V2 2    sendS
23. is at the baud rate set up by the  SetUARTParams call     Visual BASIC Declaration   Public Sub xde9067_4 rid As Byte  rmsg   As Byte  ByVal timeout As Double  ByVal  sid As Byte        Call xde9067_4 rid  rmsg  timeout  sid     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Message received from DUT   timeout    0 to 65  Time in seconds to wait for response from DUT   sid    ID of DUT transmitted to   EXAMPLES   Dim rmsg 1 To 20  As Byte  Dim rid As Byte  Call xde9067_4 rid  rmsg  1   amp  HFA            Send ID to DUT  wait 1 second for ID    REE edit  and message from DUT or error code   Series 2040 Test System 21    UART Functional Calls MSP UART Class II User Manual V2 2    xde9067 5    The xde9067_5 functional call is used to send and receive any type of legal  XDE 5024 message  Communication is at the baud rate set up by the  SetUARTParams call     Visual BASIC Declaration   Public Sub xde9067_5 rid As Byte  rmsg   As Byte  ByVal timeout As Double  ByVal  sid As Byte  smsg   As Byte     Call xde9067_5 rid  rmsg  timeout  sid  smsg        rid    Received DUT ID if operation error free  error code if not   rms    Message received from DUT   timeout    0 to 65  Time in seconds to wait for response from DUT   sid    ID of DUT transmitted to   sms    Message to send to DUT   EXAMPLES     Dim rmsg 1 To 20  As Byte  Dim smsg 1 To 2  As Byte  Dim rid As Byte    smsg 1  1    mode number  smsg 2  0    message number    Call xde9067_5 rid  rmsg
24. m rmsg 1 To 20  As Byte  Dim rid As Byte    Call c2speed rid  rmsg   amp  HFA   amp HA  oo  eects Request high speed mode   32 Series 2040 Test System    MSP UART Class II User Manual V2 2 Class II Functional Calls    c2upld    The functional call c2upld requests a block of data from the DUT  For more  information see XDE 3005     Visual BASIC Declaration   Public Sub c2upld rid As Byte  rmsg   As Byte  ByVal raddr As Long  ByVal sid As Byte   ByVal numbytes As Integer  upstatus As Byte     Call c2upld rid  rmsg  raddr  sid  numbytes  upstatus     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Data received from DUT   raddr    DUT address for block transfer   sid    ID of DUT transmitted to DUT   numbytes    Number of data bytes to be transmitted   upstatus    Response code of transfer request    FF   No response  generated by the MSP board    XX   DUT response  EXAMPLES   Dim rmsg 1 To 1024  As Byte  Dim rid As Byte    Dim status As Byte    Call c2upld rid  rmsg   amp H123456   amp  HFA  1024  status            Request 1024 bytes     Series 2040 Test System 33    Class II Functional Calls MSP UART Class II User Manual V2 2    c2transmit    The functional call c2transmit allows for free form CLASS2 data transmission  to a product  Essentially  the caller   s buffer is transmitted as is to the product   For more information see XDE 3005     Visual BASIC Declaration   Public Sub c2transmit xmitbuff   As Byte  ByVal xmitsize As Integer  xmiter
25. mand to change the speed of the DLCP chip    Receive Timeout   The time to wait for a message from the product    Idle Timeout   The time to wait for an idle line before transmitting    Direct Command   Writes directly to the command and data registers of the DLCP  chip    Disable Retry   Writes terminate auto retry command to the DLCP before each  transmission    Reconfigure   Write the config register of the DLCP before each transmission    Reset   Writes a reset command to the DLCP before each transmission    Flush Previous   Clears the RFIFO with flush byte commands before each  transmission    Issue Flush   Writes a flush message command to the DLCP before each  transmission     Check Comp  Code Firmware waits for a completion code after a xmit and returns an  error based on the completion code  This also causes the RFIFO    to be flushed and an flush message command to be issued     Notes  The Class 2 firmware is interrupt driven and interrupts should not be masked off in  the dlep chip     A Tclear will set the parameters back to their default values     EXAMPLES    Call dlepParams 13  1                       Causes the MSP firmware to clear the RFIFO  ERE EE NE TE nen hades before each transmission    Call dlepParams 14  1              Causes the MSP to issue a flush message command    se before each transmission     Series 2040 Test System 39    Class II Functional Calls MSP UART Class II User Manual V2 2    recvDLCP    The recvDlcp functional call receives a message
26. n As Integer   ByVal timeout As Double     Call recvSerial ResultCode  rmsg  msgLen  timeout     WHERE   ResultCode    The returned error code   rms    The message to receive  An array of integers  Upon return  the  upper byte of each integer contains a 0  The lower byte is a  received byte   msglen    0 to 4096  The calling variable will contain the number of bytes to  wait for  The returning variable will contain the number of bytes  read   timeout    0 to 65  The time to wait in seconds for a message   EXAMPLES   Dim ResultCode As Integer  Dim rmsg   As Integer    Dim msgLen As Integer  Dim timeout As Double  msgLen   100    Call recvSerial ResultCode rmsg   msgLen 1                Receive message and wait  saue SN Ie ee evade E ot hited A 1 second for an error code     Series 2040 Test System 9    UART Functional Calls MSP UART Class IT User Manual V2 2  setUARTParams    The setUARTParams functional call sets up the default parameters used by the  serial functions  The MSP board reverts back to the default UART parameter  settings on Testhead power up or reset  A Testhead reset occurs whenever the  TClear function is called     Visual BASIC Declaration   Public Sub setUARTParams ByVal index As Integer  ByVal Value As Long     Call setUARTParams Index  Value     WHERE   Index    Index of the parameter to set   Value    Value to set the parameter to   INDEX  PARAMETER NAME PARAMETER VALUE  1 Port Code 0   RS232  Default   1   Single line SXR  2   RS422  2 Baudrate  1 to 650
27. nal Calls    c2disnormal    The functional call c2disnormal sends a MODE 28  DISABLE NORMAL  COMMUNICATIONS  message to the product via the MSP card as well as  receiving the response to the request  The routine will await the response  intitiation for a time specified after which time the attempt is aborted and an  error is returned  For more information see XDE 3005     Visual BASIC Declaration   Public Sub c2disnormal modaddr As Byte  ByVal timeout As Integer  status As Byte   commerr As Integer     Call c2disnormal modaddr  timeout  status  commerr     WHERE   modaddr    The MODULE ADDRESS as specified in the return message in  XDE 3001B   timeout    0 to 32767  The time to wait  in milliseconds  for a message  initiation from the DUT   status    The status of the disable request  0   NO ERROR    commerr    The results of the communication with the MSP and product   0   NO ERROR    Status Codes    00   Normal communications disabled   11   Mode not supported   12   Sub function not supported   22   Conditions not correct for request  EXAMPLES   Dim modAddr As Byte    Dim status As Byte  Dim commerror As Integer    Call c2disnormal modAddr  1000  status  commerror                  Send message and  EEE E wait 1000 mS for a response   Series 2040 Test System 37    Class II Functional Calls    dicpParams    MSP UART Class IT User Manual V2 2    The dicpParams functional call sets up default parameters used by the dlcp  functions  The MSP board reverts back to the default par
28. ograms like uart01 rely on an 8 bit index  and programs that  could download programs larger than 170 bytes like c2dnld rely on a   16 bit index     Visual BASIC Declaration   Public Sub loadTestMod ByVal ModuleName As String  ByVal IndexSize As Integer     Call loadTestMod ModuleName  IndexSize     WHERE     ModuleName    The name of the binary test module  including path      IndexSize    8 or 16  The size of index at the beginning of each test  8 bit  16   bit    EXAMPLES   Call loadTestMod    temp bin     Mi  Load a file called temp bin    L   that has an 8 bit index   Call loadTestMod    c  Digalog Projects MyProj C2Tests Bin        16          Load a file  See called C2Tests Bin that has a 16 bit index     12 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls    aldl    As defined in the Delco Corporate Serial Data Communications Specification   a request may be made via the serial data link to transmit product diagnostic  codes and any other information specified in the product s XDE  The ALDL  request is termed MODE 1  Communication is at the baud rate set up by  Set UARTParams     Visual BASIC Declaration   Public Sub aldl rid As Byte  rmsg   As Byte  ByVal sid As Byte     Call aldl rid  rmsg  sid     WHERE   rid    DUT ID if operation is error free   rms    Message received from the DUT   sid    ID of DUT transmitted to to the tester   EXAMPLES   Dim rmsg 1 To 20  As Byte  Dim rid As Byte  Call aldl rid  rmsg   amp  HFA              
29. period set up by the SetUARTParams call   Communication is at the baud rate set up by the SetUARTParams call     Visual BASIC Declaration   Public Sub xde9067 2 rid As Byte  rmsg   As Byte     Call xde9067_2 Rid  Rmsg     WHERE   rid      Received DUT ID if operation error free  error code if not       Message received from DUT     EXAMPLES    Dim rmsg 1 To 20  As Byte   Dim rid As Byte   Call xde9067_2 rid  msg   Get DUT ID and data or error code     Series 2040 Test System 19    UART Functional Calls MSP UART Class II User Manual V2 2    xde9067 3    The xde9067 3 functional call is used to receive any type of legal XDE 5024  message  Communication is at the baud rate set up by the Set UARTParams  call     Visual BASIC Declaration   Public Sub xde9067 3 rid As Byte  rmsg   As Byte  ByVal timeout As Double     Call xde9067_3 rid  rmsg  timeout     WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Message received from DUT   timeout    0 to 65  Time in seconds to wait for response from DUT   EXAMPLES   Dim rmsg 1 To 20  As Byte  Dim rid As Byte  Call xde9067_3 rid  rmsg  1  Get ID and message from DUT     EEE ENE wait I second for response or error code   20 Series 2040 Test System    MSP UART Class II User Manual V2 2 UART Functional Calls    xde9067 4    The xde9067_4 functional call is used to send and receive any type of legal  XDE 5024 message  The transmitted message will consist of SID  message  length   55  and checksum  Communication 
30. r As Integer        Call c2transmit xmitbuff  xmitsize  xmiterr     WHERE   xmitbuff    The buffer containing data to to be transmitted to the DUT   xmitsize    0 to 4096  The transmit data size  number of bytes to transmit  from the buffer    xmiterr    The results of the communication with the MSP and product   0   NO ERROR   EXAMPLES     Dim smsg 1 To 20  As Byte  Dim xmiterr As Integer  Dim i As Integer    For i  1 to 20   Data to transmit    smsg i   1  Next 1  Call c2transmit smsg  20  xmiterr    oooooccccoccccconcninnnnnnoncncnnnos Send buffer to product     34 Series 2040 Test System    MSP UART Class IT User Manual V2 2 Class II Functional Calls    c2receive    The functional call c2receive allows for free form CLASS2 data reception from  a product  The routine will await the message initiation for a time specified by  the caller after which time the attempt is aborted and an error is returned  For  more information see XDE 3005     Visual BASIC Declaration   Public Sub c2receive recvbuff   As Byte  ByVal timeout As Integer  recverr As Integer     Call c2receive recvbuff  timeout  recverr     WHERE   recvbuff    The buffer containing data to to be received from the DUT   timeout    0 to 32767  The time to wait  in milliseconds  for a message  initiation from the DUT   recverr    The results of the communication with the MSP and product   0   NO ERROR    EXAMPLES     Dim rmsg 1 To 20  As Byte  Dim recverr As Integer    Call c2receive rmsg  1000  recverr    00 0    eee
31. rrcode  smsg  4  ii Send message   Series 2040 Test System 41    Class II Functional Calls MSP UART Class II User Manual V2 2    42 Series 2040 Test System    MSP UART Class II User Manual V2 2 Additional Functional Calls    Additional Functional Calls    Series 2040 Test System 43    MSP UART Class II User Manual V2 2    Additional Functional Calls    HalalTdNV NOILVIOSI       paeoquoieg   O       ANDV O     ovot                 lt        BIS 8 XNAWNL    _              4  VIA SNY OL             Isolation Amplifier    O ovi     O ov    D YAlSITdNV T  19114    ures    ue NOILV1OSI  Hei ue  UEUO  LSNI TIVO   TEE  O HaIdI1dWN  EE Ee NIV   319VIMNNVEDOYUdA    Series 2040 Test System    44    MSP UART Class IT User Manual V2 2 Additional Functional Calls    Inst    This functional call is used to set up the four differential isolation amplifiers  If  your version of the MSP board has Isolation Amplifiers installed  on the MSP  board  Each amplifier has programmable gain and programmable filters  and  can be readback with the TMUX call     Visual BASIC Declaration   Public sub Inst ByVal chan As Integer  ByVal gain As Integer  ByVal Filter As Integer     Call Inst chan  gain  Filter        WHERE   chan    0 to 3   ain    0 1     1 10   100   Filter    0 No filter     1 16 000 Hertz   3db   20db decade     2 1600 Hertz    20db decade     3 160 Hertz    20db decade   EXAMPLES   Call Inst 1  201  Amplifier 1 set to gain   100 with no filter   Cans dado Amplifier 2 set to gain   10 wit
32. uct RAM download module  loaded  by    loadTstMod     to form a complete serial communications message  The  function follows the serial protocol outlined in XDE 5024  This function  downloads to product RAM starting at  0010 and communicates at the baud  rate set up by SetUARTParams     Visual BASIC Declaration   Public Sub uart01  rid As Byte   rmsg   As Byte   ByVal sid As Byte  smsg   As Byte     Call uart01  rid  rmsg  sid  smsg      WHERE   rid    Received DUT ID if operation error free  error code if not   rms    Data received from DUT   sid    ID of DUT transmitted to DUT   sms    RAM download module test number and parameters   smsg 1    Test number   smsg 2   n     Parameters for test   EXAMPLES     Dim rmsg 1 To 20  As Byte  Dim smsg 1 To 20  As Byte  Dim rid As Byte   Dim i As Integer   For i  I to 20   Data to send    Smsg i    1  Next i  Call uartO1  rid  rmsg   amp  HFA  smsg    0 0    eee Send ID and message to DUT     SE NN ENN NN wait for response or error code   Series 2040 Test System 15    UART Functional Calls MSP UART Class IT User Manual V2 2    uart02    The uart02 functional call sends a MODE 6 message to the product  When  executed  the function links to the product RAM download module  loaded  by    loadTstMod     to form a complete serial communication message  The  function follows the serial protocol outlined in XDE 5024  Communication is  at the baud rate set up by    SetUARTParams        Visual BASIC Declaration   Public Sub uart02 rid As Byte
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Conair 210 User's Manual  Tripp Lite SmartRack Fixed Heavy-Duty Toolless Mount Shelf (250 lb/113 kg capacity; 26 in./660 mm depth)  Epson POWERLITE 470  SLM018c „MacSolar“  Franke CQSBSS  Canadien Fond Agence canadienne Inspection Agency d`inspection  Avaya BCM50 User's Manual      Copyright © All rights reserved. 
   Failed to retrieve file