SPI

From Granite Devices Knowledge Wiki
Revision as of 19:47, 18 April 2012 by WikiAdmin (Talk | contribs) (From low level hardware)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search

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 key features

Implementation of VSD SPI bus:

  • All commands are 32 bit packets:
    • 8 bit command ID
    • 16 bit command parameter
    • 8 bit CRC error checking
  • By sending one command, drive responds simultaneously with 32 bit return data packet:
    • 8 bit status bits (usually not needed by application)
    • 16 bit return data
    • 8 bit CRC error checking
  • Command rate up to 2500 commands/s (80 kbit/s)

Using VSD SPI

With SimpleMotion library

SimpleMotion library communicates to VSD-E and VSD-XE drives via SPI bus. The phyiscal transfer link between PC and VSD drive is FTDI TTL232R USB serial adapter.

From low level hardware

SPI bus on VSD drives requires 3 data wires, ground and 3-5 VDC supply (5 wires total):

  • 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


In no event the Product Information or parts hereof shall be regarded as guarantee of conditions or characteristics. The Product Information or any part thereof may also not be regarded as a warranty of any kind. No liability of any kind shall be assumed by Author with respect to Product Information or any use made by you thereof, nor shall Author indemnify you against or be liable for any third party claims with respect to such information or any use thereof.

As content of this Wiki may be edited by user community, Granite Devices Oy or it's affiliates do not take any responsibility of the contents of this Wiki. Use information at your own risk. However, Granite Devices staff attempts to review all changes made to this Wiki and keep information trustworthy.

Without written consent, Granite Devices' Products or Intellectual Property shall not be used in situations or installations where living beings, material property, or immaterial property could be harmed by the operation, features or failures of Product. Products may only be used in a way where hazards like moving parts, electric shock, laser radiation, or fire can't be realized even if the content of this Wiki would suggest otherwise.