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

Internal frequency compensation of operational amplifier, Q. Internal Frequ...

Q. Internal Frequency Compensation of operational amplifier? Some op amps, such as the 741, have internal RC networks which are intentionally designed to reduce gain at high fr

Show the analog voltage, a) Write a program that will read and show the ana...

a) Write a program that will read and show the analog voltage on pin PE7 approximately once every second. b) Write a program that will read and show in decivolts the analog volt

Determine the node voltage, Determine the node voltage: Determine the ...

Determine the node voltage: Determine the node voltage V and then current flowing through each element by using KCL. Solution Apply KCL at the node whose voltage is V.

Square wave, Connect the TTL output (square wave) of the "Audio Oscillator"...

Connect the TTL output (square wave) of the "Audio Oscillator" to the "Scope Selector". Adjust the frequency of the square wave to 2 kHz. Observe and record the time domain pict

Find the total per-phase inductance, A 300 km, 3-phase, 50Hz transmission l...

A 300 km, 3-phase, 50Hz transmission line has spacing as shown in Figure. Each phase of the line consists of a bundle of three conductors. (a) Find the total per-phase inductanc

1- phase full bridge inverter with r- load , 1- phase  Full Bridge Invert...

1- phase  Full Bridge Inverter with R- Load 1-phase full  bridge inverter with resistive load R i it has  advantage over 1-? half  bridge  inverter that it does  not require

Calculate the analog output voltag, For the 3-bit 2 n -R D/A converter of ...

For the 3-bit 2 n -R D/A converter of Figure, calculate the analog output voltage when the input is (a) 100, and (b) 010. Solution a. For the binary input 100, switches con

Explain the properties of low resistivity materials, Explain the properties...

Explain the properties of low resistivity materials. Low resistivity materials: The conducting materials containing resistivity from 10 -8 to 10 -6 ohm-m come under this cl

Designing of a 2 way cross-over circuit for loudspeaker, Loudspeakers using...

Loudspeakers using single driver are unable to cover the entire frequency band from low frequency to high frequency. Sometimes multiband frequency is required for the bass enhancem

Determine the signal at the receiver output, Q. An FM station's modulator h...

Q. An FM station's modulator has a sensitivity k FM = 5π × 10 4 rad/s·V. A receiver uses a discriminator that has a gain constant of 10 -5 /π V·s/rad. Neglecting noise, determin

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