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)); } }
we are connecting the board serialy to computer and with the help of hyper terminal we are checking whether the character is cuming or not??? but nothing is cuming on cable....
i have loaded that program, but when i debug it, after 4-5 steps it jumps to 0xFFFFFFF3 location and nothing proceeds further... can u suggest what is happening????
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
And when it didn't work - what did you do? How isn't it working? What is happening? What did you expect to happen? What conclusions have you made?
View all questions in Keil forum