Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

328PB Challenges #309

Open
lucas-andersen opened this issue Jul 27, 2024 · 2 comments
Open

328PB Challenges #309

lucas-andersen opened this issue Jul 27, 2024 · 2 comments

Comments

@lucas-andersen
Copy link

Hi MCUdude, hoping you can help me get my 328pb design up and running. Schematic is attached. I'm attempting to upload the blink arduino sketch using the AVRISP XPII programmer but getting the error message attached.

I've played around a bunch at this point and seen a few different error messages and even received a success message during the upload process although D17 is not blinking so something is clearly not working. I probed the reset line during the flashing process and it is being pulled from 4.8V to 0.6V for about 50ms. One of my concerns was the 1K pullup on RST being too small. I DNP'd the capacitors on my crystal which is TSX-3225 16.0000MF09Z-AC0 (9pF load capacitance) just based on datasheet calculations and comparing my design with the 328pb to some of AVR's example layouts on their hardware design considerations app note. That said, my understanding is that it should default to the internal 8MHz resonator upon first programming, so this shouldn't matter? Let me know if you have any thoughts. Thanks!
328PB Schematic
Error Messages.txt

@MCUdude
Copy link
Owner

MCUdude commented Jul 27, 2024

What kind of crystal oscillator are you using? The load capacitors are marked as DNP. Is this correct? And why did you design your reset circuitry like that? The protection diode isn't correctly placed, and why told you that a 1k pull up resistor is what's common?

Remove the TVS diode and the capacitor on the reset line, and replace the pull up resistor with a 10k one.

@lucas-andersen
Copy link
Author

I'm using TSX-3225 16.0000MF09Z-AC0 (9pF load capacitance). I explained why I DNP'd the load capacitors in my note above. My reset circuitry design came directly form AVR's MCU hardware design app note.
AVR Hardware Design Appnote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants