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

#title.Electrical Machine., ) Design a suitable double –layer lap winding f...

) Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots

ELECTRO MAGNETIC INDUCTION, If aluminium and copper pipes are of same lengt...

If aluminium and copper pipes are of same length and diameter ... same magnet dropped through them...in copper it takes more time to come out of other end, i myself have done this.

Obtain the laplace transform of the waveform, Q. Use MATLAB to obtain the L...

Q. Use MATLAB to obtain the Laplace transform of the waveform f(t) = [200t e -25t + 10 e -50t sin(25t)]u(t) which consists of a damped ramp and a damped sine. Also show the

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Encoder, decimal to BCD code encoder active low

decimal to BCD code encoder active low

Determine the input current and input voltage, Q. A 100-kVA, 2300:230-V, 60...

Q. A 100-kVA, 2300:230-V, 60-Hz, single-phase transformer has the following parameters: R 1 = 0.30 , R 2 = 0.003 , RC 1 = 4.5k, X 1 = 0.65 , X 2 = 0.0065 , and Xm 1 = 1.

Illustrate output-rate control, Q. Illustrate Output-rate control? A sy...

Q. Illustrate Output-rate control? A system is said to have output-rate damping when the generation of the output quantity in some way ismade to depend upon the rate atwhich th

Electric roadway system specification, The electric roadway system shall ut...

The electric roadway system shall utilize solar energy as the main power source. The electric roadway system shall negotiate with the power utility on backup power supply.

ADC and DAC design, I''m trying to design ADC using MAX1198 and DAC using I...

I''m trying to design ADC using MAX1198 and DAC using IDAC in Multisim 12 but none of them are working. I need some help in this regard

calculate the current, Find the Thévenin equivalent for the attache...

Find the Thévenin equivalent for the attached circuit and use this to calculate the current in the load.   Circuit information:- Load consists

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