Saturday 8 February 2014

Implementing Time Delay in PIC Assembly program

Delay in Assembly Language Program 

Delay is indispensable in any functional piece of code developed for a given embedded system. Delay in assembly program is not just easy as in high level programs such as embedded C. Delay in assembly is normally done by executing lines of instructions in a loop to realize a given delay.

Assembly language tutorial for PIC Micros

Why Assembly Language

Assembly programming language is normally developed for a specific machine architecture. This is unlike high level programming language whose programs can be ported to different machine architectures. Though C language is popularly used in most embedded systems design, but Assembly is still preferred by many programmers. Assembly has closer access to hardware resulting to more efficient code and low memory usage when compared to C.