User manual
MEX ASPERA-3
Ref.:
ME-ASP-MA-0002
Issue:
Issue 1 Rev. 4
Date:
15/2/2002
Page:
Page 30 of 58
ASPERA-3 EGSE User Manual
IFSI
CNR
3.1.3.2 Low level commands
The following tables show the low level commands recognized by MEXILT.
The commands in bold type are those normally used to test ASPERA while the other commands are
mainly intended for internal debugging.
The low level commands are coded in /Mex/include/dspcmtbl.h and mustn’t be modified by the users
This block of commands, executed inside the MEXILT program, is special S/C command.
ID N. Par Param. Description
HALT 0 Terminate application
RESET 1 N
(Bitma
p)
(N=xx xxx1b)=> Reset circ. buff I
(N =xx xx1xb)=> Reset circ. buff P
(N =xx x1xxb)=> Reset circ. buff N
(N =xx 1xxxb)=> retransmit API (test)
(N =x1 xxxxb)=> close the socket
(N =1x xxxxb)=> reset TM expected words
ECHO 1 0/1/2 Request different level of echo (default 1)
RUNP
1 # prog Run prog. N. [1 .. x]
ENDP
0 Terminate current program
SETRX
1 +-RX Increment decrement RX. Inc[bit4=0], dec[bit4=1].
RX[bit 0..3]
2 RX, N Store N in RX. RX[bit 0..3]
MOVRX
2 RXn,R
Xm
Copy RXn to RXm.
READRX
2 RXn,nR
X
Transmit nRX. Starting from RXn
JUMP
1 RX+-N Jmp +-N w16. If RX==0 jump unconditioned.
Rx[bit 15..12], num[bit 9..0] (-num [bit 10=1]). If bit
11=1 decrement Rx (after jump).
If Rx!=0 => jump until Rx!=0.
Es: jump 2c08(Hex) => jump -8 tlc until Rx[2]>0 and
decrement Rx[2]
NOTE that each command is formed by:
Acronym, Nw16, and [parameters]. So to skip back the
only JUMP instruction you have to skip back 3 w16
WAIT
1 Nsec Sleep for N seconds
WAITRX
1 RX Sleep for RX milliseconds
WAITMS
1 Nmsec Sleep for N msec milliseconds
WRITE x Add,w1,
..
Write in mexilt memory, starting from ADD, the
following words w1 w2 w3 …
READ 2 Add,Nw Transmit N word16 beginning from Add
CBREP
0/1 N Circular Buffers Report.
Send back, as pkt Type=255 sType=0, the first N mexilt
circ. buffer free area length.
Buffer sequence is: Immediate cmd buffer
Program buffer
Normal cmd buffer
Instrument cmd buffer