Reply by Donald H December 13, 20102010-12-13
--- In l..., "gsntone" wrote:
> --- In l..., "Donald H" wrote:
> > > OK, I'll bite, 24 what???
>
> Years => zied130187
>
> > Opps, did you mean 42?????
>
> No. What are these kids learning today? Keeping a lot of 42's busy before spending 2 minutes to scope a simple signal...
>

LOL, yea, my comment about learning hardware.

Seems that higher level math is a problem as well. ( like division )

don

An Engineer's Guide to the LPC2100 Series

Reply by gsntone December 13, 20102010-12-13
--- In l..., "Donald H" wrote:
> > OK, I'll bite, 24 what???

Years => zied130187

> Opps, did you mean 42?????

No. What are these kids learning today? Keeping a lot of 42's busy before spending 2 minutes to scope a simple signal...

Reply by Donald H December 13, 20102010-12-13
--- In l..., "Donald H" wrote:
>
> --- In l..., "gsntone" wrote:
> >
> >
> >
> > > Its absolutely amazing that software people can learn about hardware.
> > >
> > > don
> > >
> >
> > And that with nearly 24!
> > OK, I'll bite, 24 what???
>
> don
>

Opps, did you mean 42?????
don

Reply by simonb65 December 13, 20102010-12-13
Zied,

Have you not wondered how you can pass a number like 76,800 into a function (and multiply it by 16) just using an unsigned 16 bit variable ?!! Your maths doesn't add up .. it's hardly surprising your getting strange results !! I must admit I missed it first time round ... but I hope you fix these basic errors before moving on.

Simon.

--- In l..., "Donald H" wrote:
>
> --- In l..., "zied130187" wrote:
> >
> > thank you my friends !
> >
> > it's work !!
> >
> > i have receive \n\rOK\n\r :)&
> >
> >
> > thank you !
> >
> >
> > when i measure the value with scope i found the baud rate is 4800
> >
> > i change the value in my code :
> >
> > UART1Init(19200);
> >
> > with
> >
> > UART1Init(76800);
> >
> > and it's work !!!
> > Its absolutely amazing that software people can learn about hardware.
>
> don
>

Reply by Donald H December 13, 20102010-12-13
--- In l..., "gsntone" wrote:
>
> > Its absolutely amazing that software people can learn about hardware.
> >
> > don
> > And that with nearly 24!
>

OK, I'll bite, 24 what???

don

Reply by gsntone December 13, 20102010-12-13
> Its absolutely amazing that software people can learn about hardware.
>
> don
>

And that with nearly 24!

Reply by Donald H December 13, 20102010-12-13
--- In l..., "zied130187" wrote:
>
> thank you my friends !
>
> it's work !!
>
> i have receive \n\rOK\n\r :)&
> thank you !
> when i measure the value with scope i found the baud rate is 4800
>
> i change the value in my code :
>
> UART1Init(19200);
>
> with
>
> UART1Init(76800);
>
> and it's work !!!
>

Its absolutely amazing that software people can learn about hardware.

don

Reply by Tim Mitchell December 13, 20102010-12-13
----Original Message----
From: l...
[mailto:l...] On Behalf Of zied130187
Sent: 13 December 2010 14:54 To: l...
Subject: [lpc2000] Re: problem communication UART LPC2129
to LM400 bluetooth

> --- In l..., Soori
> wrote:
> >
> > first u test uart communication with 19200 baudrate
> >
> > and then connect LM400 in swap mode means
> >
> > RX OF LM400->TX OF LPC2129
> >
> > TX OF LM400->RX OF LPC2129
> >
> > and then in program just send AT commands.
> >
> > Definately it will work
> >
>
>
> thank you for your response ,
>
> i test UART1 with my config (normally the baud rate is
> 19200)
> it work when i connect U1TX to U1RX,
>
> i have measured the signal with scope,
> i have found : 1 bit is send in 208 s.
>
> how i can calculate the baud rate from this value ?

bit rate = 1/(bit time)

your bit rate is 4800 baud!!

--
Tim Mitchell

Reply by zied130187 December 13, 20102010-12-13
i have measured the value between first bit of first U byte
and the first bit of the second byte

the value is 2,5 ms

and the value of transmission of 1 bit is 208 s

how i can calculate the baud rate with this tow values ?

Reply by Tim Mitchell December 13, 20102010-12-13
----Original Message----
From: l...
[mailto:l...] On Behalf Of zied130187
Sent: 13 December 2010 15:38 To: l...
Subject: [lpc2000] Re: problem communication UART LPC2129
to LM400 bluetooth

>
> when i measure the value with scope i found the baud rate
> is 4800
>

I've lost count of the times this has happened to me.
I never believe a baud rate till I've seen it on the scope.

--
Tim Mitchell