_________snip__________
>
>> BTW, what is the frequency of the PWM? The laser accepts 5-25Khz.
>
> Currently it's about 12 KHz, I think.
>
> Peter, does this sound right? It's a 5i20 so ClockHigh is 50 MHz; I set
> PWMGen Master Rate DDS to 65535; therefore PWM Clock should be 50 MHz
> too. I've hardcoded 12-bit PWM resolution for now (bottom two bits of
> PWM Mode are 11) so PWM rate should be 50e6/2^12 = 12207 Hz.
>
No, ClockHigh on 5I20 is 100 MHz so (12 bit) PWM should be around 24 KHz
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users