Coder Social home page Coder Social logo

Comments (7)

terjeio avatar terjeio commented on August 23, 2024 1

there's no open drain pinmode for LPC17xx?

No, not yet. For now it has been added as an option to some STM32F4xx and STM32F7xx board maps. It takes time to go through all drivers and board maps to see which can benefit from new features, some will only be added on request or if someone provides a PR.

A good thing about the new repo structure is that I can get an idea about which drivers are in use so I can concentrate my efforts around those.

from core.

terjeio avatar terjeio commented on August 23, 2024

Workaround comitted, should I add your platformio.ini to the project (or to the core Wiki?) as an example of how to configure a project?

from core.

raininja avatar raininja commented on August 23, 2024

@terjeio not yet as it doesn't fully build. there's no open drain pinmode for LPC17xx?

from core.

raininja avatar raininja commented on August 23, 2024

there's no open drain pinmode for LPC17xx?

No, not yet. For now it has been added as an option to some STM32F4xx and STM32F7xx board maps. It takes time to go through all drivers and board maps to see which can benefit from new features, some will only be added on request or if someone provides a PR.

Maybe I can attempt to help :)

A good thing about the new repo structure is that I can get an idea about which drivers are in use so I can concentrate my efforts around those.

The repo structure is much better in it's current form. . . convoluted, yes, but the end result is easier to achieve. Thanks.

from core.

raininja avatar raininja commented on August 23, 2024

no need to set OD mode for LPC17xx, it does it automagically

Although the user manual states otherwise, setting the pin to open-drain mode manually in PINMODE_ODx is not required for I2C functions. As soon as you select one of SDA1, SCL1, SDA2, SCL2 for a pin in PINSELx, the corresponding output stage is forced into open-drain mode.

https://community.nxp.com/t5/LPC-Microcontrollers/LPC176x-errata/m-p/621501

from core.

terjeio avatar terjeio commented on August 23, 2024

The open drain option was added for external stepper drivers that has optocoupler inputs, typically driven from a 5V supply. Some processors such as STM23 has 5V tolerant outputs when the pin is in OD mode, and it makes sense to add this option for such processors when the board map file is for a board that does not buffer the outputs and allows external drivers.

Determining which processors and boards ths may be relevant for requires a dive into the datasheets/schematics and finding out which processors and boards are relevant to add external drivers for.

from core.

raininja avatar raininja commented on August 23, 2024

The open drain option was added for external stepper drivers that has optocoupler inputs, typically driven from a 5V supply. Some processors such as STM23 has 5V tolerant outputs when the pin is in OD mode, and it makes sense to add this option for such processors when the board map file is for a board that does not buffer the outputs and allows external drivers.

Determining which processors and boards ths may be relevant for requires a dive into the datasheets/schematics and finding out which processors and boards are relevant to add external drivers for.

as I mentioned and documented, LPC176x doesn't require PINMODE_ODx to be set

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.