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

Back to Subject List

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


 
#29720 - RE: Calling assembler interrupts from C
Is this correct? It seems to work

Almost. The C interrupt service routine returns using the RETI instruction. Your assembler function should not do the same thing. It should return with a RET.

The reason is due to the way that interrupts are generated by the MCU. You should have only 1 RETI instruction for each interrupt.

Jon

List of 22 messages in thread
TopicAuthorDate
Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: But why??            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: Andy/Mahmood            01/01/70 00:00      
RE: Andy/Mahmood            01/01/70 00:00      
RE: Erik            01/01/70 00:00      
RE: Erik            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: Calling assembler interrupts from C            01/01/70 00:00      
RE: SRC :-(            01/01/70 00:00      
Thanx Andy            01/01/70 00:00      

Back to Subject List