Go Down

Topic: <SOLVED> PWM on ATMEGA1284P (Read 785 times) previous topic - next topic


Oct 19, 2015, 11:11 pm Last Edit: Oct 20, 2015, 09:14 pm by somedude
Of course I had to try the Fade sketch on my new 1284. :)

Didn't work. Well, it blinks, but doesn't fade, which tells me it does the output, but no PWM.

I tried all ports that supposedly support PWM: PB3, 4, 6 and 7 as well as PD4, 5, 6 and 7.
This is the default sketch without modifications, other than trying different pins.

Does anything need to be done, like through fuses, to enable PWM?
Or am I choosing the wrong ports?
I even tried a random port, to no avail.

Thanks for any clues.


Oct 20, 2015, 09:15 pm Last Edit: Oct 20, 2015, 09:16 pm by somedude
Yes, with the right pins_arduino.h and the right variant, it works fine.
With the standard variant, it doesn't, even though the port/pin mapping looks correct.


What core files were you using that didn't work with the standard variant?


Just standard, the same as for Uno.

Go Up