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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/25/03 16:57
Read: times


 
#53342 - problem with UART and interrupt
When I call SHOOT, the uC has to send a code (207). I want to do this without fireing an interrupt but I have to send the code 5 times (in this code it only sends it once, but even that doesn't work).
when I receive a code, it has to fire the UART interrupt. this works but, when I send a code, an interrupt appears!

how to fix this?

code:
SHOOT mov IE,#00000000b
mov A,ammo
jz AMMOOUT
mov teller,#1
lus2 mov A,myID
acall TX
djnz teller,lus2
dec ammo
acall LCDSTAT
mov IE,#10010000b
clr TI
ret
AMMOOUT ret

TX mov SBUF,A
ret

SINT mov hitID,SBUF
dec lives
acall LCDHIT
mov teller3,wait
SINTL acall DLY250
djnz teller3,SINTL
clr RI
mov ammo,reammo
acall LCDSTAT
reti


List of 7 messages in thread
TopicAuthorDate
problem with UART and interrupt            01/01/70 00:00      
   RE: problem with UART and interrupt            01/01/70 00:00      
      RE: problem with UART and interrupt            01/01/70 00:00      
         RE: problem with UART and interrupt            01/01/70 00:00      
            RE: problem with UART and interrupt            01/01/70 00:00      
         RE: problem with UART and interrupt            01/01/70 00:00      
         RE: Tx and Rx interrupt            01/01/70 00:00      

Back to Subject List