Skip to main content
prabk4u2004
Associate II
February 20, 2015
Question

Interfacing ARM and AD8403

  • February 20, 2015
  • 7 replies
  • 1481 views
Posted on February 20, 2015 at 12:15

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.

    7 replies

    Tesla DeLorean
    Guru
    February 20, 2015
    Posted on February 20, 2015 at 14:20

    Yeah, this is rather a mess, you'll need to own the register level stuff. Doesn't the SPI peripheral have a status register that indicates if the transmit or receive buffer is empty/full?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    prabk4u2004
    Associate II
    February 21, 2015
    Posted on February 21, 2015 at 09:08

    Thank you for your response,

    Actually problem is not in SPI side,SPI is working correctly. Problem its in  AD 8403 (Digital Potentiometer). help

    prabk4u2004
    Associate II
    February 21, 2015
    Posted on February 21, 2015 at 09:23

    yeah  SR register its there,but i am used BUSY FLAG know

    prabk4u2004
    Associate II
    February 24, 2015
    Posted on February 24, 2015 at 06:54

    give me an idea

    Tesla DeLorean
    Guru
    February 24, 2015
    Posted on February 24, 2015 at 13:30

    Actually problem is not in SPI side,SPI is working correctly. Problem its in  AD 8403 (Digital Potentiometer).

    Are you sure, have you reviewed this with a logic analyzer?

    #define SPI1_BUSY_FLAG SPI1->SR &= 0x0080

    Are you sure you want the assignment side-effects here?

    For register level stuff you really need to know your stuff, otherwise you'll spend hours/days debugging it. Step back and review some of the SPL examples using SPI, try that approach, and then if you're sure your approach is more efficient go over it line-by-line, and review what it's doing on the analyzer.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    prabk4u2004
    Associate II
    March 7, 2015
    Posted on March 07, 2015 at 07:27

    thank you for your response

    Tesla DeLorean
    Guru
    March 7, 2015
    Posted on March 07, 2015 at 13:43

    http://www.st.com/web/en/catalog/tools/PF257890

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..