From: Ormund Williams <ormundw@brainlink.com>
To: Linux PPC embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: UART configuration problems
Date: Fri, 12 Jan 2001 21:30:24 -0500 [thread overview]
Message-ID: <3A5FBDC0.6785393F@brainlink.com> (raw)
In-Reply-To: 003b01bfbc02$88afc3c0$4a1f76d8@washington
Navin Boppuri wrote:
>
> Hello everyone,
>
> I am trying to interface a MAX3100 uart to an SPI controller on the MPC823.
> I have a functional SPI driver running. The transmit part of the UART works
> just fine. I am able to transmit characters at 9600 8N1 baud. The problem
> arises when I do a receive. The uart documentation says that the internal
> fifo is 8 word long. But I notice that the FIFO is able to store only 8
> characters. For example, if I transmit the characters
> abcdefghijklmnopqrstuvwxyz
>
> The uart shows only "yz" in its buffers. The other 24 characters are lost. I
> noticed that 8 charaters are written in the buffer. It first writes
> "abcdefgh" and then overwrites that with "ijklmnop" and so on. The uart
> generates an irq interrupt whenever there is incoming data. I do not see why
> the buffer is not big enough.
>
The MAX3100 is working as designed, the 8 word fifo can only hold 8
characters the other bits in the word hold the parity, framing error,
etc. If the fifo overflows all characters are lost. The following is
from page 5 and 7 of the datasheet.
"Read data from a 16-bit register that holds the oldest
data from the receive FIFO, the received parity data,
and the logic level at the CTS input pin. This register
also contains a bit that is the framing error in normal
operation and a receive-activity indicator in shutdown."
"Receive data is stored in an 8-word FIFO. The FIFO is
cleared if it overflows."
> Can someone give me some insight into this problem? What do I need to do to
> correct this?
>
Read the data before the fifo overflows.
--
Ormund
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-01-13 2:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-12 18:06 UART configuration problems Navin Boppuri
2001-01-13 2:30 ` Ormund Williams [this message]
2001-01-15 12:11 ` Navin Boppuri
2001-01-15 21:13 ` Ormund Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A5FBDC0.6785393F@brainlink.com \
--to=ormundw@brainlink.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.