Question: Design a PIC18F4321-based system to measure the power absorbed by a 2K resistor (Figure). The system will input the voltage (V) across the 2K resistor, convert it to an 8-bit input using the PIC18F4321's on-chip A/D converter, and then compute the power using V2/R. one. The display will go from 00 to 09, and vice versa. Write a PIC18F assembly language program to accomplish the above. Use ports and data memory addresses of your choice. Draw a block diagram of your implementation.
