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

Back to Subject List

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


 
#110721 - That's exactly my question
Responding to: ???'s previous message
Jon Ledbetter said:
From the code you posted earlier.
             MOV FMCON,#68H; "ERASE" COMMAND FOR 89LPC952 
             MOV R7,FMCON ; TO READ STATUS MOV A,R7 
             ANL A,#0FH; CHECK THE STATUS OF FMCON 


Which is correct in your most recent post. What is different between these two pieces of code?


first part:
LOAD_PAGE:
          MOV FMDAT,@R0 ;write data to
          INC R0 ;point to next
          DJNZ R3,LOAD_PAGE ;do until count
          MOV FMCON,#EP ;else erase &


second_part:
LOAD_PAGE1:
          MOV FMDAT,#32H ;write data to FMDATA
          DJNZ R3,LOAD_PAGE ;do until count
          RET ;and return






Hi Jon,

Thanks for responding.My question is also the same thing.There should not be any difference between the pieces of code other than the 'first part' is loading 00 to the addresses 440h to 480h and 'second part' s loading "32h" to addresses 440h to 480h.
But when I try to read the bytes or rather see the memory window(code window)I do not see the bytes being written as "32h" from 440h to 480h.



List of 22 messages in thread
TopicAuthorDate
89LPC952 FLASH PROGRAMMING            01/01/70 00:00      
   Notes on posting code            01/01/70 00:00      
   rewrritten code 89LPC952 IAP code            01/01/70 00:00      
      what more do you need            01/01/70 00:00      
         Not sufficient!!!            01/01/70 00:00      
            how did you not "see" that?            01/01/70 00:00      
               I have written the code....            01/01/70 00:00      
                  Looks to me like            01/01/70 00:00      
                     I have written the code            01/01/70 00:00      
                        How can writing a constant be "the next"            01/01/70 00:00      
                        Oh I see...            01/01/70 00:00      
                           Disreguard previous post            01/01/70 00:00      
                              a hint            01/01/70 00:00      
                               updated code for 89LPC952 IAP            01/01/70 00:00      
                                 The above correction ('ONE' should be '1            01/01/70 00:00      
                                 Ok...            01/01/70 00:00      
                                    That's exactly my question            01/01/70 00:00      
                                       How about....            01/01/70 00:00      
                                          Thanks it worked!!            01/01/70 00:00      
                                             You're welcome            01/01/70 00:00      
      Neat            01/01/70 00:00      
         If we go there, then            01/01/70 00:00      

Back to Subject List