Model Scenery Tutorials

A Comprenshive Modeler's And Model Railroader's Guide

model scenery center

ATMega328P Pinout 

What’s In This Page

This is a detailed guide showing the ATMega328 Pinout

If you are using a phone, at the bottom of the page there are links to many  supplies for modelers. Otherwise those links are in the sidebar to the right. You can also find other information  by using the search function that is in the navigation bar above.

The Latest Information

Anything new and page updates are posted on Twitter (now X) and Facebook.

It is easy to keep up with the latest by following us on either of them.

A tutorial for making  circuit using a circuit board that will provide versatility as well as save you time and labor.

ATMega328P Pinout 

The features of ATMega328P Pinout include moderate pin count, rich functions, and flexible use. ATMega328P Pinout is divided into many types, including digital pins, analog pins, power pins, and special function pins.

The ATmega328P chip has 28 pins, and the usage and pin diagram configuration details of each pin are shown in the figure below:

 

ATMega328PI/O Pins

This microcontroller has three digital ports (B, C, D), namely PORTB, PORTC and PORTD. All these pins can be used as digital input/output. Best of all, every port can be used for other purposes. To use them as output/input or any other function, they should be defined first, otherwise, all I/O pins will not have any default function. The controller’s digital I/O pins are:

 

PBO -GPIO14

PB1 -GPIO15

PB2 – GPIO16

PB3- GPIO17

PB4 – GPIO18

PB5 – GPIO19

PB6- GPIO9

PB7 – GPIO10.

PC0 – GPIO23

PC1 – GPIO24

PC2 -GPIO25

PC3 – GPIO26

PC4 – GPIO27

PC5 – GPIO28

PC6 -GPIO1

PD0 – GPIO2

PD1 – GPIO3

PD2- GPIO4

PD3 – GPIO5

PD4 – GPIO6

PD5 – GPIO11

PD6 -GPIO12

PD7 -GPI013

 

SPI communication

It is one of the best serial communication systems for multiple peripheral situations. The SPI protocol allows multiple devices to communicate using the same channel. It consists of four wires, two for data sending, and one for clock, but the fourth wire is used to select the peripheral called select slave. When more peripherals are selected as slaves, the number of pins will increase. The SPI pins of the microcontroller are:

  • MOSI – GPIO17
  • MISO – GPIO18
  • SS – GPIO16
  • SCK -GPIO19

 

I2C communication module

Most peripherals come with IPC communication, which is a time-specific method. The I-C protocol uses only one data line and one clock line. The data lines will transmit and receive data, and the clock lines will send clock pulses to keep the data in sync. The I2C pins on the microcontroller are:

  • SDA -GPIO27
  • SCL -GPIO28

 

RESET

In ATmega328, some resets can restart the microcontroller in certain situations. Among all these resets, there is an external reset that can use an external signal to reset the device:

  • RESET -GPIO1

 

Power

Every controller requires power to operate, and there is always a power input pin. The number of power pins of ATmega328P is three. One pin is for voltage and the remaining two are for common ground. Both ground pins are connected internally and it doesn’t matter which one is used. The power pins of the microcontroller are:

  • l VCC-pin 7
  • l GND – Pin 8, Pin 22

 

Feedback

Your questions and comments help us clarify and upgrade the information presented.  Even if you find this helpful, please tell us.

Please let us know if this page has been helpful  And if you have questions or suggestions, use this spam free system.

Or use the green WhatsApp button that is to the right.

 

 

 

 

Scroll to top