Go Down

Topic: New to surface mount and minicore (Read 688 times) previous topic - next topic

xzarida

The Pro Mini schematic is OK, but there is an excellent pin mapping diagram provided right there on the MiniCore readme, which xzarida has already been using. I don't understand why they are looking elsewhere for this information. It's better to use the MiniCore diagram because this has information specific to MiniCore, such as PC6 being mapped to Arduino pin 22 if you program the RSTDSBL fuse, and ATmega328PB-specific information that will not be shown in the Pro Mini schematic.

Yeah been using this schematic, just wasn't sure what the ports mean.

Just final question and I think I am okay to test some board stuff.

The arduino pin manipulation is the same as the minicore schematic correct? so the analog ports digital ports code wise for the digital writes and reads should be the same as long as I use the same ports as the the port manipulation diagram?

pert

Yeah been using this schematic, just wasn't sure what the ports mean.
I think I already answered that.

The arduino pin manipulation is the same as the minicore schematic correct? so the analog ports digital ports code wise for the digital writes and reads should be the same as long as I use the same ports as the the port manipulation diagram?
That question makes absolutely no sense to me. Please try again.


srnet

I couldn't find arduino pin references on the datasheet sadly. Am I missing something?
Yes you did, I did not say you should look in the Atmel datasheet for Arduino pin mappings, best to quote my post in full;

Quote
Quote from: xzarida on Jul 17, 2019, 10:39 pm

    So not sure what the PC1 port, PE ports or PB ports.

    Does the data sheet have this info ?

Why not take a look ?

Lots of useful stuff in device datasheets.
You will find the refernces to PC1, PE ports and PB ports in the Atmel datasheet.
http://www.50dollarsat.info/
http://www.loratracker.uk/

xzarida

I think I already answered that.
That question makes absolutely no sense to me. Please try again.


On the Atmega 168 arduino pin mapping 

(https://www.arduino.cc/en/Hacking/Atmega168Hardware)

PD0, PD1, PD2 are all digital pins(Digital 0 -2)

PC5, PC4, PC3 are analog pins (Analog 5-3)


Does the atmega328p have the same setup for the ports using the minicore example

Does PD0, PD1, PD2 are they Digital 0-2 in the arduino code ?

and similarily-

are PC5. PC4, PC3 the analog pins in the arduino code ?

(https://camo.githubusercontent.com/1158321594ca3f9ba348093edabc9fb3791a311c/68747470733a2f2f692e696d6775722e636f6d2f6e6177657145362e6a7067)

pert

Just look at the MiniCore diagram. It clearly shows all the Arduino pins in the blue ovals.

srnet

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.
http://www.50dollarsat.info/
http://www.loratracker.uk/

xzarida

#21
Jul 22, 2019, 12:00 am Last Edit: Jul 22, 2019, 12:02 am by xzarida
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?

pert

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.
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"

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:
https://github.com/MCUdude/MiniCore#pinout

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).

Go Up