ATmega328P Notes


Links


Timers

With a 16 MHz clock, clockCyclesPerMicrosecond() is 16000000 / 1000000 or 16 clock cycles per microsecond.

Interrupts


ATmega328P
General
Physical Logical Function Description
7   VCC  
8   GND  
20   AVCC  
21   AREF  
22   AGND  
Port B
Physical Logical Function Description
14 d8    
15 d9 PWM  
16 d10 SS SPI
17 d11 MOSI SPI
18 d12 MISO SPI
19 d13 SCK SPI
9   XTAL1  
10   XTAL2  
Port C
Physical Logical Function Description
23 d14 a0  
24 d15 a1  
25 d16 a2  
26 d17 a3  
27 d18 SDA TWI
28 d19 SCL TWI
1   RESET  
Port D
Physical Logical Function Description
2 d0 RXD USART
3 d1 TXD USART
4 d2 INT0  
5 d3 PWM  
6 d4    
11 d5    
12 d6    
13 d7    


Copyright © 2011, 2012, 2013, 2015, 2017, 2018, 2019, 2020
Craig Leres