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 | pic18f452 interrupts

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.

pic18f452 interrupts - vijayguru - 07:52 05-10-07

how to handle 4 interrupts in pic18f452 out four interrupts 2 are low
interrupts and other two are high but we are having only two vector
address plz suggest me anybody





Re: pic18f452 interrupts - Donald - 09:29 05-10-07

vijayguru wrote:
> how to handle 4 interrupts in pic18f452 out four interrupts 2 are low
> interrupts and other two are high but we are having only two vector
> address plz suggest me anybody
> 
> 
Welcome to the wonderful world of PIC.

In the interrupt routine, you need to check which interrupt bit is set, 
and service that one first (then clear it), then check the another 
interrupt flag and service that one.

You could also check each bit and set a RAM flag, exit the interrupt and 
service those in your main loop.

Timing on your routines is critical, you routine can not be too long.


good luck


don