----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
problem communication UART LPC2129 to LM400 bluetooth
Started by ●December 13, 2010
Reply by ●December 13, 20102010-12-13
Reply by ●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
>
> 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 ●December 13, 20102010-12-13
> Its absolutely amazing that software people can learn
about hardware.
>
> don
>
And that with nearly 24!
>
> don
>
And that with nearly 24!
Reply by ●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
>
> > 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 ●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
>
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 ●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
>
> --- 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 ●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...
> > 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 ●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
> --- 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