??? 03/13/04 09:34 Read: times |
#66631 - RE: I need help Responding to: ???'s previous message |
Nguyen Duc Toan wrote:
------------------------------- Where is the error??? Well, you wrote the program, you should be able to find it.. The question is not "where is the error", the question is where is your table and what is actually in your DPTR before your MOVC code... I specifically asked you to look at what was in your DPTR looking at the code below mov a, #high(table) ; A=03 addc a, r6 ; A=03 mov dph, a ; DPTR=03EB I am inclined to say that 03EB is _NOT_ what is in your DPTR. Besides this, how do you know your table starts at 03EB? there is no ORG of your code. I asked you to look at the contents of DPTR and I did not mean "What do you think DPTR should contain" but I meant "Run your program and examine the registers, and tell me what is in the DPTR"... Regards Patrick |
Topic | Author | Date |
C Programe for 8051 | 01/01/70 00:00 | |
Reading List | 01/01/70 00:00 | |
RE: Reading List | 01/01/70 00:00 | |
RE: C Programe for 8051 | 01/01/70 00:00 | |
Sorry for the new thread | 01/01/70 00:00 | |
I need help | 01/01/70 00:00 | |
Learning 'C' | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: C table lookup | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help | 01/01/70 00:00 | |
RE: I need help![]() | 01/01/70 00:00 |