I am sorry.
I make mistake.
It is worked well by changing the frequency of
motor
& i changed the program
to the following code
void main() {
TRISB=0;
while(1){
PORTB=0XFF;
Delay_us(800);
PORTB=0;
Delay_ms(2);
}
}
and it work well without diod
It is wonderfull
just changing the frequence period
the following code work WRONG
void main() {
TRISB=0;
while(1){
PORTB=0XFF;
Delay_ms(10);
PORTB=0;
Delay_ms(200);
}
}
Tanks hameeds01 for your reply
Added after 3 minutes:
It work well because of correct frequence
I dont know what is happened when the frequence
changed
any one know???