void main()
{
while(1)
{
TRISC = 0x00; //Port C as Output
PORTC=0XFF;
delay_ms(1000) ;
PORTC=0X00;
delay_ms(1000) ;
}
}
void main()
{
while(1)
{
TRISC = 0x00; //Port C as Output
PORTC=0XFF; // all pin high
delay_ms(1000) ;
PORTC=0X00;
delay_ms(1000) ;
} }
hi sir i am using micro c pro compiler .in project setting not shown config bit, please help me sir
hi sir in my hardware not working my hex file .
- - - Updated - - -
anybody help me how to configure pic16f676 in micrro c pro compiler for led blinking source code
void main()
{
TRISC = 0x00; //Port C as Output
ANSEL = 0x00;
while(1)
{
PORTC=0XFF; // all pin high
delay_ms(1000) ;
PORTC=0X00;
delay_ms(1000) ;
}
}
thanks okara ,you said right .your hexfile is working on my hardware but you source code not work.i think my compiler is not right hex file generate ,why please tell me and which com piler are you used .
@swapan
How do you say Compiler is not faulty ? He Compiled my project with my code and my project settings and he obtained a differing .hex file.
Please note, I have only pointed out a possibility and not surely. Compiler's fault is remote. However let the guy buy compiler and feel if there is any difference.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?