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

Counter-controlled analog to digital converter, Q. Counter-controlled analo...

Q. Counter-controlled analog to digital converter? Figure shows the block diagram of a counter-controlledA/Dconverter. Resetting the binary counter to zero produces D/A output

Compute l per unit length for plate, Q. The inductance per unit length in H...

Q. The inductance per unit length in H/mfor parallel plate in?nitely long conductors in air is given by L = µ 0 d/w = 4π×10 -7 d/w, where d and w are inmeters.Compute L (per unit

When input is a triangular wave, Q. When input is a triangular wave. W...

Q. When input is a triangular wave. When the input fed to differentiating circuit is a triangular wave, the output will be a rectangular wave. During the period OA of

Designated consumers - features of energy conservation, Designated Consumer...

Designated Consumers - Features of Energy Conservation The Act gives the list of designated consumers, which involves the energy intensive industries, Railways, Port Trust, Tr

Explain what happen as the frequency increases, Question: (a) A typica...

Question: (a) A typical RF filter is made up of sections using circuit components. One example of a section is the Inductor-Capacitor (L-C) section. State two other types of

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

The central processing unit - stepper motor , The Central Processing Unit ...

The Central Processing Unit The  central processing  unit  is the brain of whole PLC.  The CPU  consist of a microprocessor memory  chip  and other  integrated circuits to con

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