hi, Need help in Mikro C programming..

Status
Not open for further replies.

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....
 

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...
 

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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…