Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I assert multiple CS at a time with NI USB-8452

Solved!
Go to solution

Hello,

 

I am using SPI on NI USB-8452. I would like to control multiple slaves at a time only with MOSI and without MISO connection.

Then, I need to assert multiple CS at a time. Can I do that?

 

 

0 Kudos
Message 1 of 4
(121 Views)

In that why not tie all those slaves to the same CS?

Anyway, you're going to share the MOSI line for all devices, why not share the CS line too?

 

As far as I am aware, I don't think you can assert multiple CS synchronously and it does not make sense why?

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 2 of 4
(105 Views)

Hi Santhosh,

 

Thanks for your answer. Yes, your idea is right.

However, in my application, in some cases, I need to control the slaves individually.

 

I would like to decrease the control time by controlling the slaves at a time in the other cases.

 

It would be very helpful if you let me know the reference describing that I cannot assert multiple CS synchronously.

 

Thank you.

 

Sun

0 Kudos
Message 3 of 4
(99 Views)
Solution
Accepted by topic author csw4004

I don't have a reference, but from my experience, none of the APIs can do that, hence there is no way to do it - simple as that.

santo_13_0-1630631029619.png

 

They don't need to explicitly say what cannot be done, instead, you tell what can be done and the rest are not possible.

 

Alternatively, you can implement external logic gates controlled by a DIO line to toggle them into individual control mode or control by a single CS pin. If you're okay to do SPI scripting, you can use the DIO lines as CS because you can set all DIO states in a single go or even set CS lines one after another and then do the read/write together.

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
0 Kudos
Message 4 of 4
(88 Views)