Difference between revisions of "SPI"
From Granite Devices Knowledge Wiki
| [checked revision] | [checked revision] |
| Line 1: | Line 1: | ||
SPI (Serial Peripheral Interface) is a serial communication link used in [[VSD-A]] and [[VSD-E and VSD-XE]] drives. SPI is used to set drive parameters and it also can be used for control with [[SimpleMotion]] library. | SPI (Serial Peripheral Interface) is a serial communication link used in [[VSD-A]] and [[VSD-E and VSD-XE]] drives. SPI is used to set drive parameters and it also can be used for control with [[SimpleMotion]] library. | ||
| + | ==VSD SPI bus capabilities== | ||
| + | Key features of VSD SPI bus: | ||
| + | *All commands are 32 bit packets: | ||
| + | **8 bit command ID | ||
| + | **16 bit data | ||
| + | **8 bit CRC check sum | ||
| + | *Command rate up to 2500 commands/s (80 kbit/s) | ||
| + | ==Using VSD SPI== | ||
| + | SPI bus on VSD drives require 3 data wires and ground: | ||
| + | * SCLK - clock signal | ||
| + | * MISO - master in, slave out | ||
| + | * MOSI - master out, slave in | ||
| + | VSD drive is the slave device. | ||
| + | |||
| + | SPI signals are relatively easy to generate with any programmable device with digital I/O's such as microcontrollers. [[SimpleMotion]] source code can be ported on many platforms including MCU's. | ||
==See also== | ==See also== | ||
| − | [[Wikipedia:Serial Peripheral Interface Bus]] | + | *[[Wikipedia:Serial Peripheral Interface Bus]] |
[[Category:Signals]] | [[Category:Signals]] | ||
Revision as of 11:21, 18 April 2012
SPI (Serial Peripheral Interface) is a serial communication link used in VSD-A and VSD-E and VSD-XE drives. SPI is used to set drive parameters and it also can be used for control with SimpleMotion library.
VSD SPI bus capabilities
Key features of VSD SPI bus:
- All commands are 32 bit packets:
- 8 bit command ID
- 16 bit data
- 8 bit CRC check sum
- Command rate up to 2500 commands/s (80 kbit/s)
Using VSD SPI
SPI bus on VSD drives require 3 data wires and ground:
- SCLK - clock signal
- MISO - master in, slave out
- MOSI - master out, slave in
VSD drive is the slave device.
SPI signals are relatively easy to generate with any programmable device with digital I/O's such as microcontrollers. SimpleMotion source code can be ported on many platforms including MCU's.