Sign in

username:

password:



Not a member?

Search c28x



Search tips

Subscribe to c28x



Discussion Groups

Discussion Groups | TMS320C28x | CAN communication using interrupt

Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).

  

Post a new Thread

CAN communication using interrupt - "Hwang, Wen-Ruey" - Oct 29 10:06:38 2007



Hi Vishal,

Recently I modified a CAN example program from polling to interrupt and
running with the Dspace as an another node to communnicate with 2808.
The polling program is working fine for ever but the interrupt was
failed on the half way. I attached the two programs and need your input
to point me out where I have to pay attention of the interrupt
situations. In my program I generated three transmitters and one
receiver. The two transmitters send counting data all the time; while
one transmitter and one receiver update the Dspace node sending a number
each other. One was using polling and the other one was using interrupt.
Thanks, 

Wen-Ruey Hwang

You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________




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

Re: CAN communication using interrupt - saur...@yahoo.com - Nov 5 8:05:08 2007

hi , 

I have some problmes in the CAN transmission.After my can initialization is done when i go for
transmission and chek the TA bit I it not getting set. Also i chek the CANES register where i
see that the SMA(suspend mode) bit is active. If i set the free mode bit in the CANMC the   can
module goes in error passive mode (indicated in CANES).

Hi Vishal,
>
>Recently I modified a CAN example program from polling to interrupt and
>running with the Dspace as an another node to communnicate with 2808.
>The polling program is working fine for ever but the interrupt was
>failed on the half way. I attached the two programs and need your input
>to point me out where I have to pay attention of the interrupt
>situations. In my program I generated three transmitters and one
>receiver. The two transmitters send counting data all the time; while
>one transmitter and one receiver update the Dspace node sending a number
>each other. One was using polling and the other one was using interrupt.
>Thanks, 
>
>Wen-Ruey Hwang
>
You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

 


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

Re: Re: CAN communication using interrupt - gopalakrishnan vishal anand - Nov 6 8:56:10 2007

Hi,

In order to bring the processor out of the error
passive mode automatically, set the ABO (Auto Bus ON)
bit in the CANMC register. This should solve most of
your problems.

ECanaShadow.CANMC.all = ECanaRegs.CANMC.all;
ECanaShadow.CANMC.bit.ABO = 1;
ECanaRegs.CANMC.all = ECanaShadow.CANMC.all;	

Thanks,
Vishal

--- s...@yahoo.com wrote:

> hi , 
> 
> I have some problmes in the CAN transmission.After
> my can initialization is done when i go for
> transmission and chek the TA bit I it not getting
> set. Also i chek the CANES register where i see that
> the SMA(suspend mode) bit is active. If i set the
> free mode bit in the CANMC the   can module goes in
> error passive mode (indicated in CANES).
> 
> Hi Vishal,
> >
> >Recently I modified a CAN example program from
> polling to interrupt and
> >running with the Dspace as an another node to
> communnicate with 2808.
> >The polling program is working fine for ever but
> the interrupt was
> >failed on the half way. I attached the two programs
> and need your input
> >to point me out where I have to pay attention of
> the interrupt
> >situations. In my program I generated three
> transmitters and one
> >receiver. The two transmitters send counting data
> all the time; while
> >one transmitter and one receiver update the Dspace
> node sending a number
> >each other. One was using polling and the other one
> was using interrupt.
> >Thanks, 
> >
> >Wen-Ruey Hwang
> 

You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

 


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