xzarida:
Does the atmega328p have the same setup for the ports using the minicore example
Almost but not quite.
The atmega328p does not have PE0 and PE1 pins.
xzarida:
Does the atmega328p have the same setup for the ports using the minicore example
Almost but not quite.
The atmega328p does not have PE0 and PE1 pins.
pert:
Just look at the MiniCore diagram. It clearly shows all the Arduino pins in the blue ovals.
It doesn't make sense because the
PC1 port is on pin 24 of the atmega328pb it is saying it is pin 15 of the arduino port
The diagram above shows pc1 - pcint9 - is at port 24 on arduino.
Pin 15 of the arduino is pb1.
Trying to understand it I am not trying to be difficult, sorry if that is inconvenient new to all of this.
So do the PC1 ports match ? or are they assigned differently?
xzarida:
PC1 port is on pin 24 of the atmega328pb it is saying it is pin 15 of the arduino portThe diagram above shows pc1 - pcint9 - is at port 24 on arduino.
You're using the term "port" incorrectly. A port is a set of pins that are all accessed from the same register. It makes absolutely no sense to say "PC1 port" or port 24. Instead, you should say "IO pin PC1" and "physical pin 24"
xzarida:
The diagram above shows pc1 - pcint9 - is at port 24 on arduino.Pin 15 of the arduino is pb1.
On the SMD package of the ATmega328PB, etc, IO pin PC1 is on physical pin 24. On the DIP package of the ATmega328P, etc., IO pin PB1 is on physical pin 15. MiniCore provides pinout diagrams for both packages:
Physical pin assignments (as well as physical pin counts) change from one IC package to another. That only matters when you're wiring up your circuit. After that, the physical pin number is irrelevant. This is why referring to physical pin numbers is not often useful. Instead, we will usually talk about Arduino pin numbers or IO pin designators (e.g., PB1).