Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Interrupt vectors

2004-11-03 by microbit

Hi Robert,

> All reasonably easy to understand. What it also seems to indicate
> though is that each peripheral only has one interrupt number you can
> assign to each vector. So, for example, if a UART flags up an
> interrupt, you won't know, until you go to the interrupt vector and
> check the flags, whether it's a transmit, receive or error interrupt.
> Is that correct? Seems a bit primitive if so! 

Yes, the INT handler needs to check in IIR register (low nibble) whether
it's an RDA, char Timeout, THE, or some error INT.
Seemingly silly, bit like an 8051, but I'm sure there's a reason for it....
I personally don't like it either.
Could be worse though, we could still have a single INT vector on a PIC :-)

-- Kris

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.