mustafahasan
Newbie
Hi...
Please I need help, with PIC18F4580.
I am using mikroc with 0.1Mhz with this simple code. the question is why my min and max output voltage in the oscilloscope (i am using proteus) are -2.5v and 2.5v? not 0 and 5 v??
void main()
{
trisc.b2=0; portc.b2=0;
pwm1_init(50000); delay_ms(200); pwm1_start();
while(1)
{
pwm1_set_duty(128);
}
}
Please I need help, with PIC18F4580.
I am using mikroc with 0.1Mhz with this simple code. the question is why my min and max output voltage in the oscilloscope (i am using proteus) are -2.5v and 2.5v? not 0 and 5 v??
void main()
{
trisc.b2=0; portc.b2=0;
pwm1_init(50000); delay_ms(200); pwm1_start();
while(1)
{
pwm1_set_duty(128);
}
}