Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PWM Not working

(you are viewing a thread; or go back to list of threads)

PWM Not working (by San)
Dear Sir,

I'm new to the LD micro ladder programming. Now I'm working with ATMEGA 16. I got the program from the website and compiled it, but there was PWM setting error. After writing program, I can't assign the pwm pin on it. Informartion from the help - Pin 21 - OC2 is the PWM pin), but it can't assign automatically and while compiling there was a message "PWM function used but not supported for this micro". Please help me in this regard to assign the pwm fuction on the ATMEGA 16.

Thanks
Tue Sep 10 2013, 02:37:28, download attachment pwm-simple.ld
(no subject) (by Jonathan Westhues)
LDmicro requires two hardware timers to support PWM; one is used to measure the cycle time. See, for example,

http://cq.cx/ladder-forum.pl?action=viewthread&parent=532
Tue Sep 10 2013, 03:01:53
PWM Not working (by San)
Dear Sir,

Thank you very much for your valuable and quick reply. I checked the above ladder and found working.

Thanks and Regards
San
Tue Sep 10 2013, 04:50:33
(no subject) (by MGP)
Maybe you can use this one, it's not my work but I can't find this file on this forum.
Use the fastest cycletime you can worked with, because the frequency depends on the cycletime.
Tue Sep 10 2013, 07:20:03, download attachment pwm-VARIBLE.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):