- This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › LED IS NOT BLINKING
HI everyone,
I am new to PIC and just trying to blink a LED on proteus, but the program is not working.
can anyone give me some useful suggestion.
my program is ..
void main()
{
TRISB=0x00;
while(1)
{
PORTB=0x00;
delay_ms(100);
PORTB=0xFFFF;
}
}
and in proteus I have just connected to led to pic.
void main()
{
TRISB=0x00;
while(1)
{
PORTB=0x00;
delay_ms(100);
PORTB=0xFF;//its a 8 bit microcntroller
delay_ms(100);
}
}
still u cant find blinking led increase the value of delay and check.
All the best
hello Syed
I have increased the delay but it is not working. do u think that I have to connect extra circuitry like oscillator, ground,power etc.