Posts

Showing posts from June, 2018

Hello world with ADS1298

Image
Let's make first simple communication with ADS1298 (delta-sigma ADC). To confirm communication with this ADC, we will ask for its ID.   Hardware To talk to ADS1298 we will use SPI and bcm2835 library. SPI is an intuitive solution here. ADS1298 is capable of 20MHz SPI communication, anyway due to Raspberry Pi problems with SPI speeds higher than 16MHz we will stay on 8MHz (7.8125MHz exactly). To provide this basic communication connectivity we need an SPI (hardware) connections with separately defined /CS signal. This is due to inconsistency in providing spacing between end of CLK and rising end of /CS.  We will use RESET signal as well. Be aware that to establish communication with ADS1298, there is a need of both, simultaneously: CLK (in range freqency  from 1.945 525MHz to 2.415,459MHz) and SCLK (SPI clock: max 20MHz when powered 2.7 V ≤ DVDD ≤ 3.6 V and 15MHz when 1.65 V ≤ DVDD ≤ 2 V). This may be counter intuitive, but from experience: it is a must to achieve communi