Jump to content
  • 0

script to control Digital IO supplies from Protocol viewer


arang

Question

Hi,
I can find example scripts to Read/write  from the protocol viewer. (Read(address),write(address)).

 have to set the DIO27 supply to 3.3V and vary it programmatically .
I couldn't find any sample scripts to control Digital I/O supplies for Digital discovery!
All the examples/references,  I found  are Analog discovery Analog supplies controls.
Can you please point to manual/reference.
Thanks

 

Edited by arang
up
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

@attila
Digital Discovery has 16 I/O pins.
say I am using DIO24 
To enable output - what is the mask?

is DIO24  set as DIO -0 in the code? i.e  mask bit LSB 0th bit?

dwf.FDwfDigitalIOOutputEnableSet(hdwf, ? ) 

Thanks

image.png.0555e00fb4a6d54baead4f50c7a4cbff.png

Link to comment
Share on other sites

  • 0

@attila
Can the DIO pins voltage changed individually?
Say DIO 25  = 3.3V and DIO 27 = 2.5V.
When I tried using the Supplies tool, that all the pins has the same Digital voltage.
Is this hardware or software limitation. or Am I missing something?
Thanks
 

Link to comment
Share on other sites

  • 0

Hi @arang,

The voltage setting is for all pins; this is a hardware limitation as the Supplies sets the VCCIO_PROG voltage for the banks that all of the pins (DIO and DIN) are connected to.

Let us know if you have any questions.

Thanks,
JColvin

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