Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 . 1 0 Lab Exercises and Assignments L 6 . 1 Simple interrupt. Connect the ? b a r ( I R Q )

6.10 Lab Exercises and Assignments
L6.1 Simple interrupt. Connect the ?bar(IRQ) pin of the demo board to a debounced switch that can generate a negative-going pulse. Write a main program and an IRQ service routine. The main program initializes the variable irq_cnt to 10, stays in a loop, and keeps checking the value of irq_cnt. The ?bar(IRQ) service routine simply decrements irq_cnt by 1 and returns.
The lab procedure is as follows:
268
Chapter 6 Interrupts and Resets
Step 1
Connect the ?bar(IRQ) pin of the demo board to a debounced switch that can generate a clean negative-going pulse.
Step 2
Enter the main program and ?bar(RQ) service routine, assemble them, and then download them to the single-board computer. Remember to enable the ?bar(IRQ) interrupt in your program.
Step 3
Pulse the switch ten times.
If everything works properly, you should see the BUFFALO monitor prompt after ten pulses applied to the ?bar(IRQ) pin.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions