a. For the PIC18F452, what pins are assigned to INTO and INT2 (1 point) b. What are the three main bits that are associa

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

a. For the PIC18F452, what pins are assigned to INTO and INT2 (1 point) b. What are the three main bits that are associa

Post by answerhappygod »

A For The Pic18f452 What Pins Are Assigned To Into And Int2 1 Point B What Are The Three Main Bits That Are Associa 1
A For The Pic18f452 What Pins Are Assigned To Into And Int2 1 Point B What Are The Three Main Bits That Are Associa 1 (38.02 KiB) Viewed 44 times
a. For the PIC18F452, what pins are assigned to INTO and INT2 (1 point) b. What are the three main bits that are associated with an interrupt source and briefly explain what each one is used for. (1 point) c. How do we make sure that a single interrupt is not recognized as multiple interrupts. (1 point) d. Using C language, write an initialization subroutine to set up INTO as rising-edge triggered and INT2 as falling-edge triggered interrupt inputs having high priorities. Explain what happens if both INTO and INT2 are activated at the same time. Also assume that INTO is checked first in the subroutine for the interrupt vector table. (6 points) e. Using C language, write the high priority interrupt subroutine (handler) that turns on the left LED (pin 3 on PORTA) when the interrupt initialized in part (C) is coming from INTO and turns on the middle LED (pin 2 on PORTA) when it comes from INT2. (4 points) f. What happens if another high-priority interrupt on INT1 is activated while the PIC18 is serving one of the high-priority interrupts on INTO or INT2. (2 points)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply