Twisted_transistor
Member level 1
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 C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include "LPC214x.h" void init(void); int main() { int i=0; init(); while(i<=10){ U0THR='D'; while(!(U0LSR && 0x60)); i++; } } void init() { PINSEL0=0x00050005; U0FCR=0x07; //enable and clear FIFOs U0LCR=0x83; //8-N-1, enable divisors U0DLL=0x62; //9600 baud (9615) U0DLM=0x00; U0LCR=0x03; //8-N-1, disable divisors }
Last edited by a moderator: