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 do you mean by digital building blocks, Q. What do you mean by Digital...

Q. What do you mean by Digital Building Blocks? Whereas a continuous change from one value to another is the essential characteristic of an analog signal and continuous-state (

Database resources, HELLO.can I have a short note on database resources

HELLO.can I have a short note on database resources

Explain role/purpose of dummy coils in dc machine winding., Dummy coils : ...

Dummy coils : These coils are used with wave winding and resorted to when the requirement of the winding are not met by the standard armature punching available in armature win

Cro, role of trigger circuit in cro

role of trigger circuit in cro

Electro-magnetic interference, (a) Give three different ways how electro-...

(a) Give three different ways how electro-magnetic interference can be reduced in twisted pairs based transmission. (b) Noise are unwanted signals affecting transmission. Lis

Commutation in dc machines, Currents induced in armature conductors of a d....

Currents induced in armature conductors of a d.c. generator are alternating. To make their flow unidirectional in the external circuit, we need a commutator. Moreover, these curren

Field-effect transistor, Field-Effect Transistor: The field-effect tra...

Field-Effect Transistor: The field-effect transistor that is abbreviated as FET relies on an electric field to control the shape and therefore the conductivity of a channel of

Define multiplexing, 1 Explain the advantages and disadvantages of optical ...

1 Explain the advantages and disadvantages of optical fiber versus copper Medium of communication 2 Define multiplexing. Explain TDM 3 Describe the protocol architecture and

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