Repeat problem using interrupt io by connecting the


Question: Repeat Problem using Interrupt I/O by connecting the comparator output to INT1. Note that RB1 is also multiplexed with INT1. Write main program at 0x80 and interrupt service routine at 0x150 in PIC18F assembly language. The main program will configure the I/O ports, enable interrupt INT1, initialize STKPTR to 0x30, turn the LED OFF, and then wait for interrupt. The interrupt service routine will turn the LED ON and return to the main program at the appropriate location so that the LED is turned ON continuously until the next interrupt.

Problem: In Figure, the PIC18F4321 is required to turn on an LED connected to bit 1 of Port C if the comparator voltage Vx > Vy; otherwise, the LED will be turned off. Write a PIC18F assembly language program at address 0x200 to accomplish this using conditional or polled I/O.

590_8.12.png

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Repeat problem using interrupt io by connecting the
Reference No:- TGS02271293

Expected delivery within 24 Hours