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 08:49
Read: times


 
#110465 - iap p89v51rd2
Responding to: ???'s previous message
I have migrated from p89c51rd2 to p89v51rd2.i am trying to do iap using the following code:
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

My program doesnt function as required
P2.0 and P2.1 become set for a short priod of time and again get cleared where as p2.2 doesnt change status atall.
i use 12Mhz crystal and 1uF/10k for reset ckt
please verify my code and give me sme suggestions
regards
harshada


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