已回答假定已回答

ad7606 IIO spi  max samplerate is 6K?

sally 在 2017-6-7 詢問的問題
最後回覆由StevenX於2017-6-8提供

Hi team,

 

      I am use AD7606 at the platform IMX6, according to the instruction of AD7606 IIO Multi-Channel Simultaneous Sampling ADC Linux Driver [Analog Devices Wiki] , I success read AD7606 data,but I doubt that the max sample rate is about 6K.

 

/*----------------ad7606-----------------------------------*/

 

 

#define SABRESD_GPIO_AD7606_Reset     IMX_GPIO_NR(3, 16)   //Output

#define SABRESD_GPIO_AD7606_Convert   IMX_GPIO_NR(1, 17)   // Output

//#define SABRESD_GPIO_AD7606_Range_PIN       IMX_GPIO_NR(4,15)    //0utput

#define SABRESD_GPIO_AD7606_Range_PIN       IMX_GPIO_NR(6,3)    //0utput

#define SABRESD_GPIO_AD7606_Busy_PIN     IMX_GPIO_NR(7, 13)   //input  GPIO7_13 

 

static struct ad7606_platform_data ad7606_pdata = {

  .default_os = 0,

  .default_range = 10000,

  .gpio_convst =SABRESD_GPIO_AD7606_Convert,

  .gpio_reset = SABRESD_GPIO_AD7606_Reset,

  .gpio_range =SABRESD_GPIO_AD7606_Range_PIN,

        .gpio_frstdata=-1,

        .gpio_stby=-1,

};

convst signal  is 12.5k PWM signal,

// ad CONVST

static struct platform_pwm_backlight_data mx6_sabresd_AD7606_pwm_backlight_data =

{

  .pwm_id =2,

  .max_brightness = 248,

  .dft_brightness = 220,

  .pwm_period_ns = 8000,

};

結果