MSCAN On 9S12D64 80 Pin Package Problem

Started by tophongli April 27, 2007
Hello All,

I have an MSCAN program that works with 9S12D64 112 Pin package well.
When I use the same program on a 9S12D64 80 Pin package, I could not
make it work as before.

The CAN0 used PM0/PM1 on 112 Pin chip. It will use PJ6/PJ7 on 80 Pin
chip.

I have set: MODRR = 0x03; /* Route CAN0 to PJ6,
PJ7 */

Seems not working.

Tried to set other ports: DDRP |= 0x80; DDRM |= 0x83; DDRJ |= 0x83;
but still no use.

Any ideas? Thanks a lot.
Hi Venki,

Thank you very much for your help. I have tried the new settings and haven't
solved the problem yet. I am working with the hardware engineer now to
see if there are any hardware problems. Will let you know once I have solved
the problem.

Best regards,
Hong
On 4/29/07, Venkateshwarlu K wrote:
>
> Hi,
>
> Check with these settings. I have done this with 80 pin DJ64 and it is
> working fine for me.
>
> DDRS = 0x02;
>
> DDRJ |= 0x80; /* PJ7 is CAN_TX : outport */
>
> DDRJ &= 0xBF; /* PJ6 is CAN_RX : Inport */
>
> MODRR |= 0x03; /* CAN0 Routitng PJ6,PJ7 */
>
> Regards,
>
> Venki.
>
> _____
>
> From: 6... <68HC12%40yahoogroups.com> [mailto:
> 6... <68HC12%40yahoogroups.com>] On Behalf Of
> tophongli
> Sent: Saturday, April 28, 2007 6:12 AM
> To: 6... <68HC12%40yahoogroups.com>
> Subject: [68HC12] MSCAN On 9S12D64 80 Pin Package Problem
>
> Hello All,
>
> I have an MSCAN program that works with 9S12D64 112 Pin package well.
> When I use the same program on a 9S12D64 80 Pin package, I could not
> make it work as before.
>
> The CAN0 used PM0/PM1 on 112 Pin chip. It will use PJ6/PJ7 on 80 Pin
> chip.
>
> I have set: MODRR = 0x03; /* Route CAN0 to PJ6,
> PJ7 */
>
> Seems not working.
>
> Tried to set other ports: DDRP |= 0x80; DDRM |= 0x83; DDRJ |= 0x83;
> but still no use.
>
> Any ideas? Thanks a lot.
>
> DISCLAIMER------
> This communication and any files transmitted with it contain information
> which is
> confidential and which may also be privileged. It is for the exclusive use
> of
> the intended recipient(s). If you are not the intended recipient(s),
> please
> note that any disclosure, copying, printing or use what-so-ever of this
> communication or the information contained in it is strictly prohibited.
> If you
> have received this communication in error, please notify the author or
> p...@jopasana.com and then delete the
> e-mail together with any copies of
> it. Although this communication is believed to be free of any virus(s)
> which
> might affect any computer or IT system into which they are opened, it is
> the
> responsibility of the recipient to ensure that they are virus free.
>
>
>

--
Best Regards
Hong
Hi Venki,

After we changed CAN transceiver from MAX 3053 to Philips C250, my programs
worked on PJ6/PJ7. We don't know why MAX 3053 didn't work but it seems a
hardware problem instead of a software problem. Thank you very much for your
help.

Best regards,
Hong
On 4/29/07, Venkateshwarlu K wrote:
>
> Hi,
>
> Check with these settings. I have done this with 80 pin DJ64 and it is
> working fine for me.
>
> DDRS = 0x02;
>
> DDRJ |= 0x80; /* PJ7 is CAN_TX : outport */
>
> DDRJ &= 0xBF; /* PJ6 is CAN_RX : Inport */
>
> MODRR |= 0x03; /* CAN0 Routitng PJ6,PJ7 */
>
> Regards,
>
> Venki.
>
> _____
>
> From: 6... <68HC12%40yahoogroups.com> [mailto:
> 6... <68HC12%40yahoogroups.com>] On Behalf Of
> tophongli
> Sent: Saturday, April 28, 2007 6:12 AM
> To: 6... <68HC12%40yahoogroups.com>
> Subject: [68HC12] MSCAN On 9S12D64 80 Pin Package Problem
>
> Hello All,
>
> I have an MSCAN program that works with 9S12D64 112 Pin package well.
> When I use the same program on a 9S12D64 80 Pin package, I could not
> make it work as before.
>
> The CAN0 used PM0/PM1 on 112 Pin chip. It will use PJ6/PJ7 on 80 Pin
> chip.
>
> I have set: MODRR = 0x03; /* Route CAN0 to PJ6,
> PJ7 */
>
> Seems not working.
>
> Tried to set other ports: DDRP |= 0x80; DDRM |= 0x83; DDRJ |= 0x83;
> but still no use.
>
> Any ideas? Thanks a lot.
>
> DISCLAIMER------
> This communication and any files transmitted with it contain information
> which is
> confidential and which may also be privileged. It is for the exclusive use
> of
> the intended recipient(s). If you are not the intended recipient(s),
> please
> note that any disclosure, copying, printing or use what-so-ever of this
> communication or the information contained in it is strictly prohibited.
> If you
> have received this communication in error, please notify the author or
> p...@jopasana.com and then delete the
> e-mail together with any copies of
> it. Although this communication is believed to be free of any virus(s)
> which
> might affect any computer or IT system into which they are opened, it is
> the
> responsibility of the recipient to ensure that they are virus free.
>
>
>

--
Best Regards
Hong