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

Back to Subject List

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


 
#126364 - Detail Problem ...
Responding to: ???'s previous message
Dear Seniors!!!

OK so here is my detailed question ... as said by Mr. Maniraj

1> I have program written for the LCD with 4 bit data bus interfacing with 4 * 4 Matrix Keyboard.

2> The task given me to is I have to take password from the user and authenticate it on that basis.

3> Intially the user will be provided with the default password and after getting access to the system, he can change thae password.

4> I have read the data sheet + the guidelines given by the gentelmans in this forum. But I am in the confusing state because I havent got the success yet.

5>
Jan said

An example of IAP call (as I use it in the P89V51RD2 port of BASIC52):

;there is an ORG 2000h somewhere above this
FLASH_API:
PUSH IE ;DISABLE INTERRUPTS
CLR EA
ANL FCF,#0FCh ;enable boot sector - !!! this command MUST be located ABOVE 2000h!!!
CALL 01FF0H ;call to ISP_API (modifies B register but no Rx)
ORL FCF,#001h ;switch back to user FLASH
POP IE
RET


I have my program starting from the subroutine START above the address 2000h like ...
                     org 2010h
                     ljmp START

       START:
             ;Soubroutines for the Lcd intialization and reading the key pressed by the matrix keyboard ..............
               


My confusion is ... I have read that after reset and before 400Ms I ahev swap in the IAP function flash area.

So I will have to modify the above program in the following way ...

                    org    2010h
   
   FLASH_API:
         PUSH    IE          ;DISABLE INTERRUPTS
         CLR     EA
         ANL     FCF,#0FCh   ;enable boot sector - !!! this command MUST be located ABOVE 2000h!!!
         CALL    01FF0H      ;call to ISP_API (modifies B register but no Rx)

after calling to IAP in the above statement here I have to call my START Subrouitne or after the last statement of this subrouitne I'll have to write my START subrouitne

         ORL     FCF,#001h   ;switch back to user FLASH
         POP     IE
         RET



6> I mean to say where I should call or write my subrouine after calling the IAP.

7> If still I am not been able to make you understand then revert me where are you finding probs.

waiting for the response ...

Thanks and Regards,
Arvind Shrivastava


List of 50 messages in thread
TopicAuthorDate
how to write in EEPROM in P89V51RD2 ?            01/01/70 00:00      
   there is no such thing as an EEPROM            01/01/70 00:00      
   eh?            01/01/70 00:00      
      I mean FLASH ...            01/01/70 00:00      
         FlashMagic            01/01/70 00:00      
            I have flash magic            01/01/70 00:00      
               that IS what FlashMagic does            01/01/70 00:00      
                  All of them ...            01/01/70 00:00      
                     I'm at a loss            01/01/70 00:00      
                  Probs is password storing ...            01/01/70 00:00      
                     you have not, see above            01/01/70 00:00      
                        just give me an idea            01/01/70 00:00      
                           datasheet            01/01/70 00:00      
                     clear question will help            01/01/70 00:00      
         read the ... datasheet            01/01/70 00:00      
            P89V51 IAP (access)            01/01/70 00:00      
         Unfortunate terminology!            01/01/70 00:00      
   I read data sheet            01/01/70 00:00      
      read about IAP!!!            01/01/70 00:00      
         IAP code example...            01/01/70 00:00      
            this is NOT for P89V51RD2!            01/01/70 00:00      
               Use 89S52 / 89S8252            01/01/70 00:00      
                  I\'d guess...            01/01/70 00:00      
            few questions ...            01/01/70 00:00      
               Do you read my posts?            01/01/70 00:00      
   I have tried but failed ...            01/01/70 00:00      
      corrupted???            01/01/70 00:00      
         Dont know            01/01/70 00:00      
            How do you know that they are corrupted?            01/01/70 00:00      
            Refer the application notes for the P89V51RD2            01/01/70 00:00      
               Detail Problem ...            01/01/70 00:00      
                  think!            01/01/70 00:00      
                     program ...            01/01/70 00:00      
                        ehm....            01/01/70 00:00      
                           Well confused!            01/01/70 00:00      
                              one has to start somewhere...            01/01/70 00:00      
                                 Flowcharts            01/01/70 00:00      
                                    I don't think it's a good idea...            01/01/70 00:00      
                        Jan ... Guide me more            01/01/70 00:00      
                           where to place the code            01/01/70 00:00      
                  BIBLE TIME            01/01/70 00:00      
                     BASICs            01/01/70 00:00      
                        A very basic question            01/01/70 00:00      
                           to Arvind            01/01/70 00:00      
                           if you mean BASIC52/RD2 v1.4beta4...            01/01/70 00:00      
      the dangers of uncharted waters withou a pilots            01/01/70 00:00      
         maybe            01/01/70 00:00      
            I would not dare that            01/01/70 00:00      
               sunset...            01/01/70 00:00      
                  Mr. Shrivastava you are Wasting other's time            01/01/70 00:00      

Back to Subject List