Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/05/05 06:02
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#86604 - be sure your problem easily solved
Responding to: ???'s previous message
Vijayganesh S said:
hERE IS THE CODE:


MOV TMOD,#0x01
REPEAT: MOV R4,#0xA1
MOV R2,#0x42 ;...........Time interval data location
MOV R3,#0x00 ;...........
MOV DPTR,#0x4400 ;........output port data location
END



Hello Dear Vijayganesh
I think there is a small problem in your code.
when you load 4400h in dptr the last byte that you can
write your program in at89c51/52 flash memory is 1fffh
your accessible flash memory is only 8k byte.
and you load wrong pointed value in dptr

correct code:

MOV TMOD,#0x01
REPEAT: MOV R4,#0xA1
MOV R2,#0x42
MOV R3,#0x00
MOV DPTR,#0x1800 ;you can't load dptr with value higher than 1fffh
AGAIN: CLR A
MOVC A,@A+DPTR
MOV P1,A
...
...
...

org 1800h
data1,data2,data3,....

be sure your problem easily solved.
Regards
Mehdi N.Rahni

List of 41 messages in thread
TopicAuthorDate
constant delay-----problem            01/01/70 00:00      
   clarification needed            01/01/70 00:00      
   Timer 0 Mode 1            01/01/70 00:00      
       Timer 0 Mode 1            01/01/70 00:00      
         yes 16-bit mode            01/01/70 00:00      
            show the code            01/01/70 00:00      
               code            01/01/70 00:00      
                  check            01/01/70 00:00      
                  be sure your problem easily solved            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        re:no i am using a trainer kit            01/01/70 00:00      
                           code again            01/01/70 00:00      
                              direct vs. immediate addressing            01/01/70 00:00      
                              be sure your problem easily solved again            01/01/70 00:00      
                                 i tried ur code            01/01/70 00:00      
                                    Please be specific!            01/01/70 00:00      
                                       oh YOU            01/01/70 00:00      
                                       re:jan            01/01/70 00:00      
                                          hello            01/01/70 00:00      
                                             use MOVX @Ri            01/01/70 00:00      
                                                8-BIT MEMORY I/O ?            01/01/70 00:00      
                                                   can't be done            01/01/70 00:00      
                                                   can be done            01/01/70 00:00      
                                                      i am asking 8-bit I/O            01/01/70 00:00      
                                                         If you read Erik's answer            01/01/70 00:00      
                                                         now you lost me            01/01/70 00:00      
                                                            Guessing what he means            01/01/70 00:00      
                                                         Set P2            01/01/70 00:00      
                                                            Write P2 once            01/01/70 00:00      
                                       tested code and pulses            01/01/70 00:00      
                                          Missing Picture            01/01/70 00:00      
                                          picture again            01/01/70 00:00      
                                             Re:Picture again            01/01/70 00:00      
                                          picture and code posted again            01/01/70 00:00      
                                    Have you Tried a fixed value?            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        Divide and conquer            01/01/70 00:00      
                           And not writing them...            01/01/70 00:00      
               want a program of timer            01/01/70 00:00      
   tracing your code manually....            01/01/70 00:00      
   thanks            01/01/70 00:00      

Back to Subject List