06.11.2014 Views

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Continuous Loops<br />

• An embedded program never ends<br />

– It must contain a main loop than loops continuously<br />

– e.g. a washing machine program continually tests the switch inputs<br />

• A continuous loop is programmed using a loop with no condition<br />

– while(1){ }<br />

– while(1);<br />

– for(;;){ }<br />

– for(;;);<br />

Embedded Systems 2 2 - 14 C Programming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!