Hello, is there an overview of the status of the each pin at the start of the RP2040 Connect?
I need the information for a project. Unfortunately, I can't find anything in the data sheet.
Hello, is there an overview of the status of the each pin at the start of the RP2040 Connect?
I need the information for a project. Unfortunately, I can't find anything in the data sheet.
Why not set the states explicitly yourself ?
Hello, thank you very much for your answer.
Of course I set the correct state in the setup function. I want to use the Arduino to control a large compressor.
In the time between switching on the RP2040 and the setup, however, I need a LOW signal.
Therefore the question which pins z. B. be pulled by pullup or pulldown or whether they floating.
if you want to be sure - and especially if the Arduino can crash, not be powered etc then best is probably to use external pull down so that your compressor always sees known (safe), non floating values.
If the pin is floating at the start, then a pulldown is of course correct and not a problem.
However, if the pin is high at startup, then even a pulldown is useless.
Hence the question of whether the state of the pin at startup is documented. That way I can choose the right one.
As an example, the ESP8266 has pins that are low and high at start-up. It also has some that floating.
fair point indeed. don't know.
The pins default to being inputs with no pull up so that’s a float.
Actually, the rp2040 chip defaults to being inputs with pull-down enabled.
(in contrast to nearly every other microcontroller from all the other vendors. I can't decide whether this is a good idea, or not...) : State of Pico I/O at powerup. - Raspberry Pi Forums
Thanks, I missed that in the data sheet.
I think that is a good default because that is what you need for when you are going to make it an output. Anything else can wait for the code to start running to get defined to what ever you want it to be.