PDA

View Full Version : Using SSPWM on more than one Output (Runtime outputpin Changement?)



smsteves
- 7th January 2012, 08:03
Hi guys,

I need to use SSPWM for 3 output but not at the same time.

I need also 2khz so i can't use SSPWM multiple (limit of 1000 hz on 48Mhz clock)

Any help/suggestion on this would be appreciated. :-)

Steve

smsteves
- 9th January 2012, 08:39
The SSPWM library is at

http://www.pbpgroup.com/modules/wfsection/article.php?articleid=6

It works very well, but only with one pin ?

Any idea ??? :surprise:

retepsnikrep
- 9th January 2012, 13:29
Are the three outputs the same duty and freq or do they need to vary independently duty / freq or both?

I use 10-90% duty sspwm at 2khz on an 8mhz pic put only on one output it works very well.

If you only need one output active at any one time you could just direct the sspwm to the reqd pin at the reqd time.

If you need two or more working then you might be stuck.

smsteves
- 9th January 2012, 14:40
The freq is 2 khz for all (and only one output ), so i can redirect Sspwm?
Many tanks, i'll check it as soon as possibile.

Steve