Status of pins during bootloader
-
Hi @all, specially @tekka,
I have a project including a LED dot matrix display. I use the MYSbootloader to have a convenient way of updating firmware. Now I was on a try to increase the brightness of the LEDs and go beyond the stated current maximum. During operation thats no problem as I have a row multiplexing of 1/16. Only problem I see arising is when the bootloader starts. At this moment all my multiplexing pins are low, so only one row is lit up. Having the OE pin of my driver chip (74HC595) active low, this is also active and displays something. With higher current than rated, this might burn the LEDs and the complete display would be ruined.
I thought of adding a pullup on the OE line, but that depends on the state of the pin during bootloader. If it is configured as output at standard, this will not work. If it's configured as input this might work.
The other way would be to add a MOSFET or anything like that to disconnect the OE pin from my driver chip and than add a pullup resistor. But that is way more effort, so any tips is welcome.
-
@Anduril IO Pins are configured as inputs after reset of the ATMega. I don't think (apart from the LED pin) the bootloader is changing any of these.
If you want to force a pin into a certain state right after reset (when it's still configured as input) you can connect an external pull-up/pull-down resistor. This makes sure the signal on the IO pin has a defined state when not controlling it (e.g. attach a pull-up to the OE line to disable the outputs).
-
@Yveaux thats what I was thinking about. Thanks for confirming.
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
Newbie questions
Hardware • 14 Feb 2025, 20:03 • magwas 14 Feb 2025, 20:03 -
Best VOC sensor for detecting a wide range of VOC's?
Hardware • 26 Oct 2023, 23:59 • NeverDie 18 Nov 2023, 01:41