Jump to content
  • 0

Why can't I use IO 39 like I can use the rest of the DIO?


Alejandro-Dev

Question

I will soon start using more of the digital IO pins for a project so I was testing them out. They all seemed to work fine except for IO 39.

I am testing the pins with I2C protocol, like so:
 

dwf.FDwfDigitalI2cSclSet(hdwf, c_int(13))
dwf.FDwfDigitalI2cSdaSet(hdwf, c_int(14))


Using number 15 (DIO 39) in either function will result in error but the rest of the IOs are working fine.

I tested this in two diffeent DDs and got the same results. Is this an expected behaviour? Am I missing something?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

Hi @Alejandro-Dev

With clock stretching option enabled only the first DIOs can be selected and all these will be used/driven for I2C state machine.
For Digital Discovery with 32Ki sample Pattern Generator buffer the first 15 DIOs, for Analog Discovery with 1Ki the first 10 DIOs... can be used
Without FDwfDigitalI2cStretchSet any DIO can be used.

image.png.bce02135b19ee3aaac1d812f226ba44d.png

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