xpress_embedo
Advanced Member level 4
Hello!!! i just purchased a new ARM7 bases LPC2148 Development Board, it is havig 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
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:-
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
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
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) { /* Initialize Serial Interface */
PINSEL0 = PINSEL0 | 0X00000005; /* Enable RxD0 and TxD0 */
U0LCR = 0X83; /*8 bits, no Parity, 1 Stop bit */
U0DLL = 0XC3;
U0DLM = 0X00; /* 9600bps baud rate */
U0LCR = 0X03; /* DLAB = 0 */
}
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