Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

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

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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top