mega 324pa SPI Registers

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

Hi,
I've been using the mega324p in WINAVR 20100110. I've changed to the mega324pa, I believe the devices are compatible but I've changed the processor type in the make file to mega324pa. The register definitions are now different so I can't compile. The first I've noticed is that the SPI registers all need to have a trailing 0, ie SPDR becomed SPDR0. Is there a reason for this as it now does not tie up with the Atmel datasheet for the mega 324pa?

Thanks,
Dan.

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

It ties up with the XML file for the ATmega324PA.

I should just conform to the new names. Bear in mind that your binary code should run on the older ATmega324P anyway.

David.