EmbeddedRelated.com
Forums

spi adc

Started by soheil zarrin September 26, 2004
hi
i'm using ad7705 - a serial adc-
which u can commmunicate under SPI protocol
the MCU is ATMEGA16 which support this protocol
but i can not communicate with ADC
the program is written in BASCOM
and inst. spiin & spiout is used
and configured in hard mode

how can i test that:
the problem is from ADC or MCU?
&
how can i solve it?

best regards
zarrin __________________________________________________




>>> soheilzarrin@sohe... 26/09/2004 9:14:18 pm >>>
hi
i'm using ad7705 - a serial adc-
which u can commmunicate under SPI protocol
the MCU is ATMEGA16 which support this protocol
but i can not communicate with ADC
the program is written in BASCOM
and inst. spiin & spiout is used
and configured in hard mode

how can i test that:
the problem is from ADC or MCU?
&
how can i solve it?

best regards
zarrin

How about start by using a digital scope or logic analyser on the SPI
bus to look at the data?
It's not hard to check that the SPI bus data is correct, then you'll
know if it's the AVR or ADC.

Dave :)