A000048 Arduino, A000048 Datasheet
A000048
Specifications of A000048
Related parts for A000048
A000048 Summary of contents
Page 1
Features • High Performance, Low Power AVR • Advanced RISC Architecture – 131 Powerful Instructions – Most Single Clock Cycle Execution – General Purpose Working Registers – Fully Static Operation – MIPS Throughput at ...
Page 2
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 1. Pin Configurations Figure 1-1. Pinout ATmega48A/48PA/88A/88PA/168A/168PA/328/328P (PCINT19/OC2B/INT1) PD3 (PCINT20/XCK/T0) PD4 GND VCC GND VCC (PCINT6/XTAL1/TOSC1) PB6 (PCINT7/XTAL2/TOSC2) PB7 (PCINT19/OC2B/INT1) PD3 (PCINT20/XCK/T0) PD4 VCC GND (PCINT6/XTAL1/TOSC1) PB6 (PCINT7/XTAL2/TOSC2) PB7 (PCINT21/OC0B/T1) PD5 NOTE: Bottom pad should be soldered to ground. ...
Page 3
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 1.1 Pin Descriptions 1.1.1 VCC Digital supply voltage. 1.1.2 GND Ground. 1.1.3 Port B (PB7:0) XTAL1/XTAL2/TOSC1/TOSC2 Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B output buffers have symmetrical ...
Page 4
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P The various special features of Port D are elaborated in 89. 1.1 the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be externally CC connected to V through a low-pass filter. ...
Page 5
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 2. Overview The ATmega48A/48PA/88A/88PA/168A/168PA/328/328P is a low-power CMOS 8-bit microcon- troller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega48A/48PA/88A/88PA/168A/168PA/328/328P achieves through- puts approaching 1 MIPS per MHz allowing the ...
Page 6
... The ATmega48A/48PA/88A/88PA/168A/168PA/328/328P AVR is supported with a full suite of program and system development tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits. 2.2 Comparison Between Processors The ATmega48A/48PA/88A/88PA/168A/168PA/328/328P differ only in memory sizes, boot loader support, and interrupt vector sizes ...
Page 7
... In ATmega 48A/48PA there is no Read-While-Write support and no separate Boot Loader Section. The SPM instruction can execute from the entire Flash. 3. Resources A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. Note: 8271CS–AVR–08/10 ...
Page 8
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 4. Register Summary Address Name Bit 7 (0xFF) Reserved – (0xFE) Reserved – (0xFD) Reserved – (0xFC) Reserved – (0xFB) Reserved – (0xFA) Reserved – (0xF9) Reserved – (0xF8) Reserved – (0xF7) Reserved – (0xF6) Reserved – (0xF5) Reserved ...
Page 9
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P Address Name Bit 7 (0xC1) UCSR0B RXCIE0 (0xC0) UCSR0A RXC0 (0xBF) Reserved – (0xBE) Reserved – (0xBD) TWAMR TWAM6 (0xBC) TWCR TWINT (0xBB) TWDR (0xBA) TWAR TWA6 (0xB9) TWSR TWS7 (0xB8) TWBR (0xB7) Reserved – (0xB6) ASSR – (0xB5) ...
Page 10
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P Address Name Bit 7 (0x7F) DIDR1 – (0x7E) DIDR0 – (0x7D) Reserved – (0x7C) ADMUX REFS1 (0x7B) ADCSRB – (0x7A) ADCSRA ADEN (0x79) ADCH (0x78) ADCL (0x77) Reserved – (0x76) Reserved – (0x75) Reserved – (0x74) Reserved – (0x73) ...
Page 11
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P Address Name Bit 7 0x1D (0x3D) EIMSK – 0x1C (0x3C) EIFR – 0x1B (0x3B) PCIFR – 0x1A (0x3A) Reserved – 0x19 (0x39) Reserved – 0x18 (0x38) Reserved – 0x17 (0x37) TIFR2 – 0x16 (0x36) TIFR1 – 0x15 (0x35) TIFR0 ...
Page 12
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 5. Instruction Set Summary Mnemonics Operands ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add two Registers ADC Rd, Rr Add with Carry two Registers ADIW Rdl,K Add Immediate to Word SUB Rd, Rr Subtract two Registers SUBI Rd, K ...
Page 13
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P Mnemonics Operands BRIE k Branch if Interrupt Enabled BRID k Branch if Interrupt Disabled BIT AND BIT-TEST INSTRUCTIONS SBI P,b Set Bit in I/O Register CBI P,b Clear Bit in I/O Register LSL Rd Logical Shift Left LSR Rd ...
Page 14
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P Mnemonics Operands POP Rd Pop Register from Stack MCU CONTROL INSTRUCTIONS NOP No Operation SLEEP Sleep WDR Watchdog Reset BREAK Break Note: 1. These instructions are only available in ATmega168PA and ATmega328P. 8271CS–AVR–08/10 Description Rd ← STACK (see specific ...
Page 15
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6. Ordering Information 6.1 ATmega48A Speed (MHz) Power Supply (V) (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum ...
Page 16
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.2 ATmega48PA Speed (MHz) Power Supply (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free packaging ...
Page 17
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.3 ATmega88A Speed (MHz) Power Supply (V) (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 18
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.4 ATmega88PA Speed (MHz) Power Supply (V) (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 19
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.5 ATmega168A (3) Speed (MHz) Power Supply (V) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 20
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.6 ATmega168PA (3) Speed (MHz) Power Supply (V) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 21
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.7 ATmega328 Speed (MHz) Power Supply (V) (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 22
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 6.8 ATmega328P Speed (MHz) Power Supply (V) (3) 20 1.8 - 5.5 Note: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities. 2. Pb-free ...
Page 23
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 7. Packaging Information 7.1 32A PIN 0˚~7˚ L Notes: 1. This package conforms to JEDEC reference MS-026, Variation ABA. 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0.25 mm per side. ...
Page 24
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 7.2 32CC1 BALL CORNER Note1: Dimension “b” is measured at the maximum ball ...
Page 25
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 7.3 28M1 Pin TOP VIEW 0.20 b 0.4 Ref BOTTOM VIEW (4x) The terminal # Laser-marked Feature. Note: Package Drawing Contact: packagedrawings@atmel.com 8271CS–AVR–08/ ...
Page 26
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 7.4 32M1 Pin TOP VIEW Pin #1 Notch (0. BOTTOM VIEW Note: JEDEC Standard MO-220, Fig. 2 (Anvil Singulation), VHHD-2. 2325 Orchard Parkway San Jose, CA ...
Page 27
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 7.5 28P3 A SEATING PLANE Note: 1. Dimensions D and E1 do not include mold Flash or Protrusion. Mold Flash or Protrusion shall not exceed 0.25 mm (0.010"). 2325 Orchard Parkway San Jose, CA 95131 R ...
Page 28
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 8. Errata 8.1 Errata ATmega48A The revision letter in this section refers to the revision of the ATmega48A device. 8.1.1 Rev. D • Analog MUX can be turned off when setting ACME bit 1. Analog MUX can be turned ...
Page 29
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 8.4 Errata ATmega88PA The revision letter in this section refers to the revision of the ATmega88PA device. 8.4.1 Rev. F • Analog MUX can be turned off when setting ACME bit 1. Analog MUX can be turned off when ...
Page 30
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 8.7 Errata ATmega328 The revision letter in this section refers to the revision of the ATmega328 device. 8.7.1 Rev D • Analog MUX can be turned off when setting ACME bit 1. Analog MUX can be turned off when ...
Page 31
ATmega48A/48PA/88A/88PA/168A/168PA/328/328P 8.8 Errata ATmega328P The revision letter in this section refers to the revision of the ATmega328P device. 8.8.1 Rev D • Analog MUX can be turned off when setting ACME bit 1. Analog MUX can be turned off when ...
Page 32
Datasheet Revision History Please note that the referring page numbers in this section are referred to this document. The referring revision in this section are referring to the document revision. 9.1 Rev. 8271C – 08/ 9.2 ...
Page 33
Headquarters Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to ...