We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Sir, I am learning SPI interfacing. I am using P89V51RD2FA microcontroller. And I have to interface it with a device using SPI interface but the problem is that I don't know what to do when I have to obtain data more than one byte.
Like in my case I need 3 bytes of data from the device. So after the usual write commands(giving command to read and the register to be read) and all, I am supposed to send some dummy byte which will be 0s. I wish to know that will the device return me three bytes just by one dummy byte or I need to send one dummy byte for each byte to be received.
The datasheet for the ade7753 is here: www.analog.com/.../product.html
The timing diagrams on pages 49-51 show pretty clearly what is required on the CS, SCLK, DIN and DOUT lines.
So, all you need to do is to look at your code and check that it produces those signals as shown! In particular, pay attention to where CS may and must not change...
Sir,I have being trying to carry out SPI communication but the data never goes into SPI data register atleast when I debug the program. I dont know what the pblm..is can u help me on this. Please tell some more details abt the data register as much I know it is a shift register any value that is being sent or received goes or comes at it.
Anything I am missing please let me know.