LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting FPGA data Direction

Having a minor problem using FPGA 7831 Digital IO, at this stage just trying to do the FPGA equivalent of "Hello World"!!!!!
 
 
If we set one digital port:
high nibble as inputs
low nibble as outputs
And then write a value to the whole port, it appears to reconfigure the whole port as an output and ignore the data direction that has been set. Is this normal? I have some experience using a couple of micro's that if you set bits as inputs, these are ignored when doing a port write. I was expecting the FPGA ports to behave in the same way.
 
The obvious work around is to only write to those ports you have configured as outputs!!!
0 Kudos
Message 1 of 4
(3,245 Views)
 
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 4
(3,224 Views)
Colin,

What functions are you using for your outputs?

If you have a look in the advanced FPGA Device I/O functions palette you will find the "Digital Port Data" function.
If you look up the help for this function you will see that it sends data to the port without reconfiguring the whole port as an output port.
Try using this?

Adam Bakehouse
National Instruments
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 3 of 4
(3,221 Views)

Thanks for the reply Adam.

After posting the question, we spotted the two different 'Write' options and sorted it. Very simple when you know!!

0 Kudos
Message 4 of 4
(3,219 Views)