Migration from Atmega48 to Atmega328P

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Freaks,

I am thinking of migrating from my good old Atmega48 over to Atmega328P. In other words, I will take my program which I wrote for the M48 and move it over to the M328P. I know I will have to change the header files. I was using the 28 pin DIP and will be using the same on the 328P.

Are there any major differences as far as pinouts, registers, etc. between the two? I did look at the spec. and only found differences in the bootloader operations but I don't care about that. The only reason I am converting over to the 328P is for more flash memory.
Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe take a look what's inside the include files for both devices.
I would guess some of the registers on m324 are moved outside IN/OUT reach and need LDS/STS instead.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks,Steve and Lennart.

That app note is very informative.

edit:

I had just glanced at that app note. But now that I read it it is actually Migrating from M48/88/168/328 to ATTINY48/88.
I was looking for M48 to M328 migration. Anyway it is still useful in case I want to use an ATtiny.