Spark Logic

ATmega16U2 connection guide

ATmega16U2 (TQFP-32) connection guide. Power and reset. Program and read the signature over ISP.

PackageContactsDetails
TQFP-32 32 32 numbered contacts. See the individual package drawings for footprint dimensions.
QFN-32 33 32 numbered contacts. The underside pad appears below the contact map. See the individual package drawings for footprint dimensions.

Microchip Technology

Device variants · TQFP-32

DeviceFlashSRAMEEPROMSupplyMax clockTemperature
ATmega16U2 16 KiB 512 B 512 B — — —
ATmega16U2-AU 16 KiB 512 B 512 B 2.7–5.5 V 16 MHz -40 to +85 °C

Connection scenarios

USB device powered from the 5 V bus

This example uses the internal USB regulator. USB connector VBUS powers VCC and UVCC. Feed AVCC through the low-pass filter shown and place the UCAP capacitor close to UCAP and UGND. Route each USB data line through its own series resistor and keep the pair short and length-matched.

  • Target rail
    • USB connector VBUS
  • Ground
    • USB connector GND
  • Filtered AVCC
  • USB regulator output
  • Reset
  • MCU D+
    • ↔
  • MCU D−
    • ↔
  • Connector D+
    • USB connector D+
  • Connector D−
    • USB connector D−
  • Crystal input
    • →
  • Crystal output
    • ↔
100 nF each at VCC and UVCC between Target rail and GroundTarget rail100 nF each at VCC and UVCCGround
10 µF on VBUS between Target rail and GroundTarget rail10 µF on VBUSGround
Ferrite bead between Target rail and Filtered AVCCTarget railFerrite beadFiltered AVCC
100 nF between Filtered AVCC and GroundFiltered AVCC100 nFGround
1 µF ±10% between USB regulator output and GroundUSB regulator output1 µF ±10%Ground
10 kΩ between Target rail and ResetTarget rail10 kΩReset
22 Ω ±5% between Connector D+ and MCU D+Connector D+22 Ω ±5%MCU D+
22 Ω ±5% between Connector D− and MCU D−Connector D−22 Ω ±5%MCU D−
8 MHz between Crystal input and Crystal outputCrystal input8 MHzCrystal output
C1 per crystal load rating between Crystal input and GroundCrystal inputC1 per crystal load ratingGround
C2 per crystal load rating between Crystal output and GroundCrystal outputC2 per crystal load ratingGround

Bench checks

  • Check D+ end to end to pin 29 and D− end to end to pin 30. Use the pinout and pin descriptions for polarity.
  • Select the external crystal mode to match the fitted crystal. For 8 MHz, set the PLL input divider to 1:1 and wait for PLL lock before enabling USB operation.
  • For a separate 3.0–3.6 V regulator-bypass design, Figure 20-6 puts UVCC and UCAP on the regulated rail with the UCAP capacitor to ground. Disable the internal regulator with REGCR.REGDIS in this mode.

7799E · Figure 1-1, §§2.2, 8.4, 8.10, 8.11.6, 20.3 and 20.10.3

TQFP-32 wiring map

External wiring example · USB device powered from the 5 V bus

Highlighted contacts are used in this circuit. Select a contact to highlight its wiring nets.

TQFP-32

1 · XTAL1 · Left side, contact 1 from the top

Marking side · Pin 1 at the upper left
Selected pin details

1 · XTAL1

Input · Clock inputs / oscillator

Oscillator amplifier input or external clock input, depending on clock fuses.

7799E · Pinout and peripheral signal descriptions

Connected nets

Electrical limits · Pin in the reference

Manufacturer documents

Each package lists the documented order codes and variants covered by this map. Select the marked model to see its peripheral assignments and memory. Check the exact order code and datasheet revision before laying out a PCB.