[PDF] [PDF] COUNTERS AND TIME DELAYS

TIME DELAY USING A REGISTER PAIR Label Opcode Operand Comments T states LXI B,2384H Load BC with 16-bit count 10 LOOP: DCX B Decrement 



Previous PDF Next PDF





[PDF] Programs for 16 bit arithmetic operations for 8086 - NARSIMHA

a) Addition: i)16 bit addition: AIM: - To write an assembly language program for Addition of two 16-bit numbers APPARATUS: 1 8086 microprocessor kit/MASM  



[PDF] Basic Microprocessors - Gujarat University

Explain difference between 8 bits and 16 bits microprocessors Q 5 Classify Q 11 Write a program to generate a time delay using a register pair Q 12 Explain Q 13 Explain memory mapping of microprocessor 8086 Discuss base address 



[PDF] 8086 assembler tutorial for beginners (part 1) what is assembly

d16 - stays for 16 bit signed immediate displacement (for example: 300, 5517h, - 259 you can copy paste the above program to emu8086 code editor, and press [Compile step delay to zero), otherwise emulator will step through each



[PDF] COUNTERS AND TIME DELAYS

TIME DELAY USING A REGISTER PAIR Label Opcode Operand Comments T states LXI B,2384H Load BC with 16-bit count 10 LOOP: DCX B Decrement 



Teaching microprocessor design using the 8086 - IEEE Xplore

combined to form 16 bit registers for addressing whereas all the 8086 registers are 16 bit wide Whereas the 8085 has a program counter register and a stack 



[PDF] Microprocessor - Darshan Institute of Engineering and Technology

program, user feeds the program in RAM memory and executes it It has 16-bit address bus and hence can address up to 216 = 65536 bytes READY (Input) This signal is used to delay the microprocessor read or write cycles until as low- In 8086 CPU is divided into two independent functional parts BIU and EU



[PDF] 8086 16-BIT HMOS MICROPROCESSOR 8086/8086-2/8086-1

The Intel 8086 high performance 16-bit CPU is available in three clock rates: 5, 8 and 10 cally selecting segment registers, programs are Data Valid Delay



[PDF] Complete 8086 instruction set - Gabriele Cecchetti

Over (to make macro code execute at maximum speed set step delay to zero), otherwise emulator will step through each instruction of a macro Here is an 



[PDF] 8086 Microprocessor (cont) - NPTEL

from memory, the BIU is free to look ahead in the program by prefetching the next With its 16 bit data bus, the BIU fetches two instruction bytes in a single 



[PDF] LECTURE NOTES ON COURSE CODE:BCS- 301 - VSSUT

In 1978, Intel introduced the 16 bit microprocessor 8086 and 8088 in 1979 For example, let us assume that a delay is needed three times in a program

[PDF] 16 centimes en toutes lettres

[PDF] 16 en lettre francaise

[PDF] 16 weeks pregnant blood when i wipe

[PDF] 160 country code phone

[PDF] 165 rue de javel 75015 paris

[PDF] 17 000 en anglais en lettre

[PDF] 17 50 euros en lettre

[PDF] 17 rue fondary 15e arr. 75015 paris france

[PDF] 17 rue fondary 75015 paris france

[PDF] 17625 model answer paper pdf download

[PDF] 18 cours de québec 33300 bordeaux

[PDF] 18 en lettre francais

[PDF] 18 hour shift legal

[PDF] 1800 contacts address

[PDF] 1800 contacts customer service phone number

Dronacharya Group of Institutions

COUNTERS AND TIME

DELAYS

LECTURE 3

A counter is designed simply by loading appropriate number into one of the registers and using INR or

DNR instructions.

Loop is established to update the count.

Each count is checked to determine whether it has reached final number ;if not, the loop is repeated.

COUNTER AND TIME DELAYS

TIME DELAY

Procedure used to design a specific delay.

A register is loaded with a number , depending on the time delay required and then the register is

decremented until it reaches zero by setting up a loop with conditional jump instruction.

Time delay using

One register:

LABEL OPCODE OPERAND COMMENTS T

STATES

MVI C,FFH ;Load register C 7 DCR C ;Decrement C 4 JNZ LOOP ;Jump back to 10/7 decrement C

Clock frequency of the system = 2 MHz

Clock period= 1/T= 0.5 s

Time to execute MVI = 7 T states * 0.5= 3.5 s

Time Delay in Loop TL= T*Loop T states * N10

= 0.5 * 14* 255 = 1785 s = 1.8 ms N10 = Equivalent decimal number of hexadecimal count loaded in the delay register

TLA= Time to execute loop instructions

=TL (3T states* clock period)=1785-1.5=1783.5 s LOOP:

TIME DELAY USING A REGISTER PAIR

Label Opcode Operand Comments T states LXI B,2384H Load BC with 16-bit count 10

LOOP: DCX B Decrement BC by 1 6

MOV A,C Place contents of C in A 4 ORA B OR B with C to set Zero flag 4 JNZ LOOP if result not equal to 0 , 10/7 jump back to loop

Time Delay in Loop TL= T*Loop T states * N10

= 0.5 * 24* 9092 = 109 ms

Time Delay using a LOOP within a LOOP

MVI B,38H 7T Delay in Loop TL1=1783.5 s LOOP2: MVI C,FFH 7T Delay in Loop TL2= (0.5*21+TL1)*56

LOOP1: DCR C 4T =100.46ms

JNZ LOOP1 10/7 T

DCR B 4T

JNZ LOOP 2 10/7T

Flowchart

for time delay with two loops

Flowchart of a counter with time delay

ILLUSTRATIVE PROGRAM: HEXADECIMAL

COUNTER

Write a Program to count continuously from FFH to 00H using register C with delay count 8CH between each count and

display the number at one of the output ports.

MVI B,00H

NEXT: DCR B

MVI C,8CH

DELAY: DCR C

JNZ DELAY

MOV A,B

OUT PORT#

JMP NEXT

ILLUSTRATIVE PROGRAM: ZERO TO NINE

(M

ODULO TEN) COUNTER

START: MVI B,00H

MOV A,B

DSPLAY: OUT PORT #

LXI H,16-bit

LOOP: DCX H

MOV A,L

ORA H

JNZ LOOP

INR B

MOV A,B

CPI 0AH

JNZ DSPLAY

JZ START

Start

Initialize counter

Display Output

Load Delay register

Decrement Delay register

Is Delay register=0?

Next Count

Is count =0AH?

If yes, Initialize counter

If no, Display Output

ILLUSTRATIVE PROGRAM:

GENERATING PULSE WAVEFORMS

Generates a continuous

square wave with the period of 500 Micro Sec. Assume the system clock period is

325ns, and use bit D0

output the square wave.

Delay outside loop: T0=46

T states * 325=14.95 micro

sec.

Loop delay: TL=4.5 micro

sec

Total Td=To+TL

Count=34 H

DEBUGGING COUNTER AND

TIME

DELAY PROGRAMS

It is designed to count

from 100(base 10) to 0 in Hex continuously with a 1 second delay between each count.

The delay is set up

using two loops. The inner loop is executed to provide approximately

100ms delay and is

repeated 10 times, using outer loop to provide a total delay of 1 second.

The clock period of

system is 330ns.quotesdbs_dbs3.pdfusesText_6