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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/11 22:31
Read: times


 
#180573 - the truth is...
Responding to: ???'s previous message
... that this behaviour is simply not specified in the "bible" (whichever version - at the end of the day, both the Philips/NXP and Atmel version are verbatim, most probably OCR-ed, copies of the Intel original). There is no mention of whether the said flags can be written by software at all!

So, IMHO, it is legitimate to ask this question, and I know of no source of ultimate answer. And while the absolutely correct answer is "it is not specified", as some of you pointed out, there are "hints" of what may happen. But, you can see those "hints" there only because you are experienced enough to know that this is the usual way of these things! How could a newcomer know that, if it is NOT written down anywhere in the relevant literature? (And I don't care if it was a homework or not).

And, no Stefan, I did not try... at least I don't remember. I've surely triggered interrupts in this way several times, but I don't remember if it was specifically the external interrupt in '51. A couple of years ago I would sit down and construct a test - a series of tests, checking not only what happens if I write the flag in both settings of the level/edge flag, but also what happens if I write to the flag while interrupt is set to level and after that change the setting of the level/edge flag. And I would try it on half-a-dozen of '51 derivatives (remember my PUSH SP thread?). But I am too tired now, sorry.

Jan


List of 28 messages in thread
TopicAuthorDate
What happen if I write 1 to Interrupt flag register?            01/01/70 00:00      
   which register??            01/01/70 00:00      
   Be specific about ur queries            01/01/70 00:00      
   if 8051            01/01/70 00:00      
   the register            01/01/70 00:00      
      this is a quite tricky question...            01/01/70 00:00      
         congrats, Robin            01/01/70 00:00      
         Re: tricky question            01/01/70 00:00      
         it was me,            01/01/70 00:00      
         Didn't search first            01/01/70 00:00      
            read "the bible"            01/01/70 00:00      
            the truth is...            01/01/70 00:00      
               it does state            01/01/70 00:00      
               I take this back...            01/01/70 00:00      
                  Disagree            01/01/70 00:00      
      Atmel hardware manual            01/01/70 00:00      
         I'll take the answer as :            01/01/70 00:00      
            Be Careful            01/01/70 00:00      
               oh, they do            01/01/70 00:00      
            re: I don't even know what "bible" you all mention in the po            01/01/70 00:00      
               "bible"            01/01/70 00:00      
            Diving into the AT89S52            01/01/70 00:00      
               just a note            01/01/70 00:00      
                  Re: just a note            01/01/70 00:00      
                     MIDI project, etc            01/01/70 00:00      
   oh, and we forgot to ask the usual question:            01/01/70 00:00      
      since i do not know what 'that' is I guess            01/01/70 00:00      
      SWI            01/01/70 00:00      

Back to Subject List