Jump to content
  • 0

Digital Discovery API


Souther

Question

I got Digital Discovery & Waveforms2015 Ver.3.6.8 (Latest) and studying now.
Please describe in SDK Reference Manual about Digital Discovery too.
I would like to change VCCIO voltage by API for Digital Discovery.
Thanks

P.S In p.72 of SDK Reference Manual, "FDwfDigitalOutModeSet" API does not found.
    FDwfDigitalOutOutputSet is correct?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Hi @Souther

The Digital Discovery has 3 AnalogIO channels. The master enable activates the VIO output.

Channel Node Name Description
0 0 Voltage Configures the digital voltage between 1.2V and 3.3V
  1
 
DINPP
 
Configures the week pull for DIN lines with values: 0 down, 0.5 middle, 0.75 up, 1 - up
See Digital Discovery RM Input Dividers
  2
 
DIOPE
 
Configure pull enable (1) for DIO 39-24 as bit field set, like: 0x00F1 enables for DIO 31,30,29,28 and 24
See Digital Discovery RM I/O Level Translators
  3 DIOPP Configure pull up/down (1/0) for DIO 39-24 as bit field set
  4 Drive Configure drive strength for DIO lines: 0 (auto) 2mA, 4mA, 6mA, 8mA, 12mA, 16mA
  5
 
Slew
 
Configure slew rate for DIO lines: quietio, slow, fast
See Xilinx DS162
1
 
 -
 
VIO
 
VIO power monitor
See Digital Discovery RM Power Supplies
  0 Voltage VIO voltage reading
  1 Current VIO current reading
2  - USB USB power monitor
  0 Voltage USB voltage reading
  1 Current USB current reading

 

Configure 1.8V and enable VIO output use:
FDwfAnalogIOEnableSet(hdwf, 0) # disable VIO
FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, 1.8) # set 1.8V  
FDwfAnalogIOEnableSet(hdwf, 1) # enable VIO

To verify VIO on state which might stop due to overcurrent call:
FDwfAnalogIOStatus(hdwf) # fetch info
FDwfAnalogIOEnableStatus(hdwf, &isOn)

Monitor VIO voltage and current:
FDwfAnalogIOStatus(hdwf) # fetch info
FDwfAnalogIOChannelNodeStatus(hdwf, 1, 0, &volts)  
FDwfAnalogIOChannelNodeStatus(hdwf, 1, 1, &amps)  

Link to comment
Share on other sites

Hi @attila

 Very thank you for the quick reply.
 I confirmed VIO=1.8V operation, worked as well !!
 I will check other API function later too.

P.S. I have a suggestion, If you update SDK Reference Manual later date, 
       Please describe TerminalNo vs API's idxChannel No  information for DD (and other product?)

      for Example
      DD VIO24 Terminal => Use "0" for FDwfDigitalOut*() APIs  ...

   Because in this SDK Reference Manual, "Digital Discovery" letter  does not found.

     And Please add above your information for DD if possible.

  Thanks

Link to comment
Share on other sites

Hi,

Sorry, I have one  question,
Please tell me APIs to set above DINPP, DIOPE, DIOPP, Drive, Slew

At least, FDwfAnalogIOChannelNodeSet() has double argument only.  DIOPE, DIOPP, Slew are look like need other argument.
And doest not found on SDK Reference Manual.


Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...