I have a project where I use a standalone AtMega328p-au on a PCB that I have designed. In my project I need to use the D0 and D1 (normaly used for TX/RX) as digital outouts. This part is OK, the only thing I have connected to the microcotroller pins for D0 and D1 is the LEDs that my project needs.
The problem is:
When I turn on the power to the circuit to boot the microcontroller, the microcontroller automaticly puts D0/RX to HIGH (powering on my LED on thet pin), and puts a 2.6v HIGH on the D1/TX pin. After the ~1.7 seconds the microcontroller needs to boot, the pins go LOW and all is fine.
Is it possible to stop the microcontroller from puting power on D1 and D0 (RX and TX) dooring the boot time?