View Full Version : urgent help...
need help plz...
- any reason why my above code for setup is not working??? (previous post)
- i'm ground SS pin which i should, but are there any other things i have to do on the hardware side???
RMDumse
11-10-03, 11:49 AM
Sorry, but we answer so many questions, it's hard for us to know,"previous post" refers to. We need more context to be able to help.
The SPI as a master does not need to use SS. SPI as a slave must use SS as a chip select input.
Are you using the device in question as a master or slave?
RMDumse
11-10-03, 11:51 AM
The trickiest part about using SPI is to be sure you have the CPOL and CHPA bits correct. There are only 4 possible combinations. If in doubt try them all, and see which one (or ones) work.
Also on SPI, remember the transfer is two-way. You need to read every time you write the SPI, even if you just throw away the bits. Otherwise, it won't clear for the next transfer.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.