01-17-2016 08:11 AM
The RESET signal should either be connected directly to the digital supply, or it can be connected to any digital IO pin, which should output logic high (TRUE) signal.
If you enable Auto-Trigger, then you can skip using the CONVST signal.
Also note that Auto channel select should be used with Auto-Trigger mode and TAG bit output enabled, while in your code TAG bit is disabled.
Number of bytes to read is defined by number of channels you want to read from the ADC. According to the settings it will output sequentially data for all 8 channels, so there will be 8*2 bytes of data.
Number of bits selected in the code is correct.
Thanks,
Arev
01-18-2016 08:28 AM
Attached is the modified code. There are 3 SPI write functions. And everything is in Auto mode with TAG enabled.
1) Write CFR
2) Read CFR
3) Read Data
I'm still not getting any useful output, It stays stuck at 7.xxx
RESET pin is connected to a 5V.
I dont know whats happening now.
01-18-2016 08:32 AM
Also, with Auto enabled, TAG has to be enabled. And with TAG enabled, 19 bits of data correspond to one channel (16 data + 3 address), whereas myRIO will only take data bits in powers of 2. How will I separate the data and channel from the 19 bits if they are coming in as a continuous stream ?