ATmega328P Notes


Links


Timers

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

Interrupts


ATmega328P
General
Physical   Function  
7   VCC  
8   GND  
20   AVCC  
21   AREF  
22   AGND  
Port B
Physical I/O Logical Function Description
14 PB0 d8    
15 PB1 d9 PWM  
16 PB2 d10 SS SPI
17 PB3 d11 MOSI SPI
18 PB4 d12 MISO SPI
19 PB5 d13 SCK SPI
9 PB6   XTAL1  
10 PB7   XTAL2  
Port C
Physical I/O Logical Function Description
23 PC0 d14 a0  
24 PC1 d15 a1  
25 PC2 d16 a2  
26 PC3 d17 a3  
27 PC4 d18 SDA TWI
28 PC5 d19 SCL TWI
1 PC6   RESET  
Port D
Physical I/O Logical Function Description
2 PD0 d0 RXD USART
3 PD1 d1 TXD USART
4 PD2 d2 INT0  
5 PD3 d3 PWM  
6 PD4 d4    
11 PD5 d5    
12 PD6 d6    
13 PD7 d7    


Copyright © 2011, 2012, 2013, 2015
Craig Leres