Tutorial (3): PIC input/Output Ports with Addition

1 month ago
46

The tutorial presents the following exercises:

1) Four LEDs are connected to PORTB (RB3:RB0) using PIC 16F84A. Use the MPLAB to write an assembly program that light the LEDs.

2) Write a program that repeatedly adds a number to the W register

3) Write a program that repeatedly adds a number to w register and send it to port B.

4) Two switches are connected to PORTA (RA4:RA3) and LEDs are connected to PORTB. Write a program that moves push button switch values from Port A to the LEDs in PORTB.

Loading 2 comments...