cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4Discovery + AD7680 via SPI

toeztuerk
Associate II
Posted on October 07, 2013 at 12:32

The original post was too long to process during our migration. Please click on the attachment to read the original post.
4 REPLIES 4
Posted on October 07, 2013 at 17:23

I'm not particularly familiar with the One Wire mode, but I'm pretty sure you'd still need to send dummy data to get the interface to clock, and be able to receive data. You'll perhaps want to check the TXE status prior to attempting to send each of the dummy bytes.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
toeztuerk
Associate II
Posted on October 07, 2013 at 17:54

Hello clive1,

thank you for your reply!

Do I have to send all the time data or only when I want to read the samples ? I just send via SPI2->DR = 0; dummy data before I read. You an find it in the while loop in main function.

Thank you.

toeztuerk
Associate II
Posted on October 07, 2013 at 22:42

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6mW&d=%2Fa%2F0X0000000bvJ%2F3UBjkDk0TKfOyzmtc44t0z5TxUkJlcybVFEA1vCalpg&asPdf=false
toeztuerk
Associate II
Posted on October 09, 2013 at 21:01

Hello,

I solved it now. It is working. The project (CooCox CoIDE) and the main.c can be found here:

http://www.mikrocontroller.net/topic/310623#3353009

Best regards,

opcode