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

ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
Malcolmaccek
Wed Apr 24 2024, 01:21 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am