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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/19/07 21:53
Read: times


 
Msg Score: -1
 -1 Message Not Useful
#137566 - idea
Responding to: ???'s previous message
Lynn Reed said:

mov r1,#6h ;program status byte (No Watchdog!)
mov dptr,#0 ;specify status byte
mov a,#0ffh ;nonzero required
call 0fff0h ; IAP Call to set status byte
jmp $ ;wait for watchdog to reset


When I look at that piece of code, it makes me think that there either must be a good piece of code at address FFF0h that handles R1, DPTR, and A, or you are missing something.

If what you are intending to do is store something into external memory so that the next time the reset button is pressed, then you might want to try something like this:

mov DPTR,#0000h
movx A,@DPTR
dec A
jnz install
jz wasreset
continue:
;place the rest of your mainline code here




wasreset:

;this routine is executed everytime the reset button is pressed
;after the program is executed for the first time.

ljmp continue

install:

; if the value of external ram address 0 is not 1 then
; set it to 1 and do appropiate functions.
; This routine happens every time the power is applied to the
; circuit for the first time.

mov A,#1h
movx @DPTR,A

ljmp continue



List of 27 messages in thread
TopicAuthorDate
Question on "No-Touch" and watchdog            01/01/70 00:00      
   I maybe missing something too            01/01/70 00:00      
   byte programming time            01/01/70 00:00      
      the reason is            01/01/70 00:00      
         the point is somewhere else...            01/01/70 00:00      
         The reason I asked is...            01/01/70 00:00      
            Noob???            01/01/70 00:00      
               Yes, Noob            01/01/70 00:00      
                  re phil ARGH NXP IAP            01/01/70 00:00      
                     Flash Magic            01/01/70 00:00      
                        NoTouch LPC900            01/01/70 00:00      
                           correct            01/01/70 00:00      
            He can't possibly give a _solution_....            01/01/70 00:00      
               no touch for 936            01/01/70 00:00      
                  a word from the author            01/01/70 00:00      
                     ok but            01/01/70 00:00      
                        Joes 935 works, what is the question?            01/01/70 00:00      
                           backdoor & no touch            01/01/70 00:00      
                              the difference            01/01/70 00:00      
                                 It is ok            01/01/70 00:00      
   idea            01/01/70 00:00      
      you would not know about ISP, would you            01/01/70 00:00      
   if it is the 'H' chips (Rx2H and C66x) , then            01/01/70 00:00      
      Setting the Watchdog            01/01/70 00:00      
         i referred to NOT setting the watchdog during ISP            01/01/70 00:00      
         Lynn - What is your original requirement?            01/01/70 00:00      
            Original Requirement            01/01/70 00:00      

Back to Subject List