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)); } }
SO it's time to start debugging, then!
Here's some tips to get you started:
www.8052.com/.../120313
www.eetimes.com/.../Developing-a-good-bedside-manner