Sign In
Upload
Manuals
Brands
Atmel Manuals
Microcontrollers
ATMEGA88-20AU
Atmel ATMEGA88-20AU Manuals
Manuals and User Guides for Atmel ATMEGA88-20AU. We have
1
Atmel ATMEGA88-20AU manual available for free PDF download: Preliminary
Atmel ATMEGA88-20AU Preliminary (359 pages)
8-bit Microcontroller with 8K Bytes In-System Programmable Flash
Brand:
Atmel
| Category:
Microcontrollers
| Size: 2 MB
Table of Contents
Features
1
Pin Configurations
2
Disclaimer
3
Overview
3
Block Diagram
3
Comparison between Atmega48, Atmega88, and Atmega168
4
Pin Descriptions
5
About Code Examples
6
AVR CPU Core
7
Introduction
7
Architectural Overview
7
ALU - Arithmetic Logic Unit
8
Status Register
9
General Purpose Register File
10
Stack Pointer
11
Instruction Execution Timing
12
Reset and Interrupt Handling
12
AVR Atmega48/88/168 Memories
15
In-System Reprogrammable Flash Program Memory
15
SRAM Data Memory
17
EEPROM Data Memory
18
I/O Memory
24
System Clock and Clock Options
25
Clock Systems and Their Distribution
25
Clock Sources
26
Low Power Crystal Oscillator
27
Full Swing Crystal Oscillator
29
Low Frequency Crystal Oscillator
31
Calibrated Internal RC Oscillator
31
Khz Internal Oscillator
33
External Clock
33
Clock Output Buffer
34
Timer/Counter Oscillator
34
System Clock Prescaler
34
Power Management and Sleep Modes
37
Idle Mode
38
ADC Noise Reduction Mode
38
Power-Down Mode
38
Power-Save Mode
38
Standby Mode
39
Power Reduction Register
39
Minimizing Power Consumption
41
System Control and Reset
43
Internal Voltage Reference
48
Watchdog Timer
49
Interrupts
54
Interrupt Vectors in Atmega48
54
Interrupt Vectors in Atmega88
56
Interrupt Vectors in Atmega168
59
O-Ports
64
Introduction
64
Ports as General Digital I/O
65
Alternate Port Functions
69
Register Description for I/O Ports
81
External Interrupts
83
Pin Change Interrupt Timing
83
12 8-Bit Timer/Counter0 with PWM
88
Overview
88
Timer/Counter Clock Sources
89
Counter Unit
89
Output Compare Unit
90
Compare Match Output Unit
92
Modes of Operation
93
Timer/Counter Timing Diagrams
97
Bit Timer/Counter Register Description
99
16-Bit Timer/Counter1 with PWM
106
Overview
106
Accessing 16-Bit Registers
108
Timer/Counter Clock Sources
111
Counter Unit
112
Input Capture Unit
113
Output Compare Units
115
Compare Match Output Unit
117
Modes of Operation
118
Timer/Counter Timing Diagrams
125
6-Bit Timer/Counter Register Description
128
Timer/Counter0 and Timer/Counter1 Prescalers
135
15 8-Bit Timer/Counter2 with PWM and Asynchronous Operation
138
Overview
138
Timer/Counter Clock Sources
139
Counter Unit
139
Output Compare Unit
140
Compare Match Output Unit
142
Modes of Operation
143
Timer/Counter Timing Diagrams
147
Bit Timer/Counter Register Description
149
Asynchronous Operation of the Timer/Counter
155
Timer/Counter Prescaler
158
Serial Peripheral Interface - SPI
159
SS Pin Functionality
164
Data Modes
166
Usart0
168
Overview
168
Clock Generation
169
Frame Formats
172
USART Initialization
174
Data Transmission - the USART Transmitter
176
Data Reception - the USART Receiver
178
Asynchronous Data Reception
182
Multi-Processor Communication Mode
185
USART Register Description
187
Examples of Baud Rate Setting
191
USART in SPI Mode
196
Overview
196
Clock Generation
196
SPI Data Modes and Timing
197
Frame Formats
198
Data Transfer
199
USART MSPIM Register Description
201
AVR USART MSPIM Vs. AVR SPI
204
19 2-Wire Serial Interface
205
Features
205
Wire Serial Interface Bus Definition
205
Data Transfer and Frame Format
206
Multi-Master Bus Systems, Arbitration and Synchronization
209
Overview of the TWI Module
211
TWI Register Description
213
Using the TWI
217
Transmission Modes
221
Multi-Master Systems and Arbitration
234
Analog Comparator
235
Analog Comparator Multiplexed Input
237
Analog-To-Digital Converter
239
Features
239
Starting a Conversion
241
Prescaling and Conversion Timing
242
Changing Channel or Reference Selection
244
ADC Noise Canceler
245
ADC Conversion Result
250
Debugwire On-Chip Debug System
255
Features
255
Overview
255
Physical Interface
255
Software Break Points
256
Limitations of Debugwire
256
Debugwire Related Register in I/O Memory
256
Self-Programming the Flash, Atmega48
256
Addressing the Flash During Self-Programming
258
Boot Loader Support - Read-While-Write Self-Programming, Atmega88 and Atmega168
264
Boot Loader Features
264
Application and Boot Loader Flash Sections
264
Read-While-Write and no Read-While-Write Flash Sections
265
Boot Loader Lock Bits
267
Entering the Boot Loader Program
268
Addressing the Flash During Self-Programming
270
Self-Programming the Flash
271
Memory Programming
280
Program and Data Memory Lock Bits
280
Fuse Bits
281
Signature Bytes
283
Calibration Byte
284
Page Size
284
Parallel Programming Parameters, Pin Mapping, and Commands
284
Parallel Programming
286
Serial Downloading
295
Serial Programming Pin Mapping
296
Electrical Characteristics
299
Absolute Maximum Ratings
299
DC Characteristics
299
External Clock Drive Waveforms
301
External Clock Drive
301
Maximum Speed Vs. V
301
Wire Serial Interface Characteristics
302
SPI Timing Characteristics
304
ADC Characteristics - Preliminary Data
306
Atmega48/88/168 Typical Characteristics - Preliminary Data
307
Active Supply Current
307
Idle Supply Current
310
Supply Current of I/O Modules
313
Power-Down Supply Current
315
Power-Save Supply Current
316
Standby Supply Current
316
Pin Pull-Up
317
Pin Driver Strength
319
Pin Thresholds and Hysteresis
322
BOD Thresholds and Analog Comparator Offset
325
Internal Oscillator Speed
328
Current Consumption of Peripheral Units
330
Current Consumption in Reset and Reset Pulse Width
332
Register Summary
334
Instruction Set Summary
338
Ordering Information
341
Atmega48
341
Atmega88
342
Atmega168
343
Packaging Information
344
M1-A
346
Errata
347
Errata Atmega48
347
Errata Atmega88
348
Errata Atmega168
349
Datasheet Revision History
350
Rev. 2545E-02/05
350
Rev. 2545D-07/04
350
Rev. 2545C-04/04
350
Rev. 2545B-01/04
351
Advertisement
Advertisement
Related Products
Atmel ATmega88A
Atmel ATmega88PV
Atmel ATmega88P
Atmel ATmega88/V
Atmel ATMEGA88-20MUR
Atmel ATMEGA88-15MT
Atmel ATmega8
Atmel ATmega8L
Atmel ATMEGA8-16MUR
Atmel ATMEGA8L-8AU
Atmel Categories
Microcontrollers
Motherboard
Computer Hardware
Controller
Control Unit
More Atmel Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL