#include<LPC21xx.h> int main (void) { IODIR0=0x01; PINSEL0=0x05; U0LCR=0x83; U0DLL= 97; IOSET0=0x01; U0IER=0x01; while(1){ unsigned char a; while(!(U0LSR&0x01)); a=U0RBR; while(!(U0LSR&0x20)); U0THR=a; } }
iam using this code to give back output wat we enter in terminal,but not getting the desired output, please help me to find the errors.