Reply by tike...@gmail.com●August 26, 20102010-08-26
nitin gupta wrote: > The final output was not correct because I am not
getting the readable
> characters on serial port emulator i.e hyperterminal as per the code I
> have written.
So, you are getting something?
Then, most probable causes are:
The clock frequency of the UART is not like you assume
The final output was not correct because I am not getting the readable
characters on serial port emulator i.e hyperterminal as per the code I have
written.
}
}
/*************** System Initialization ***************/
void Initialize()
{
/* Initialize Pin Select Block for Tx and Rx */
//PINSEL0=0x5;
PINSEL0 &= 0xFFFFFF0F;
PINSEL0 |= 0x00000050;
/* Enable FIFO's and reset them */
U0FCR=0x00;
/* Set DLAB and word length set to 8bits */
U0LCR=0x83;
/* Baud rate set to 9600 at crystal 14.74Mhz*/
U0DLM=0x00;
U0DLL=0x60;
/* Clear DLAB */
U0LCR=0x03;
}
This is the code. I am using Keil IDE and 14.75 crystal.
--- On Thu, 26/8/10, t...@gmail.com wrote:
From: t...@gmail.com
Subject: Re: [lpc2000] LPC2468 UART
To: l...
Date: Thursday, 26 August, 2010, 11:52 AM
Please, don't write me directly. Use the group instead.
nitin gupta wrote:
> Well I have checked that also but in that case also the final output was
> not correct.
So *how* was it incorrect?
Maybe you want to show us your code.
> Do you have any running code?
I think there is many examples in the files section and:
Reply by tike...@gmail.com●August 26, 20102010-08-26
metnitin wrote: > 2. Check the LSR value
> 3. If LSP value is 0x40 then transmit the character on THR
You don't want to check the value of the register (probably you'll
find it
staying at 0x60) but the value of the bit 6 of the register instead (and you
will be even more keen on knowing the value of the bit 5).
--
Timo
Reply by metnitin●August 26, 20102010-08-26
Hi,
I am a newbie and trying to drive UART0 of LPC2468 but not able to drive it
properly.
Followed following steps:
1. Initialize UART registers
Baud rate : 9600-8-N-1
2. Check the LSR value
3. If LSP value is 0x40 then transmit the character on THR
Can anybody guide me