This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1285: How the SYNC signal affects the output of the DRDY signal?

Part Number: ADS1285

I used three ADS1285s in my PCB. I configured them to sample at 1000SPS. The actual data output rate detected was 976.6Hz, which is consistent with the expected rate. In my previous test, I used the pulse-sync mode, and the chip drdy frequency was 976.6Hz, which was consistent with the expected rate. Next, I configured the ads1285 to continuous-sync mode, and output a PWM wave through the microcontroller to provide a synchronization signal for the ads1285. The datasheet describes that when the drdy frequency differs from the sync signal frequency by several clock cycles, the ads1285 will resynchronize. During my test, I found that the signal frequency always stay the same as the PWM frequency, unless I output the PWM frequency exceeding 976.6 (which would cause DRDY to fail to output a signal). When my PWM frequency is lower than 976.6, the output drdy signal freq of ADS1285 decreases accordingly. What makes me wonder is whether its sampling rate will decrease at the same time; or only the DRDY signal rate changes, while the internal sampling rate remains unchanged? And when(at which moment?) the sample happened? When will the resync occur?

here is the datasheet words:------------------

8.4.4.2 Continuous-Sync Mode

After synchronization, DRDY continues to pulse; however, data are held low for 63 data periods to allow for the digital filter to settle. See fig 6-4 for the DRDY behavior. Because of the initial delay of the digital filter, the SYNC input signal and the DRDY pulses exhibit an offset time. The offset time is a function of the data rate.

-------------------------------------------

The following is a logic analyzer waveform of the SYNC signal and the DRDY signal, showing that the DRDY signal is fully synchronized with the SYNC signal, all of them are at 784.878Hz (ADS synchronization mode is Continuous-Sync Mode, sample rate configuration is 1000SPS, and operating clock frequency is 8MHz).

我的PCB中使用了三片ADS1285,我将他们配置为1000SPS采样速率,实际检测到的数据输出速率为976.6Hz,这与预期的速率符合。在我前面的测试中,我使用的是脉冲同步模式(Pulse-Sync Mode),芯片drdy频率是符合预期的976.6Hz。接下来我将ads1285配置为连续同步模式(Continuous-Sync Mode),并通过单片机输出一路PWM波,为ads1285提供同步信号。数据手册中描述,当drdy频率与sync信号频率相差为数个时钟周期时,ads1285将发生重新同步。在我测试过程中,我发现信号的频率始终与PWM频率保持相同,除非我输出PWM频率超过了976.6(这会导致DRDY无法输出信号)。当我的PWM频率低于976.6时,ads1285的输出数据速率随之降低,让我疑惑的是其采样速率是会同时降低;还是仅变化了drdy信号速率,而内部采样速率是保持不变的。ADC采样何时发生的,什么时候会发生重新同步

以下是SYNC信号与DRDY信号的逻辑分析仪波形,显示DRDY信号与SYNC信号完全同步,他们的频率均为784.878Hz(ADS同步模式为Continuous-Sync Mode,采样速率配置为1000SPS,工作时钟频率为8MHz)。

logic_analyzer_screenshot

  • 您好,
    已经收到了您的案例,调查需要些时间,感谢您的耐心等待。

  • Hello,

    The customer is not using the Continuous-sync mode correctly.  This mode is useful to automatically resynchronize the ADC if there is a noise glitch in the system, causing additional clock edges. 

    In order to use continuous-sync, the signal applied to the SYNC pin must be an exact number of CLK cycles.  For 1000sps, it must be N*8192 clock cycles, where N is equal to 1, 2, 3, and so on.  This repetitive waveform applied to the SYNC pin must be derived from the same clock source as the ADC clock; in this example, the 8MHz clock frequency.  Otherwise, if different clock sources, then the SYNC signal will eventually drift from the ADC clock and cause a filter reset, or resynchronization of the ADC.

    In the above customer case, when the SYNC frequency is greater than 976.6Hz, the ADC is resynchronizing faster than the data rate, which forces the /DRDY to stay high continuously.  When the SYNC frequency is less than 976.6Hz, the ADC is still resynchronizing, but it finishes the first conversion cycle (/DRDY goes low) before the next SYNC rising edge causes the ADC to resynchronize again.  In both cases, since the ADC is continually resynchronizing, the conversion result data will never be settled and if reading back the conversion result, you will always get a ZERO readback.

    8.4.4.2 Continuous-Sync Mode

    After synchronization, DRDY continues to pulse; however, data are held low for 63 data periods to allow for the digital filter to settle.

    I suggest using a single rising edge on the SYNC pin and then hold the SYNC pin high continuously in pulse-sync mode.  The ADCs will then be synchronized to the same clock edge, and output data continuously at the desired data rate.  The system controller should monitor the /DRDY signal for a falling edge, and then readback the conversion result.