I am working on my first schematic, but before I get very far with it I would like to know if I have any bad habits, practices, etc.
Please review the attached schematic and point out any bad habits you may find.
Are you using net names as labels for the interconnections? I see the +5v is directly connected to vcc which would not normally happen unless it has been aliased. Also I'd put the labels for the power horizontally just so i don't have to keep twisting my head. Preference only!
AVCC must be connected, easiest is to VCC. I would add a cap (10nF) from reset to GND.
AVCC MAY be connected, NOT! must!
Connect it if you intend to use it as a reference input for ADC. AVCC is connected to the ADCs reference input through a passive switch and is selected through the ADMUX register.
Also remember that care must be taken if pin AREFF is connected to an external source at the same time as you intend to use AVCC as reference since then you will shorten AREFF and AVCC with damage to your device as an possible result.
However, it may be advisable to connect a small capp between AVCC and ground. Ive seen that from time to time, however, as long it is not selected internally you should have no worries aboute it.
"The fool wonders, the wise man asks"
Yes, the datasheet clearly states AVCC must be connected:
AVCC is the supply voltage pin for the A/D Converter, PC3..0, and ADC7..6. It should be
externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be
connected to VCC through a low-pass filter. Note that PC6..4 use digital supply voltage,
Add bypass caps at pins 4,6 on AVR VCC pins. Perhaps one 22 ufd tantalum and 0.1 ufd ceramics on each pin. Better to have more than less.
Seperate 100 nF decoupling capacitors fÃ¼r both Vcc and Avcc is a good idea, but its enough to have one electrolytic capacitor for both.
The readability of the shematics is also not good. The resolution just seems to be a bad choice.
Arrrgh, yes, offcourse. Sorry for the misleading.
AVCC must, AVREF may, but never when intending to use AVCC as source.
Get it, AVCC must be connected, and AREF may be connected.
I always tend to use a push button switch from the Reset pin to GND with a cap to GND as well. This way you can reset your uC if needed. Of course you may need debouncing for this. (Search Ganssle debouncing on this forum for more info on debouncing)
I also like to bring out all my useful uC port pins out to headers so that I can use them in the future if needed. (just like you have brought out the ADC pins on the jumper).
One more thing I learned here on the forum is to add test points (single pin headers) to all critical nodes in the circuit (like for example the RESET pin, used ports,etc.). This will help you immensely in troubleshooting if needed later.
Also is the RESET net on the jumper same as the uC reset net?
My two cents.
© 2020 Microchip Technology Inc.