Question: Write a complete assembly program for the 16F84A PIC microcontroller that performs the following: 1. Use indirect addressing to initialize 4 memory locations (of

Write a complete assembly program for the 16F84A PIC microcontroller that performs the following: 1. Use indirect addressing  

Write a complete assembly program for the 16F84A PIC microcontroller that performs the following: 1. Use indirect addressing to initialize 4 memory locations (of your choice) with Decimal values taken from your university ID (2 digits per location starting from right to left). Example: If your ID is 20191234 and you choose to fill locations starting from location X, the memory locations will be initialized as follows: Memory Location Content 20 X+1 19 X+2 12 X+3 34 2. Use indirect addressing to find either: - The minimum value of these four values if the least significant digit of your ID is EVEN - The maximum value of these four value if least significant digit of your ID is ODD 3. Use indirect addressing to increment the values stored in these memory locations by the value of the third digit of your university ID (starting from the least significant digit). Example: If your ID is 20191234, increment values by 2 (underlined digit).

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!