What are most important differences between ATMega32u2 and ATMega32u4?
2 Answers
Compared to the u2, the u4 has:
- More RAM (2.5k vs. 1k)
- More pins (48 vs. 32)
- Analog-to-digital converters instead of just analog comparators
- Low frequency crystal option instead of full swing crystal option
- An I2C interface.
To answer this, I did a DigiKey search for each part number and compared the result tables. This is easier than comparing the datasheets, although datasheets are the most accurate place to find information. For example, the oscillator information in Digikey suggests that the u4 requires an external oscillator, while the u2 requires an internal oscillator. This is not the case; the u4 ships with the external oscillator as the default and the u2 ships with the internal oscillator as a default, but both can use internal and external clock sources.
- 20,067
- 8
- 57
- 102
- 20,015
- 7
- 60
- 97
The U2 and U4 indicate the USB module version of atmel's chip. That mean that U4 has more usb capabilities/flexibility than the U2.
You can find in the LUFA documentation the description for every USB class, the USB modules supported.
For example, the Joystick Device Demo say :
Demo Compatibility:
The following list indicates what microcontrollers are compatible with this demo.
- Series 7 USB AVRs (AT90USBxxx7)
- Series 6 USB AVRs (AT90USBxxx6)
- Series 4 USB AVRs (ATMEGAxxU4)
- Series 2 USB AVRs (AT90USBxx2, ATMEGAxxU2)
- 805
- 1
- 8
- 13
u2parts the datasheet is inconsistent in several places. Atmel's USB chips actually come preloaded with a USB bootloader, which requires an external oscillator to run -- the chips therefore have the external oscillator selected as the default clock source. – avakar Oct 09 '11 at 09:12