Discussion in "Project Help" started by    emmawatson123    Oct 24, 2015.
Sat Oct 24 2015, 04:05 am
#1
hello guys

can you help me on writing this program for my 8051 please

Part 1:
Write a program to continuously detect whether the addition of 2 numbers stored in memory locations MEM[30h] and MEM[38h] is greater than or equal to 100. The program should output the result of the addition on port0 and if the result is greater than or equal to 100 then turn off (clear) bit P1.0 otherwise turn on (set) P1.0

Part 2:
Write a program to calculate y where y = x2 + 3x + 2. Where x is between 0 and 9 and the look-up table for x2 is located at the ROM address (code space) of 200h. The value x is in memory location MEM[70h], and at the end of the program R2 should have y.
Tue Oct 27 2015, 05:55 am
#2
Sorry Emma we don't really do homework for members.

If you are stuck on something we can help, but not the whole thing.
You need to look up compare instruction for question one
and the use of the DPTR register for question 2.
Thu Nov 05 2015, 05:31 pm
#3
As Phil said, We cannot do everything for you But we can help you to reach a solution. However you need to do things yourself. Phil has provided you some information, read about it and if you still face any issue do reply we will try to give you more information.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MnoioCoove
Tue May 21 2024, 02:06 am
PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am