I'm new in electronics. Just playing with Arduino boards.I just wanted to program ATMEGA328 micro-controller and use it without Arduino for compact design for my personal hobby project. I found there are ATMEGA32 and ATMEGA328 micro controllers in my local store. So, I wanted to know can I use ATMEGA32 instead of ATMEGA328 ? Which one is latest and whats are benefits. Thanks in advance.
I cannot tell for sure, but from a cursory look at the datasheets, the ATmega32 looks older:
- 16 MHz maximum frequency v.s. 20 MHz for the ATmega328
- 4.5 V minimum supply voltage v.s; 1.8 V for the ATmega328
- only one PWN channel per 8-bit timer
From an Arduino-programming point of view, I would prefer the 328, as it would allow you to prototype your code on an Uno, and then move it to the bare MCU, knowing it would work identically. The ATmega32 would be worth consideration if you need more IO than the Uno can provide.
To answer this you'd need to study the according data sheets:
Despite a similar name, the chips are quite different.
32u4 for examle has USB built in.
328PB has more 16-bit Timer/Counters.
... and many more differences.
They only differ on the hardware features and can be programmed in more or less the same way. It is up to you to choose which one you want to use.