Hi all,
I have a board with LPC2366 and Octal UART 16L788 .
I have a code written for minimal operation of one channel of the UART.
The receive and transmit works fine independently in interrupt or poll
mode.
But if I make a continuous loop to check TxEmpty and then load a byte
in THR then I am missing some bytes in reception .
I had zeroed the code and now the loop only check for RxReady and
TxEmpty and reads RHR or loads THR accordingly.
If I load the value in some diff. register of the UART instead of THR
(For eg. the scratch pad reg. in the UART) the received bytes are
proper.
Anybody have any suggestions to check it.
Actually I am saturated and before coming to any conclusion want to
make sure that the firmware is ok.
So any suggestion may give me a path to think differently .
Regards
Suvidh
external UART XR16L788 interfaced to LPC2366 misses bytes in full duplex mode
Started by ●June 14, 2007
Reply by ●June 14, 20072007-06-14
Hmmm, you dropping of cahracters sounds a little like the issue I'm
experiencing.
I noticed that if I turn off the FIFO then my problem disappears.
You might like to add that as a test to see if it makes a difference.
I'd be interested to know if it does make a difference.
...Laurie:{)
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
suvidhk
Sent: Friday, 15 June 2007 5:14 AM
To: l...
Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
bytes in full duplex mode
Hi all,
I have a board with LPC2366 and Octal UART 16L788 .
I have a code written for minimal operation of one channel of the UART.
The receive and transmit works fine independently in interrupt or poll
mode.
But if I make a continuous loop to check TxEmpty and then load a byte
in THR then I am missing some bytes in reception .
I had zeroed the code and now the loop only check for RxReady and
TxEmpty and reads RHR or loads THR accordingly.
If I load the value in some diff. register of the UART instead of THR
(For eg. the scratch pad reg. in the UART) the received bytes are
proper.
Anybody have any suggestions to check it.
Actually I am saturated and before coming to any conclusion want to
make sure that the firmware is ok.
So any suggestion may give me a path to think differently .
Regards
Suvidh
experiencing.
I noticed that if I turn off the FIFO then my problem disappears.
You might like to add that as a test to see if it makes a difference.
I'd be interested to know if it does make a difference.
...Laurie:{)
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
suvidhk
Sent: Friday, 15 June 2007 5:14 AM
To: l...
Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
bytes in full duplex mode
Hi all,
I have a board with LPC2366 and Octal UART 16L788 .
I have a code written for minimal operation of one channel of the UART.
The receive and transmit works fine independently in interrupt or poll
mode.
But if I make a continuous loop to check TxEmpty and then load a byte
in THR then I am missing some bytes in reception .
I had zeroed the code and now the loop only check for RxReady and
TxEmpty and reads RHR or loads THR accordingly.
If I load the value in some diff. register of the UART instead of THR
(For eg. the scratch pad reg. in the UART) the received bytes are
proper.
Anybody have any suggestions to check it.
Actually I am saturated and before coming to any conclusion want to
make sure that the firmware is ok.
So any suggestion may give me a path to think differently .
Regards
Suvidh
Reply by ●June 14, 20072007-06-14
I don't know if it's any help, but I have written a driver for the
Phillips dual SPI<->Uarts SC16IS762. It seems to work ok in data
applications, but I perhaps haven't tested it in a cts loop.
It may differ too much from your 16L788 to be much help though. It can
be found as part of the newlib_lpc project at
http://www.aeolusdevelopment.com/
________________________________
From: l... [mailto:l...]
On Behalf Of Laurie Gellatly
Sent: Friday, 15 June 2007 6:52 AM
To: l...
Subject: RE: [lpc2000] external UART XR16L788 interfaced to
LPC2366 misses bytes in full duplex mode
Hmmm, you dropping of cahracters sounds a little like the issue
I'm
experiencing.
I noticed that if I turn off the FIFO then my problem
disappears.
You might like to add that as a test to see if it makes a
difference.
I'd be interested to know if it does make a difference.
...Laurie:{)
-----Original Message-----
From: l...
[mailto:l... ]On
Behalf Of
suvidhk
Sent: Friday, 15 June 2007 5:14 AM
To: l...
Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366
misses
bytes in full duplex mode
Hi all,
I have a board with LPC2366 and Octal UART 16L788 .
I have a code written for minimal operation of one channel of
the UART.
The receive and transmit works fine independently in interrupt
or poll
mode.
But if I make a continuous loop to check TxEmpty and then load a
byte
in THR then I am missing some bytes in reception .
I had zeroed the code and now the loop only check for RxReady
and
TxEmpty and reads RHR or loads THR accordingly.
If I load the value in some diff. register of the UART instead
of THR
(For eg. the scratch pad reg. in the UART) the received bytes
are
proper.
Anybody have any suggestions to check it.
Actually I am saturated and before coming to any conclusion want
to
make sure that the firmware is ok.
So any suggestion may give me a path to think differently .
Regards
Suvidh
Phillips dual SPI<->Uarts SC16IS762. It seems to work ok in data
applications, but I perhaps haven't tested it in a cts loop.
It may differ too much from your 16L788 to be much help though. It can
be found as part of the newlib_lpc project at
http://www.aeolusdevelopment.com/
________________________________
From: l... [mailto:l...]
On Behalf Of Laurie Gellatly
Sent: Friday, 15 June 2007 6:52 AM
To: l...
Subject: RE: [lpc2000] external UART XR16L788 interfaced to
LPC2366 misses bytes in full duplex mode
Hmmm, you dropping of cahracters sounds a little like the issue
I'm
experiencing.
I noticed that if I turn off the FIFO then my problem
disappears.
You might like to add that as a test to see if it makes a
difference.
I'd be interested to know if it does make a difference.
...Laurie:{)
-----Original Message-----
From: l...
[mailto:l... ]On
Behalf Of
suvidhk
Sent: Friday, 15 June 2007 5:14 AM
To: l...
Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366
misses
bytes in full duplex mode
Hi all,
I have a board with LPC2366 and Octal UART 16L788 .
I have a code written for minimal operation of one channel of
the UART.
The receive and transmit works fine independently in interrupt
or poll
mode.
But if I make a continuous loop to check TxEmpty and then load a
byte
in THR then I am missing some bytes in reception .
I had zeroed the code and now the loop only check for RxReady
and
TxEmpty and reads RHR or loads THR accordingly.
If I load the value in some diff. register of the UART instead
of THR
(For eg. the scratch pad reg. in the UART) the received bytes
are
proper.
Anybody have any suggestions to check it.
Actually I am saturated and before coming to any conclusion want
to
make sure that the firmware is ok.
So any suggestion may give me a path to think differently .
Regards
Suvidh
Reply by ●June 15, 20072007-06-15
Thanks laurie
Are you using any XR part ?
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> Hmmm, you dropping of cahracters sounds a little like the issue I'm
> experiencing.
> I noticed that if I turn off the FIFO then my problem disappears.
> You might like to add that as a test to see if it makes a difference.
> I'd be interested to know if it does make a difference.
> ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 5:14 AM
> To: l...
> Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
> bytes in full duplex mode
> Hi all,
>
> I have a board with LPC2366 and Octal UART 16L788 .
> I have a code written for minimal operation of one channel of the
UART.
> The receive and transmit works fine independently in interrupt or poll
> mode.
> But if I make a continuous loop to check TxEmpty and then load a byte
> in THR then I am missing some bytes in reception .
>
> I had zeroed the code and now the loop only check for RxReady and
> TxEmpty and reads RHR or loads THR accordingly.
>
> If I load the value in some diff. register of the UART instead of THR
> (For eg. the scratch pad reg. in the UART) the received bytes are
> proper.
>
> Anybody have any suggestions to check it.
>
> Actually I am saturated and before coming to any conclusion want to
> make sure that the firmware is ok.
>
> So any suggestion may give me a path to think differently .
>
> Regards
>
> Suvidh
>
>
>
>
Are you using any XR part ?
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> Hmmm, you dropping of cahracters sounds a little like the issue I'm
> experiencing.
> I noticed that if I turn off the FIFO then my problem disappears.
> You might like to add that as a test to see if it makes a difference.
> I'd be interested to know if it does make a difference.
> ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 5:14 AM
> To: l...
> Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
> bytes in full duplex mode
> Hi all,
>
> I have a board with LPC2366 and Octal UART 16L788 .
> I have a code written for minimal operation of one channel of the
UART.
> The receive and transmit works fine independently in interrupt or poll
> mode.
> But if I make a continuous loop to check TxEmpty and then load a byte
> in THR then I am missing some bytes in reception .
>
> I had zeroed the code and now the loop only check for RxReady and
> TxEmpty and reads RHR or loads THR accordingly.
>
> If I load the value in some diff. register of the UART instead of THR
> (For eg. the scratch pad reg. in the UART) the received bytes are
> proper.
>
> Anybody have any suggestions to check it.
>
> Actually I am saturated and before coming to any conclusion want to
> make sure that the firmware is ok.
>
> So any suggestion may give me a path to think differently .
>
> Regards
>
> Suvidh
>
>
>
>
Reply by ●June 15, 20072007-06-15
We're using the LPC2212. ...Laurie:{)
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
suvidhk
Sent: Friday, 15 June 2007 11:05 PM
To: l...
Subject: [lpc2000] Re: external UART XR16L788 interfaced to LPC2366 misses
bytes in full duplex mod
Thanks laurie
Are you using any XR part ?
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> Hmmm, you dropping of cahracters sounds a little like the issue I'm
> experiencing.
> I noticed that if I turn off the FIFO then my problem disappears.
> You might like to add that as a test to see if it makes a difference.
> I'd be interested to know if it does make a difference.
>
>
> ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 5:14 AM
> To: l...
> Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
> bytes in full duplex mode
>
>
> Hi all,
>
> I have a board with LPC2366 and Octal UART 16L788 .
> I have a code written for minimal operation of one channel of the
UART.
> The receive and transmit works fine independently in interrupt or poll
> mode.
> But if I make a continuous loop to check TxEmpty and then load a byte
> in THR then I am missing some bytes in reception .
>
> I had zeroed the code and now the loop only check for RxReady and
> TxEmpty and reads RHR or loads THR accordingly.
>
> If I load the value in some diff. register of the UART instead of THR
> (For eg. the scratch pad reg. in the UART) the received bytes are
> proper.
>
> Anybody have any suggestions to check it.
>
> Actually I am saturated and before coming to any conclusion want to
> make sure that the firmware is ok.
>
> So any suggestion may give me a path to think differently .
>
> Regards
>
> Suvidh
>
>
>
>
>
>
>
>
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
suvidhk
Sent: Friday, 15 June 2007 11:05 PM
To: l...
Subject: [lpc2000] Re: external UART XR16L788 interfaced to LPC2366 misses
bytes in full duplex mod
Thanks laurie
Are you using any XR part ?
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> Hmmm, you dropping of cahracters sounds a little like the issue I'm
> experiencing.
> I noticed that if I turn off the FIFO then my problem disappears.
> You might like to add that as a test to see if it makes a difference.
> I'd be interested to know if it does make a difference.
>
>
> ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 5:14 AM
> To: l...
> Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366 misses
> bytes in full duplex mode
>
>
> Hi all,
>
> I have a board with LPC2366 and Octal UART 16L788 .
> I have a code written for minimal operation of one channel of the
UART.
> The receive and transmit works fine independently in interrupt or poll
> mode.
> But if I make a continuous loop to check TxEmpty and then load a byte
> in THR then I am missing some bytes in reception .
>
> I had zeroed the code and now the loop only check for RxReady and
> TxEmpty and reads RHR or loads THR accordingly.
>
> If I load the value in some diff. register of the UART instead of THR
> (For eg. the scratch pad reg. in the UART) the received bytes are
> proper.
>
> Anybody have any suggestions to check it.
>
> Actually I am saturated and before coming to any conclusion want to
> make sure that the firmware is ok.
>
> So any suggestion may give me a path to think differently .
>
> Regards
>
> Suvidh
>
>
>
>
>
>
>
>
Reply by ●June 18, 20072007-06-18
Thanks Laurie,
For me the on chip UART are working fine.
I am having a problem with the external UART XR16L788.
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> We're using the LPC2212. ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 11:05 PM
> To: l...
> Subject: [lpc2000] Re: external UART XR16L788 interfaced to
LPC2366 misses
> bytes in full duplex mod
>
> Thanks laurie
>
> Are you using any XR part ?
>
> Regards
>
> Suvidh
> --- In l..., "Laurie Gellatly"
> wrote:
> >
> > Hmmm, you dropping of cahracters sounds a little like the issue I'm
> > experiencing.
> > I noticed that if I turn off the FIFO then my problem disappears.
> > You might like to add that as a test to see if it makes a
difference.
> > I'd be interested to know if it does make a difference.
> >
> >
> > ...Laurie:{)
> >
> > -----Original Message-----
> > From: l... [mailto:l...]On
> Behalf Of
> > suvidhk
> > Sent: Friday, 15 June 2007 5:14 AM
> > To: l...
> > Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366
misses
> > bytes in full duplex mode
> >
> >
> > Hi all,
> >
> > I have a board with LPC2366 and Octal UART 16L788 .
> > I have a code written for minimal operation of one channel of the
> UART.
> > The receive and transmit works fine independently in interrupt
or poll
> > mode.
> > But if I make a continuous loop to check TxEmpty and then load a
byte
> > in THR then I am missing some bytes in reception .
> >
> > I had zeroed the code and now the loop only check for RxReady and
> > TxEmpty and reads RHR or loads THR accordingly.
> >
> > If I load the value in some diff. register of the UART instead
of THR
> > (For eg. the scratch pad reg. in the UART) the received bytes are
> > proper.
> >
> > Anybody have any suggestions to check it.
> >
> > Actually I am saturated and before coming to any conclusion want to
> > make sure that the firmware is ok.
> >
> > So any suggestion may give me a path to think differently .
> >
> > Regards
> >
> > Suvidh
> >
> >
> >
> >
> >
> >
> >
> >
>
>
For me the on chip UART are working fine.
I am having a problem with the external UART XR16L788.
Regards
Suvidh
--- In l..., "Laurie Gellatly"
wrote:
>
> We're using the LPC2212. ...Laurie:{)
>
> -----Original Message-----
> From: l... [mailto:l...]On
Behalf Of
> suvidhk
> Sent: Friday, 15 June 2007 11:05 PM
> To: l...
> Subject: [lpc2000] Re: external UART XR16L788 interfaced to
LPC2366 misses
> bytes in full duplex mod
>
> Thanks laurie
>
> Are you using any XR part ?
>
> Regards
>
> Suvidh
> --- In l..., "Laurie Gellatly"
> wrote:
> >
> > Hmmm, you dropping of cahracters sounds a little like the issue I'm
> > experiencing.
> > I noticed that if I turn off the FIFO then my problem disappears.
> > You might like to add that as a test to see if it makes a
difference.
> > I'd be interested to know if it does make a difference.
> >
> >
> > ...Laurie:{)
> >
> > -----Original Message-----
> > From: l... [mailto:l...]On
> Behalf Of
> > suvidhk
> > Sent: Friday, 15 June 2007 5:14 AM
> > To: l...
> > Subject: [lpc2000] external UART XR16L788 interfaced to LPC2366
misses
> > bytes in full duplex mode
> >
> >
> > Hi all,
> >
> > I have a board with LPC2366 and Octal UART 16L788 .
> > I have a code written for minimal operation of one channel of the
> UART.
> > The receive and transmit works fine independently in interrupt
or poll
> > mode.
> > But if I make a continuous loop to check TxEmpty and then load a
byte
> > in THR then I am missing some bytes in reception .
> >
> > I had zeroed the code and now the loop only check for RxReady and
> > TxEmpty and reads RHR or loads THR accordingly.
> >
> > If I load the value in some diff. register of the UART instead
of THR
> > (For eg. the scratch pad reg. in the UART) the received bytes are
> > proper.
> >
> > Anybody have any suggestions to check it.
> >
> > Actually I am saturated and before coming to any conclusion want to
> > make sure that the firmware is ok.
> >
> > So any suggestion may give me a path to think differently .
> >
> > Regards
> >
> > Suvidh
> >
> >
> >
> >
> >
> >
> >
> >
>
>