A 8051 MicroController Write a program which adds the follow
A. )8051 MicroController: Write a program which adds the following numbers together and stores the results in BCD.
Addition of unsigned numbers is a need for many programs. Perform the following calculation manually fill in the following: F5H OBH a. F5H binary binary binary d. Parity bit e. Carry bit f. Auxiliary CarrySolution
A) MOV DPTR,#F5H
MOVX A,@DPTR
MOV B,A
MOV DPTR,#0BH
MOVX A,@DPTR
ADDC A,B
B)
a) F5 H=1111 0101 H
b) 0B H=0000 1010 H
F5 H= 1111 0101 H
0B H= 0000 1010 H
------------------------------------
1 1 1 1 1 1 1 1
Carry Flag=0
Auxilary Carry flag=0
Parity Fag=1(even Parity)

