Atmega328p powerON

Status
Not open for further replies.

Thread Starter

phys8

Joined Sep 16, 2021
31
Hello , I'm using atmega328p in my PCB project, and I'm using light led , my problem is when I powered ON the atmega328p . it takes 3 seconds to light the led. what exactly the problem?
I want to be more quickly.
 

KeithWalker

Joined Jul 10, 2017
3,063
Hello , I'm using atmega328p in my PCB project, and I'm using light led , my problem is when I powered ON the atmega328p . it takes 3 seconds to light the led. what exactly the problem?
I want to be more quickly.
When the ATMega328P is powered up it first runs the bootloader to configure its self. Then it starts to run the program by assigning memory space to variables, etc. This is what is taking up the first few seconds. A possible solution to your problem would be to keep the power applied and use the sleep mode. If it is done correctly, the processor will only consume microamps when it is sleeping. Use the "on" switch to wake it up and it should be ready to go.
 

MrChips

Joined Oct 2, 2009
30,712
I would not expect the ATmega328 to take more than 1ms to startup unless there is an intentional delay embedded in the code.
 
Status
Not open for further replies.
Top