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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/09/03 23:56
Read: times


 
#47953 - RE: DMX512. generatin routine
Responding to: ???'s previous message
Gabriel,

Is the code you showed in your post an impression of what you have written or is it the exact code as you are trying to assemble it?

If it is exactly as you are trying to assemble it, it is obvious that it will NEVER EVER work.

1) First and foremost, you are trying to use interrupts, but your interrupt service routines do not start on the appropriate interrupt vector addresses. You must use ORGs to force the code to sit in certain places.
2) just after the label Start: there is a call to Init, which makes the processor go back a few lines, until it comes across the same call again. This locks you into an infinite loop, which is why this code will not do anything apart from turning your controller into a brick.
3) I don't know what controller you are using, but at one point you are treating STP as a byte (mov a, STP) and the next moment as a bit (clr STP). I don't know what STP is, but it can't be both.

Of course, this depends on if what you submitted was your actual code, in the actual sequence, which I hope it wasn't. There are other issues, but these points are the obvious ones.

Hans

List of 9 messages in thread
TopicAuthorDate
DMX512. generatin routine            01/01/70 00:00      
   RE: DMX512. generatin routine            01/01/70 00:00      
      RE: DMX512. generatin routine            01/01/70 00:00      
   RE: DMX512. generatin routine            01/01/70 00:00      
      RE: DMX512. generatin routine            01/01/70 00:00      
         RE: DMX512. generatin routine            01/01/70 00:00      
            RE: DMX512. generatin routine            01/01/70 00:00      
   RE: DMX512. generatin routine            01/01/70 00:00      
      RE: DMX512. generatin routine            01/01/70 00:00      

Back to Subject List