Stuff error( Bit timing parameters)

"chinna_indra2000" <[email protected]> Sun, 06 Jan 2008 17:47:36 -0000
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
--f7soT6wZy5UZXuQBrtpU1ZXvHWdi9AQcovuwxkC
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi

I have used the following bit-timing settings on each board

Bit rate   =3D 1 Mbps
sync_seg   =3D 1
prop_seg   =3D 4
phase_seg1 =3D 5
phase_seg2 =3D 3
RJW        =3D 1
system clock frequencey =3D 56MHz
Baud rate=3D 83330

please let me know is this bit timing setting results in stuff error
and reply me with some configuration.

Regards,
Indrasena


RE: [MPC500] Stuff error=20


Stuff errors are hardware or timing related and there are no
restrictions on the content of the data frame - after 5 consecutive=20
bits
of ID, data or CRC, the Toucan will automatically stuff a bit. THe=20
only
s/w error is setting the bit timing.

Here are a few things to try:
- ensure you have the 120ohm termination resistors at each end of the
bus i.e. two 120 ohm resistors across CAN_H and CAN_L. THis is
essential.
- check or adjust your bit-timing settings and use the same settings=20
on
each device. THere's more to it than just having the numbers add up=20
to
the correct timing. Set RJW to max and make sure the prop delay is
reasonable. Look at the waveform on a scope to check the timing. With
the termination resistors, the waveform should look relatively=20
square.
- if it still doesn't work, try dropping the baud rate to see if you=20
get
any success. 1Mbaud is the max, but try reducing it just to see if=20
you
get any better success. If you have your bit-timings correct, 1M=20
should
be possible without errors.

- Allan

________________________________

From: [email protected] [mailto:[email protected]] On=20
Behalf
Of chinna_indra2000
Sent: Saturday, December 29, 2007 10:34 PM
To: [email protected]
Subject: [MPC500] Stuff error



I get stuff error while transmitting messages over TouCAN.

Following is the test setup I have used for the CAN message
transmission Two MPC 565 boards connected by CAN cables (TouCAN A
and TouCAN B on one board connected to TouCAN A and TouCAN B
respectively on another board).

I have used Extended ID 0xEEEEEEEE for transmitting the Data Frame
from the first 565 board to second one.

When I send a message from First MPC565 board to the second one I
get a stuff error on second one.

Can a stuff error can occur due to problem in the software or does
it occur only due to hardware problem?

Is there any restriction on the content of the Data Frame ie., I
read in one of the CAN documents that there should not be 7
consecutive recessive bits in CAN frame.

Please let me know.

Regards,
Indrasena





--f7soT6wZy5UZXuQBrtpU1ZXvHWdi9AQcovuwxkC
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>




<body style="background-color: #ffffff;">

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id="ygrp-mlmsg" style="width:655px; position:relative;">
  <div id="ygrp-msg" style="width: 490px; padding: 0 15px 0 0; float:left;  z-index:1;">
<!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id="ygrp-text">
            <p>Hi<br>
<br>
I have used the following bit-timing settings on each board<br>
<br>
Bit rate   = 1 Mbps<br>
sync_seg   = 1<br>
prop_seg   = 4<br>
phase_seg1 = 5<br>
phase_seg2 = 3<br>
RJW        = 1<br>
system clock frequencey = 56MHz<br>
Baud rate= 83330<br>
<br>
please let me know is this bit timing setting results in stuff error<br>
and reply me with some configuration.<br>
<br>
Regards,<br>
Indrasena<br>
<br>
RE: [MPC500] Stuff error <br>
<br>
Stuff errors are hardware or timing related and there are no<br>
restrictions on the content of the data frame - after 5 consecutive <br>
bits<br>
of ID, data or CRC, the Toucan will automatically stuff a bit. THe <br>
only<br>
s/w error is setting the bit timing.<br>
<br>
Here are a few things to try:<br>
- ensure you have the 120ohm termination resistors at each end of the<br>
bus i.e. two 120 ohm resistors across CAN_H and CAN_L. THis is<br>
essential.<br>
- check or adjust your bit-timing settings and use the same settings <br>
on<br>
each device. THere's more to it than just having the numbers add up <br>
to<br>
the correct timing. Set RJW to max and make sure the prop delay is<br>
reasonable. Look at the waveform on a scope to check the timing. With<br>
the termination resistors, the waveform should look relatively <br>
square.<br>
- if it still doesn't work, try dropping the baud rate to see if you <br>
get<br>
any success. 1Mbaud is the max, but try reducing it just to see if <br>
you<br>
get any better success. If you have your bit-timings correct, 1M <br>
should<br>
be possible without errors.<br>
<br>
- Allan<br>
<br>
____________<wbr>_________<wbr>_________<wbr>__<br>
<br>
From: <a href="mailto:MPC500%40yahoogroups.com">MPC500@yahoogroups.<wbr>com</a> [mailto:<a href="mailto:MPC500%40yahoogroups.com">MPC500@yahoogroups.<wbr>com</a>] On <br>
Behalf<br>
Of chinna_indra2000<br>
Sent: Saturday, December 29, 2007 10:34 PM<br>
To: <a href="mailto:MPC500%40yahoogroups.com">MPC500@yahoogroups.<wbr>com</a><br>
Subject: [MPC500] Stuff error<br>
<br>
I get stuff error while transmitting messages over TouCAN.<br>
<br>
Following is the test setup I have used for the CAN message<br>
transmission Two MPC 565 boards connected by CAN cables (TouCAN A<br>
and TouCAN B on one board connected to TouCAN A and TouCAN B<br>
respectively on another board).<br>
<br>
I have used Extended ID 0xEEEEEEEE for transmitting the Data Frame<br>
from the first 565 board to second one.<br>
<br>
When I send a message from First MPC565 board to the second one I<br>
get a stuff error on second one.<br>
<br>
Can a stuff error can occur due to problem in the software or does<br>
it occur only due to hardware problem?<br>
<br>
Is there any restriction on the content of the Data Frame ie., I<br>
read in one of the CAN documents that there should not be 7<br>
consecutive recessive bits in CAN frame.<br>
<br>
Please let me know.<br>
<br>
Regards,<br>
Indrasena<br>
<br>
</p>
    </div>  

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <span width="1" style="color: white;">__._,_.___</span>
    <!-- Start the section with Message In topic -->
    <div id="ygrp-actbar">
              <span class="left">
          <a href="http://groups.yahoo.com/group/MPC500/message/3926;_ylc=X3oDMTM0cTIyNnM3BF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzM5MjYEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMTk5NjQxNjU5BHRwY0lkAzM5MjY-">
            Messages in this topic          </a> (<span class="bld">1</span>)
        </span>
        <a href="http://groups.yahoo.com/group/MPC500/post;_ylc=X3oDMTJwZjFvOXYzBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzM5MjYEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMTk5NjQxNjU5?act=reply&messageNum=3926">
          <span class="bld">
            Reply          </span> (via web post)
        </a>  | 
        <a href="http://groups.yahoo.com/group/MPC500/post;_ylc=X3oDMTJlYm85bmNtBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTE5OTY0MTY1OQ--" class="bld">
          Start a new topic        </a>
          </div> 
    <!-------     Start Nav Bar  ------>
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-vitnav">
                <a href="http://groups.yahoo.com/group/MPC500/messages;_ylc=X3oDMTJlYnN0NW1wBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA21zZ3MEc3RpbWUDMTE5OTY0MTY1OQ--">Messages</a>  
        
        
            |    <a href="http://groups.yahoo.com/group/MPC500/links;_ylc=X3oDMTJmZmFtMGd1BF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA2xpbmtzBHN0aW1lAzExOTk2NDE2NTk-">Links</a>  
        
        
        
        
    </div>  
    <!-- |**|end egp html banner|**| -->

                        <div id="ygrp-grft">
          

        </div>
      
                  <div id="ygrp-mkp">
      <div id="hd">MARKETPLACE</div>
      <div id="ads">
                  <div class="ad">
            <hr size=1 noshade><a href="http://us.ard.yahoo.com/SIG=12m9gh5d7/M=571476.12066680.12490312.11509771/D=groups/S=1706554205:MKP1/Y=YAHOO/EXP=1199648859/A=5086951/R=0/SIG=12k8pu1n3/*http://college-finder.net/index.cfm?key=yahoo_colfngrouptxt_12066680&c=CA152932587">Earn your degree in as few as 2 years - Advance your career with an AS, BS, MS degree</a> - College-Finder.net.          </div>
                              </div>
    </div>
      
    <!-- yahoo logo -->
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-ft">
      <a href="http://groups.yahoo.com/;_ylc=X3oDMTJkaWZwb3VuBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMTk5NjQxNjU5">
      <img src="http://us.i1.yimg.com/us.yimg.com/i/yg/img/logo/ma_grp_160.gif" height="15" width="106" border="0" alt="Yahoo! Groups"></a> <br>
      <a href="http://groups.yahoo.com/group/MPC500/join;_ylc=X3oDMTJma3BwM2c3BF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzExOTk2NDE2NTk-">Change settings via the Web</a> (Yahoo! ID required) <br>
      Change settings via email: <a href="mailto:[email protected]?subject=Email Delivery: Digest">Switch delivery to Daily Digest</a> | <a href = "mailto:[email protected]?subject=Change Delivery Format: Traditional">Switch format to Traditional</a> <br>

      <a href="http://groups.yahoo.com/group/MPC500;_ylc=X3oDMTJkb2FjYjkxBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMTk5NjQxNjU5">
        Visit Your Group 
      </a> |
      <a href="http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use      </a> |
      <a href="mailto:[email protected]?subject=">
        Unsubscribe      </a> 
    </div>     <!-- |**|end egp html banner|**| -->
  </div> <!-- ygrp-msg -->

  
  <!-- Sponsor -->
  <!-- |**|begin egp html banner|**| -->
  <div id="ygrp-sponsor" style="width:140px;float: left; clear: none; margin-left: 5px; background:white; margin-bottom:25px ;position:absolute; top:0; right: 0;">
    <!-- Network content -->
    
    <!-- Start vitality -->
    <div id="ygrp-vital">
              <div id="vithd">Recent Activity</div>
        <ul style="list-style-type:none; padding: 0; margin: 2px 0;">
                <li style="clear: both;">
      <div class="ct" style="float: right;"><span style="display:none">&nbsp;</span>1</div>
      <div class="cat"><a href="http://groups.yahoo.com/group/MPC500/members;_ylc=X3oDMTJmMTNmY2I5BF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzExOTk2NDE2NTk-">New Members</a></div>
    </li>
  
            
            
            
            
            
        </ul>
            <a href="http://groups.yahoo.com/group/MPC500;_ylc=X3oDMTJlZmhocG9uBF9TAzk3MzU5NzE0BGdycElkAzYyNzYzODcEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTE5OTY0MTY1OQ--">
        Visit Your Group      </a>
    </div> 
              
    <!-- Network content -->
              <div id="nc">
              <div class="ad">
                      <div id="hd1">Yahoo! News</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12ji98f7h/M=493064.12016309.12445701.8674578/D=groups/S=1706554205:NC/Y=YAHOO/EXP=1199648859/A=3848627/R=0/SIG=10obc6i69/*http://news.yahoo.com/">Get it all here</a></p> 
<p>Breaking news to</p> 
<p>entertainment news</p>                  </div>
                    <div class="ad">
                      <div id="hd1">Yahoo! Finance</div> 
<p><a href="http://us.ard.yahoo.com/SIG=12jt6shd0/M=493064.12016257.12445664.8674578/D=groups/S=1706554205:NC/Y=YAHOO/EXP=1199648859/A=4507179/R=0/SIG=12de4rskk/*http://us.rd.yahoo.com/evt=50284/*http://finance.yahoo.com/personal-finance">It's Now Personal</a></p> 
<p>Guides, news,</p> 
<p>advice & more.</p>                   </div>
                    <div class="ad">
                      <div id="hd1">Sell Online</div>
<p><a href="http://us.ard.yahoo.com/SIG=12jo08dh3/M=493064.12016255.12445662.8674578/D=groups/S=1706554205:NC/Y=YAHOO/EXP=1199648859/A=4025291/R=0/SIG=12bsapn24/*http://us.rd.yahoo.com/evt=44092/*http://smallbusiness.yahoo.com/merchant">Start selling with</a></p>
<p>our award-winning</p>
<p>e-commerce tools.</p>                  </div>
          </div>
    
  </div>   <!-- |**|end egp html banner|**| -->
  <div style="clear:both; color: #FFF; font-size:1px;">.</div>
</div>   <img src="http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/msgId=3926/stime=1199641659/nc1=3848627/nc2=4507179/nc3=4025291" width="1" height="1"> <br>

<span  style="color: white;">__,_._,___</span>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</body>
<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
<style type="text/css">
<!--
#ygrp-mkp{
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 14px 0px;
  padding: 0px 14px;
}
#ygrp-mkp hr{
  border: 1px solid #d8d8d8;
}
#ygrp-mkp #hd{
  color: #628c2a;
  font-size: 85%;
  font-weight: bold;
  line-height: 122%;
  margin: 10px 0px;
}
#ygrp-mkp #ads{
  margin-bottom: 10px;
}
#ygrp-mkp .ad{
  padding: 0 0;
}
#ygrp-mkp .ad a{
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<head>
<style type="text/css">
<!--
#ygrp-sponsor #ygrp-lc{
  font-family: Arial;
}
#ygrp-sponsor #ygrp-lc #hd{
  margin: 10px 0px;
  font-weight: bold;
  font-size: 78%;
  line-height: 122%;
}
#ygrp-sponsor #ygrp-lc .ad{
  margin-bottom: 10px;
  padding: 0 0;
}
-->
</style>
</head>
<head>
<style type="text/css">
<!--
#ygrp-mlmsg {font-size:13px; font-family: arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;*font-size:100%;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
    font-family: Georgia;	
}
#ygrp-text p{
    margin: 0 0 1em 0;
}
#ygrp-tpmsgs{
    font-family: Arial;	
    clear: both;
}
#ygrp-vitnav{
	padding-top: 10px;
	font-family: Verdana;
	font-size: 77%;
	margin: 0;
}
#ygrp-vitnav a{
	padding: 0 1px;
}
#ygrp-actbar{
	clear: both;
	margin: 25px 0;
	white-space:nowrap;
	color: #666;
	text-align: right;
}
#ygrp-actbar .left{
	float: left;
	white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
	font-family: Verdana;
	font-size: 77%;
	padding: 15px 0;
}
#ygrp-ft{
  font-family: verdana;
  font-size: 77%;
  border-top: 1px solid #666; 
  padding: 5px 0; 
}
#ygrp-mlmsg #logo{
  padding-bottom: 10px;
}

#ygrp-vital{
	background-color: #e0ecee;
	margin-bottom: 20px;
	padding: 2px 0 8px 8px;
}
#ygrp-vital #vithd{
	font-size: 77%;
	font-family: Verdana;
	font-weight: bold;
	color: #333;
	text-transform: uppercase;
}
#ygrp-vital ul{
	padding: 0;
	margin: 2px 0;
}
#ygrp-vital ul li{
  list-style-type: none;
  clear: both;
  border: 1px solid #e0ecee;  
}
#ygrp-vital ul li .ct{
  font-weight: bold;
  color: #ff7900;
  float: right;
  width: 2em;
  text-align:right;
  padding-right: .5em;
}
#ygrp-vital ul li .cat{
  font-weight: bold;
}
#ygrp-vital a{
	text-decoration: none;
}

#ygrp-vital a:hover{
  text-decoration: underline;
}

#ygrp-sponsor #hd{
	color: #999;
	font-size: 77%;
}
#ygrp-sponsor #ov{
	padding: 6px 13px;
	background-color: #e0ecee;
	margin-bottom: 20px;
}
#ygrp-sponsor #ov ul{
	padding: 0 0 0 8px;
	margin: 0;
}
#ygrp-sponsor #ov li{
	list-style-type: square;
	padding: 6px 0;
	font-size: 77%;
}
#ygrp-sponsor #ov li a{
	text-decoration: none;
	font-size: 130%;
}
#ygrp-sponsor #nc{
  background-color: #eee;
  margin-bottom: 20px;
  padding: 0 8px;
}
#ygrp-sponsor .ad{
	padding: 8px 0;
}
#ygrp-sponsor .ad #hd1{
	font-family: Arial;
	font-weight: bold;
	color: #628c2a;
	font-size: 100%;
	line-height: 122%;
}
#ygrp-sponsor .ad a{
	text-decoration: none;
}
#ygrp-sponsor .ad a:hover{
	text-decoration: underline;
}
#ygrp-sponsor .ad p{
	margin: 0;
}
o{font-size: 0; }
.MsoNormal{
   margin: 0 0 0 0;
}
#ygrp-text tt{
  font-size: 120%;
}
blockquote{margin: 0 0 0 4px;}
.replbq{margin:4}
-->
</style>
</head>
<!--~-|**|PrettyHtmlEnd|**|-~-->
</html><!--End group email -->


--f7soT6wZy5UZXuQBrtpU1ZXvHWdi9AQcovuwxkC--