ATmega48P Atmel Corporation, ATmega48P Datasheet
ATmega48P
Specifications of ATmega48P
Available stocks
Related parts for ATmega48P
ATmega48P Summary of contents
Page 1
... • Speed Grade: – ATmega48P/88P/168PV 4MHz @ 1.8 - 5.5V 10MHz @ 2.7 - 5.5V – ATmega48P/88P/168P 10MHz @ 2.7 - 5.5V 20MHz @ 4.5 - 5.5V • Low Power Consumption at 1MHz, 1.8V, 25°C: – Active Mode: 0.3mA – Power-down Mode: 0.1µA – Power-save Mode: 0.8µA (Including 32kHz RTC) Note: 1. See ”Data Retention” on page 8 ® ...
Page 2
... Pin Configurations Figure 1-1. Pinout ATmega48P/88P/168P TQFP Top View (PCINT19/OC2B/INT1) PD3 1 (PCINT20/XCK/T0) PD4 2 GND 3 VCC 4 GND 5 VCC 6 (PCINT6/XTAL1/TOSC1) PB6 7 (PCINT7/XTAL2/TOSC2) PB7 8 28 MLF Top View (PCINT19/OC2B/INT1) PD3 1 (PCINT20/XCK/T0) PD4 2 VCC 3 GND 4 (PCINT6/XTAL1/TOSC1) PB6 5 (PCINT7/XTAL2/TOSC2) PB7 6 (PCINT21/OC0B/T1) PD5 7 NOTE: Bottom pad should be soldered to ground. ...
Page 3
... The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running. 8025MS–AVR–6/11 ”System Clock and Clock Options” on page Table 29-3 on page ATmega48P/88P/168P ”Alternate Functions of Port B” on page 27. 314. Shorter pulses are not guaran- ”Alternate Functions of Port C” on page ...
Page 4
... These pins are powered from the analog supply and serve as 10-bit ADC channels. 2. Overview The ATmega48P/88P/168P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega48P/88P/168P achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. 8025MS– ...
Page 5
... T/C 0 8bit T/C 2 USART 0 PORT D (8) 8025MS–AVR–6/11 Power Timer Supervision POR / BOD & RESET Flash Clock 16bit T/C 1 Analog Comp. SPI PORT B (8) PD[0..7] PB[0..7] ATmega48P/88P/168P debugWIRE PROGRAM LOGIC SRAM CPU AVCC AREF GND 2 A/D Conv. Internal 6 Bandgap TWI PORT C (7) RESET XTAL[1..2] PC[0..6] ADC[6..7] ...
Page 6
... Atmel ATmega48P/88P/168P is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. The ATmega48P/88P/168P AVR is supported with a full suite of program and system develop- ment tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits. ...
Page 7
... ATmega88P and ATmega168P support a real Read-While-Write Self-Programming mechanism. There is a separate Boot Loader Section, and the SPM instruction can only execute from there. In ATmega48P, there is no Read-While-Write support and no separate Boot Loader Section. The SPM instruction can execute from the entire Flash. ...
Page 8
... Atmel QTouch Library User Guide 8025MS–AVR–6/11 1. ® ® QTouch Library provides a simple to use solution to realize touch sensitive inter- ® microcontrollers. The QTouch Library includes support for the ® acquisition methods. - also available for download from the Atmel website. ATmega48P/88P/168P 8 ...
Page 9
... USART I/O Data Register USART Baud Rate Register Low – – – UMSEL00 UPM01 UPM00 USBS0 ATmega48P/88P/168P Bit 2 Bit 1 Bit 0 – – – – – – – – – – – – – – ...
Page 10
... Timer/Counter1 - Input Capture Register Low Byte Timer/Counter1 - Counter Register High Byte Timer/Counter1 - Counter Register Low Byte – – – FOC1B – – ICES1 – WGM13 WGM12 COM1A0 COM1B1 COM1B0 ATmega48P/88P/168P Bit 2 Bit 1 Bit 0 UCSZ02 RXB80 TXB80 UPE0 U2X0 MPCM0 – – – – – – ...
Page 11
... WGM02 COM0A0 COM0B1 COM0B0 – – – (EEPROM Address Register High Byte) EEPROM Address Register Low Byte EEPROM Data Register – EEPM1 EEPM0 General Purpose I/O Register 0 ATmega48P/88P/168P Bit 3 Bit 2 Bit 1 Bit 0 – – AIN1D AIN0D ADC2D ADC1D ADC0D – – – ...
Page 12
... When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these addresses. The ATmega48P/88P/168P is a complex microcontroller with more peripheral units than can be supported within the 64 location reserved in Opcode for the IN and OUT instructions ...
Page 13
... V= 0) then PC ← ⊕ then PC ← then PC ← then PC ← then PC ← then PC ← then PC ← then PC ← ATmega48P/88P/168P Operation Flags Z,C,N,V,H Z,C,N,V,H Z,C,N,V,S Z,C,N,V,H Z,C,N,V,H ...
Page 14
... Y ← (Y) ← ← Rr (Z) ← Rr (Z) ← Rr, Z ← ← (Z) ← ← Rr (k) ← ← (Z) Rd ← (Z) Rd ← (Z), Z ← Z+1 (Z) ← R1:R0 Rd ← ← Rr STACK ← Rr ATmega48P/88P/168P Operation Flags None None None None Z,C,N,V Z,C,N,V Z,C,N,V Z,C,N,V Z,C,N,V None SREG(s) ...
Page 15
... Watchdog Reset BREAK Break Note: 1. These instructions are only available in ATmega168P. 8025MS–AVR–6/11 Description Rd ← STACK (see specific descr. for Sleep function) (see specific descr. for WDR/timer) For On-chip Debug Only ATmega48P/88P/168P Operation Flags None None None None None #Clocks 2 1 ...
Page 16
... Wide, Plastic Dual Inline Package (PDIP) 8025MS–AVR–6/11 (2) Ordering Code ATmega48PV-10AU (4) ATmega48PV-10AUR ATmega48PV-10MMU (4) ATmega48PV-10MMUR ATmega48PV-10MU (4) ATmega48PV-10MUR ATmega48PV-10PU ATmega48P-20AU (4) ATmega48P-20AUR ATmega48P-20MMU (4) ATmega48P-20MMUR ATmega48P-20MU (4) ATmega48P-20MUR ATmega48P-20PU and Figure 29-2 on page 312. Package Type ATmega48P/88P/168P (1) Package Operational Range 32A 32A 28M1 28M1 32M1-A 32M1-A ...
Page 17
... Ordering Code ATmega88PV-10AU (4) ATmega88PV-10AUR ATmega88PV-10MU (4) ATmega88PV-10MUR ATmega88PV-10PU ATmega88P-20AU (4) ATmega88P-20AUR ATmega88P-20MU (4) ATmega88P-20MUR ATmega88P-20PU and Figure 29-2 on page 312. Package Type ATmega48P/88P/168P (1) Package Operational Range 32A 32A 32M1-A 32M1-A 28P3 Industrial ° (- 32A 32A 32M1-A 32M1-A 28P3 ° ...
Page 18
... Ordering Code ATmega168PV-10AU (4) ATmega168PV-10AUR ATmega168PV-10MU (4) ATmega168PV-10MUR ATmega168PV-10PU ATmega168P-20AU (4) ATmega168P-20AUR ATmega168P-20MU (4) ATmega168P-20MUR ATmega168P-20PU and Figure 29-2 on page 312. Package Type ATmega48P/88P/168P (1) Package Operational Range 32A 32A 32M1-A 32M1-A 28P3 Industrial ° (- 32A 32A 32M1-A 32M1-A 28P3 ° ...
Page 19
... PIN 0°~7° TITLE 32A, 32-lead Body Size, 1.0 mm Body Thickness, 0.8 mm Lead Pitch, Thin Profile Plastic Quad Flat Package (TQFP) ATmega48P/88P/168P A2 A COMMON DIMENSIONS (Unit of Measure = mm) MIN MAX SYMBOL NOM A – – 1.20 A1 0.05 – ...
Page 20
... Package Drawing Contact: packagedrawings@atmel.com 8025MS–AVR–6/ TITLE 28M1, 28-pad 1.0 mm Body, Lead Pitch 0.45 mm, 2.4 x 2.4 mm Exposed Pad, Thermally Enhanced Plastic Very Thin Quad Flat No Lead Package (VQFN) ATmega48P/88P/168P C SIDE VIEW COMMON DIMENSIONS (Unit of Measure = mm) MIN MAX SYMBOL NOM A 0.80 0.90 1 ...
Page 21
... San Jose, CA 95131 R 8025MS–AVR–6/ TITLE 32M1-A, 32-pad 1.0 mm Body, Lead Pitch 0.50 mm, 3.10 mm Exposed Pad, Micro Lead Frame Package (MLF) ATmega48P/88P/168P SIDE VIEW A3 A1 COMMON DIMENSIONS 0.08 C (Unit of Measure = mm) MIN NOM MAX SYMBOL A 0.80 0.90 1.00 A1 – 0.02 ...
Page 22
... Orchard Parkway San Jose, CA 95131 R 8025MS–AVR–6/11 D PIN PLACES 0º ~ 15º REF eB TITLE 28P3, 28-lead (0.300"/7.62 mm Wide) Plastic Dual Inline Package (PDIP) ATmega48P/88P/168P E1 A1 COMMON DIMENSIONS (Unit of Measure = mm) MIN SYMBOL NOM MAX A – – 4.5724 A1 0.508 – D 34.544 – ...
Page 23
... Errata 11.1 Errata ATmega48P The revision letter in this section refers to the revision of the ATmega48P device. 11.1.1 Rev known errata. 11.1.2 Rev known errata. 11.1.3 Rev. A Not Sampled. 11.2 Errata ATmega88P The revision letter in this section refers to the revision of the ATmega88P device. 11.2.1 Rev. C Not sampled. ...
Page 24
... Frequency Crystal Oscillator” Editorial updates. Removed the “About” section. Removed ATmega328P device and its reference from the data sheet. Editorial updates. Removed “preliminary” from ATmega48P/88P/168P. Added Power-save Maximum values and footnote to tics” on page 310. Added Power-save Maximum values and footnote to tics” ...
Page 25
... ATmega48P/88P/168P Table 9-3 on page 30. by removing a footnote Note1. by removing a footnote Note1. Table 9-13 on page 35. ”ATmega48P DC Characteristics” on page 310 ”ATmega88P DC Characteristics” on page 311 ”ATmega168P DC Characteristics” on page 311 ”” on page 312 and removed TBD from the table. Table 29-4 on page 314 correct one. ...
Page 26
... Characteristics” on page OL Updated max value for V in ”DC Characteristics” on page IL2 Added ”ATmega48P DC Characteristics” on page tics” on page 311, and ”ATmega168P DC Characteristics” on page Updated ”System and Reset Characteristics” on page Added ”ATmega48P Typical Characteristics” on page Characteristics” ...
Page 27
... Atmel , Atmel logo and combinations thereof, AVR marks of Atmel Corporation or its subsidiaries. Windows other countries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL ...