Electrical – Microcontroller ATMEGA328P ports

microcontroller

Hello I am fairly new to microcontrollers and would like to know how would one know if a port is analogic or digital? in function of their I/O ports.
Thanks in advance

Best Answer

The datasheet shows which port is digital only, and which is analog or digital.

Both graphically:

enter image description here

And in a table (shown only in part, see I/O multiplexing on the linked datasheet):

enter image description here

Related Topic