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

Some Help for ARM7 LPC2148 UART0??

Hello!!! i just purchased a new ARM7 bases LPC2148 Development Board, it is having on chip crystal of 12Mhz

As i don't know the Clock on which my controller is executing can any one tell me that what is the instruction cycle timing for my board and how to evaluate this.

Here is my Startup.s file in Keil UVision IDE

www.edaboard.com/.../79624d1346723074-startup_file.png

Some one please explain me this, as i have to calculate the value of U0DLM and U0DLL

I my example program that comes with my development board, the Serial Port Initialization code is given.
which is as follow:-

Code:

void init_serial (void) {

PINSEL0 = PINSEL0 | 0X00000005;

U0LCR = 0X83; /*8 bits, no Parity, 1 Stop bit */

U0DLL = 0XC3;

U0DLM = 0X00;

U0LCR = 0X03;

}

I didn't get the meaning of this line
PINSEL0 = PINSEL0 | 0X00000005; /* Enable RxD0 and TxD0 */

Can any one help me regarding all this..

How to determine the clock of my board and the meaning of above line..

Thanks in advance

0