6. I/O Multiplexing
Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be
assigned to one of the peripheral functions.
The following table describes the peripheral signals multiplexed to the PORT I/O pins.
Table 6-1. PORT Function Multiplexing
32-pin TQFP/ QFN/ MLF Pin # 40-pin PDIP Pin # PAD EXTINT PCINT ADC/AC OSC T/C # 0 T/C # 1 USART I2C SPI JTAG
1 6 PB[5] PCINT13 MOSI
2 7 PB[6] PCINT14 MISO
3 8 PB[7] PCINT15 SCK
4 9 RESET
5 10 VCC
6 11 GND
7 12 XTAL2
8 13 XTAL1
9 14 PD[0] PCINT24 RxD0
10 15 PD[1] PCINT25 TxD0
11 16 PD[2] INT0 PCINT26 RxD1
12 17 PD[3] INT1 PCINT27 TXD1
13 18 PD[4] PCINT28 OC1B XCK1
14 19 PD[5] PCINT29 OC1A
15 20 PD[6] PCINT30 OC2B ICP1
16 21 PD[7] PCINT31 OC2A
17 - VCC RxD2 MISO1
18 - GND TxD2 MOSI1
19 22 PC[0] PCINT16 SCL
20 23 PC[1] PCINT17 SDA
21 24 PC[2] PCINT18 TCK
22 25 PC[3] PCINT19 TMS
23 26 PC[4] PCINT20 TDO
24 27 PC[5] PCINT21 TDI
25 28 PC[6] PCINT22 TOSC1
26 29 PC[7] PCINT23 TOSC2
27 30 AVCC
28 31 GND
29 32 AREF AREF
30 33 PA[7] PCINT7 ADC7
31 34 PA[6] PCINT6 ADC6
32 35 PA[5] PCINT5 ADC5
33 36 PA[4] PCINT4 ADC4
34 37 PA[3] PCINT3 ADC3
Atmel ATmega324P/V [DATASHEET]
Atmel-42743B-ATmega324P/V_Datasheet_Summary-08/2016
13
32-pin TQFP/ QFN/ MLF Pin # 40-pin PDIP Pin # PAD EXTINT PCINT ADC/AC OSC T/C # 0 T/C # 1 USART I2C SPI JTAG
35 38 PA[2] PCINT2 ADC2
36 39 PA[1] PCINT1 ADC1
37 40 PA[0] PCINT0 ADC0
38 - VCC SDA1
39 - GND SCL1
40 1 PB[0] PCINT8 T0 XCK0
41 2 PB[1] PCINT9 CLKO T1
42 3 PB[2] INT2 PCINT10 AIN0
43 4 PB[3] PCINT11 AIN1 OC0A
44 5 PB[4] PCINT12 OC0B SS
- - GND
- - GND
- - GND
- - GND
- - GND
Atmel ATmega324P/V [DATASHEET]
Atmel-42743B-ATmega324P/V_Datasheet_Summary-08/2016
14
7. General Information
7.1. Resources
A comprehensive set of development tools, application notes, and datasheets are available for download
on http://www.atmel.com/avr.
7.2. Data Retention
Reliability Qualification results show that the projected data retention failure rate is much less than 1 PPM
over 20 years at 85°C or 100 years at 25°C.
7.3. About Code Examples
This documentation contains simple code examples that briefly show how to use various parts of the
device. These code examples assume that the part specific header file is included before compilation. Be
aware that not all C compiler vendors include bit definitions in the header files and interrupt handling in C
is compiler dependent. Confirm with the C compiler documentation for more details.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI” instructions
must be replaced with instructions that allow access to extended I/O. Typically “LDS” and “STS”
combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
7.4. Capacitive Touch Sensing
7.4.1. QTouch Library
The Atmel
®
QTouch
®
Library provides a simple to use solution to realize touch sensitive interfaces on
most Atmel AVR
®
microcontrollers. The QTouch Library includes support for the Atmel QTouch and Atmel
QMatrix
®
acquisition methods.
Touch sensing can be added to any application by linking the appropriate Atmel QTouch Library for the
AVR Microcontroller. This is done by using a simple set of APIs to define the touch channels and sensors,
and then calling the touch sensing API’s to retrieve the channel information and determine the touch
sensor states.
The QTouch Library is FREE and downloadable from the Atmel website at the following location: http://
www.atmel.com/technologies/touch/. For implementation details and other information, refer to the Atmel
QTouch Library User Guide - also available for download from the Atmel website.
Atmel ATmega324P/V [DATASHEET]
Atmel-42743B-ATmega324P/V_Datasheet_Summary-08/2016
15

ATMEGA324PV-10PU

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU 32kB Flash 1kB EEPROM 32 I/O Pins
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet