Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help on UART FIFO Buffer

Status
Not open for further replies.

zmliu

Member level 5
Joined
Mar 21, 2004
Messages
89
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Activity points
620
I have trouble getting UART FIFO buffer to work as the way I expected.As I pushed one byte into FIFO,it works ok,SBUF sent it out,but it does not if I push two bytes consecutively using two PUSH() subroutines.
Ask for suggestions.Thanks a lot.
 

Please specify which microcontroller you are using.

Normally only receiving is double buffered but not sending.

best regards
 

Hi

It's depending on your micro or UART device
some devices have a que of more than one regster for Tx and another for Rx.
So you had to check your datasheets.
but at least there's a flag or bit within the control register to indicate that it's ready to send so you can send the next byte. before this flag you had to stop sending bytes to the Tx Buffer
Some devices support interrupt to indicate that the device is ready to send.
you may increase your baud rate to overcome this problem or you had to check the ready to send flag

Salam
Hossam
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top