Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
MC9S12DP512 Software Interrupt - ga5941 - Apr 21 12:59:38 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 need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: MC9S12DP512 Software Interrupt - Bill Auerbach - Apr 21 22:04:04 2009
> ga5941 writes on 12:55 PM 4/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.
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
RE: MC9S12DP512 Software Interrupt - jpdi - Apr 22 11:31:25 2009
Sorry,
If you would work in C language, maybe I could respond to you, because I us=
e
SCI ports under interrupt, but in assembly code, I can't...
Best regards.
Joel
-----Message d'origine-----
De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part de
ga5941
Envoy=E9=A0: mardi 21 avril 2009 18:56
=C0=A0: 6...@yahoogroups.com
Objet=A0: [68HC12] MC9S12DP512 Software Interrupt
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 receiv=
e
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.
------------------------------------
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )