From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Components

cancel
Showing results for 
Search instead for 
Did you mean: 

[Deprecated] SPI Digital Waveform Library

hi David,

 

 i have couple questions here...

 

  1. what is the range of SCLK frequency this module will support??
  2. what is the exact ratio need to be set between SCLK and sample rate??

Please clarify...

0 Kudos
Message 181 of 200
(4,782 Views)

I am using SPI waveform library for working with HSDIO-6548. I have sent 24 bits of data to one of the customer device. The device is working great. Now the problem is I have to send 384 bits of data to the customer device for burst read and write . Can you help me with some code so that I can send these number of bits to HSDIO using SPI waveform library 

0 Kudos
Message 182 of 200
(4,592 Views)

Dear David,
I would like to know if there is a way to implement sequential byte send to a single slave with variable CS idle?
I attached below the desirable timing diagram.

 

timing diagramtiming diagram

Thank you in advance

Afonso Plantes

0 Kudos
Message 183 of 200
(4,584 Views)

Never mind, I have already solved it.

0 Kudos
Message 184 of 200
(4,557 Views)

how can we control SS/ chip select line .. in SPI using HSDIO:

Is there any chance of making chip select (High) de-assert at middle bit of particular transactions without modifying the behavior of other signals (sclk, mosi, miso) in SPI Communication using HSDIO.

 
 
We can't help everyone, But everyone can help someone Smiley Happy
 
0 Kudos
Message 185 of 200
(4,475 Views)

Hi, 

 

is this SDW can be used with NI 9402. David mentioned that

"We can only use the SDW waveform with a clocked digital I/O device"

 

I am really new with the labview and DAQ. please give me some advice

 

thanks

0 Kudos
Message 186 of 200
(4,368 Views)

Hi Plantes,

 

Can you share with us how to set the CS idle time?

0 Kudos
Message 187 of 200
(4,321 Views)

If you just want to send SPI data to a device (digital pot for example) the a 6509 works fine providing you don't need to send all the data very quickly.

In Labview configure a 8 line port as an output, use 3 of the lines for enable, clock, data. If there are 8 bits of serial data (plus start stop bits) to be sent, then make a sequence of 8 port writes (plus start stop). Then for each of the port write set the:

clock high & data (bit 1 value), write to port

wait a few mS

 clock low & data (bit 1 value), write to port

wait a few mS

The repeat for the other bits.

As its a port write then the clock & data will be in sync. It may take some 60mS or more in this example to do the complete write, but it does work.

  

0 Kudos
Message 188 of 200
(4,255 Views)

Hi rioriorio

I just changed SPI timing (ticks).Idle. Now, I can have differents CS Idles for my MOSI array.

Unbenannt.JPGUnbenannt2.JPG

0 Kudos
Message 189 of 200
(4,247 Views)

Thank you Plantes

0 Kudos
Message 190 of 200
(4,241 Views)