Hi
The code written for rx data in LPC2129-uartO
U0LCR = 0x83;
U0DLL = 39; // baud rate = 9615 @ pclk = 6mhz
U0FCR = 0x07; //FIFO enable
U0LCR = 0x03; //Rx data as 8 bits, no Parity, 1 Stop bit
while(!(U0LSR & 0x01)); //executed untill U0RSR full
while(U0LSR & 0x01)
{
ch3[x] = U0RBR;
x++;
}
Transmitter sending stream of data among which only first 16 bytes of
data were stored in FIFO remaining were lost.Give me solution or
modify the above code such that FIFO can be erased when it fulls
without the loss of data stream
with thanks
Rk

How Erase LPC2129-UART RX FIFO
Started by ●November 30, 2006
Reply by ●November 30, 20062006-11-30
The FIFO is automaticaly emptied as you read from it.
Change the code to:
U0LCR = 0x83;
U0DLL = 39; // baud rate = 9615 @ pclk = 6mhz
U0FCR = 0x07; //FIFO enable
U0LCR = 0x03; //Rx data as 8 bits, no Parity, 1 Stop bit
while (x {
while(!(U0LSR & 0x01)); //executed untill U0RSR full
while(U0LSR & 0x01)
{
ch3[x] = U0RBR;
x++;
}
}
> Hi
>
> The code written for rx data in LPC2129-uartO
>
> U0LCR = 0x83;
> U0DLL = 39; // baud rate = 9615 @
> pclk = 6mhz
> U0FCR = 0x07; //FIFO enable
> U0LCR = 0x03; //Rx data as 8 bits, no Parity,
> 1 Stop bit
>
> while(!(U0LSR & 0x01)); //executed untill U0RSR full
> while(U0LSR & 0x01)
> {
> ch3[x] = U0RBR;
> x++;
> }
>
> Transmitter sending stream of data among which only first 16 bytes of
> data were stored in FIFO remaining were lost.Give me solution or
> modify the above code such that FIFO can be erased when it fulls
> without the loss of data stream
>
> with thanks
> Rk
>
> Yahoo! Groups Links
Change the code to:
U0LCR = 0x83;
U0DLL = 39; // baud rate = 9615 @ pclk = 6mhz
U0FCR = 0x07; //FIFO enable
U0LCR = 0x03; //Rx data as 8 bits, no Parity, 1 Stop bit
while (x {
while(!(U0LSR & 0x01)); //executed untill U0RSR full
while(U0LSR & 0x01)
{
ch3[x] = U0RBR;
x++;
}
}
> Hi
>
> The code written for rx data in LPC2129-uartO
>
> U0LCR = 0x83;
> U0DLL = 39; // baud rate = 9615 @
> pclk = 6mhz
> U0FCR = 0x07; //FIFO enable
> U0LCR = 0x03; //Rx data as 8 bits, no Parity,
> 1 Stop bit
>
> while(!(U0LSR & 0x01)); //executed untill U0RSR full
> while(U0LSR & 0x01)
> {
> ch3[x] = U0RBR;
> x++;
> }
>
> Transmitter sending stream of data among which only first 16 bytes of
> data were stored in FIFO remaining were lost.Give me solution or
> modify the above code such that FIFO can be erased when it fulls
> without the loss of data stream
>
> with thanks
> Rk
>
> Yahoo! Groups Links
