Can change UART data port from 8 bits to 16 bits?

Z

Zhi

Guest
Hi, I am using the UART with 8 bits data width transmission very
well. But the problem is if my application which is connected to the
UART is 16 bits data width instead of 8 bits width. Is there any
solution to solve it?
 
Zhi wrote:

Hi, I am using the UART with 8 bits data width transmission very
well. But the problem is if my application which is connected to the
UART is 16 bits data width instead of 8 bits width. Is there any
solution to solve it?
No doubt, but you give insufficient data for your problem.

I'm assuming you're using a soft-core UART written in VHDL, given the
newsgroup? I'm also assuming the microprocessor interface is the '16 bits
data width' you're talking about?

Usually it's perfectly adequate to connect an 8-bit peripheral to a 16-bit
bus and simply leave half the bus dangling... you just need to note the
register addressing implications (if any).

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
 
Zhi wrote:
Hi, I am using the UART with 8 bits data width transmission very
well. But the problem is if my application which is connected to the
UART is 16 bits data width instead of 8 bits width. Is there any
solution to solve it?
Search for
char_len_g
in the reference design here
http://home.comcast.net/~mike_treseler/
for an example of how to handle
this with a generic constant.

-- Mike Treseler
 

Welcome to EDABoard.com

Sponsor

Back
Top