About Us Knowledge Base Community Forum Electronics Toolbox FAQ Shipping & Delivery

Community Forum

Share your projects and post your questions

Search
Register or Sign In
Forum

Setting Output pin to open drain with the c library

1269 Views - Created 18/04/2017

18/04/2017

Posted by:
vhauffmr

Users Avatar

Location:
Germany

Being new to IO Pi I might be missing something.

I would like to use the IO Plus as an Open Drain output. 

Looking at the ABE_IoPi.h I did not find a function that would specify wether the output was to be open drain or not.

How would I set this?

Thank you for your help, as I said, still a newbi.

 

Yours,

 

Martin von Hauff

18/04/2017

Posted by:
andrew

Users Avatar

Location:
United Kingdom

Users Twitter  Users Website  

Hello Martin

I do not think it is possible to se the output pins as open drain on the IO Pi Plus.  According to the datasheet for the MCP23017 which is used on the IO Pi Plus the only pins that can be set as open drain are the interrupt pins.   At the moment the C library does not include a function for setting the mode of the interupt pins but I can add that in if you need it.

AB Electronics UK Tech Support

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.