Re: 89C51ED2




"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx> wrote in message
news:%LUwk.38434$Fr1.3855@xxxxxxxxxxxxxxx
TT_Man wrote:

Hmmm that's not how to code 8051 inrterrupts.

Huh??????

Do you mean that you don't save the interrupted context???? !!!!!

I can't remember my reason for saying that now. Flags perhaps ?

Anyway PL/M handles all that for one. Declare procedure interrupt !

Graham


Coding in assembler opens all sorts of clever trick possibilities that
HLL guys would never have dreamed of. That only comes with years of
developing RT asm code. Why push a couple of status bytes when they can
be saved in half the time by moving them to registers in the current
bank.......... Doesn't work for everyone though......
I guess that would be fine if you didn't have any higher priority INT's
doing the same thing or calling functions with in that block that are also
doing the same thing.


http://webpages.charter.net/jamie_5";

Functions and things should be kept out of int service routines..... set a
flag, and handle it in a background scheduler...



.



Relevant Pages

  • Re: 89C51ED2
    ... I can't remember my reason for saying that now. ... Flags perhaps? ... Anyway PL/M handles all that for one. ... Declare procedure interrupt! ...
    (sci.electronics.design)
  • [S390] cio: update documentation.
    ... -Prior to call ccw_device_startthe device driver must assure disabled state, ... -by calling local_save_flags(flags). ... -environment an interrupt might be presented prior to the ccw_device_start ... +ccw_device_startmust be called disabled and with the ccw device lock held. ...
    (Linux-Kernel)
  • Re: 89C51ED2
    ... interrupt code that overlays one of his variables. ... routines set flags and the background processes flags, ...
    (sci.electronics.design)
  • Re: [PATCH] serial: 8250: add IRQ trigger support
    ... serial IRQs with triggering requirements ... Note that this patch doesn't allow the interrupt to trigger on both ... the irqflags the flags field. ...
    (Linux-Kernel)
  • [patch] consolidate interrupt-related constants
    ... handling code was recently consolidated, ... it looks likely that the related flags ... for interrupt handling. ... a flags into an i386-specific header ...
    (Linux-Kernel)