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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/22/02 05:59
Read: times


 
#22004 - RE: Interrupts, are they really a mystery ?
Gil,

You didn't include the opening ORG for your interrupt init'l. As shown it looks like Pranav is right. You might try:

ORG 0
jmp init

ORG 3H
jmp ext0_service

ORG 13H
jmp ext1_service

ORG 40H
init:
SETB EXO
SETB IT0
CLR PX0 ; LOW PRIORITY

SETB EX1
SETB IT1
SETB PX1 ; HIGH PRIORITY

SETB EA

main:
sjmp $

ex0_service:
-service here-
reti

ex1_service:
-service here-
reti

no need to reset IE0/IE1.

regards,
p


List of 11 messages in thread
TopicAuthorDate
Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: In the actual code, Gallo:            01/01/70 00:00      
RE: In the actual code, Gallo:            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a mystery ?            01/01/70 00:00      
RE: Interrupts, are they really a myster            01/01/70 00:00      
RE: In the actual code, Gallo:            01/01/70 00:00      

Back to Subject List