Jul 30, 2013 #1 V vinodhembedded Junior Member level 2 Joined Jul 29, 2013 Messages 22 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 147 Hi friends. Actually i m trying to do a simple compilation in Mikro c, But its showing errors.. i couldnt figure out the errors.. the program i entered compiled well in MPLAB.. this the program. #include<built_in.h> void main() { TRISB=0x01; PORTB=0; TRISC=0; PORTC=0; while(1) { if(RB0==1) {RC0=1; Delay_ms(3000); RC0=0; Delay_ms(3000); }} PLease help....
Hi friends. Actually i m trying to do a simple compilation in Mikro c, But its showing errors.. i couldnt figure out the errors.. the program i entered compiled well in MPLAB.. this the program. #include<built_in.h> void main() { TRISB=0x01; PORTB=0; TRISC=0; PORTC=0; while(1) { if(RB0==1) {RC0=1; Delay_ms(3000); RC0=0; Delay_ms(3000); }} PLease help....
Jul 30, 2013 #2 mithun mohan Junior Member level 3 Joined Jul 13, 2013 Messages 26 Helped 1 Reputation 2 Reaction score 1 Trophy points 3 Location India,malappuram Activity points 131 Probably you may need to include the header file(built_in.h) to your project from the include folder.Include that and compile again... best wishes...
Probably you may need to include the header file(built_in.h) to your project from the include folder.Include that and compile again... best wishes...
Jul 30, 2013 #3 andre_luis Super Moderator Staff member Joined Nov 7, 2006 Messages 9,593 Helped 1,190 Reputation 2,399 Reaction score 1,207 Trophy points 1,403 Location Brazil Activity points 55,671 What errors are happening ? +++
Aug 1, 2013 #4 V vinodhembedded Junior Member level 2 Joined Jul 29, 2013 Messages 22 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 147 hi guys, thanks for the reply.. i hav found the solution. Actually in mikro c we have to use PORTB.F0 instead of RB0.. thanks for the reply
hi guys, thanks for the reply.. i hav found the solution. Actually in mikro c we have to use PORTB.F0 instead of RB0.. thanks for the reply