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

Explain the programming of 8254 microprocesser, Explain the programming of ...

Explain the programming of 8254 microprocesser. 8254 Programming: All counters are individually programmed through writing a control word, followed with the initial count.

Components of plc - stepper motor , Components of PLC There are follow...

Components of PLC There are followings  three main  components of PLC : a.The power supply and rack. b.The central  processing  unit ( CPU) c.The input / output  (I/O

Define electrical energy, Electrical energy If the power is measured in...

Electrical energy If the power is measured in watts and the time in seconds then the unit of energy is watt- seconds or Joules.

Find the secondary and leakage path flux densities , Questions: A magne...

Questions: A magnetic core with a primary winding with 40 turns and a secondary winding with 80 turns has a leakage path dominated by an air gap as shown in the figure. The iro

Permeability and b-h curve for different magnetic materials, Permeability a...

Permeability and B-H curve for different magnetic materials Permeability is the ability of a magnetic circuit to create magnetic flux lines in a material or substance that prod

Determine the range of the step size, 1. (a) Consider a sinusoidal signal m...

1. (a) Consider a sinusoidal signal m(t) = A cos(2 Π f m t) applied to a delta modulator with step size . Determine the range of the step size so that slope overload will be avoide

Electronic instrumentation and measurements, why is a delay line used in th...

why is a delay line used in the vertical selection of oscilloscope?

Dc motors, costruction and working of dc motor

costruction and working of dc motor

Tariff filing, Tariff Filing Asset-wise details for each business ...

Tariff Filing Asset-wise details for each business of licensee; Audited accounts and financial statements, including cash flows for the preceding years and monthly bal

Obtain the expression for the steady-state coil current, Q. Let the coil of...

Q. Let the coil of the solenoid of have a resistance R and be excited by a voltage v = Vm sin ωt. Consider a plunger displacement of g = g 0 . (a) Obtain the expression for the

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