0

I'm using a 10W/12V PCB mount SMPS for a project. In the same board I'm using an ATMEGA2560. When there is a power fluctuation, the ATmega freezes and all the communication is halted. How can I fix this problem?

enter image description here

enter image description here

enter image description here

JRE
  • 67,678
  • 8
  • 104
  • 179
Lex
  • 71
  • 3

1 Answers1

2

The Schematic looks ok. So it's most likely down to the layout.

  1. Reduce interfence power
  2. Make your circuit more resitant to interference
  • If there are inductive loads powered by DC, give them freewheeling diodes. If they are powered by AC use snubbers
  • For the switching power regulator, use the layout guides the supplier of the component suggests. Don't do anything fancy.
  • The capacitances must be close to the VCC pins. Keep Power and Ground traces as short as possible and keep the close together.
kruemi
  • 2,994
  • 16
  • 29