Skip to main content
erichz
Associate
July 9, 2013
Question

easySpin.c's easySPIN_Write_Byte

  • July 9, 2013
  • 1 reply
  • 533 views
Posted on July 09, 2013 at 03:09

Accoding to the IC datasheet, the number of bytes during a spi transfer can be 1 to 3 bytes, with a single chip select at the start..

however, the sample code (for set/get parameters) calls easySPIN_Write_Byte for EVERY byte...  this would toggle chip select for every byte, rather than at the start and finish of a multibyte transfer.   Am I missing something obvious?

This topic has been closed for replies.

1 reply

Vojtech ELIAS
Visitor II
July 30, 2013
Posted on July 30, 2013 at 18:20

This seems to be a slight misunderstanding. An arguments of device commands can actually vary in length from 1 to 3 bytes, but physically they are still transfered via SPI as separated bytes. Instead, transfering more than one byte over SPI with CS signal down is used in a daisy-chain configuration..