Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
[edit]
OP failed to include a proper question. I vote for removal.
[/edit]
Posted
Updated 30-Aug-13 5:17am
v2
Comments
Jochen Arndt 30-Aug-13 11:25am    
Googling for 'lpc2148 uart' may help. A promising hit is http://www.pantechsolutions.net/microcontroller-boards/uart-interfacing-with-lpc2148-arm7-primer.
[no name] 30-Aug-13 20:37pm    
I'm getting "This page can't be displayed" for this url.
Try this http://www.nxp.com/documents/application_note/AN10369.pdf.
Gokul G Lekshman 15-Apr-19 16:13pm    
First of all configure the register.
Then follow below code
char uart0_RxChar()
{
 char ch; 
while((U0LSR & 0x01)==0);
ch = U0RBR; 
 return ch;
}

void uart0_RxString(char *str)
{
short int I=0;
char x;
while(1)
{
x=uart0_RxChar() ;
if((x=='\n') || (x=='\r'))
{
str[I]=0;
break;
}
else
{
str[I]=x;
I++;
}
}
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900