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.
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,189
Please specify which microcontroller you are using.

Normally only receiving is double buffered but not sending.

best regards
 

alzomor

Advanced Member level 2
Joined
Jun 9, 2005
Messages
674
Helped
39
Reputation
78
Reaction score
8
Trophy points
1,298
Location
Germany
Activity points
6,406
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top