

XTAL1 (Chip Clock Oscillator pin 1 or External clock input) The PB7 pin can serve as an external interrupt source. In this mode, a crystal Oscillator is connected to this pin and used for asynchronous clocking of Timer/Counter2 and the pin cannot be used as an I/O pin. When used as a clock pin, the pin can not be used as an I/O pin. Used as clock pin for Crystal Oscillator or Low-frequency Crystal Oscillator. If the Internal Calibrated RC Oscillator is used as the chip clock source, PB7…6 is used as TOSC2…1 input for the Asynchronous Timer/Counter2 if the AS2 bit in ASSR is set. The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running.ĭepending on the clock selection fuse settings, PB6 can be used as input to the inverting Oscillator amplifier and input to the internal clock operating circuit.ĭepending on the clock selection fuse settings, PB7 can be used as output from the inverting Oscillator amplifier. As inputs, Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port B output buffers have symmetrical drive characteristics with both high sink and source capability. Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). These pins are powered from the analog supply and serve as 10-bit ADC channels. In the TQFP and QFN/MLF package, ADC7:6 serves as analog inputs to the A/D converter. ADC7:6 (TQFP and QFN/MLF Package Only) (D21:D20 Arduino NANO) AREFĪREF is the analog reference pin for the A/D Converter. Note that PC6…4 use digital supply voltage, VCC. If the ADC is used, it should be connected to VCC through a low-pass filter. It should be externally connected to VCC, even if the ADC is not used. AVCCĪVCC is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. GNDĭigital Supply Ground for the operation of the chip. Arduino UNO uses the PDIP package of ATmega328P and Arduino NANO uses the TQFP Package of ATmega328P.Īrduino NANO Pin Mapping with ATmega328P Pin Description ATmega328P VCCĭigital Supply Voltage for the operation of the chip.

The below article shows and discusses the peripheral available in each port pin and their alternate functions. Most port pins have alternate functions in addition to being general digital I/Os. The Arduino style pinout is mapped with the chip style pinout and the alternate functions are described. This section discusses the Atmega328p and Arduino Pinout and Mapping.

#ARDUINO UNO PINOUT MAP CODE#
Arduino Tutorial Embedded C Register Level Arduino Master ClassĪlso visit the Release Page for Register Level Embedded C Hardware Abstraction Library and Code for AVR.
