uart1 registers

Started by "deepak k." April 12, 2011
hello, i m using lpc2138. i want to send the data serially using UART1. but
i can't find the register values for defining the registers THRE,LSR,LCR
,RDR etc. Plz if anyone have the details about it reply me urgently. Or if
anyone have keil program for sending data using UART1 then send me urgently
plz!
thanks in advance!
deepak kajale
m...@yahoo.com
WebRep
Overall rating

An Engineer's Guide to the LPC2100 Series

--- In l..., "deepak k." wrote:
>
> hello, i m using lpc2138. i want to send the data serially using UART1. but
> i can't find the register values for defining the registers THRE,LSR,LCR
> ,RDR etc. Plz if anyone have the details about it reply me urgently. Or if
> anyone have keil program for sending data using UART1 then send me urgently
> plz!
> thanks in advance!
> deepak kajale
All register should be defined in a header file like lpc213x.h (for Keil). Look through the 'include' directory for your toolchain and find an appropriate header file.

Then include it in your source file:

#include

What toolchain are you using? Some toolchains automatically select the proper header file based on project settings.

Richard

Hello,

You can use this website to calculate your values. I have tried it, and it works great.

http://prototalk.net/forums/showthread.php?t

Carolina

--- In l..., "deepak k." wrote:
>
> hello, i m using lpc2138. i want to send the data serially using UART1. but
> i can't find the register values for defining the registers THRE,LSR,LCR
> ,RDR etc. Plz if anyone have the details about it reply me urgently. Or if
> anyone have keil program for sending data using UART1 then send me urgently
> plz!
> thanks in advance!
> deepak kajale
> mail-deepkajale@...
> WebRep
> Overall rating
>

--- In l..., "Carolina" wrote:
>
> Hello,
>
> You can use this website to calculate your values. I have tried it, and it works great.
>
> http://prototalk.net/forums/showthread.php?t
>
> Carolina

There is a very nice spreadsheet in the Files folder of this group that finds the optimal value for the fractional baud rate divider. It says LPC2148 but it works for the LPC2138. baudratecalc.ls

Richard

There are a few tools for uart calculations in the group file area, you have to login in to download them

http://tech.groups.yahoo.com/group/lpc2000/files/Tools/ArmUartCalc.zip
http://tech.groups.yahoo.com/group/lpc2000/files/baudcalc.zip
http://tech.groups.yahoo.com/group/lpc2000/files/baudratecalc.xls
Alex
On 04/12/2011 11:54 AM, deepak k. wrote:

> hello, i m using lpc2138. i want to send the data serially using
> UART1. but i can't find the register values for defining the registers
> THRE,LSR,LCR ,RDR etc. Plz if anyone have the details about it reply
> me urgently. Or if anyone have keil program for sending data using
> UART1 then send me urgently plz!
> thanks in advance!
> deepak kajale
> m...@yahoo.com WebRep
> Overall rating
>