Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

CAN bus - haythemsalah - Dec 9 16:35:00 2003




Hello,

I'm trying to configure the CAN BUs on the ADSP21992 EZ kit and I
have a lot of problems,
Does somebody worked on or have a code examples of using the CAN bus
on this DSP?

Thanks,*

Haithem





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: CAN bus - Hany Ferdinando - Dec 10 9:54:00 2003

Hi Haithem,

to configure CAN means to set the CANBCR0 and CANBCR1 for desired speed.
CANBCR0 holds BRP, while CANBCR0 holds TSEG1 (PHASESEG1+PROPSEG), TSEG2
(PHASESEG2), SAM and SJW. The formula is:

speed = HCLK /((3+TSEG1+TSEG2)(1+BRP)).

for this board HCLK is 8MHz (not 80MHz!!!). TSEG1 >= TSEG2 and you have to make
BRP as small as possible. All combinations are only candidate, so you have to
tried it. From my experience, we cannot reach speed higher than 111.111kHz. If
you can get higher speed, please tell me. This combination depends on the cable
you used.

Either you do it in assembly or c/c++, the way you can configure is the same.
Don't forget to change the memory page if you access the peripheral register!!

Hany

Quoting haythemsalah <>: > Hello,
>
> I'm trying to configure the CAN BUs on the ADSP21992 EZ kit and I
> have a lot of problems,
> Does somebody worked on or have a code examples of using the CAN bus
> on this DSP?
>
> Thanks,*
>
> Haithem





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: CAN bus - Kenneth Porter - Dec 10 15:34:00 2003

BTW, for general CAN discussion (not specific to ADI implementations),
there's a low-traffic list here:

<http://www.vector-informatik.com/canlist/>

The list is mirrored to a Yahoo Groups list but the YG list is read-only,
so if you want to post you have to subscribe at the Vector Informatik site.





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )