Uart
Uart
Uart
#include "lpc214x.h"
#include <stdio.h>
void UartInit(unsigned int ); //setting the baud rate for 9600 baud
/*================================================================================
===*/
int main(void)
while(1)
UART_PutChar(UART_GetChar()+1); //Echo
void UartInit(unsigned int baudrate) //setting the baud rate for 115200 baud
PINSEL0 = PINSEL0 | 0x00000005; // set the functionality of the TxD and Rxd Pin :01
//set the baud rate
U0TER = 0x80;
return(U0RBR);
return (UART_PutChar(ch));
FILE __stdout;
OUTPUTS :