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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/05 09:01
Read: times


 
#89526 - using jump in C language
I am writing a program for C8051F022 in C language using Keil Software. The program contains two separate programs one of them boot up that can be loaded with JTAG and the other one external program that can be loaded from RS232 port of a PC.
My question is I want to rotate the Interrupts from boot up to external program through a flag so it is simple in assembler. But could not find the relevant code in C for TIMER0 routine.
Asm codes
;RunExtPrg_F is a bit variable whrere
;1 : Run external program
;0 : Run Boot up program
CSEG AT 0
JMP MAIN
ORG 0003H
JMP 1803H
ORG 000BH
JMP TIMER0
ORG 0013H
JMP 1813H
... ....

TIMER0:
JNB RunExtPrg_F, Time0Boot ;Run bootup interrupt
JMP 180BH ;Goto external program interrupt

Time0Boot: …..
RETI

Thanks for any response.


List of 9 messages in thread
TopicAuthorDate
using jump in C language            01/01/70 00:00      
   This is a Job for Assembly Language            01/01/70 00:00      
      I couldn't reach the file            01/01/70 00:00      
         It shows here !!            01/01/70 00:00      
            File accessible            01/01/70 00:00      
   Solution            01/01/70 00:00      
      Uh-oh!!!            01/01/70 00:00      
         Exactl Right            01/01/70 00:00      
            !!!            01/01/70 00:00      

Back to Subject List