Hi.. I've written a code to transmit a character to PC using UART0. But, however, the hyperterminal is blank.
Why is this happening?
My code is as follows:
But if I modify d same code for UART1 it works fine.. Its only giving a problem with UART0..
Is this happening because I'm using UART0 as ISP port to program my chip? I use flash magic & use the DTR & RTS to control the RST & ISP pins. So is it possible that my port is stuck in ISP mode & is that the reason why its not functioning as a normal UART?
how to use uart interrupt in lpc2148?
how to receive char through interrupt in lpc2148?tell me what is wrong in this code.received char i've to transmit again but it is not working.
#include <lpc214x.h>
void init_UART0(void)
{
VPBDIV=0x01;
PINSEL0|=(1<<0)|(1<<2);
U0LCR=0x83;
/*to set baudrate using formula, load below registers
.....................................................................................................*/
U0DLL=78;
U0FDR=0x28;
U0LCR=0x03;
U0IER=0x01;