2020-08-01 02:30 PM
I am communicating with ad7730 (24bit adc) using atm32f103ZCT6. I try to read one of the registers of the adc but each time I receive a random wrong figure. The strange thing is that while debugging using serial wire (STLINK) everything is perfect and I receive correct number from ad7730. But when I run the board out of the power source I receive wrong data. Any help is appreciated in advance
2020-08-01 03:39 PM
Use a logic analyzer to see what's happening on the line.
2020-08-01 09:24 PM
Start with oscilloscope. Digital analyser can only be used once you have viewed the analog world. Ringing, slew rate, etc...
2020-08-01 11:41 PM
Try to increase CS (NSS) assertion/de-assertion time (check ad7730 data sheet).
Also try with lower SPI clock.