Page 1 of 1
SPI
Posted: Fri Sep 26, 2014 10:50 pm
by Emanuel Lourenco
Good night
I'm starting to study the SPI function. I found this table in the datasheet that will work.
My doubt is, how do I read the address 00h?
Greetings,
Emanuel Lourenço
Re: SPI
Posted: Sun Sep 28, 2014 9:03 pm
by Spanish_dude
What device are you trying to communicate with ?
A datasheet would help.
You probably just have to send the 00h to the device, and a random byte to read what the device is outputting.
Re: SPI
Posted: Sun Sep 28, 2014 10:55 pm
by Emanuel Lourenco
Good night
Yes, you're right.
I apologize
Then leave the equipment
http://datasheets.maximintegrated.com/e ... X31865.pdf
Thank you
Re: SPI
Posted: Mon Sep 29, 2014 11:57 am
by Benj
Hello,
It looks like you pull the chip select low. send out a 0 to perfrom a read, then read a byte to collect the data from the register. Then raise the chip select to finish the transaction.
This might help.
http://matrixtsl.com/blog/?p=731
Re: SPI
Posted: Mon Sep 29, 2014 1:31 pm
by Emanuel Lourenco
Benj wrote:Hello,
It looks like you pull the chip select low. send out a 0 to perfrom a read, then read a byte to collect the data from the register. Then raise the chip select to finish the transaction.
This might help.
http://matrixtsl.com/blog/?p=731
Very good information
helped a lot
Thanks