Write a control word for counter 1 of 8253 / 8254, Electrical Engineering

Assignment Help:

Write a control word for counter 1 of 8253 / 8254 that selects the 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 that is located at address 01000 h of memory address space. Assume that 8253 / 8254 is attached to the I/O bus of the CPU and the address inputs A0 and A1 are supplied by A2 and A3 respectively.

Ans:

1593_8253 and 8254.png

8253/54 Word Format

Depends on the above specified conditions and assuming counter 0 is utilized. The word becomes 0001 1010h.

Know the port address

- The CS is enabled while A7=1

- The Control Register is selected while A1 and A0 =1

- Assuming unemployed address lines A6 to A2 are at logic 0, 

Then port address will be as given 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 1 of 8253 / 8254

What are the features used mode 1 in 8255, What are the features used mode ...

What are the features used mode 1 in 8255? Two groups - group A and group B are available for stored data transfer. 1. Each group have one 8-bit data I/O port and one 4-bit

What do you mean by induction, Q. What do you mean by Induction? The es...

Q. What do you mean by Induction? The essentials for producing an emf bymagneticmeans are electric andmagnetic circuits,mutually interlinked. Figure (a) shows a load (or sink o

Find the current in each resistor, For the network shown in Figure, find th...

For the network shown in Figure, find the current in each resistor by means of nodal analysis.

Transistor hybrid model, Transistor Hybrid model:- Make Use of h - par...

Transistor Hybrid model:- Make Use of h - parameters to explain a transistor have the following benefits. a)      h - Parameters are real numbers that are up to radio frequ

Carry flag - sub subtract instruction , Carry Flag CY is  reset  as e...

Carry Flag CY is  reset  as explained  above.  ( in chapter 1 we have  sen in the 2 complement  methods of subtraction that  the carry  is set  when the result is positive. He

Illustrate bandstop filter, Q. The dual situations is shown in Figure , in ...

Q. The dual situations is shown in Figure , in which a high-pass and a low-pass filter are connected in parallel to produce a bandstop filter. With ω CLP = 10 CHP = 50, ω 0

Short circuit, what is the time of short circuit ?

what is the time of short circuit ?

Npn bipolar junction transistor, NPN: Figure: The symbol of an ...

NPN: Figure: The symbol of an NPN Bipolar Junction Transistor. NPN is one of the two sorts of bipolar transistors, where the letters "N" (negative) and "P" (positi

Digital modulation using matlab, hi I want the code of digital modulation i...

hi I want the code of digital modulation in matlab with inputs binary bit stream and M-ar

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