Rainbow Electronics ATmega3290P_V User Manual
Features
![background image](/manuals/281792/1/background.png)
2552H–AVR–11/06
Features
•
High Performance, Low Power AVR
®
8-Bit Microcontroller
•
Advanced RISC Architecture
– 130 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-Chip 2-cycle Multiplier
•
Non-volatile Program and Data Memories
– In-System Self-Programmable Flash, Endurance: 10,000 Write/Erase Cycles
32K bytes (ATmega329/ATmega3290)
64K bytes (ATmega649/ATmega6490)
– Optional Boot Code Section with Independent Lock Bits
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
– EEPROM, Endurance: 100,000 Write/Erase Cycles
1K bytes (ATmega329/ATmega3290)
2K bytes (ATmega649/ATmega6490)
– Internal SRAM
2K bytes (ATmega329/ATmega3290)
4K bytes (ATmega649/ATmega6490)
– Programming Lock for Software Security
•
JTAG (IEEE std. 1149.1 compliant) Interface
– Boundary-scan Capabilities According to the JTAG Standard
– Extensive On-chip Debug Support
– Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface
•
Peripheral Features
– 4 x 25 Segment LCD Driver (ATmega329/ATmega649)
– 4 x 40 Segment LCD Driver (ATmega3290/ATmega6490)
– Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture
Mode
– Real Time Counter with Separate Oscillator
– Four PWM Channels
– 8-channel, 10-bit ADC
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Universal Serial Interface with Start Condition Detector
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
– Interrupt and Wake-up on Pin Change
•
Special Microcontroller Features
– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and
Standby
•
I/O and Packages
– 53/68 Programmable I/O Lines
– 64-lead TQFP, 64-pad QFN/MLF, and 100-lead TQFP
•
Speed Grade:
– ATmega329V/ATmega3290V/ATmega649V/ATmega6490V:
0 - 4 MHz @ 1.8 - 5.5V, 0 - 8 MHz @ 2.7 - 5.5V
– ATmega329/3290/649/6490:
0 - 8 MHz @ 2.7 - 5.5V, 0 - 16 MHz @ 4.5 - 5.5V
•
Temperature range:
– -40°C to 85°C Industrial
8-bit
Microcontroller
with In-System
Programmable
Flash
ATmega329/V
ATmega3290/V
ATmega649/V
ATmega6490/V
Preliminary
Document Outline
- Features
- Features (Continued)
- Pin Configurations
- Overview
- Resources
- About Code Examples
- AVR CPU Core
- AVR ATmega329/3290/649/6490 Memories
- System Clock and Clock Options
- Power Management and Sleep Modes
- System Control and Reset
- Interrupts
- External Interrupts
- I/O-Ports
- Introduction
- Ports as General Digital I/O
- Alternate Port Functions
- Register Description for I/O-Ports
- PORTA - Port A Data Register
- DDRA - Port A Data Direction Register
- PINA - Port A Input Pins Address
- PORTB - Port B Data Register
- DDRB - Port B Data Direction Register
- PINB - Port B Input Pins Address
- PORTC - Port C Data Register
- DDRC - Port C Data Direction Register
- PINC - Port C Input Pins Address
- PORTD - Port D Data Register
- DDRD - Port D Data Direction Register
- PIND - Port D Input Pins Address
- PORTE - Port E Data Register
- DDRE - Port E Data Direction Register
- PINE - Port E Input Pins Address
- PORTF - Port F Data Register
- DDRF - Port F Data Direction Register
- PINF - Port F Input Pins Address
- PORTG - Port G Data Register
- DDRG - Port G Data Direction Register
- PING - Port G Input Pins Address
- PORTH - Port H Data Register(1)
- DDRH - Port H Data Direction Register(1)
- PINH - Port H Input Pins Address(1)
- PORTJ - Port J Data Register(1)
- DDRJ - Port J Data Direction Register(1)
- PINJ - Port J Input Pins Address(1)
- 8-bit Timer/Counter0 with PWM
- Timer/Counter0 and Timer/Counter1 Prescalers
- 16-bit Timer/Counter1
- Overview
- Accessing 16-bit Registers
- Timer/Counter Clock Sources
- Counter Unit
- Input Capture Unit
- Output Compare Units
- Compare Match Output Unit
- Modes of Operation
- Timer/Counter Timing Diagrams
- 16-bit Timer/Counter Register Description
- TCCR1A - Timer/Counter1 Control Register A
- TCCR1B - Timer/Counter1 Control Register B
- TCCR1C - Timer/Counter1 Control Register C
- TCNT1H and TCNT1L - Timer/Counter1
- OCR1AH and OCR1AL - Output Compare Register 1 A
- OCR1BH and OCR1BL - Output Compare Register 1 B
- ICR1H and ICR1L - Input Capture Register 1
- TIMSK1 - Timer/Counter1 Interrupt Mask Register
- TIFR1 - Timer/Counter1 Interrupt Flag Register
- 8-bit Timer/Counter2 with PWM and Asynchronous Operation
- SPI - Serial Peripheral Interface
- USART0
- USI - Universal Serial Interface
- Analog Comparator
- Analog to Digital Converter
- LCD Controller
- JTAG Interface and On-chip Debug System
- IEEE 1149.1 (JTAG) Boundary-scan
- Boot Loader Support - Read-While-Write Self-Programming
- Boot Loader Features
- Application and Boot Loader Flash Sections
- Read-While-Write and No Read-While-Write Flash Sections
- Boot Loader Lock Bits
- Entering the Boot Loader Program
- Addressing the Flash During Self- Programming
- Self-Programming the Flash
- Performing Page Erase by SPM
- Filling the Temporary Buffer (Page Loading)
- Performing a Page Write
- Using the SPM Interrupt
- Consideration While Updating BLS
- Prevent Reading the RWW Section During Self- Programming
- Setting the Boot Loader Lock Bits by SPM
- EEPROM Write Prevents Writing to SPMCSR
- Reading the Fuse and Lock Bits from Software
- Preventing Flash Corruption
- Programming Time for Flash when Using SPM
- Simple Assembly Code Example for a Boot Loader
- ATmega329/3290/649/6490 Boot Loader Parameters
- Memory Programming
- Program And Data Memory Lock Bits
- Fuse Bits
- Signature Bytes
- Calibration Byte
- Parallel Programming Parameters, Pin Mapping, and Commands
- Parallel Programming
- Enter Programming Mode
- Considerations for Efficient Programming
- Chip Erase
- Programming the Flash
- Programming the EEPROM
- Reading the Flash
- Reading the EEPROM
- Programming the Fuse Low Bits
- Programming the Fuse High Bits
- Programming the Extended Fuse Bits
- Programming the Lock Bits
- Reading the Fuse and Lock Bits
- Reading the Signature Bytes
- Reading the Calibration Byte
- Parallel Programming Characteristics
- Serial Downloading
- Programming via the JTAG Interface
- Programming Specific JTAG Instructions
- AVR_RESET (0xC)
- PROG_ENABLE (0x4)
- PROG_COMMANDS (0x5)
- PROG_PAGELOAD (0x6)
- PROG_PAGEREAD (0x7)
- Data Registers
- Reset Register
- Programming Enable Register
- Programming Command Register
- Flash Data Byte Register
- Programming Algorithm
- Entering Programming Mode
- Leaving Programming Mode
- Performing Chip Erase
- Programming the Flash
- Reading the Flash
- Programming the EEPROM
- Reading the EEPROM
- Programming the Fuses
- Programming the Lock Bits
- Reading the Fuses and Lock Bits
- Reading the Signature Bytes
- Reading the Calibration Byte
- Electrical Characteristics
- ATmega329/3290/649/6490 Typical Characteristics - Preliminary Data
- Active Supply Current
- Idle Supply Current
- Supply Current of I/O modules
- Power-down Supply Current
- Power-save Supply Current
- Standby Supply Current
- Pin Pull-up
- Pin Driver Strength
- Pin Thresholds and hysteresis
- BOD Thresholds and Analog Comparator Offset
- Internal Oscillator Speed
- Current Consumption of Peripheral Units
- Current Consumption in Reset and Reset Pulsewidth
- Register Summary
- Instruction Set Summary
- Ordering Information
- Packaging Information
- Errata
- Datasheet Revision History
- Table of Contents