The extra UARTs on RTS/CTS are enabled when the UART gets enabled (MODE
set to something other than '7') This happens automatically when you
open the respective device node in Linux (/dev/ttyTS*)
// address 0: STAT register
// bit 0 - TBRE, Transmit buffer empty (RO)
// bit 1 - DR, Receive data ready (RO)
// bit 2 - OERR, Overflow error (RO)
// bit 3 - CTS, UART clear-to-send (RO)
// bit 4 - RTS, UART request-to-send (RW)
// bit 7:5 - MODE, baud rate (RW)
// 0 - 115200 8N1
// 1 - 57600 8N1
// 2 - 38400 8N1
// 3 - 19200 8N1
// 4 - 9600 8N1
// 5 - 4800 8N1
// 6 - 2400 8N1
// 7 - UART off, IRQ disabled
// bit 8 - NINEBIT enable (RW)
// bit 9:15 - reserved
// read address 1: RXDAT register (RX data register)
// write address 1: TXDAT register (TX data register)
//
// * When NINEBIT mode is disabled, disregard bit 8 when
// reading RXDAT as its value will be UNDEFINED
//
// * Upper 7 bits of RXDAT and TXDAT are reserved and
// should be discarded from reads as their value will
// be UNDEFINED
//
On the TS-7300, the UARTs start at physical address 0x72000000. Each
UART has 2 16-bit registers and they are laid out in-order in address
space.
They are not like 16C550 UARTs on a PC. There are no divisors to tweak
for getting strange baud rates. They have a 5 x 9-bit FIFO (which
seems to be enough even at 115200 baud on a 200Mhz ARM running Linux)
and 7 fixed baud rates. The 16c550 UART core we have available uses
around 800 LUTs in the FPGA, the TS-UART core uses about 80.
If you need a different baud rate, we can build a custom bitstream with
one of the standard 7 bauds replaced with yours. Its real easy for us
to do and only takes a couple hours to change, compile, and test.
//Jesse Off
--- In "rpt1234" <> wrote:
>
> I am using a TS7300 and could use a few tips on the FPGA serial
> ports.
>
> I need to activate the additional serial ports that use the CTS and
> RTS lines for transmit and receive on ports 3-6. Can somebody point
> me to the specific register and bit to change?
>
> The devices I need to communicate with use an off the wall baud
rate.
> Can anybody point me in to information I can use to set the baud rate
> dividers and equations so I can get close? I am hoping there is an
> easy way to change this.
>
> Thanks in advance,
> Rich
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|