Re: RP2040 multiple GPIO interrupts

2025-05-05 Thread Tomek CEDRO
Hello world! Any RP2040 users feedback is welcome on this change as Kevin tired it and reported some issues :-) Thanks! :-) Tomek On Tue, Apr 29, 2025 at 2:24 AM Matteo Golin wrote: > > Hello everyone, > > In order to solve this issue, I have opened a PR here: > https://github.com/apache/nuttx/pu

Re: RP2040 multiple GPIO interrupts

2025-04-28 Thread Matteo Golin
Hello everyone, In order to solve this issue, I have opened a PR here: https://github.com/apache/nuttx/pull/16281 This allows multiple GPIO interrupt types to be selected once, since the RP2040 supports that. Now one GPIO pin can trigger up to 4 interrupt events. I would appreciate your review!

Re: RP2040 multiple GPIO interrupts

2025-04-05 Thread Alan C. Assis
Hi Matteo, I think RP2040 and new RP2350 are good MCUs, but Raspberry Pi Foundation did some terribles mistakes, like using a serial port control that doesn't have indication of transmission done (useful for RS485 support) and GPIO INT with both edges support. When I created the ultrasound sensor

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Nathan Hartman
On Mon, Mar 17, 2025 at 5:18 PM Matteo Golin wrote: > Hello everyone, > > I have an application wherein I am using a W5500-EVB Pico as the MCU for a > network controlled system. I need to connect > several switch inputs into this MCU. The switches are normally held high > via the RP2040's interna

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Kevin Witteveen
Hey Matteo, It appears the RP2040 can support falling and rising interrupts at once according to the RP2040 datasheet section 2.19.5.2 "Enable a GPIO interrupt", which provides an example of how to do this. Ofcourse this example is not NuttX, but can help for implementation. https://datasheets.ras

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Matteo Golin
Thank you everyone for the suggestions. I don't have enough GPIO pins to dedicate two per switch unfortunately, nor do I have a suitable hardware method for handling debouncing. I suppose this is taken care of in the button driver framework via software, but not for the bare GPIO framework. I don'

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Marco Casaroli
Hello, You can do this in software: check the line status if it is low, then you set the interrupt to rising edge and if it is high you set to falling edge, any time the interrupt happens, you carefully change to falling or rising depending on the status. On Mon, Mar 17, 2025 at 22:18 Matteo Goli

Re: RP2040 multiple GPIO interrupts

2025-03-17 Thread William Martin
Do you have enough gpio's available to dedicate two pins per switch? If so, just tie them in pairs, program one of the pair to interrupt high, the other low. On 3/17/25 14:18, Matteo Golin wrote: Hello everyone, I have an application wherein I am using a W5500-EVB Pico as the MCU for a netwo

RP2040 multiple GPIO interrupts

2025-03-17 Thread Matteo Golin
Hello everyone, I have an application wherein I am using a W5500-EVB Pico as the MCU for a network controlled system. I need to connect several switch inputs into this MCU. The switches are normally held high via the RP2040's internal pullups, and pulled low when flipped. The problem I'm encoun