ADS 8239 timing看的不清楚啊,读取ADC的数据每次需要先发读命令吗?请大侠指点啊
/*************ADS8329 AD_Converter********************/
unsigned int ads8329_get_data(void)
{
unsigned char i;
unsigned int x = 0;
ADC_CS = 0;
ADC_CLK = 0;
for(i=0; i<16; i++)
{
ADC_CLK = 0;
ads8329_delay(T_DELAY);
x<<=1;
if(ADC_SDO == 1)
{
x++;
}
ADC_CLK = 1;
ads8329_delay(T_DELAY);
}
ADC_CS = 1;
x &= 0xffff;
return (x);
}
|
您好,最近在论坛里看见您回的消息,看见您也用过ADS8329这款芯片,小弟渣渣一个,实在是搞不通这个程序了,希望您能发给小弟一份代码参考学习,小弟不胜感激,邮箱:[email]471972509@qq.com