PDA

View Full Version : SPI communication ??



CosMecc
- 1st November 2006, 17:51
does any one can help me to understand how to buid a SPI communication routine?
I would use a AD7731 24 bit DeltaSigma ADC with a PIC16F876, the AD7731 use a SPI interface both for 8 or 16 bits configuration register and for 24 bits data word.
Fist of all is possible to communicate via SPI with AD7731 as it use 8,16 and 24 bits data words?
I suppose yes, and I can do it?

Thanks

CosMecc
- 2nd November 2006, 20:52
I2CRead and I2Cwrite commands could be usefull to communicate with the ADC?

CosMecc
- 2nd November 2006, 21:06
or SHIFTIN, SHIFTOUT coul be more appropriate?

Raflex
- 3rd November 2006, 00:22
Hello. If you need SPI communication use SHIFTIN / SHIFTOUT command.