cancel
Showing results for 
Search instead for 
Did you mean: 

easySpin.c's easySPIN_Write_Byte

erichz
Associate
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?

1 REPLY 1
Vojtech ELIAS
Associate
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..