cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing ARM and AD8403

prabk4u2004
Associate II
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.
7 REPLIES 7
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
Up vote any posts that you find helpful, it shows what's working..
prabk4u2004
Associate II
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
Posted on February 21, 2015 at 09:23

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

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

give me an idea

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
Up vote any posts that you find helpful, it shows what's working..
prabk4u2004
Associate II
Posted on March 07, 2015 at 07:27

thank you for your response

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
Up vote any posts that you find helpful, it shows what's working..