Continue to Site

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.

Smooth Loop with mikroC ?

Status
Not open for further replies.

medorpg

Newbie level 5
Joined
Nov 4, 2009
Messages
9
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,338
Hi all,
I'm doing this project of a car that I control using a microcontroller (P18f452) + ENC28J60

the control is done using a web page on the microcontroller

how I can achieve that when a button on the web page is clicked, the car moves ?

I have done this inside the main while loop, Something like this

while(1){ //This is not an accurate code it's just for explanation

if(portb.f1==1) {
portc.f1==1;
}

}


After doing this code the microcontroller load goes high and the car moves isn't smooth

how can I achieve the same goal but in a smoother or smarter way ?

thank you so much.
 

It is hard to tell from the amount of code that you have posted, it would help us determine what is wrong if you post full code or sufficient amount to analyze.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top