TouCAN: abort transmission

"Corey, Richard" <[email protected]> Thu, 21 Jun 2007 16:55:12 -0700
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <CE6D1945BC24ED4B923A20CB128F45D803DCE092@lyncourier.aerospace.craneae.com>
Hello All

Does anyone know a cleaner way to abort a pending or active TouCAN
transmission than just writing 0b1000="NOT Ready For Transmit" to the
Control/Status register CODE field?  

I'm concerned about some frame being aborted in mid-transmission,
causing a stuff error, adding error frames to an already heavily-loaded
bus.  Thanks in advance!

BACKGROUND:

I need to abort and delete any TouCAN msg that has failed to be sent
successfully after 10 ms or more of waiting for bus arbitration or an
ACK.  (We don't want to send stale data even during powerup, power-loss
recovery or bursts of too-heavy bus loading.)

The usual case would be that no other node was powered up and ACKing.
Occasionally the mechanism will be responding to a failure to gain bus
access (100% bus load by high-priority msgs).  I want to minimize the
risk of interrupting a partial frame.


In other words, a TouCAN msg has already been written into a mailbox
("Message Buffer"), and enabled for transmission.  I already wrote
0b1100="Data Frame to be Transmitted Once" into Control/Status register
CODE field) - i.e. Section 16.3. That mailbox might or might not have
been copied to the shift register, might be waiting for arbitration to
give it access, might be transmitting for the first time, or
re-transmitting due to lack of ACK.

I need to step on a mailbox that is live without causing a glitch.  


I've read section 16.4.3, "Transmit Process" and the following, but they
seem to only address  _orderly_  deactivation, turning off a mailbox
that is not loaded.  I've loaded the mailbox and pulled the trigger, but
got a hangfire.

16.3.1.5 Message Buffer Activation/Deactivation Mechanism
A buffer is deactivated by writing the appropriate deactivation code to
the control/status word for that
buffer. A buffer is typically deactivated to reconfigure the buffer (for
example to change the buffer's
function from Rx to Tx or Tx to Rx).

With some CAN controllers, there is a bit to set somewhere that waits
for the next inter-frame gap, and THEN deactivates a TX mailbox.  Does
anyone know of a mechanism like that in TouCAN?

Rick Corey  



We value your opinion!  How may we serve you better?
Please click the below survey link to tell us how we are doing.

http://www.craneae.com/surveys/satisfaction.htm

Your feedback is of the utmost importance to us! Thank you for your time!


######################################################################
Attention: 
The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient, or any employee or agent responsible to deliver it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful.

If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files.


This email was scanned and cleared by MailMarshal.
######################################################################


[Non-text portions of this message have been removed]