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

Back to Subject List

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


 
#110470 - FCF not set properly
Responding to: ???'s previous message
You should always post code enclosing into <pre> and </pre> tags, it will look as the following:
           ORG     03000H
                MOV     IE,#00H
HERE:		JB	P3.0,HERE
		SETB	P2.0
		SETB	P2.1
		LCALL	WRITEM
		SETB	P2.2
THERE:		JB	P3.1,THERE
		MOV	A,#00H
		MOV	DPTR,#0F000H
		MOVC	A,@A+DPTR
		MOV	P1,A
		MOV	P0,A
NOWHERE:	LJMP	NOWHERE			
WRITEM:		MOV	R1,#02H
		MOV	DPTR,#05000H
		MOV	A,#019H
		LCALL	01FF0H
WRITEM1		CJNE	A,#00H,WRITEM1
                RET


Now your problem: you did not set FCF before JMP 1FF0h. It means, you are jumping into the user flash, instead of boot flash. Check out e.g. http://www.8052.com/forum/read.phtml?id=109730

Jan Waclawek


List of 34 messages in thread
TopicAuthorDate
iap            01/01/70 00:00      
   Do you really care for our answers?            01/01/70 00:00      
      wasted time            01/01/70 00:00      
   no, all flash is block erase.            01/01/70 00:00      
   datasheet            01/01/70 00:00      
      manufacturer            01/01/70 00:00      
         please reply jan            01/01/70 00:00      
            AT89C51ED2            01/01/70 00:00      
               AT89C51ED2 EEPROM            01/01/70 00:00      
                  matter of how is it used            01/01/70 00:00      
                     For another Atmel            01/01/70 00:00      
                        difference            01/01/70 00:00      
                           you are right, not byte, but autoerase            01/01/70 00:00      
         that is the reason NOT to use "bytewise"            01/01/70 00:00      
            thankyou            01/01/70 00:00      
      Harshad. need your help            01/01/70 00:00      
         ask your problem here            01/01/70 00:00      
            ask on 8052.com            01/01/70 00:00      
            i am a new bee in this line            01/01/70 00:00      
               How about this forum?            01/01/70 00:00      
                  nitpicking            01/01/70 00:00      
                     Was that a pun?            01/01/70 00:00      
                        no, Kalpak            01/01/70 00:00      
                           A common mistake?            01/01/70 00:00      
                              I don't, a mistype            01/01/70 00:00      
   iap p89v51rd2            01/01/70 00:00      
      FCF not set properly            01/01/70 00:00      
   iap p89v51rd2            01/01/70 00:00      
      IAP            01/01/70 00:00      
   please help            01/01/70 00:00      
      elnec            01/01/70 00:00      
   It is, indeed, amazing            01/01/70 00:00      
      what is the relevancy?            01/01/70 00:00      
         youir post 14/Feb/06 6:07 am            01/01/70 00:00      

Back to Subject List