Jump to content
  • 0

Digital discovery


RAJEEVA

Question

12 answers to this question

Recommended Posts

  • 0

Hi @RAJEEVA

You can find the examples and manual in the SDK folder:

image.png

DigitalIO.py

# enable output/mask on 8 LSB IO pins, from DIO 0 to 7, DIO 24 to 31 for Digital Discovery
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(0x00FF)) 
# set value on enabled IO pins
dwf.FDwfDigitalIOOutputSet(hdwf, c_int(0x0012)) 

 

Link to comment
Share on other sites

  • 0

On Digital Discovery the index for DIO-24 is 0, 25 is 1,...

dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<0)) # DIO-0 / DIO-24
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<1)) # DIO-1 / DIO-25
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<2)) # DIO-2 / DIO-26
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<3)) # DIO-3 / DIO-27

dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int((1<<0) | (1<<1) | (1<<2))) # DIO-0:2 / DIO-24:26

Link to comment
Share on other sites

  • 0

Hi @RAJEEVA

The AD2 samping rate is 100MHz bandwidth about 50MHz.
The DD sampling rate is 800MHz on the DIN lines and bandwidth about 100MHz.
The bandwidth highly depends on the driver circuit, wiring...

For IR signal you probably need much lower frequency. This typically uses 30-60kHz carrier signal and kbps data rate.

Link to comment
Share on other sites

  • 0
On 12/2/2019 at 1:49 PM, attila said:

Hi @RAJEEVA

You can find the examples and manual in the SDK folder:

image.png

DigitalIO.py

# enable output/mask on 8 LSB IO pins, from DIO 0 to 7, DIO 24 to 31 for Digital Discovery
dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(0x00FF)) 
# set value on enabled IO pins
dwf.FDwfDigitalIOOutputSet(hdwf, c_int(0x0012)) 

 

Hi, thanks for the info. Is there a reference for this maybe somewhere in the SDK Reference?

Should I assume that dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(1<<9) enables pin 32? And will then dwf.FDwfDigitalIOOutputEnableSet(hdwf, c_int(0xFFFF) enable pins 24-39?

 

Thanks,Alejandro

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...