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 resistance-capacitance coupling, Q. Explain Resistance-capacitance ...

Q. Explain Resistance-capacitance coupling? It is the most commonly used coupling in discrete device amplifier as it is least expensive and has satisfactory frequency response.

Filter implementation, Using the coefficients obtained for the noisy signal...

Using the coefficients obtained for the noisy signal and the FIR filter in Q1(c)(i) implement on the TMS320VC5510DSK. You can use and modify any of the files provided in the Board

Explain djnz instructions of intel 8051 microcontroller, Explain DJNZ instr...

Explain DJNZ instructions of intel 8051 microcontroller? a) DJNZ Rn, rel Decrement the content of the register Rn and jump if not zero. b) DJNZ direct, rel Decreme

DC Generator, What is Commutator? Explain in brief about the Commutator act...

What is Commutator? Explain in brief about the Commutator action in dc generator.

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

Electromagnetism, explain how can you find hysteresis loss from hysteresis ...

explain how can you find hysteresis loss from hysteresis loop

What is difference between 16 bit & 32 bit version of c/c++, What is the ma...

What is the main difference between 16 bit and 32 bit versions of C/C++ while using in line assembler. The 32-bit applications are written by using Microsoft Visual C/C++ for t

Memory address - address bus , Memory Address The memory  address is of...

Memory Address The memory  address is of 16  bits. It ranges from 0000?H to  FFFH 16bits address lines of 8085 microprocessor are  capable  of addressing 216 i e 65, 536, ( or

What is a co-processor, What is a co-processor? 8087 NDP (numerical da...

What is a co-processor? 8087 NDP (numerical data processor) is also termed as math co-processor that is used in parallel with the major processor for number crunching applicat

Find the rotor current, A 2200-V, 1000-hp, three-phase, 60-Hz, 16-pole, wye...

A 2200-V, 1000-hp, three-phase, 60-Hz, 16-pole, wye-connected, wound-rotor induction motor is connected to a 2200-V, three-phase, 60-Hz bus that is supplied by synchronous generato

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