Go Down

Topic: MEGA2560 D13 Active During Upload (Read 197 times) previous topic - next topic

bruno_pupo

Sep 24, 2020, 07:57 am Last Edit: Sep 24, 2020, 08:03 am by bruno_pupo
I have developed a custom ATMEL2560 PCB. I have D13 (pin 26 on uC) connected to a motorized door latch release. When I upload new code using the IDE or Visual Studio(with Visual Micro ext.), D13 goes active while upload occurs. Also pulses high 2 times when manually reset. I don't want the door latch to release when there is a power failure or reboot.

Could it be something to do with the ICSP? Not sure why as I'm not using D13 for ICSP - using D50-51 instead for ICSP. I'm flashed the Arduino bootstrap loaded by using a Genuine UNO as the programmer. I have no problems with uploading new code. My only problem is D13 becomes an active output - even when configured as an input.

Any suggestions on a root cause or clues toward finding a fix?




gilshultz

That is part of the arduino boot loader code. You can change the boot loader code or simply use another pin.
This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil

CrossRoads

Why did you use an N-channel FET as a High Side driver? Typically P-channel is used there.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

windoze_killa

That is part of the arduino boot loader code. You can change the boot loader code or simply use another pin.
Just out of interest, are you saying only D13 goes high or is it all Dx pins?
Engineers design things.....technicians make them work.

I don't need anti-static wrist straps.....an instructor years ago told me I had no potential.

Go Up