avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Code for MPC2510 Canbus controller over SPI


From: Anton Erasmus
Subject: Re: [avr-gcc-list] Code for MPC2510 Canbus controller over SPI
Date: Wed, 05 Jun 2002 19:28:59 +0200

Hello,

On 4/6/2002 at 09:48 Robert Rozman wrote:

>Hello,
>
>I wonder if anyone is willing to share experience, more info and code
>for connecting MPC2510 (standalone Canbus controller) over SPI to Atmel
>AVR processors.

I have used the MPC2510 connected to the ATMega103. The MPC2510 has got
a number of bugs. The most serious one, is that it corrupts the Rx buffer when 
it
receives a message into the next buffer when one already contains a message. 
One hence have to read the Rx buffer before any new message arrives. Luckely
the ATMega103 at 6MHz is more that fast enough to read the buffer before the 
next
message arrives. An ATMega128 will be able to handle it even better. (Higher 
SPI rate)

One thing when getting any CAN bus going -- One should preferably have at least 
one
working node. The CAN bus automatically re-transmits up to 128 times and then 
shuts down
if no node is available to recieve the message.  I used a Parallel port CAN 
dongle from
Phytec which was not too expensive.

Regards
   Anton Erasmus


>Regards,
>
>Robert Rozman
>
>
>avr-gcc-list at http://avr1.org



avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]