I know you all as a company don't work with anything as out there as the Bus Pirate, but its a good gadget for interfacing with new chips. I am trying to make sense of the data coming from the ADS1298. I've written all the registers, and read them back to confirm. I'm starting and stopping conversion fine. And I've even coded 0xE into the GPIO registers and set them to output so that the first 24bits on the conversion should read like 0xC0000E (and it does), but all that follow are varying lengths of data. I know that the Bus Pirate variable is one that you can't account for, and indeed the problem may lie there, but assuming for a moment that is functioning as it should, what could I be missing with the chip's config?
[ = CS low
] = CS high
therefore:
[0x11] #SDATAC
[0x43,0x00,0xC0] # Wreg Config 3 for 0xC0
[0x41,0x00,0x86] # Wreg Config1 for 0x86
[0x42,0x00,0x10] # Wreg Config2 for 0x10
# Here I'm only trying to get a test signal from channel 1 and shorting all the others
[0x45,0x00,0x05] # Wreg Ch1Set 0x05
[0x4[6-c],0x00,0x01] et cetera
[0x10]
start reading 24+24 Sclocks (Im only doing 24+1*24 because I am only reading one channel. I think this is right per another post)
Normally I dont like to bother you all with stuff that's probably a forehead slapper, but I am running out of summer ...
***EDIT***
I'm getting output like the following:
... 0xC0 0x00 0x0E 0x00 0xC0 0x00 0x0E 0x00 0xB3 0xC0 0x00 0x0E 0x00 0xC0 0x00 0x0E 0x00 0x9D 0xC0 0x00 0x0E 0x00 0xC0 0x00 0x0E 0x00 0xA5 0xC0 0x00 0x0E 0x00 0xB4 0xC0 0x00 0x0E 0x00 0xC0 0x00 0x0E 0x00 0xA8 0xC0 0x00 0x0E 0x00 0xC0 0x00 0x0E 0x00 0xCB 0xC0 0x00 0x0E ...
The 0x0E here is the tail end of the GPIO registers I tagged so I could make sure I was getting the status bytes ... So it looks like Im getting a header 0xC0 0x00 0x0E way too frequently. I would think, with one channel, I should be getting first 24 bits (0xC0 0x00 0x0E) followed by the square wave test signal 24 bits (0xXX 0xXX 0xXX). Or, if my assumption is incorrect, then the status 24 bits followed by 8*24 bits for all 8 channels.
Thank you in advance,
JG