Question: Write, implement and simulate an assembly language program for PIC microcontroller to accomplish following tasks: i) Glow an active low LED connected to PORT B.

Write, implement and simulate an assembly language program for PIC microcontroller to accomplish following tasks: i) Glow an active low LED connected to PORT B. 1 with active low switch connected to PORT B. 2. LED comes ON when switch is pressed and goes OFF when switch is released. ii) Glow an active low LED connected to PORT B. 1 with active low switch connected to PORT B. 2. LED comes OFF when switch is pressed and goes ON when switch is released. iii) Connect 8 active high LEDs to PORTD and 02 active high switches to PORTC. Write the program such as SW2 0 0 SW1 0 1 0 1 Output 0 (All LEDs OFF) Only Lower Nibble ON (4 LSB ON) Only Upper Nibble ON (4 MSB ON) All LEDs ON 1 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
