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

Z

Zhi

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?
 
M

Mark McDougall

Zhi said:
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,
 
M

Mike Treseler

Zhi said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top