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

Illustrate working of direct-coupled amplifiers, Q. Illustrate working of D...

Q. Illustrate working of Direct-coupled Amplifiers? Direct-coupled Amplifiers : The following figure shows a direct-coupled amplifier consisting of two stages. A dc voltage i

Explain about delay system, Q. Explain about Delay System? Delay Syste...

Q. Explain about Delay System? Delay System: A class of telecommunication networks, like data networks, places the message or call arrivals in a queue in the

Subtract registers and borrow from accumulator, Subtract Registers and Borr...

Subtract Registers and Borrow from Accumulator The  contents of the  register  and borrow  flag  are subtracted from   the contents of the accumulator and the  result is  store

Critical field circuit resistance and critical speed, Q.   Define and expla...

Q.   Define and explain the critical field circuit resistance and critical speed of a DC shunt generator.   Ans. The OCC and R - line for a DC shunt generator. As, R f is

Wireless and communication, With a maximum excess delay of and a chip durat...

With a maximum excess delay of and a chip duration of , the multipath components fall in delay bins. This means that we experience leakage of energy between chips and the channel i

Coupling, different coupling methods

different coupling methods

How many machine cycles does 8085 have, How many machine cycles does 8085 h...

How many machine cycles does 8085 have, mention them The 8085 have seven machine cycles. They are Opcode fetch Memory read Memory write I/O read I/O

Determine the advantages of e-nrz over nrz, 1. A modi?ed NRZ code known as ...

1. A modi?ed NRZ code known as enhanced-NRZ (E-NRZ) operates on 7-bit words; invert- ing bits 2,3,6 and 7; and adding one parity bit to each word. The parity bit is chosen to make

Give the applications of pvc, Give the applications of PVC. PVC- It is...

Give the applications of PVC. PVC- It is acquired from polymerisation of hydrogen chloride and acetylene in the presence of a catalyst as peroxides at about 50 0 C. It is e

Show application of bistable multivibrator, Q. Show Application of bistable...

Q. Show Application of bistable multivibrator? · Bistable multivibrator is used as counters and storing of binary information. · It is used as frequency divider in timing ci

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