Rainbow Electronics ATmega163L User Manual
Features
![background image](/manuals/281753/1/background.png)
1
Features
•
High-performance, Low-power AVR
®
8-bit Microcontroller
– 130 Powerful Instructions - Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 8 MIPS Throughput at 8 MHz
– On-chip 2-cycle Multiplier
•
Nonvolatile Program and Data Memories
•
Self-programming In-System Programmable Flash Memory
– 16K Bytes with Optional Boot Block (256 - 2K Bytes)
Endurance: 1,000 Write/Erase Cycles
– Boot Section Allows Reprogramming of Program Code without External
Programmer
– Optional Boot Code Section with Independent Lock Bits
– 512 Bytes EEPROM
Endurance: 100,000 Write/Erase Cycles
– 1024 Bytes Internal SRAM
– Programming Lock for Software Security
•
Peripheral Features
– 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 Clock with Separate Oscillator and Counter Mode
– Three PWM Channels
– 8-channel, 10-bit ADC
– Byte-oriented 2-wire Serial Interface
– Programmable Serial UART
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– Analog Comparator
•
Special Microcontroller Features
– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated RC Oscillator
– External and Internal Interrupt Sources
– Four Sleep Modes: Idle, ADC Noise Reduction, Power Save, and Power-Down
•
Power Consumption at 4 MHz, 3.0V, 25
°C
– Active 50 mA
– Idle Mode 1.9 mA
– Power-down Mode < 1 µA
•
I/O and Packages
– 32 Programmable I/O Lines
– 40-pin PDIP and 44-pin TQFP
•
Operating Voltages
– 2.7 - 5.5V (ATmega163L)
– 4.0 - 5.5V (ATmega163)
•
Speed Grades
– 0 - 4 MHz (ATmega163L)
– 0 - 8 MHz (ATmega163)
Rev. 1142A–10/00
8-bit
Microcontroller
with 16K Bytes
In-System
Programmable
Flash
ATmega163
ATmega163L
Advance
Information
Document Outline
- Features
- Pin Configurations
- Description
- Block Diagram
- Pin Descriptions
- Architectural Overview
- The General Purpose Register File
- The ALU - Arithmetic Logic Unit
- The In-System Self-programmable Flash Program Memory
- The SRAM Data Memory
- The Program and Data Addressing Modes
- Register Direct, Single Register Rd
- Register Direct, Two Registers Rd And Rr
- I/O Direct
- Data Direct
- Data Indirect With Displacement
- Data Indirect
- Data Indirect With Pre-decrement
- Data Indirect With Post-increment
- Constant Addressing Using The LPM and SPM Instructions
- Indirect Program Addressing, IJMP and ICALL
- Relative Program Addressing, RJMP and RCALL
- The EEPROM Data Memory
- Memory Access Times and Instruction Execution Timing
- I/O Memory
- Reset and Interrupt Handling
- Reset Sources
- Power-on Reset
- External Reset
- Brown-out Detection
- Watchdog Reset
- MCU Status Register - MCUSR
- Internal Voltage Reference
- Voltage Reference Enable Signals and Start-up Time
- Interrupt Handling
- Interrupt Response Time
- The General Interrupt Mask Register - GIMSK
- The General Interrupt Flag Register - GIFR
- The Timer/Counter Interrupt Mask Register - TIMSK
- The Timer/Counter Interrupt Flag Register - TIFR
- External Interrupts
- MCU Control Register - MCUCR
- Sleep Modes
- Calibrated Internal RC Oscillator
- Timer / Counters
- Timer/Counter Prescalers
- 8-bit Timer/Counter0
- 16-bit Timer/Counter1
- Timer/Counter1 Control Register A - TCCR1A
- Timer/Counter1 Control Register B - TCCR1B
- Timer/Counter1 - TCNT1H and TCNT1L
- TCNT1 Timer/Counter1 Write:
- TCNT1 Timer/Counter1 Read:
- Timer/Counter1 Output Compare Register - OCR1AH and OCR1AL
- Timer/Counter1 Output Compare Register - OCR1BH and OCR1BL
- Timer/Counter1 Input Capture Register - ICR1H and ICR1L
- Timer/Counter1 in PWM Mode
- 8-Bit Timer/Counter 2
- Watchdog Timer
- EEPROM Read/Write Access
- Serial Peripheral Interface - SPI
- UART
- 2-wire Serial Interface (Byte Oriented)
- The 2-wire Serial Interface Bit Rate Register - TWBR
- The 2-wire Serial Interface Control Register - TWCR
- The 2-wire Serial Interface Status Register - TWSR
- The 2-wire Serial Interface Data Register - TWDR
- The 2-wire Serial Interface (Slave) Address Register - TWAR
- 2-wire Serial Interface Modes
- Master Transmitter Mode
- Master Receiver Mode
- Slave Receiver Mode
- Slave Transmitter Mode
- Miscellaneous States
- The Analog Comparator
- Analog to Digital Converter
- I/O-Ports
- Memory Programming
- Boot Loader Support
- Self-programming the Flash
- Performing Page Erase by SPM
- Fill the Temporary Buffer (Page Load)
- Perform a Page Write
- Consideration while Updating BLS
- Wait for SPM Instruction to Complete
- Instruction Word Read after Page Erase, Page Write, and Lock-bit Write
- Avoid Reading the Application Section During Self-programming
- Boot Loader Lock-bits
- Setting the Boot Loader Lock Bits by SPM
- Reading the Fuse and Lock Bits from Software
- EEPROM Write Prevents Writing to SPMCR
- Addressing the Flash During Self-programming
- Store Program Memory Control Register - SPMCR
- Preventing Flash Corruption
- Program And Data Memory Lock Bits
- Fuse Bits
- Signature Bytes
- Calibration Byte
- Parallel Programming
- Parallel Programming Characteristics
- Serial Downloading
- Serial Programming Characteristics
- Electrical Characteristics
- DC Characteristics
- External Clock Drive Waveforms
- External Clock Drive
- 2-wire Serial Interface Characteristics
- Typical Characteristics - Preliminary Data
- Register Summary
- Instruction Set Summary
- Ordering Information