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

Define the signals in time domain, Define the Signals in Time Domain? T...

Define the Signals in Time Domain? The time domain is the type of visualization that most people are familiar with. This method shows variations of a signal with time. The most

Step up chopper - power supplies , Step Up Chopper In this  chopper av...

Step Up Chopper In this  chopper average output  voltage  is greater than  input  voltage. The circuit  different  mode  of operation and  current  waveforms are show. When

Characteristics of common drain amplifier, Normal 0 false fal...

Normal 0 false false false EN-IN X-NONE X-NONE

Determine transformer turns ratio, A flyback converter is to be designed so...

A flyback converter is to be designed so that it operates in continuous "current" (flux) mode with a duty cycle of D = 0.45 when input voltage V s = 48 V, output voltage V o = 30

Explain crystal oscillator, Q. Explain Crystal Oscillator The frequency...

Q. Explain Crystal Oscillator The frequency of a crystal-controlled oscillator is held constant to a high degree of accuracy by the use of a quartz crystal. The frequency depen

Home energy management.., I need help to build a circuit diagram for home e...

I need help to build a circuit diagram for home energy management.It includes load controllers,a central system in which we should programme all of the control commands,and a two w

Perform analysis and calculate the values of vgs, A small signal amplifier ...

A small signal amplifier circuit is given in figure Q 4. The values of RD and RS must be set such that the gain of the system is 8. It is also known that Vgs = ¼ Vp. a). Per

Basic macroeconomic policy trilemma for open economies, Q. Explain th...

Q. Explain the basic macroeconomic policy trilemma for open economies. Answer: Of three goals mainly countries share - independence in financial policy and stability in t

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