EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

MC9S12DP512 Software Interrupt

Started by ga5941 April 21, 2009
My program is executing a hardware interrupt reading the serial keypad and I want to turn on the display which uses the same serial port and interrupt service routine. Trying to generate a transmit interrupt before the receive rti instruction executes causes the system to hang up. Is there any way to implement a software interrupt so that after the serial receive hardware interrupt finishes the software interrupt will then use the serial transmitter to turn on the display? My programming is in assembly code.

You could try this: Disable RX interrupts, use RTI, and on the TX
interrupt that you know will come in, then reenable RX interrupts.

Bill A.
Sorry,

If you would work in C language, maybe I could respond to you, because I use
SCI ports under interrupt, but in assembly code, I can't...

Best regards.
Joel

The 2024 Embedded Online Conference