RE: Remote frame transmission
"Dobbin Allan-r11834" <[email protected]> Mon, 2 Apr 2007 08:12:21 -0700
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <4147ED8B92A864498825C07E53594E4A020E2D8C@az33exm20.fsl.freescale.net> |
You have to use the automatic transmission method. The alternative is to use the automatic transmission (code = 1010) with a 0-byte data length and use its interrupt or status bit to trigger a routine to send the data frame. Of course this method means you will have sent two data frames in response to the remote frame. There are alternatives, but they are messy and could lead to missing transmissions. For instance, if you prevent the remote frame from transmitting (disable the TX pin, may lead to internal bus errors, prevents CAN from participating in any traffic or ACKs) and poll its CODE field for 1110, that means the remote frame has been received. You then cancel its transmission and set up a data frame in its place. I've never tried this and don't expect it could be used in a practical system. - Allan ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of prashanth_feb9 Sent: Saturday, March 31, 2007 12:37 AM To: [email protected] Subject: [MPC500] Remote frame transmission Hello Everybody, Is it possible to prepare and transmit a data frame in response to a remote frame (not automatic transmission)? As per the MPC565 manual the remote frame is not stored in the receive message buffer. How do I check whether a remote frame has been received so that I can prepare the response data frame and send it? Thanks in advance -Prashanth [Non-text portions of this message have been removed]