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 is output impedance, Q. What is Output Impedance? Output Impedance...

Q. What is Output Impedance? Output Impedance : The output impedance of an amplifier is a measure of the impedance or resistance. It has nothing to do with the actual loading t

Calculate reactive power to be delivered by the capacitor, A single-phase s...

A single-phase source delivers 100 kW to a load operating at 0.8 lagging power factor. In order to improve the system's efficiency, power factor improvement (correction) is achieve

Give the alternate functions for the port pins of port3, Give the alternate...

Give the alternate functions for the port pins of port3? RD - Read data control output. WR - Write data control output. T1 - Timer / Counter1 external input or test pin.

Evaluate the current flowing in the direction from b to a, Q A beam contain...

Q A beam containing two types of charged particles is moving from A to B. Particles of type I with charge +3q, and those of type II with charge -2q (where -q is the charge of an el

Find a local s-matrix for each triangle, Figure shows two first-order trian...

Figure shows two first-order triangular finite elements used to solve the Laplace equation for electrostatic potential.  Find a local S-matrix for each triangle, and a global S-mat

Determine the shaft power output, Determine the shaft power output: A ...

Determine the shaft power output: A 6-pole, 50 Hz, 3-phase induction motor running on full load develops a useful torque of 180 Nm when the rotor emf frequency is 2 Hz. Determ

What do you mean by counters, Q. What do you mean by Counters? The shif...

Q. What do you mean by Counters? The shift register can be used as a counter because the data are shifted for each clock pulse. A counter is a register that goes through a pred

Telecommunication, Design a low noise amplifier using an Infineon RF transi...

Design a low noise amplifier using an Infineon RF transistor BFP640. The amplifier is to be used to amplify the L2 GPS signal and so the centre frequency is 1227MHz and bandwidth 4

Design a mealy system, Design a Mealy system whose output is 1 iff there ha...

Design a Mealy system whose output is 1 iff there have been exactly two 1's followed by a 0 and then a 1. (a) Assume overlapping is allowed (b) Assume overlapping is not

Transistor terminals in bjt, Q. Transistor terminals in BJT ? BJTS have...

Q. Transistor terminals in BJT ? BJTS have three terminals namely base terminal, emitter terminal and collector terminal .The emitter layer is a source of charge carriers and i

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