ajeesh
Member level 3
this is my code for uart0 data receiving , i also want store and retrieve received data
#include<lpc21xx.h>
void main()
{
//char x[33];
// char *a;
PINSEL0=0X00000004;
VPBDIV=0X01;
U0LCR=0X83;
U0DLL=0X86;
U0DLM=0X01;
U0LCR=0X03;
while(1)
{
while (!(U0LSR&0x01));
// a=U0RBR;
// a++;
}
}
#include<lpc21xx.h>
void main()
{
//char x[33];
// char *a;
PINSEL0=0X00000004;
VPBDIV=0X01;
U0LCR=0X83;
U0DLL=0X86;
U0DLM=0X01;
U0LCR=0X03;
while(1)
{
while (!(U0LSR&0x01));
// a=U0RBR;
// a++;
}
}