Speaker_pcm program in Atmega328P

Hi everyone;

Does anyone knows if this example program works in Atmega328P?? I'm trying to make it work in an Arduino with Atmega328P but I'm having problems. Could it be a compatibility issue?? Maybe some registers are different or something related to the interrupts... I'm just thinking out loadly but if someone knows which can be the problem, or have an idea what may be the issue, I'm openned to any suggestion.

Thanks in advance,

Got some code? We're not mind readers. What was it running on before?

zazola: Hi everyone;

Does anyone knows if this example program works in Atmega328P?? I'm trying to make it work in an Arduino with Atmega328P but I'm having problems. Could it be a compatibility issue?? Maybe some registers are different or something related to the interrupts... I'm just thinking out loadly but if someone knows which can be the problem, or have an idea what may be the issue, I'm opened to any suggestion.

Thanks in advance,

Yes it will work. You Need AVr pocket programmer Initially keep mind Atmega328 comes in 2 version 1)atmega328P 2)atmega328P-pu which used arduino board since low power consumption,

If you using atmega328 you need to change signature ID of bootlooader IC.More info available in below link http://www.instructables.com/id/Bootload-an-ATmega328/step6/ATmega328-PU-workaround/

These are the same: 1)atmega328P 2)atmega328P-pu

I think you meant 1)atmega328 vs 2)atmega328P Various dash letters are added to identify the package:commonly -pu, -au, -mu added to refer to 28-pin DIP, 32-pin TQFP, and 32-pin leadless package. The 2 do have different signature bytes that must be addressed as noted.

There are others variations as well, they address the temperature range the parts are spec'ed over, and the different packages.

Atmega328: http://www.digikey.com/product-search/en/integrated-circuits-ics/embedded-microcontrollers/2556109?k=atmega328 Atmega328P: http://www.digikey.com/product-search/en/integrated-circuits-ics/embedded-microcontrollers/2556109?k=atmega328p