Interchip compatibility

Just a quick questions. I know that the ATMega168 and ATmega328 are basically swappable. Is the ATMega328 and ATmega48 swappable?

I am just looking for a cheaper chip to make 'stripduinos' with and only need the chip for a basic analog and PWM function.

Thanks!

They all share the same pinout, so you can replace them electrically.
For the ATmega48, you don't have a bootloader either and only half the RAM. I guess if you want to use those, make a dedicated image to put on them, you can't program them the same way as the usual Arduino.

The Atmega88 (and also 48) have a smaller interrupt vector. This will probably mean that you need to recompile the software for them. , if I remember correctly, the Arduino IDE program support them too.

Korman