Jump to content
  • 0

Digital Discovery : How to set DigitalIn Threshold level for 1 or 0 by using python script


woo chuan chan

Question

3 answers to this question

Recommended Posts

  • 0
15 hours ago, attila said:

Hi @woo chuan chan

The input threshold is about half of the digital voltage.
See WF SDK manual FDwf(Device)ParamSet DwfParamDigitalVoltage

Hi Attila,

By using the DwfParamDigitalVoltage I can set the voltage level let say 2V and the threshold for DigitalIn is 1V, but what can I do if let say I want to set voltage level 2V threshold 1.2V. I wanted to do this because of some signal quality issue (coupling or disturbance) that mess up my DigitalIn.

 

thanks.

Link to comment
Share on other sites

  • 0

Hi @woo chuan chan

The DIN use by default weak-pull down, but can also be set to mid for higher sensitivity and pull-up.
If you are only using inputs then you can configure higher voltage. The digital voltage is only used for DIO output high level and the VIO outputs.
To reduce crosstalk twist each wire or at least the sensitive ones with gnd, similar to HS adapter wires:
https://digilent.com/shop/digital-discovery-high-speed-adapter-and-logic-probes/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...