Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Nesting interrupts in 8051

There are 3 messages in this thread.

You are currently looking at messages 0 to 3.

Nesting interrupts in 8051 - 02:33 21-02-06

If the 8051chip is servicing a lower priority interrupt and I want it
to be interrupted by a higher priority interrupt, do I have to enable
interrupts - EA = 1 - as sson as I enter lower priority ISR. In other
words, does the 8051 disables all interrupts when it enters an ISR ?




Re: Nesting interrupts in 8051 - Tamilmaran S - 03:21 21-02-06

No, actually when it enter into a ISR, then it will disable all the
interrupt which are having priority level lower and equal than that.


Re: Nesting interrupts in 8051 - Noone - 09:19 21-02-06

m...@gmail.com wrote:

> If the 8051chip is servicing a lower priority interrupt and I want it
> to be interrupted by a higher priority interrupt, do I have to enable
> interrupts - EA = 1 - as sson as I enter lower priority ISR. In other
> words, does the 8051 disables all interrupts when it enters an ISR ?

Unless some other requirement necessitates it, you can leave EA set when interrupts are used.  No need to disable EA
when in an ISR.  That way, if a high priority interrupt becomes active, you can service it.  The 8051 only allows one
interrupt of each type to be active at any one time.  Thus a high priority interrupt can interrupt a low priority
interrupt.  All interrupts at the same priority have to wait until the current interrupt of that priority is complete.

Be very careful to ensure that your machine environment is preserved.  Not every interrupt routine needs to preserve
everything.  Some things like timer interrupts can
be written so as to not require state preservation.

Blakely