I modified SPWM software and add a more SPWMpin but I need a variable duty cycle. (see the photo)
Name:  1.JPG
Views: 1090
Size:  154.2 KB
Code:
define OSC 10
SPWMpin var PORTC.2       
SPWMpin1 var PORTC.3
Include "SSPWM.INC" 

START:
Freq = 50                     
DutyCycle = 50                  
gosub StartSPWM

MAIN:
'MY CODE HERE
GOTO MAIN
sspwm.zip

HOW I ADD VARIABLE CODE TO MY PROJECT????
HELP ME ANYBODY PLZ.......