Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sorry for coming off so redundant. what i meant was - am i supposed to get the PWM with 5v magnitude and varying duty cycles . just wanted to clarify if thats what i am expecting. nways will check and gt back to you tmrw.
void main()
{
int x,y,a;
CMCON =7;
ADCON1 =7;
PORTC=0 ;
TRISC=0 ;
while(1)
{
x=0;
while ( x<50)
{
PORTC.F3=1;
delay_us(600);
PORTC.F3=0;
delay_us(19400);
x++;
}
// delay_ms(1000);
x=0;
while ( x<50)
{
PORTC.F3=1;
delay_us(1500);
PORTC.F3=0;
delay_us(18500);
x++;
}
// delay_ms(1000);
// y=2400 ;
x=0;
while ( x<50)
{
PORTC.F3=1;
delay_us(2400);
PORTC.F3=0;
delay_us(17600);
x++;
}
// delay_ms(1000);
}
}