Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a serial ADC with a 6534 with LabView

What is the best mode and physical connection scheme for comm with a serial ADC? The signals are Sclk, SData, and Chip Select. It is a 24 bit data stream. I need to 1)set CS low 2)send 24 clock cycles to SClk while reading Sdata on each transition and 3) reset CS
and , of course, convert the data stream to a number.
I can do this statically with simple IO but I need to be faster (hardware controlled). I looked at pattern IO. It looks like I should be using the REQ line as the clock source and a digital in, say A0 for my data in. I guess I could use a digital out from another port for a CS, which would limit my sample rate to whatever my software could handle. I have tried to use the Serial Input vi example, but the
REQ line only goes low once, instead of clocking. Is it looking for ACK? Is there a better way? Thanks.
0 Kudos
Message 1 of 4
(3,630 Views)
Hello;

You can use pattern output generation, where the REQ line will be you ADC clock signal; and you can have a digitla out line to be the set/reset of the CS pin.

That line can be part of the pattern that you will be outputing. Lets say, that you specify the group size to be 32, have 24 of those 32 lines as data lines and 1 as being the CS signal, that you program in the words to be output. So you can have zeros on that line in the first 24 words, and a 1 at the 25th word that will reset CS.
Hope this helps.
Filipe
0 Kudos
Message 2 of 4
(3,630 Views)
Are you saying I should use pattern output, with one of my data lines being chip select and another being the clock, so my data stream would be 11 00 01 00 01 00 01 (24 times) then 11 again where the MSB is the CS and the LSB is the CS? Can the 6534 read the data in line at the same time as I am outputting that pattern. If so, how do I trigger it?
0 Kudos
Message 3 of 4
(3,630 Views)
Hi, even if this is an two years old posting I hope for answer 😉
I have a very similar task: write and read pattern simultanously with PCI 6534 at high speed. Please tell me, if your application finally did work -> aliedtke73@web.de
regards, andreas
0 Kudos
Message 4 of 4
(3,630 Views)