06.11.2014 Views

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

Keil C51 Cross Compiler - gmitWEB

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Generating Delays<br />

• Software Delays<br />

– Uses looping mechanisms in C or assembly<br />

– Does not use any microcontroller hardware resources<br />

– Ties up the CPU while the delay is running<br />

– Delay produced depends on the compiler<br />

• Hardware Delays<br />

– Uses a microcontroller timer<br />

– Uses very little CPU resources (runs in background)<br />

Embedded Systems 2 2 - 24 C Programming

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

Saved successfully!

Ooh no, something went wrong!