DP256 CAN Transmission

Started by venki May 3, 2005
Hi,

Am a newbie to CAN. Am trying to implement a CAN driver on MC9S12DP256 micro
eval board using metrowerks codewarrior.

I have 2 problems

1. There are 5 CAN channels in DP256. How to select the required channel
?.(We are using CANE bit and MODRR registers, still not transmitting)
2. We observed that the "sync" bit in CAN1CTL0 is always zero.

The target board is connected to the PC card for CAN communication.
We are observing the signals at CAN transceiver input(from micro) pins using
a oscilloscope.

Am struck with this problem. Please help me out.

Thanks
Venki

--------------
Venkat
Dearborn Electronics India
Bangalore - 560 041
Ph: 91-80-26345466 / 26632617 / 26340404 - Ext 207
Fax: 91-80-26534949
www.deindia.com <http://www.deindia.com>
-------------- ----------------------------------
Email From ""venki" <venki@venk...>" was security checked by 3.93 version of CxProtect(tm)
On: deiserver at: 19:51:42, 03-May-2005 Tuesday
Engine: 4.110.21, sign.def:23-Mar-2005, sign2.def:23-Mar-2005, macro.def:18-Mar-2005
----------------------------------



Venki, the 5 CAN channels on the DP256 are all mapped to different memory
and all the Tx,Rx pins are brought out to different pins so there should be no
need to change anything. You can just write to each section of memory depending
on which CAN channel you are talking to. I have posted a sample CAN program
on this list in the past. If you can't find it send me an email and I'll send it to
you directly.
Steve

Steven D. Letkeman BSc.
President - Zanthic Technologies Inc.
403-526-8318
www.zanthic.com Embedded micro-controllers and CAN interfaces
www.brightan.com Automated lighting systems

----- Original Message -----
From: venki
To: 68HC12@68HC...
Sent: Tuesday, May 03, 2005 8:11 AM
Subject: [68HC12] DP256 CAN Transmission Hi,

Am a newbie to CAN. Am trying to implement a CAN driver on MC9S12DP256 micro
eval board using metrowerks codewarrior.

I have 2 problems

1. There are 5 CAN channels in DP256. How to select the required channel
?.(We are using CANE bit and MODRR registers, still not transmitting)
2. We observed that the "sync" bit in CAN1CTL0 is always zero.

The target board is connected to the PC card for CAN communication.
We are observing the signals at CAN transceiver input(from micro) pins using
a oscilloscope.

Am struck with this problem. Please help me out.

Thanks
Venki

--------------
Venkat
Dearborn Electronics India
Bangalore - 560 041
Ph: 91-80-26345466 / 26632617 / 26340404 - Ext 207
Fax: 91-80-26534949
www.deindia.com <http://www.deindia.com>
-------------- ----------------------------------
Email From ""venki" <venki@venk...>" was security checked by 3.93 version of CxProtect(tm)
On: deiserver at: 19:51:42, 03-May-2005 Tuesday
Engine: 4.110.21, sign.def:23-Mar-2005, sign2.def:23-Mar-2005, macro.def:18-Mar-2005
---------------------------------- ------
Yahoo! Groups Links

a.. To