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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/14/05 10:28
Read: times


 
#102394 - Let's make it more complete
Responding to: ???'s previous message
;Code in the 8051 book i'm reading: 

ORG 0 

LJMP MAIN 

ORG 0BH ;or other interrupt address 
LJMP timer1_ISR 

ORG 23H ;serial interrupt for example 
LJMP serial_ISR 

ORG 30H 
MAIN: 
      ; initialize 
      ; initialize ports, timers, variables etc
.
.
.

      ; do forever
do_forever:
      ; do what you have to do between interrupts
.
.
. 

jmp do_forever


ORG 100H; 
timer1_ISR: 
. 
. 
RETI

serial_ISR: 
;. 
;. 
RETI 

end



List of 29 messages in thread
TopicAuthorDate
writing code in interrupt handler addr            01/01/70 00:00      
   tell you how to write ...            01/01/70 00:00      
      Thank U...            01/01/70 00:00      
         short answer            01/01/70 00:00      
   My book            01/01/70 00:00      
      Let's make it more complete            01/01/70 00:00      
         this could/would confuse some newbie            01/01/70 00:00      
            can any one suggest me to find a solutio            01/01/70 00:00      
               as previously stated:            01/01/70 00:00      
               Initialize and do_forever            01/01/70 00:00      
         where does org100h and org30h branch to?            01/01/70 00:00      
            what do you mean?            01/01/70 00:00      
               hope iam clear now            01/01/70 00:00      
               what is the possible Address range ....            01/01/70 00:00      
                  bible time            01/01/70 00:00      
            ORG            01/01/70 00:00      
               should i add startup 51 for my code..            01/01/70 00:00      
                  manual?            01/01/70 00:00      
                     It indicates for C code            01/01/70 00:00      
                        does it say "use for assembler"?            01/01/70 00:00      
                           No. The example for adding startup.A51            01/01/70 00:00      
                              conclusion?            01/01/70 00:00      
                                 i got my codes executed successfully....            01/01/70 00:00      
                                    dwarfs ?            01/01/70 00:00      
                                        u people...            01/01/70 00:00      
                                          If that is what you ment, then why not s            01/01/70 00:00      
                  assembly codes with AT89C51            01/01/70 00:00      
                     no problem with hex            01/01/70 00:00      
                        up to you...            01/01/70 00:00      

Back to Subject List