Forums

UART0 and UART1

Started by Mukund Deshmukh July 7, 2006
Hi,
Any idea on how to read FIFO buffer, on UART0 and UART1, without using
interrupt?
Best Regards,

Mukund Deshmukh.
Beta Computronics Pvt Ltd
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746

An Engineer's Guide to the LPC2100 Series

Em Sex 07 Jul 2006 05:18, Mukund Deshmukh escreveu:
> Hi,
> Any idea on how to read FIFO buffer, on UART0 and UART1, without using
> interrupt?

By pooling the UART1_LSR register.
I made a firmware that does not interrupt by receiveing a new byte on UART1,
the routine is like that:

if ((UART1_LSR & 0x01)==1) {
uart1_int(); // Entro na rotina de tratamento de serial 485
}

the uart1_int() is the routine that reads the new byte and threat him.