03-19-2012 09:04 AM
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
03-19-2012
10:32 AM
- last edited on
02-16-2025
08:22 PM
by
Content Cleaner
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.
03-19-2012
11:45 AM
- last edited on
02-16-2025
08:22 PM
by
Content Cleaner
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.
03-19-2012 02:38 PM
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?
03-19-2012 02:43 PM
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...