 |
SPIUSB Commands |

| The Ascii Commands are listed in the
table below. Certain commands respond to a single ASCII character and do not require a
carriage return to execute. Other commands that need parameters are terminated using a
carriage return. Carriage returns are denoted using the [cr] notation.
|
 |
| Set Slave Select Active LOW |
L |
| Set Slave Select Active HIGH |
H |
| Activate Slave Select |
S |
| Deactivate Slave Select |
T |
| Set SPI data clocking edge High to Low |
E |
| Set SPI data clocking edge Low to High |
F |
| Set SPI Clock Option 4 |
4 |
| Set SPI Clock Option 5 |
5 |
| Set SPI Clock Speed |
Dxx[cr] |
| Write SPI Data |
Wa,b,c,...,n[cr] |
| |
|
| |
|
| VERSION |
V |
Set Chip Select Line Active LOW - L
This one character command sets the active level of
the Slave Select line (SS) low. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set Chip Select Line Active HIGH - H
This one character command sets the active level of
the Slave Select line (SS) high. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Activate Chip Select Line - S
This one character command sets the Slave Select line
(SS) to it's active level. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Deactivate Chip Select Line - T
This one character command sets the Slave Select line
(SS) to it's inactive level. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set SPI data clocking edge High to Low - E
This one character command sets the data clocking
edge to be High to Low. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set SPI data clocking edge Low to High - F
This one character command sets the data clocking
edge to be Low to High. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set SPI Clock Option - 4
This one character command sets the SPI clocking
source to the faster of the 2 available and is used with the
Set SPI Cclock Speed explained below. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set SPI Clock Option - 5
This one character command sets the SPI clocking
source to the slower of the 2 available and is used with the
Set SPI Cclock Speed explained below. This command does not require the
carriage return to terminate the command and responds with an explanation
point character (!).
Set SPI Clock Speed - Dxx[cr]
This multiple character command sets the SPI clocking
speed and requires a value terminated with a carriage return [cr].
The following shows the calculation for setting the frequency
followed by a table of example values.
 |
SPI Clock Option 4 |
SPI Clock Frequency = xx * 32 / 14745600 |
 |
SPI Clock Option 5 |
SPI Clock Frequency = xx * 128 / 14745600 |
The WRITE command allows a user to write a value to the SPI lines.
This command displays the version information, terminated with a carriage
terminated.
back to command table, back to top
|