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

Bonding forces and energy bands in solids, Bonding Forces and Energy Bands ...

Bonding Forces and Energy Bands in Solids Electrons are controlled to sets of discrete energy levels in atoms, with large gaps among them in which no energy state is obta

Transformer, 1 diagram basic layout of a simple transformer

1 diagram basic layout of a simple transformer

Square wave generator ( 10 MHz to 20MHz), I need a simple design of above ...

I need a simple design of above mentioned , this oscillator will be used in a wireless power transmission

Determine the rated stator current, A three-phase, wye-connected, 2300-V, f...

A three-phase, wye-connected, 2300-V, four pole, 1000-kVA, 60-Hz synchronous machine has a synchronous reactanceXs = 5, a field resistance Rf = 10, and an approximately linear ma

Calculate the dc voltage appearing across the brushes, The armature of a fo...

The armature of a four-pole dcmachine has a simplex lap wound commutator winding (which has the number of parallel paths equal to the number of poles) with 120 two-turn coils. If t

Find the bandwidth and the power content of modulated signal, The normalize...

The normalized signal xn(t) has a bandwidth of 10 kHz and its power content is 0.5 W, while the carrier Ac cos 2πfct has a power content of 200W. Find the bandwidth and the power c

Chemical vapour deposition, Explain chemical vapour deposition method for t...

Explain chemical vapour deposition method for the preparation of nanomaterial and its properties

Purpose of customer review in project management, Q. Purpose of Customer Re...

Q. Purpose of Customer Review in project management? The Customer in conjunction with the Project Manager/ Engineer decides the timing of the IFA review. This review is cond

Basic principles of electrical engineering, What is ideal and real sources?...

What is ideal and real sources? Source conversion? Nodal voltage method for d.c circuit?

Explain the alphanumeric coding - bcd to decimal conversion, Explain the Al...

Explain the Alphanumeric Coding - bcd to decimal conversion? For the inherently binary world of computer, it is necessary to put all symbols, letters, numbers, and so on into bin

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