2015-02-20 03:15 AM
2015-02-20 05:20 AM
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?
2015-02-21 12:08 AM
Thank you for your response,
Actually problem is not in SPI side,SPI is working correctly. Problem its in AD 8403 (Digital Potentiometer). help2015-02-21 12:23 AM
yeah SR register its there,but i am used BUSY FLAG know
2015-02-23 09:54 PM
give me an idea
2015-02-24 04:30 AM
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.2015-03-06 10:27 PM
thank you for your response
2015-03-07 04:43 AM
http://www.st.com/web/en/catalog/tools/PF257890