Dear all,
I am using ATMEGA16A to get the data from ADS1220. I am using SPI protocol of the controller and same is connected to the SPI interface of the ADS1220. I can modify/read the content of config register of the ADS1220 but it is not sending anything if i am sending one time conversion command. My IC is not damaged bcz i can access and change the content of config register.
Please let me know were i am doing wrong.
My code:
SPDR=0x08;// start conversion
while(!(0x80&SPSR));
while((0x01&PINA)==0x01);//wait for DDRY to become low
SPDR=0xFF;
while(!(0x80&SPSR));
a=SPDR;// read first char
SPDR=0xFF;
while(!(0x80&SPSR));
b=SPDR;// read first char
while(!(UCSRA&(1<<UDRE)));
UDR=a;
while(!(UCSRA&(1<<UDRE)));
UDR=b;