The pic18f4321 microcontroller is required to drive the


Question: The PIC18F4321 microcontroller is required to drive the LEDs connected to bit 0 of Ports A and B based on the input conditions set by switches connected to bit 1 of Ports A and B. The I/O conditions are as follows:

• If the input at bit 1 of Port A is HIGH and the input at bit 1 of Port B is LOW, the LED at Port A will be ON and the LED at Port B will be OFF.

• If the input at bit 1 of Port A is LOW and the input at bit 1 of Port B is HIGH, the LED at Port A will be OFF and the LED at Port B will be ON.

• If the inputs of both Ports A and B are the same (either both HIGH or both LOW), both LEDs of Ports A and B will be ON.

Write a PIC18F assembly language program to accomplish this.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: The pic18f4321 microcontroller is required to drive the
Reference No:- TGS02271314

Expected delivery within 24 Hours