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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/18/07 02:28
Read: times


 
#135184 - my assumption
Responding to: ???'s previous message
You probably aren't terminating your code, so the system goes on, and on, and in some cases, once it reads the last byte of internal memory, it goes to external memory, overriding ports P0 and P2, because P0 and P2 are not available when I/O to external or code memory is done.

As for the RD and WR lines (Port P3.6 and port P3.7), make the value high if you want to enable them as inputs, or better yet, don't adjust the values for Port 3 at all.

To terminate your code, make an instruction that causes the system to jump to the same instruction over and over again.

In some assemblers, this is acceptable:

jmp $

also, you could try:

ajmp $
sjmp $
ljmp $

or if the $ is not supported, you could try:

code:
ajmp code

What assembler are you using?

List of 29 messages in thread
TopicAuthorDate
Unable to use P0 and P2            01/01/70 00:00      
   How do you detect that it's ignored?            01/01/70 00:00      
      Philips 80C52            01/01/70 00:00      
         Re: 80xxx            01/01/70 00:00      
         External memory?            01/01/70 00:00      
            Re: External memory?            01/01/70 00:00      
               Check the datasheet!            01/01/70 00:00      
                  More information            01/01/70 00:00      
                     80C52            01/01/70 00:00      
                        I think it does have internal ROM            01/01/70 00:00      
                           oops!            01/01/70 00:00      
         ICE or Eprom Emulator ?            01/01/70 00:00      
            It is an in-circuit emulator            01/01/70 00:00      
   my assumption            01/01/70 00:00      
      I'm afraid it can't be            01/01/70 00:00      
         There's a special "once" mode ... for emulators            01/01/70 00:00      
         try this            01/01/70 00:00      
            Re: try this            01/01/70 00:00      
               My guess            01/01/70 00:00      
                  Read the datasheets and read the posts, Mike            01/01/70 00:00      
            How is all this supposed to help?            01/01/70 00:00      
               It has code space...            01/01/70 00:00      
                  Where did you get that nonsense, Mike?            01/01/70 00:00      
   My conclusion:            01/01/70 00:00      
      What has it to do with the original question?            01/01/70 00:00      
   I do not know your emulator, but            01/01/70 00:00      
      My conclusion (and thanks for everyone)            01/01/70 00:00      
         then why not say so            01/01/70 00:00      
         Emulator            01/01/70 00:00      

Back to Subject List