Hello everyone,
Lately, I've been working on designing a PCB (Printed Circuit Board) for an e-paper display. I've written the firmware for the microcontroller and successfully tested it on an Arduino Nano; with that, I got the e-paper screen working without any issues.
However, on my own custom PCB, I'm encountering a strange problem: as soon as the firmware tries to initialize the SPI communication, the microcontroller keeps continuously resetting itself. In the serial monitor, I repeatedly see the same debug texts that are called in the setup() function, which indicates a constant reset loop.
What if have done so far:
I have included the schematic and pcb screenshots.
Can somebody help me out? Thank you in advance.
Lately, I've been working on designing a PCB (Printed Circuit Board) for an e-paper display. I've written the firmware for the microcontroller and successfully tested it on an Arduino Nano; with that, I got the e-paper screen working without any issues.
However, on my own custom PCB, I'm encountering a strange problem: as soon as the firmware tries to initialize the SPI communication, the microcontroller keeps continuously resetting itself. In the serial monitor, I repeatedly see the same debug texts that are called in the setup() function, which indicates a constant reset loop.
What if have done so far:
- Changed the pull-up resistor on the reset pin from 1K to 10K.
- Added two extra 22pF capacitors to the 16MHz crystal (although this shouldn't normally be necessary, as the crystal itself already has an internal capacitive load of 20pF.
- The power supply is provided by an external 5V source.
I have included the schematic and pcb screenshots.
Can somebody help me out? Thank you in advance.
Attachments
-
90.9 KB Views: 14
-
133.8 KB Views: 16
-
204.2 KB Views: 16