Fabio,
Thanks for the code. Sorry I haven't updated my advances. I think I have my 6
pwm code working properly now.
It use address 0X6A and 0X68. The first one to configure the PWM, the second
one to inform about the configuration.
However, the way it works (because I need it that way), is sequentially, first
the PWM1 is activated, then the PWM2, and so on. After PWM6, a bit is enable
for a few moments, and it returns to PWM1.
You can control frequency, from 73khz, to 76khz approx. You can vary duty cicle
from 0 to 100 ( I have tested 25, 50 and 75), and it will keep PWM on for 1 to
3 seconds.
I will upload all this code, maybe there's something useful.
About your code, you're working with a 50Khz frequency now, but I don't get
exactly why your duty cicle isn't changing. Does it works with a 1000
resolution?
Regards,
Enrique
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|