Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4787

need help!!! >> 2 channel SPWM variable duty cycle.

$
0
0
I modified SPWM software and add a more SPWMpin but I need a variable duty cycle. (see the photo)
Attachment 7281
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

Attachment 7282

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

Viewing all articles
Browse latest Browse all 4787

Trending Articles