Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: UART ISR

2004-11-05 by Robert Adsett

At 10:50 PM 11/4/04 +0000, you wrote:
> >
> >       U0LCR = 0x80; // Enable DLAB
> >       uart_divisor = ((unsigned short)((PCLK / ((19200) * 16.0)))+0.5);
> >       U0DLL = uart_divisor&0xff;
> >       U0DLM = 0;
> >       U0LCR &= 0x7F;  // Disable DLAB
> >       U0LCR = 0x03; // Enable DLAB
> >       U0IER = 0x07;

May not be your problem, but you are enabling all the serial interrupts but 
only really servicing one of them (and only clearing two of the three 
sources).  Better to just enable the transmit interrupt until you are ready 
to service the others.

It really doesn't explain your symptoms but why borrow trouble?

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.