Twisted_transistor
New Member
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:
Why is this happening?
My code is as follows:
Code:
#include "LPC214x.h"
void init(void);
int main()
{ int i=0;
init();
while(i<=10){
U1THR='D';
while(!(U1LSR && 0x60));
i++;
}
}
void init()
{
PINSEL0=0x00050005;
U1FCR=0x07; //enable and clear FIFOs
U1LCR=0x83; //8-N-1, enable divisors
U1DLL=0x62; //9600 baud (9615)
U1DLM=0x00;
U1LCR=0x03; //8-N-1, disable divisors
}