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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/16/02 12:14
Read: times


 
#29213 - RE: Thread
hi andi;
you can set a flag for both interrupts.in your main program check for them and take action.

e.g.
int0_isr:
setb x
;do critical part.
reti
int1_isr:
setb y
;do critical part
reti

main:
jbc x,int0_process
jbc y,int1_process
sjmp main
int0_process:

int1_process:

if you feel that there can be more than one interrupts of same kind while you are busy processing other then instead use a counter that increments in isr and decrements in main code.
pranav


List of 6 messages in thread
TopicAuthorDate
Thread            01/01/70 00:00      
RE: Thread            01/01/70 00:00      
RE: Thread            01/01/70 00:00      
RE: Thread            01/01/70 00:00      
RE: Thread            01/01/70 00:00      
RE: Thread            01/01/70 00:00      

Back to Subject List