Question: PIC16F877 - DataSheet PLEASE WRITE A CODE IN ASSEMBLEY LANGUALGE (PIC16F877) - IC3 Data reception - 2 operands 4 bits and the operation OP CODE
PIC16F877 - DataSheet
PLEASE WRITE A CODE IN ASSEMBLEY LANGUALGE (PIC16F877) - IC3
Data reception - 2 operands 4 bits and the operation OP CODE 4 bits are obtained Through a matrix of buttons (in binary). You can use buttons 0,1 and C, B, A only. When the buttons A and B indicate that you enter the operand A / B and the button C indicates that you enter a command.The values themselves will be typed using the 0 and 1 buttons. For example : 001 C 011, B 1 11, A
The LSB in operands A and B will be the sign of the number (+/-) The first number will be written at 0x30, the second at 0x40 and the type of operation at 0x50. In case of incorrect operation code "ERROR" will be displayed on the display. According to the OP CODE - the ALU unit - detects the operation and executes the command.
The received numbers should be displayed on the LCD - top row
Sample command list:
A. 001 - A-B result in 0x60 (value and mark)
B. 010 - A * B (multiplication) Result at 0 x60 third.
C. 011 - A / B (whole part only) Result at 0 x60
D. 100 - A to the power of B result in 0 x60
E. 101 - The number "1" in A results in 0 x60
F. 110 - The number "0" in B Result in 0 x60
The result of the operation must be displayed on the LCD - in the second row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
