Skip to main content
toeztuerk
Associate II
October 7, 2013
Question

STM32F4Discovery + AD7680 via SPI

  • October 7, 2013
  • 4 replies
  • 1242 views
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.
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    October 7, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    toeztuerk
    toeztuerkAuthor
    Associate II
    October 7, 2013
    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
    toeztuerkAuthor
    Associate II
    October 7, 2013
    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
    toeztuerkAuthor
    Associate II
    October 9, 2013
    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