Page 1 of 1

Using PWM

Posted: Thu Aug 23, 2007 7:15 pm
by David Barker
A little article on using PWM with Swordfish...

http://www.sfcompiler.co.uk/wiki/pmwiki ... shUser.PWM

Posted: Sat Aug 25, 2007 11:14 pm
by Doj
Nice article David, thank you.

Posted: Tue Aug 28, 2007 2:43 pm
by Moby
Extremely useful.

Posted: Mon Sep 17, 2007 9:57 am
by xor
David,

This is a very nice module... thanks. I would like to add that you can simplify the math in your PWM.SetFreq() routine for determining MAX_DUTY.

Code: Select all

MAX_DUTY = Word((PR2+1) << 2)

Posted: Mon Dec 17, 2007 2:55 am
by gramo
Does anyone have this library handy?

I'm chasing it down, but the SF wiki is MIA