All Exams Test series for 1 year @ ₹349 only
Question

The number of objects crossing a window sequentially at variable speed is to be counted using an interrupt in the 8085 microprocessor. The objects are sensed by an optical source and a detector with associated signal conditioning circuit. The circuit produces a logic high output as long as the object is in front of the window, and this output is used to interrupt the processor. The duration of an object being in front of the window is in the range of $100 ms$ to $2 s$. The processor takes $1 ms$ to process the input after an interrupt. The best choice of interrupt for an error free counting is

The correct answer is
INTR

Interrupt Selection for Object Counting

The task is to count sequential objects crossing a window using an 8085 microprocessor interrupt. Key parameters are: object presence duration ($100 ms$ to $2 s$), processor interrupt handling time ($1 ms$), and the need for error-free counting amidst variable speeds.

Understanding 8085 Interrupt Types

The 8085 has maskable hardware interrupts (RST 5.5, RST 6.5, RST 7.5) and a general-purpose interrupt request (INTR).

  • Level-Triggered Interrupts (RST 5.5, RST 6.5): These interrupts remain active as long as the interrupt line is asserted (high). They are less suitable for counting distinct, sequential events if the processor is busy, as they might miss intermediate events if the line stays high.
  • Edge-Triggered Interrupts (RST 7.5): RST 7.5 is edge-triggered (positive edge) and features an internal flip-flop to latch the interrupt request. This makes it effective at detecting the start of each event, even if the processor is busy. It's a strong candidate for sequential event counting.
  • General-Purpose Interrupt (INTR): INTR is also typically used with external edge-detection circuitry. It is highly flexible, requiring external hardware to acknowledge the interrupt and provide the specific instruction (like RST or CALL) to the processor.

Choosing the Best Interrupt for Error-Free Counting

For error-free counting of sequential objects with varying speeds and durations, edge-triggered interrupts are preferred over level-triggered ones. This ensures each distinct object arrival is initially detected.

Comparing RST 7.5 and INTR:

  • RST 7.5's internal latching reliably captures the start of each object's passage, making it suitable for many sequential counting tasks.
  • However, the INTR pin offers the maximum flexibility. For guaranteed error-free counting under potentially challenging conditions (e.g., extremely rapid succession of objects, or complex timing interactions between object duration and processor load), custom external hardware connected to INTR can be designed. This hardware can implement sophisticated request buffering, unique instruction generation for each event, or precise timing logic that ensures no object is missed. This adaptability makes INTR the superior choice when absolute error-free counting is paramount and needs to accommodate the most demanding scenarios.

Therefore, INTR provides the necessary flexibility for robust, error-free object counting.

Was this answer helpful?

Important Questions from Architecture of 8085

  1. What is the maximum addressing capability of Intel 8085?

  2. Which of the following interrupts is non-maskable in 8085 microprocessor?

  3. In a microprocessor, the term 'pipelining' refers to

  4. The clock frequency of an 8085 microprocessor is 5 MHz. If the time required to execute an instruction is 1.4 μs, then the number of T-states needed for executing the instruction is

  5. In an 8085 microprocessor, which one of the following instructions changes the content of the accumulator?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App