sherluck007
Newbie level 5
hi guys can someone give me code to generate 50hz pulse with 50% duty cycle in pic microcontroller iam using mikroc compiler and iam using pic 16fxxx and 18f452
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.
while(1)
{
PORTB.b1 = 1;
delay_ms(10);
PORTB.b1 = 0;
delay_ms(10);
}
while(1)
{
PORTB.b1 = 1;
PORTB.b2 = 0;
delay_ms(10);
PORTB.b1 = 0;
PORTB.b2 = 1;
delay_ms(10);
}