# Nano to Atmega328PU question

**URL:** <https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191>\
**Category:** 3rd Party Boards\
**Created:** [May 7, 2017, 5:24pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191 "2017-05-07T17:24:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mancavebob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mancavebob/32/1126491_2.png) [@mancavebob](https://forum.arduino.cc/u/mancavebob)\
**Post date:** [May 7, 2017, 5:24pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191/1 "2017-05-07T17:24:41Z")

</div>

Hi all, I'm trying to translate a project from using a Nano to using the Atmega328PU directly to save some board space. When checking the schematic for the nano and the pinouts for the 328 there seems to be an anomally in that the Nano has 8 analog inputs but the 328 seems to have only 6. Can anyone explain what I'm missing here? Many thanks

---

<div class="post-metadata">

**Author:** ![ron\_sutherland](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ron_sutherland/32/218203_2.png) [@ron\_sutherland](https://forum.arduino.cc/u/ron_sutherland)\
**Post date:** [May 7, 2017, 5:42pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191/2 "2017-05-07T17:42:27Z")

</div>

An ATmega328p-PU is in a 28 pin DIP package

![ATmega328p-PU.png](https://europe1.discourse-cdn.com/arduino/original/4X/8/b/0/8b09cd6b200e20151f969c9d076e98bc1271b60c.png)

> **[Electronic Components | Digi-Key Electronics](https://www.digikey.com/en/products/result?s=N4IgTCBcDaIIIBUC2BTA5gQwMxgBwAcBaABQFUQBdAXyA)**
>
> Digi-Key is your authorized distributor with over a million in stock products from the world’s top suppliers. Rated #1 in content and design support!

while an ATmega328p-AU is in a 32 pin TQFP package

![ATmega328p-AU.png](https://europe1.discourse-cdn.com/arduino/original/4X/c/6/5/c65e1ce297515979dc3fdd7cdeb6ebd1a058628d.png)

[https://www.digikey.com/products/en?keywords=ATmega328p-AU](https://www.digikey.com/products/en?keywords=ATmega328p-AU)

Atmel added ADC6 and ADC7 pins to the TQFP package but they are not in the DIP package.

The datasheet has other packages and more info.

[http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P\_datasheet\_Complete.pdf](http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf)

![ATmega328p-PU.png](https://europe1.discourse-cdn.com/arduino/original/4X/8/b/0/8b09cd6b200e20151f969c9d076e98bc1271b60c.png)

![ATmega328p-AU.png](https://europe1.discourse-cdn.com/arduino/original/4X/c/6/5/c65e1ce297515979dc3fdd7cdeb6ebd1a058628d.png)

---

<div class="post-metadata">

**Author:** ![mancavebob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mancavebob/32/1126491_2.png) [@mancavebob](https://forum.arduino.cc/u/mancavebob)\
**Post date:** [May 7, 2017, 5:54pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191/3 "2017-05-07T17:54:59Z")

</div>

Ah, I see now, many thanks Ron all cleared up, cheers, Bob

---

<div class="post-metadata">

**Author:** ![DrAzzy](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DrAzzy](https://forum.arduino.cc/u/DrAzzy)\
**Post date:** [May 7, 2017, 6:20pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191/4 "2017-05-07T18:20:56Z")

</div>

Yeah. I get the impression that it was like "Okay, we have 4 more pins on the TQFP package - what do we do with them" and someone was like "Hey, we've got 2 unused channels on the ADC MUX, let's use two of the pins for that!" - that would sort of explain how come they're the only ADC-only pins in the entire 8-bit AVR product line (as far as I know)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 5:09pm UTC](https://forum.arduino.cc/t/nano-to-atmega328pu-question/457191/5 "2021-05-06T17:09:33Z")

</div>

Closed on May 6, 2021, 5:09pm UTC


