Sign In
Upload
Manuals
Brands
Atmel Manuals
Computer Hardware
AVR ATmega328P
Atmel AVR ATmega328P Manuals
Manuals and User Guides for Atmel AVR ATmega328P. We have
3
Atmel AVR ATmega328P manuals available for free PDF download: Manual, Specification Sheet
Atmel AVR ATmega328P Manual (452 pages)
8-bit Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash
Brand:
Atmel
| Category:
Microcontrollers
| Size: 8.52 MB
Table of Contents
Features
1
1 Pin Configurations
2
Pin Descriptions
3
2 Overview
4
Block Diagram
5
Comparison between Atmega48P, Atmega88P, Atmega168P, and Atmega328P
6
3 About
7
Disclaimer
7
Resources
7
Data Retention
7
Code Examples
7
4 AVR CPU Core
8
Overview
8
ALU - Arithmetic Logic Unit
9
Status Register
9
General Purpose Register File
11
Stack Pointer
12
Instruction Execution Timing
13
Reset and Interrupt Handling
14
5 AVR Memories
16
Overview
16
In-System Reprogrammable Flash Program Memory
16
SRAM Data Memory
18
EEPROM Data Memory
19
I/O Memory
20
Register Description
21
6 System Clock and Clock Options
26
Clock Systems and Their Distribution
26
Clock Sources
27
Low Power Crystal Oscillator
28
Full Swing Crystal Oscillator
30
Low Frequency Crystal Oscillator
32
Calibrated Internal RC Oscillator
33
Khz Internal Oscillator
33
External Clock
34
Clock Output Buffer
35
Timer/Counter Oscillator
35
System Clock Prescaler
35
Register Description
37
7 Power Management and Sleep Modes
39
Sleep Modes
39
BOD Disable
40
Idle Mode
40
ADC Noise Reduction Mode
40
Power-Down Mode
41
Power-Save Mode
41
Standby Mode
41
Extended Standby Mode
41
Power Reduction Register
42
Minimizing Power Consumption
42
Register Description
44
8 System Control and Reset
46
Resetting the AVR
46
Reset Sources
46
Power-On Reset
47
External Reset
48
Brown-Out Detection
48
Watchdog System Reset
49
Internal Voltage Reference
49
Watchdog Timer
50
Register Description
54
9 Interrupts
57
Interrupt Vectors in Atmega48P
57
Interrupt Vectors in Atmega88P
59
Interrupt Vectors in Atmega168P
62
Interrupt Vectors in Atmega328P
65
Register Description
68
10 External Interrupts
70
Pin Change Interrupt Timing
70
Register Description
71
11 O-Ports
75
Overview
75
Ports as General Digital I/O
76
Alternate Port Functions
80
Register Description
92
12 8-Bit Timer/Counter0 with PWM
94
Features
94
Overview
94
Timer/Counter Clock Sources
96
Counter Unit
96
Output Compare Unit
97
Compare Match Output Unit
98
Modes of Operation
99
Timer/Counter Timing Diagrams
104
Register Description
106
16 Bit Timer/Counter1 with PWM
113
Features
113
Overview
113
Accessing 16-Bit Registers
115
Timer/Counter Clock Sources
118
Counter Unit
119
Input Capture Unit
120
Output Compare Units
122
Compare Match Output Unit
124
Modes of Operation
125
Timer/Counter Timing Diagrams
132
Register Description
134
14 Timer/Counter0 and Timer/Counter1 Prescalers
141
Internal Clock Source
141
Prescaler Reset
141
External Clock Source
141
Register Description
143
15 8-Bit Timer/Counter2 with PWM and Asynchronous Operation
144
Features
144
Overview
144
Timer/Counter Clock Sources
145
Counter Unit
145
Output Compare Unit
146
Compare Match Output Unit
148
Modes of Operation
149
Timer/Counter Timing Diagrams
153
Asynchronous Operation of Timer/Counter2
155
Timer/Counter Prescaler
156
Register Description
158
16 SPI - Serial Peripheral Interface
166
Features
166
Overview
166
SS Pin Functionality
171
Data Modes
171
Register Description
173
17 Usart0
176
Features
176
Overview
176
Clock Generation
177
Frame Formats
180
USART Initialization
182
Data Transmission - the USART Transmitter
183
Data Reception - the USART Receiver
186
Asynchronous Data Reception
190
Multi-Processor Communication Mode
193
Register Description
195
Examples of Baud Rate Setting
199
18 USART in SPI Mode
204
Features
204
Overview
204
Clock Generation
204
SPI Data Modes and Timing
205
Frame Formats
206
Data Transfer
208
AVR USART MSPIM Vs. AVR SPI
210
Register Description
211
19 2-Wire Serial Interface
214
Features
214
Wire Serial Interface Bus Definition
214
Data Transfer and Frame Format
216
Multi-Master Bus Systems, Arbitration and Synchronization
218
Overview of the TWI Module
221
Using the TWI
223
Transmission Modes
227
Multi-Master Systems and Arbitration
240
Register Description
241
20 Analog Comparator
246
Overview
246
Analog Comparator Multiplexed Input
246
Register Description
247
21 Analog-To-Digital Converter
250
Features
250
Overview
250
Starting a Conversion
252
Prescaling and Conversion Timing
253
Changing Channel or Reference Selection
255
ADC Noise Canceler
256
ADC Conversion Result
261
Temperature Measurement
261
Register Description
262
22 Debugwire On-Chip Debug System
267
Features
267
Overview
267
Physical Interface
267
Software Break Points
268
Limitations of Debugwire
268
Register Description
268
23 Self-Programming the Flash, Atmega48P
269
Overview
269
Addressing the Flash During Self-Programming
270
Register Description
275
24 Boot Loader Support - Read-While-Write Self-Programming, Atmega88P, Atmega168P and Atmega328P
277
Features
277
Overview
277
Application and Boot Loader Flash Sections
277
Read-While-Write and no Read-While-Write Flash Sections
278
Boot Loader Lock Bits
280
Entering the Boot Loader Program
281
Addressing the Flash During Self-Programming
282
Self-Programming the Flash
282
Register Description
292
25 Memory Programming
294
Program and Data Memory Lock Bits
294
Fuse Bits
295
Signature Bytes
298
Calibration Byte
299
Page Size
299
Parallel Programming Parameters, Pin Mapping, and Commands
299
Parallel Programming
301
Serial Downloading
308
26 Electrical Characteristics
313
Absolute Maximum Ratings
313
DC Characteristics
313
Speed Grades
316
Clock Characteristics
319
System and Reset Characteristics
320
SPI Timing Characteristics
321
Wire Serial Interface Characteristics
323
ADC Characteristics - Preliminary Data
325
Parallel Programming Characteristics
326
27 Typical Characteristics
328
Atmega48P Typical Characteristics
329
Atmega88P Typical Characteristics
353
Atmega168P Typical Characteristics
377
Atmega328P Typical Characteristics
401
28 Register Summary
425
29 Instruction Set Summary
429
30 Ordering Information
432
Atmega48P
432
Atmega88P
433
Atmega168P
434
Atmega328P
435
31 Packaging Information
436
M1-A
438
32 Errata
440
Errata Atmega48P
440
Errata Atmega88P
440
Errata Atmega168P
440
Errata Atmega328P
440
33 Datasheet Revision History
442
Rev. 2545I-02/09
442
Rev. 2545H-02/09
442
Rev. 2545G-01/09
442
Rev. 2545F-08/08
443
Rev. 2545E-08/08
443
Rev. 2545D-03/08
443
Rev. 2545C-01/08
443
Rev. 2545B-01/08
444
Rev. 2545A-07/07
444
Advertisement
Atmel AVR ATmega328P Manual (567 pages)
8-bit Atmel Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash
Brand:
Atmel
| Category:
Microcontrollers
| Size: 21.15 MB
Table of Contents
Table of Contents
174
Features
1
Pin Configurations
2
Pin Descriptions
3
Overview
5
Block Diagram
5
Comparison between Processors
6
Resources
8
Data Retention
8
About Code Examples
8
Capacitive Touch Sensing
8
AVR CPU Core
9
Overview
9
ALU - Arithmetic Logic Unit
10
Status Register
10
General Purpose Register File
12
Stack Pointer
13
Instruction Execution Timing
14
Reset and Interrupt Handling
15
AVR Memories
17
Overview
17
In-System Reprogrammable Flash Program Memory
17
SRAM Data Memory
19
EEPROM Data Memory
20
I/O Memory
21
Register Description
22
System Clock and Clock Options
27
Clock Systems and Their Distribution
27
Clock Sources
28
Low Power Crystal Oscillator
29
Full Swing Crystal Oscillator
31
Low Frequency Crystal Oscillator
33
Calibrated Internal RC Oscillator
34
8Khz Internal Oscillator
35
External Clock
35
Clock Output Buffer
36
Timer/Counter Oscillator
36
System Clock Prescaler
36
Register Description
38
Power Management and Sleep Modes
40
Sleep Modes
40
BOD Disable
41
Idle Mode
41
ADC Noise Reduction Mode
41
Power-Down Mode
42
Power-Save Mode
42
Standby Mode
42
Extended Standby Mode
43
Power Reduction Register
43
Minimizing Power Consumption
43
Register Description
45
System Control and Reset
48
Resetting the AVR
48
Reset Sources
48
Power-On Reset
49
External Reset
50
Brown-Out Detection
50
Watchdog System Reset
51
Internal Voltage Reference
51
Watchdog Timer
52
Register Description
56
Interrupts
59
Interrupt Vectors in Atmega48A and Atmega48Pa
59
Interrupt Vectors in Atmega88A and Atmega88Pa
61
Interrupt Vectors in Atmega168A and Atmega168Pa
64
Interrupt Vectors in Atmega328 and Atmega328P
67
Register Description
70
External Interrupts
72
Pin Change Interrupt Timing
72
Register Description
73
O-Ports
77
Overview
77
Ports as General Digital I/O
78
Alternate Port Functions
82
Register Description
94
15 8-Bit Timer/Counter0 with PWM
96
Features
96
Overview
96
Timer/Counter Clock Sources
98
Counter Unit
98
Output Compare Unit
99
Compare Match Output Unit
100
Modes of Operation
101
Timer/Counter Timing Diagrams
106
Register Description
108
16-Bit Timer/Counter1 with PWM
115
Features
115
Overview
115
Accessing 16-Bit Registers
117
Timer/Counter Clock Sources
120
Counter Unit
121
Input Capture Unit
122
Output Compare Units
124
Compare Match Output Unit
126
Modes of Operation
127
Timer/Counter Timing Diagrams
134
Register Description
136
Timer/Counter0 and Timer/Counter1 Prescalers
143
Internal Clock Source
143
Prescaler Reset
143
External Clock Source
143
Register Description
145
Mode
173
Table of Contents
174
Mode
175
Mode
176
Change
182
Sck (Cpol
326
Table of Contents
559
Atmel AVR ATmega328P Specification Sheet (27 pages)
8-bit AVR Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash Summary
Brand:
Atmel
| Category:
Computer Hardware
| Size: 0.48 MB
Table of Contents
Pin Configurations
2
Block Diagram
5
Register Summary
8
Instruction Set Summary
12
Ordering Information
15
Packaging Information
19
Advertisement
Advertisement
Related Products
Atmel AVR ATmega324PA
Atmel AVR ATmega88PA
Atmel ATmega8535L
Atmel ATmega8535
Atmel AVR ATmega164PA
Atmel AVR ATmega644PA
Atmel AVR ATmega1284P
Atmel AVR ATmega48PA
Atmel AVR ATmega168PA
Atmel AVR ATmegaICE
Atmel Categories
Microcontrollers
Motherboard
Computer Hardware
Controller
Accessories
More Atmel Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL