Ladies and Gentlemen,
Good Morning!
I have been working with the Arduino UNO, ATMEGA328P microcontroller, and I have been experiencing the following issue:
I am controlling some stuff at home using the PORTD, from pin 0 to 7. Unfortunately, When I plug in the Arduino to the power source, the PIN 1 (TX) is turning on for around two seconds and then it turns off. This issue provokes the involuntary turning on of one of the devices that I am trying to control.
In my esketch, I have the PORTD initialized as PORTD = B00000000, so all the outputs gonna be off until other part of the logic gonna start activating them in the way that I want. The esketch is not the problem, my program works exactly in the way that I want. It is just at the very beginning when I plug in the system and the PIN 1 (TX) turn on for the time mentioned before.
Is there a way to configure/controll this pin to be off all the time before my program start working as expectd?
My presumption for this problem is in the boot of the microcontroller. Somehow some part of the boot logic is verifying the TX and allowing the PIN 1 to be on. How can i get ride of this?
Thank you very much, and I look forward to hear from you guys!
Cheers!