--- In lpc2000@yahoogroups.com, vineet jain <vineetrvce@...> wrote: > > OR to put it simply, > how would one write an interrupt based application to show time on > Hyperterm using LPC controller. > > Both the UART and RTC are interrupt driven. > >> So how to declare the ISR's if they both are meant to be IRQ category interrupts. As I indicated earlier, you can't define them both to be IRQ and then have individual routines - there's only one IRQ vector. I suppose you could write code in the IRQ handler to handle both interrupts but why bother? The VIC was invented to solve this type of problem. Maybe you could define one as FIQ and the other as IRQ but that is a very limiting concept. I don't have an example that meets your requirements. But, how hard can it be? You need to define an interrupt handler for the timer and put the address and priority into the VIC. You need to define an interrupt handler for the UART (enabling FIFO) and put the address and priority in the VIC. Of course you also have to prevent timer interrupts from changing the time while you are in the process of accessing the data. I haven't tried the UART via VIC and there are apparently some issues re: the UART and interrupts. I read about them here but have not investiaged them for myself. Richard
Message
Re: Multiple IRQ routines in GCC (simply)
2006-05-01 by rtstofer
Attachments
- No local attachments were found for this message.