07-01-2010 11:28 AM
Hi,
i am trying to use the usb6501 with visual studio. i can get the examples to work properly (writeport, readport, writechan, readchan, etc.), but i am having difficulty finding info on how to work with a split port (i.e. a port that needs to be set up with some pins as read and some as write). my project has port 2 set up as all outputs, except p2.6, which should always be an input. how do i do individual addressing of each pin within the port (e.g. write only to p2.<0:3>, read only from p2.6)? are there any examples that i missed that address this?
thanks,
Daniel
07-02-2010 12:38 PM
Hi Daniel,
You can create two separate tasks: one task will be your Digital Write and the other your Digital Read. For each task you can specify which lines are write/output lines and which are read/input lines. By doing it this way, you will be addressing the indivual lines of each port. It is essentially a combination of both the ReadDigChan and WriteDigChan examples.