Yahoo Groups archive

Lpc2000

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

Thread

UART RXD problem

UART RXD problem

2004-02-24 by Helge Fabricius-Hansen

Hi,

I have a problem with the Uart of the LPC2106.

When receiving datablocks from a PC (9600,N,8,1) all data except the
last byte is ignored. If I switch to (9600,N,8,2) on the PC it works.

The LPC2106 is set for (9600,N,8,1).

I am transmitting 6 databytes: "FF FF 01 00 7F FE" from the PC and 
the only thing received is: "FE"

If I use a terminal all characters are received as the should.

I have tried different settings on the FIFO but the result is the 
same...

Any clues??

//Helge

Re: [lpc2000] UART RXD problem

2004-02-24 by microbit

Hi Helge,

Are you receiving polled or interruot driven ?
One possibility might be that your pointer is not advancing and thus
overwrites
received chars, so you only have the last RXd char in buffer ?
Can you put a breakpoint where you receive char, so it should break on 1st
char received, and then you can go from there.

B rgds
Kris

----- Original Message -----
From: "Helge Fabricius-Hansen" <helge.fabricius@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, February 24, 2004 5:06 PM
Subject: [lpc2000] UART RXD problem


> Hi,
>
> I have a problem with the Uart of the LPC2106.
>
> When receiving datablocks from a PC (9600,N,8,1) all data except the
> last byte is ignored. If I switch to (9600,N,8,2) on the PC it works.
>
> The LPC2106 is set for (9600,N,8,1).
>
> I am transmitting 6 databytes: "FF FF 01 00 7F FE" from the PC and
> the only thing received is: "FE"
>
> If I use a terminal all characters are received as the should.
>
> I have tried different settings on the FIFO but the result is the
> same...
>
> Any clues??
>
> //Helge
>
>
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------------
------
Show quoted textHide quoted text
> Yahoo! Groups Links
>
>   a.. To visit your group on the web, go to:
>   http://groups.yahoo.com/group/lpc2000/
>
>   b.. To unsubscribe from this group, send an email to:
>   lpc2000-unsubscribe@yahoogroups.com
>
>   c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>

Re: [lpc2000] UART RXD problem

2004-02-24 by microbit

Sorry, skip that - didn't see the bit about 2 stop bits.
Are you saying that TXing 2 stop bits from the PC, the LPC2106 is RXing
all bytes properly ?

-- Kris


----- Original Message -----
From: "microbit" <microbit@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, February 24, 2004 5:09 PM
Subject: Re: [lpc2000] UART RXD problem


> Hi Helge,
>
> Are you receiving polled or interruot driven ?
> One possibility might be that your pointer is not advancing and thus
> overwrites
> received chars, so you only have the last RXd char in buffer ?
> Can you put a breakpoint where you receive char, so it should break on 1st
> char received, and then you can go from there.
>
> B rgds
> Kris
>
> ----- Original Message -----
> From: "Helge Fabricius-Hansen" <helge.fabricius@...>
> To: <lpc2000@yahoogroups.com>
> Sent: Tuesday, February 24, 2004 5:06 PM
> Subject: [lpc2000] UART RXD problem
>
>
> > Hi,
> >
> > I have a problem with the Uart of the LPC2106.
> >
> > When receiving datablocks from a PC (9600,N,8,1) all data except the
> > last byte is ignored. If I switch to (9600,N,8,2) on the PC it works.
> >
> > The LPC2106 is set for (9600,N,8,1).
> >
> > I am transmitting 6 databytes: "FF FF 01 00 7F FE" from the PC and
> > the only thing received is: "FE"
> >
> > If I use a terminal all characters are received as the should.
> >
> > I have tried different settings on the FIFO but the result is the
> > same...
> >
> > Any clues??
> >
> > //Helge
> >
> >
> >       Yahoo! Groups Sponsor
> >             ADVERTISEMENT
> >
> >
> >
> >
> >
>
> --------------------------------------------------------------------------
> ------
> > Yahoo! Groups Links
> >
> >   a.. To visit your group on the web, go to:
> >   http://groups.yahoo.com/group/lpc2000/
> >
> >   b.. To unsubscribe from this group, send an email to:
> >   lpc2000-unsubscribe@yahoogroups.com
> >
> >   c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
> >
>
>
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------------
------
Show quoted textHide quoted text
> Yahoo! Groups Links
>
>   a.. To visit your group on the web, go to:
>   http://groups.yahoo.com/group/lpc2000/
>
>   b.. To unsubscribe from this group, send an email to:
>   lpc2000-unsubscribe@yahoogroups.com
>
>   c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>

SV: [lpc2000] UART RXD problem

2004-02-24 by Helge Fabricius-Hansen

Hi,

It is interrupt driven. If I look in the rxbuffer I can see all the "7F"s
and I can see complete messages when using 2 stop bits on the PC.

Helge

-----Ursprungligt meddelande-----
Fr\ufffdn: microbit [mailto:microbit@...]
Skickat: den 24 februari 2004 07:10
Till: lpc2000@yahoogroups.com
\ufffdmne: Re: [lpc2000] UART RXD problem


Hi Helge,

Are you receiving polled or interruot driven ?
One possibility might be that your pointer is not advancing and thus
overwrites
received chars, so you only have the last RXd char in buffer ?
Can you put a breakpoint where you receive char, so it should break on 1st
char received, and then you can go from there.

B rgds
Kris
Show quoted textHide quoted text
----- Original Message -----
From: "Helge Fabricius-Hansen" <helge.fabricius@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, February 24, 2004 5:06 PM
Subject: [lpc2000] UART RXD problem


> Hi,
>
> I have a problem with the Uart of the LPC2106.
>
> When receiving datablocks from a PC (9600,N,8,1) all data except the
> last byte is ignored. If I switch to (9600,N,8,2) on the PC it works.
>
> The LPC2106 is set for (9600,N,8,1).
>
> I am transmitting 6 databytes: "FF FF 01 00 7F FE" from the PC and
> the only thing received is: "FE"
>
> If I use a terminal all characters are received as the should.
>
> I have tried different settings on the FIFO but the result is the
> same...
>
> Any clues??
>
> //Helge
>
>
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------------
------
> Yahoo! Groups Links
>
>   a.. To visit your group on the web, go to:
>   http://groups.yahoo.com/group/lpc2000/
>
>   b.. To unsubscribe from this group, send an email to:
>   lpc2000-unsubscribe@yahoogroups.com
>
>   c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>





Yahoo! Groups Links

Re: [lpc2000] UART RXD problem

2004-02-24 by microbit

> It is interrupt driven. If I look in the rxbuffer I can see all the "7F"s
> and I can see complete messages when using 2 stop bits on the PC.

The only other things I can think of is to check :

- That you're not set to 1.5 stop bits in UART.
- Check your GND on RS232, make sure it's not missing.
- Check that your RS232/logic levels are proper.

What do you mean with "all the 7F" RXd. Is that with 1 stop bit from PC ?
If so, what is it supposed to be receiving ?

7F is (in RX bit order)
0 - start bit
11111110 -7F
1 - stop bit

-- Kris

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.