PIN REFEERENCES

Am i correct in stating that on a Atmega 328 you can refer to the pins by their port names

i.e. PCO, PB1 etc.

or the IDE name 14, 9

but not by physical pin number 23,15 :o

thanks

Refer to them where?

The 328 pin numbers and the IDE pin numbers are essentially arbitrary.

If you are using the Arduino IDE, on a bare 328 board, use the Arduino pins numbers.

You can google any correlation between controller pins and Arduino pins.
See arduinopins.h


.

Am i correct in stating that on a Atmega 328 you can refer to the pins by their port names
i.e. PCO, PB1 etc.

No, that's not correct. PC0/PB1 etc are Atmel-defined symbols for the bit numbers within the specific port, so PB1, PC1, and PD1 are all just "1", and won't work at all in the arduino functions like digitalWrite or pinMode
(PB1/etc are defined in tools/avr/avr/include/avr/portpins.h)

Reponses:

If you are using the Arduino IDE, on a bare 328 board, use the Arduino pins numbers.

PC0/PB1 etc are Atmel-defined symbols

Thanks that clears thing up.