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

What is the function of 8254 programmable interval timer, What is the funct...

What is the function of 8254 Programmable Interval Timer? 8253 or 8254 Timer Description and Initialization PTI that is programmable Interval Timer/Counter) 8253

Find kfm for the modulator using carsons rule, Q. A commercial FMstation br...

Q. A commercial FMstation broadcasts a signal with 180-kHz bandwidth when |f(t)|max = 2 V. Find kFM for the modulator if the spectral extent of f (t) is 30 kHz, by using Carson's r

Bathub curve, what is an useful life time in bathtub curve?

what is an useful life time in bathtub curve?

Explain temperature effect on electrical conductivity metals, Explain the e...

Explain the effect of temperature on electrical conductivity of metals. As the temperature is increased, there is a greater thermal motion of atoms which decreases the regulari

Determine the bits required for a d/a converter, Q. Determine the bits requ...

Q. Determine the bits required for a D/A converter to detect 1-V change when V ref = 15 V.

Explain about the typical embedded system hardware unit, Explain about the ...

Explain about the typical embedded system hardware unit. Typical Embedded System Hardware Unit: Program Flow and data path Control Unit (CU): comprises a fetch unit for fetc

What is non-maskable interrupts, An interrupt which can be never be turned ...

An interrupt which can be never be turned off (ie. disabled) is called as Non-Maskable interrupt.

Lack of accountability - high technical usage, Lack of Accountability - Hig...

Lack of Accountability - High Technical Usage In huge, complex and widespread ST&D networks such as ours, the subsequent factors pose problems in arriving at reasonable estima

What is the probability that a call will be blocked, A three stage switchin...

A three stage switching structure is to accommodate N = 128 input and 128 output terminals. For 16 first stage and 16 last stage, verify the number of cross points for nonblocking.

Consider circuit to obtain complete solution for the voltage, Consider the ...

Consider the circuit of Figure (a) and obtain the complete solution for the voltage v C (t) across the 5-F capacitor and the voltage v x (t) across the 5- resistor.

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