Reply by Kellogg Dave November 5, 20032003-11-05
Considering the simplest things: Do you have a common ground between the two
boards? 607-656-2597 -----Original Message-----
From: Yogeesh [mailto:]
Sent: Wednesday, November 05, 2003 6:07 AM
To:
Subject: [68HC12] Problem with SCI Hi All,

I am using DP256 for my application. I am trying to comunicate serially via
interrupts between two identical cards
with SCI 0 (rx only) of one connected to SCI 1 (tx only) of the other. I
have configured SCICR1 as 0x00 and SCICR2
as 0x2C in both SCIs. I am enabling transmission (by setting TIE of SCICR2)
after filling tx buffer (an array of
bytes) and keep transmitting till the buffer is emptied. Each byte is
written into SCIDRL of SCI 1 after checking
TDRE for 1 by ISR.

But I am not able to receive the same data (any data) at the receiving end.
Would any of you help me out in
receiving?

I also checked TC flag before sending next byte of data from the Tx. I also
successfully checked both internal
and external loop back (with rx pin connected to tx pin) on DP256 EVB. I am
not able to figure out the problem....

Thanks,
Yogeesh --------------------
">http://docs.yahoo.com/info/terms/



Reply by John Theofanopoulos November 5, 20032003-11-05
Yogeesh,

The first obvious thing that I need to ask, is whether these things are
on the same ground. (This could be a problem if they don't have the
same reference). The other question, have you looked at the receive pin
on the micro with a scope to verify that data is actually coming in?
(I usually try to figure out if data is actually there, before trying to
muck around with the software...btw, your init looks ok).

> I am using DP256 for my application. I am trying to
> comunicate serially via interrupts between two identical cards
> with SCI 0 (rx only) of one connected to SCI 1 (tx only) of
> the other. I have configured SCICR1 as 0x00 and SCICR2
> as 0x2C in both SCIs. I am enabling transmission (by setting
> TIE of SCICR2) after filling tx buffer (an array of
> bytes) and keep transmitting till the buffer is emptied. Each
> byte is written into SCIDRL of SCI 1 after checking
> TDRE for 1 by ISR.
>
> But I am not able to receive the same data (any data) at the
> receiving end. Would any of you help me out in
> receiving?
>
> I also checked TC flag before sending next byte of data from
> the Tx. I also successfully checked both internal
> and external loop back (with rx pin connected to tx pin) on
> DP256 EVB. I am not able to figure out the problem....
>
> Thanks,
> Yogeesh
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Rent DVDs from home. Over 14,500
> titles. Free Shipping & No Late Fees. Try Netflix for FREE!
> http://us.click.yahoo.com/I3w.vC/hP.FAA/3jkFAA/dN_tlB/TM
>
> --------------------------
> -------~->
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/
>




Reply by Yogeesh November 5, 20032003-11-05
Hi All,

I am using DP256 for my application. I am trying to comunicate serially via interrupts between two identical cards
with SCI 0 (rx only) of one connected to SCI 1 (tx only) of the other. I have configured SCICR1 as 0x00 and SCICR2
as 0x2C in both SCIs. I am enabling transmission (by setting TIE of SCICR2) after filling tx buffer (an array of
bytes) and keep transmitting till the buffer is emptied. Each byte is written into SCIDRL of SCI 1 after checking
TDRE for 1 by ISR.

But I am not able to receive the same data (any data) at the receiving end. Would any of you help me out in
receiving?

I also checked TC flag before sending next byte of data from the Tx. I also successfully checked both internal
and external loop back (with rx pin connected to tx pin) on DP256 EVB. I am not able to figure out the problem....

Thanks,
Yogeesh