Re: UART Communication between MPC566 and a 8bit Microcontroller
"Rajesh" <[email protected]> Fri, 29 Sep 2006 15:57:32 -0000
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Joe,
The configuration part is ok. Now I found a small fault in
this. I captured the time required for transfer/receive of each data
bits on CRO, by sending a dummy character through SCI; and this bit
trnsfer/rcving time is matching with baudrate of 9600,whereas my code
is running on 19200,i.e. exactly on double.
I have also checked the MPC566 clock frequency which is 40MHz and
crystal is running at 4MHz. The relation between SCI baud rate and
system-clock frequency as mentioned in datasheet is :
= fsys/(32*baudrate), whereas,
fsys is 40MHz and
bautrate = desired baud rate of operation (19200 in mycase).
Can you please tell,why it is wroking exactly at half baudrate,though
I have configured as 19200? Is there any problem of some division
factor,that is taken care internally?
-regards
Rajesh
--- In [email protected], "trailrunner23" <joep@...> wrote:
>
> Hi Rajesh,
>
> The two UARTs must be configured with the same settings to communicate
> with each other:
>
> - baud rate, data bits, parity, stop bits
>
> If you have them set up the same way, and they are not communicating,
> you must be doing something else wrong.
>
> Joe
>
> --- In [email protected], "Rajesh" <rajesh86us@> wrote:
> >
> >
> > Hi,
> > I am using two microcontrollers, one is MPC566 with 40 MHz
> > clock,and other one is a 8 bit,running at 22.1184 MHz. I am trying for
> > (OnBoard) inter-processor UART communication,by running MPC at a
> > baudrate of 19200 and the other at 9600.
> > The problem is, sometimes it runs and data Trasmission and Recieving
> > is ok, but sometimes it's not.
> > I tried by configuring both with same baud rates but geting same
> problem.
> > Can anyone please suggest,how to deal with this problem?
> >
> > -regards
> > Rajesh
> >
>
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/MPC500/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/