Command SETUP(SPI)
 
Description Setup the protocol for the SPI communication
 
Syntax/Parameters setup(spi){...}
 
Options    set="SHRC";               //quick set up as (M)aster/(S)lave, idle (L)ow/(H)igh, edge (R)ising/(F)alling, (C)ommand and speed 350-90000

   active=S;                //set as Master, Slave or None for both transmit and receive. Default = N

   mode
=LR LF HF HR;    //set idle state Low or High and Rising or Falling clock edge. Default = LR
   speed=100;         //set transmit speed value in kilobits/sec from 350 to 90000 for master mode. Default = 100
0
   rxi=Y;
                 //set receive buffer interface as active (Y), a command processing source (C) or disable (N). Default = N
  
proc=“;”;            //process on receive termination character(s). See below.
   procDel=Y;        //remove or keep the termination character(s) before processing
   procNum=5;     //interrupt on n bytes received as alternative to proc and procDel. 
   encode=s;        //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd for raw data.
   rxb= 8264;       //set size of receive buffer in bytes. Default = 8192 bytes
   rxo=M;             //set receive data order as most significant bit (M) or least significant bit (L). Default = M
   rxf= N;                //use none or hardware MB to signify receive buffer full. Default = N
   txi=Y;                 //set transmit buffer interface as active (Y), to echo command processing (E) or disable (N)
   end="\\nn";        //byte sent to host when no data left in display's spi transmit buffer.
   dummy="\\nn";  //dummy byte sent to module which is ignored so that data can be received by the host.
   txb=8244;         //set size of transmit buffer in bytes. Default = 8192 bytes
   txo=M;              //set transmit data order as most significant bit (M) or least significant bit (L). Default = M
   irq=L;               //use irq in slave mode. N=no, L=low; H=high; B=buffered using input/output switch.
CN3 pin 7
 
Example setup(spi)
{
set="SHRC";
}

setup(spi)
{
active=S;                //set as Master, Slave or None for both transmit and receive. Default = N

mode
=LR LF HF HR;    //set idle state Low or High and Rising or Falling clock edge. Default = LR
speed=100;         //set transmit speed value in kilobits/sec from 350 to 90000 for master mode. Default = 100
0
rxi=Y;
                 //set receive buffer interface as active (Y), a command processing source (C) or disable (N). Default = N 0
proc=“;”;            //process on receive termination character(s). See below.
procDel=Y;        //remove or keep the termination character(s) before processing
encode=s;        //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd for raw data.
rxb= 8264;       //set size of receive buffer in bytes. Default = 8192 bytes
rxo=M;             //set receive data order as most significant bit (M) or least significant bit (L). Default = M
rxf= N;                //use none or hardware MB to signify receive buffer full. Default = N
txi=Y;                 //set transmit buffer interface as active (Y), to echo command processing (E) or disable (N)
end="\\nn";        //byte sent to host when no data left in display's spi transmit buffer.
dummy="\\nn";  //dummy byte sent to module which is ignored so that data can be received by the host.
txb=8244;         //set size of transmit buffer in bytes. Default = 8192 bytes
txo=M;              //set transmit data order as most significant bit (M) or least significant bit (L). Default = M
irq=L;               //use irq in slave mode. N=no, L=low; H=high; B=buffered using input/output switch.
CN3 pin 7
}