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
SPI
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
Re: SPI
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.
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.
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
Re: SPI
Good night
Yes, you're right.
I apologize
Then leave the equipment
http://datasheets.maximintegrated.com/e ... X31865.pdf
Thank you
Yes, you're right.
I apologize
Then leave the equipment
http://datasheets.maximintegrated.com/e ... X31865.pdf
Thank you
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: SPI
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
Re: SPI
Very good informationBenj 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
helped a lot
Thanks