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

Find the core radius necessary for a single mode operation, Find the core r...

Find the core radius necessary for a single mode operation at 1320nm of a step index fibre with n 1 =1.48 and n 2 =1.478. What are the N.A and maximum acceptance angle for this fib

Give a block diagram for amodulo-5 binary ripple counter, Q. Give a block d...

Q. Give a block diagram for amodulo-5 binary ripple counter using JKFFs and draw its timing diagram.

Present and future trends in power systems, Q. Present and Future Trends in...

Q. Present and Future Trends in power systems? According to the Edison Electric Institute, electricity's share of U.S. primary energy was almost 36% in 1989, and it is likely t

Development of PLC- controlled crystallization model, 1.Describe the techno...

1.Describe the technological process of crystallization. 2. Compose the requirements to developed crystallization model.stion..

Calculate the armature current, A DC shunt motor rotating at 1560 RPM is su...

A DC shunt motor rotating at 1560 RPM is supplied from a 240-V source. The line current supplied to the motor is equal to 27 A. The shunt field resistance of the motor is equal to

moving average model, Altavox is a manufacturer and distributor of a lot o...

Altavox is a manufacturer and distributor of a lot of electronic instruments and devices, including digital/analog multimeters, function generators, oscilloscopes, frequency counte

What are the flags used in 8086, In 8086 Carry flag, Parity flag, Auxiliar...

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Direction flag Interrupt flag and Sign flag.   Mainly there ae two types of int

Demultiplexer, full sub tractor using demultiplexer

full sub tractor using demultiplexer

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 signal bandwidth and the amplitudes, Determine the signal ban...

Determine the signal bandwidth and the amplitudes, Computer Networking

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