Write a control word for counter, Electrical Engineering

Assignment Help:

Q. Write a control word for counter 1 of 8253 / 8254 that selects following options:  load least significant byte only, mode 5 of operation and binary counting. Then write an instruction sequence that will load the control word into 8253 / 8254 which is located at address 01000 h of memory address space.  Suppose that 8253 / 8254 is attached to I/O bus of the CPU and address inputs A0and A1are supplied by A2 and A3.

Ans:

2114_Write a control word for counter.png

Based on above given conditions and presuming counter 0 is used. Control word becomes 0001 1010h.

Identify the port address

- CS is enabled when A7=1

- Control Register is selected when A1 and A0 =1

- Presuming unused address lines A6 to A2 are at logic 0, 

Then port address would be as below

   Control Register = 83H

   Counter 2 = 82H

   MVI A, B0H

   OUT 83H

   MVI A, LOWBYTE

   OUT 82H

   MVI A, HIGHBYTE

   OUT 82H

  LOOP: MVI A, 80H

   OUT 83H

   IN 82H

   MOV D, A

   IN 82H

   ORA D

   JNZ LOOP

   RET


Related Discussions:- Write a control word for counter

Determine variation of large scale integration chips, Large scale integrati...

Large scale integration chips have between (A) Less than 10 components.         (B) 10 and 100 components. (C) 100 and 1000 components.       (D)  More than 1000 componen

Ac supply, its defination and mathematical expression if any

its defination and mathematical expression if any

The parallel resistance rule, The Parallel Resistance rule ...

The Parallel Resistance rule Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Spectral analysis and signal bandwidth, Q. Show Spectral Analysis and Signa...

Q. Show Spectral Analysis and Signal Bandwidth? Spectral analysis is based on the fact that a sinusoidal waveform is completely characterized by three quantities: amplitude, ph

Armature reaction, cross magnetizing components of armature reaction is.......

cross magnetizing components of armature reaction is...........

Tvm, Why is the signal first attenuated and then amplified?

Why is the signal first attenuated and then amplified?

Schematic diagram of a system in which the d/a converter, Q. Develop a sche...

Q. Develop a schematic diagram of a system in which the D/A converter of Figure can be employed in a digital voltmeter.

Determine the turns-ratio for the transformer, a) A 230 V/25V, 50 HZ transf...

a) A 230 V/25V, 50 HZ transformer with a rated primary current of 1,2 Amps is used to supply a number of 25 V, 30 Watt halogen light bulbs. Assuming an ideal transformer and that

Explain how materials can be classified in three groups, Explain how materi...

Explain how materials can be classified into three groups on the basis of atomic structure. An atom has a positively charged nucleus surrounded through a group of negatively ch

What do you mean by superposition and linearity, Q. What do you mean by Sup...

Q. What do you mean by Superposition and linearity? Mathematically a function is said to be linear if it satisfies two properties: homogeneity (proportionality or scaling) and

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd