Features
Pin functionality difference
Code compatibility
Enhancement and added features
Updated features
Note:
Code compiled for ATmega324 variants are compatible and can be executed in the ATmega324PB device (exception, see this application note). Whereas, reverse code compatibility is not guaranteed.