This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

program not working....

hi!! we are working on arm 7 kit MCB2300..
i got the following code from the same site.. but i am not getting it working.
can any one pls help me..

#include <LPC23xx.H>
#include <stdio.h>
void delay(int);
int main (void)
{ PINSEL0 |= 0x40000000; /* Enable TxD1 in P0.15 */
PINSEL1 |= 0x00000001; /* Enable RxD1 in P0.16 */
U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */
U1DLM = 0x00;
U1DLL = 78; /* 9600 Baud Rate @ 12MHz Clock */
U1LCR = 0x03; /* DLAB = 0 */
U1FCR = 0x07; /* enable TX amp RX FIFO ,clears TX amp RX FIFO */

while(1)
{ U1THR = 'A'; while (!(U1LSR & 0x20));
} }