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 19:54
Read: times


 
#110719 - Ok...
Responding to: ???'s previous message
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?


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 &


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



Jon

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