From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCIe-7842R (R series FPGA) digital output not work properly

Solved!
Go to solution

Greetings,

 

I'm having some problem outputing correct TTL voltage with my PCIe-7842R FPGA board.
 

The block diagram of my orignal LV FPGA code is shown in "analog to digital.png". The idea was to convert an analog input (decimal value) to a 16-bit binary code and output it through 16 DIO ports. I'm using SCB-68A connector block as the terminal and connected it to the FPGA RDIO Connector 1 with SHC68-68-RDIO shielded cable.
 

The code compiled ok. But during the test, I noticed some ports didn't output TTL levels correctly. For example, for input 1000 decimal,  I would expect binary code 0000001111101000. However, some ports (DIO #6, #7, #9, etc), which are supposed to output ~3.3V TTL high (i.e., digital 1), actually output 0.8V. I attached the measured result in "digital output test.png".

 

To make sure the issue was not due to the LV code, I did some further test on DIO #6 with a basic example (simple digital output.png). The output was ~1V this time at digital 1.

 

This is really confusing as the digital output is supposed to be straightforward. I used the same FPGA board to control shutters with TTL signals before and it worked fine.

 

Did anyone have similar issues? Any suggestions are greatly appreciated.

0 Kudos
Message 1 of 7
(4,549 Views)

What are you using to measure these voltages?  What are the DIO connecting to (past the terminal block)?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(4,541 Views)

Hi crossrulz,

 

I used both multimeter and oscilloscope to measure the voltages and got same readouts. 

DIOs are connected to a Cambridge Tech digital galvo controller. But I measured the voltages at the connector block terminals.

0 Kudos
Message 3 of 7
(4,539 Views)
Solution
Accepted by topic author iron_curtain

@iron_curtain wrote:

DIOs are connected to a Cambridge Tech digital galvo controller. But I measured the voltages at the connector block terminals.


If you disconnect the DIOs from the galvo controller, do they look good (have the right voltages).  Do you know how much current those inputs to the controller need?  I'm thinking you are hitting the limit on the total current available for the DIO in the board.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(4,532 Views)

@crossrulz wrote:

@iron_curtain wrote:

DIOs are connected to a Cambridge Tech digital galvo controller. But I measured the voltages at the connector block terminals.


If you disconnect the DIOs from the galvo controller, do they look good (have the right voltages).  Do you know how much current those inputs to the controller need?  I'm thinking you are hitting the limit on the total current available for the DIO in the board.


crossrulz, you are right. I disconnected the DIOs from the controller and now the voltages are correct. This is interesting, because the controller itself was powered off during all the previous test.

 

If I do need to drive the controller digitally with the FPGA, is there possible solution? Thanks very much.

0 Kudos
Message 5 of 7
(4,526 Views)
Solution
Accepted by topic author iron_curtain

Tyically in these situations, you use an extra chip that acts as an isolator to allow for more current.  Go look on Digikey for some buffers and you will find plenty of parts that should do the job for you.  You will likely need another power supply for thiese chips.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(4,521 Views)

@crossrulz wrote:

Tyically in these situations, you use an extra chip that acts as an isolator to allow for more current.  Go look on Digikey for some buffers and you will find plenty of parts that should do the job for you.  You will likely need another power supply for thiese chips.


I will try that. Thanks for much for your help!

0 Kudos
Message 7 of 7
(4,516 Views)