This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART BUFFER

i have seen some UART code implemented using BUFFER.....
I have donE simple uart program using interrupt with lpc2148........
what is the advantage of using BUFFER

Parents
  • What "buffer" are you referring to?

    Some UARTs have a built-in buffer - commonly called a "FIFO" - which, as Tamir says, can have the advantage of reducing the number of interrupts.

    Your own software can also make use of a "buffer" - meaning some temporary storage where received characers can be held until the application is ready to process them.

    It is very common to use a so-called "Ring" or "Circular" buffer with a UART - there are examples here on the Keil site, and Google will tell you lots about them...

Reply
  • What "buffer" are you referring to?

    Some UARTs have a built-in buffer - commonly called a "FIFO" - which, as Tamir says, can have the advantage of reducing the number of interrupts.

    Your own software can also make use of a "buffer" - meaning some temporary storage where received characers can be held until the application is ready to process them.

    It is very common to use a so-called "Ring" or "Circular" buffer with a UART - there are examples here on the Keil site, and Google will tell you lots about them...

Children