Module 2 - Set 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

Module2

Timing and Delays


• Also called as software delays
• It is important to keep track with time.
• Real time example such as traffic light control,digital clock,process
control,serial communication etc
• NOP instruction takes 2 clock cycles of processor time to execute.so
by executing NOP instruction inbetween two instructions we can get
delay of 3 clock cycles.
• Timer delay can be done by using counters or nested loops
Programming Example
8086 ALP to add two numbers
Average of two no.
8086 ALP to find maximum in array
8086 ALP to search a number in the array
8086 ALP to find sum of numbers in the array
Separate even odd numbers in the array
https://www.youtube.com/watch?v=8juo1r
Tm0oM
Data Conversion
• Two ways to convert binary number into its ASCII equivalent:
By the AAM instruction if the number is less than 100.
By series of decimal divisions (divide by 10)
• ASCII to Binary
• Read hexadecimal Data
• Display Hexadecimal data
Reverse the word in String

You might also like