Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Setting Output pin to open drain with the c library

The IO Pi Plus is a 32 channel MCP23017 GPIO expander for the Raspberry Pi

18/04/2017

Posted by:
vhauffmr

vhauffmr Avatar

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

andrew Avatar

Hello Martin

I do not think it is possible to see 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 interrupt pins but I can add that in if you need it.

Sign in to post your reply


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.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout