Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6501 and USB6509 as microcontroller port

Hello,

 

I am looking to buy USB-6501 or USB-6509 digital io. What I am not sure, and support did not help much is can I use them as a standard microcontroller port? I am using Labview 2010

 

What I mean is

- I want to assign each pin on each port to be either input or output

- I want to be able "on the fly" to change which pin should be input and output

- Using bitbanging in labview to code I2C, SPI or what ever protocol.

- I have a device that can be I2C and SPI in the same time (just depends on 1 pin) and then chose from the front panel which one I will use, so pins on ports get configured and communication starts.

- If yes is the answer to all above, do you have an idea what is the average speed I can expect on these two devices?

 

Best regards,

pred

0 Kudos
Message 1 of 5
(5,164 Views)

https://www.ni.com/docs/en-US/bundle/usb-6509-seri/resource/372136a.pdf

 

The NI USB-6509 provides 96 lines of bidirectional DIO signals,
P<0..11>.<0..7>. You can configure the direction as input or output on a
per-port basis.

 

 

0 Kudos
Message 2 of 5
(5,157 Views)

I wouldn't use the 650x as a SPI/I2C interface... code's going to be nightmarish to build and the timing on those devices is pretty inaccurate.  I'd suggest a USB-8451 for the SPI/I2C device, then if the 8 digital I/O's on that 8451 module isn't enough add in a 6501.

0 Kudos
Message 3 of 5
(5,152 Views)

If I understand well I can work on port basis not pin. Ok but can I change the direction of the port inside program, and several time without penalty?

0 Kudos
Message 4 of 5
(5,145 Views)

Problem is that I have several I2C devices that share the same address, and that one device can be I2C and SPI in the same time so I can not assign only one protocol, So I2C interface from NI is not a solition...

0 Kudos
Message 5 of 5
(5,144 Views)