Adding PWM for ATmega16 (by Shaunak Manurkar)
Hi there,
I have a ATmega16 with a wheel encoder and I want to use PWM to change the speed of the motor.
Data sheet of the Atmega16 says that it has PWM channel, but LDmicro gives an error when PWM is selected for the particular controller.
So, is it possible to edit the source code such that ATmega16 will support PWM?
If yes, which file should I edit?
(no subject) (by Ihor Nehrutsa)
Atmel AVR ATmega16 40-PDIP and
Atmel AVR ATmega162 40-PDIP and
Atmel AVR ATmega32 40-PDIP
has an error in pwmNeedsPin in mcutable.h.
You can edit mcutable.h according to attached mcutable_part.h.
See line that has comment " // OC2".
And recompile ldmicro.
Or use
LDmicro.GitHub Release 3.1.1 form
http://cq.cx/ladder-forum.pl?action=viewthread&parent=4895
This error is fixed.