actually i access ADCS7476 by using some trick....
i make clock signal manually and then take data ADC bit by bit until i get 16 bits data of ADCS7476....
when using this trick,i think that it's too slow....to take 16 bits data of ADC, it need 25us...
this is my code...
CS_LOW();
i=1;
dataI = 0x0000;
dataQ = 0x0000;
while(i<16)
{
SCL_LOW();
//_delay_us(0.02);
dataI<<=1;
dataQ<<=1;
geserI = (PINB&0b00000100); //0b10000000
geserQ = (PIND&0b00010000);
i++;
SCL_HIGH();
geserI>>=2;//7
geserQ>>=4;
dataI |=geserI;
dataQ |=geserQ;
}
CS_HIGH();
_delay_us(0.05);
I0 = dataI;
Q0 = dataQ;
can you help me to make this program more fast on taking data of 16 bits ADC.....
i get an idea to combine assembler code and C code, but i confuse to realize that....
any one can help me?
thank you very much....