Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Re: Re: problem regarding Succesful Transmission of CAN message

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Re: Re: problem regarding Succesful Transmission of CAN message - Edward Karpicz - Mar 26 4:45:37 2009

wrote:

> how application knows when arbitration lost? will msCAN retry later?
> thanks!

Yes MSCAN will retry later. It will keep retrying until message is send and
acked by other nodes.

>
> helo everybody
>>
>> i am working on S12MSCAN-v2....for data transmission
>>between any test equipment and an ECU...the Microcontroller I am
>>using in the using ECU is MC9S12D64..
>>
>> i have a question regarding this....
>>
>> how can we know that the CAN transmission is
>>completed...instead of cheking the MSCAN transmitter register
>>(CAN0TFLG (TXE))..

Why checking TXE doesn't suit you?

>>
>> how can we check the status of the CAN bus..i.e., when we
>>send a data to the Data segement register....CANTFLG will be set to 1
>>automatically stating that the transmitter buffer is empty that
>>means the transmission is completed succesfully..but how can we know
>>about the successful transmission if the CAN Bus is Open or any error
>>occured in the CAN bus...please provide the sample code for this if u
>>have...

To check if bus is OK, you should configure RSTATEx, TSTATEx bits in CANRIER
register. Then you should monitor CSCIF flag. RSTATx (no E in bit name),
TSTATx flags are updated only when CSCIF is cleared. So every time error
status changes (CSCIF=1), you read error status flags RSTATx, TSTATx and
clear CSCIF by writing one to it.

Edward

>>it will help me alot..
>>thanks and regards
>>Yadunandan
> ------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


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