<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Probleme for MSCAN in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187757#M7139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pay attention to your BaudRata. May be your baudrate in the kit is not the same with the&amp;nbsp;&amp;nbsp;analyser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 14:08:58 GMT</pubDate>
    <dc:creator>helh_girl</dc:creator>
    <dc:date>2011-03-04T14:08:58Z</dc:date>
    <item>
      <title>Probleme for MSCAN</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187756#M7138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a new user for freescale developpement, i have a kit DEMO9S12XEP100 and i want to send a frame by my borad&lt;/P&gt;&lt;P&gt;So i write this code in code warrior IDE version&amp;nbsp;5.9.0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void main(void) {&lt;BR /&gt;&amp;nbsp; MCU_init(); /* call Device Initialization */&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CANInit(); /* Initialize MSCAN12 Module */&lt;BR /&gt;while(!(CAN0CTL0&amp;amp;0x10)); /* Wait for Synchronization */&lt;BR /&gt;CAN0RFLG = 0xC3;&lt;BR /&gt;CAN0RIER = 0x01;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt; {&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CAN0TBSEL = CAN0TFLG;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CAN0TXIDR0 = 0x20;&lt;BR /&gt;&amp;nbsp; CAN0TXIDR1 = 0x00;&lt;BR /&gt;&amp;nbsp; CAN0TXIDR2 = 0x00;&lt;BR /&gt;&amp;nbsp; CAN0TXIDR3 = 0x00;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR0 = 0x0F;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR1 = 0x12;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR2 = 0x13;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR3 = 0x14;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR4 = 0x15;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR5 = 0x16;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR6 = 0x17;&lt;BR /&gt;&amp;nbsp; CAN0TXDSR7 = 0x18;&lt;BR /&gt;&amp;nbsp; CAN0TXDLR= 0x08;&lt;BR /&gt;&amp;nbsp; CAN0TXTBPR=0x00;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; /* schedule transmit buffer for transmission */&lt;BR /&gt;&amp;nbsp; CAN0TFLG =CAN0TBSEL;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;void CANInit(void) {&lt;BR /&gt;CAN0CTL0 = 0x01;&amp;nbsp;&amp;nbsp; /* Enter initialisation Mode*/&lt;BR /&gt;while (!(CAN0CTL1&amp;amp;0x01)){};&amp;nbsp; /* attente d'initialisation */&lt;BR /&gt;CAN0CTL1= 0x80;&lt;BR /&gt;CAN0BTR0= 0xC0;&lt;BR /&gt;CAN0BTR1= 0x3A;&lt;BR /&gt;CAN0IDAC= 0x10;&lt;BR /&gt;CAN0IDAR0= 0xFF;&lt;BR /&gt;CAN0IDMR0= 0xFF;&lt;BR /&gt;CAN0IDAR1= 0xFF;&lt;BR /&gt;CAN0IDMR1= 0xFF;&lt;BR /&gt;CAN0IDAR2= 0xFF;&lt;BR /&gt;CAN0IDMR2= 0xFF;&lt;BR /&gt;CAN0IDAR3= 0xFF;&lt;BR /&gt;CAN0IDMR3= 0xFF;&lt;/P&gt;&lt;P&gt;CAN0CTL0 = 0x00; /* Exit Initialization Mode Request */&lt;BR /&gt;while ((CAN0CTL1&amp;amp;0x01) != 0){};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;my transeiver is TJA 1041 high speed and its conected with port S (STB and EN ) wich i configured at output and&amp;nbsp; "1".&lt;/P&gt;&lt;P&gt;for the acknowledge, i use the CanAlyser from vector.&lt;/P&gt;&lt;P&gt;and when i run i obserevd in my trace in CanAlyser the erro frame.&lt;/P&gt;&lt;P&gt;I do not wehre is the probleme?&lt;/P&gt;&lt;P&gt;Thank you for my help if you are a solution for me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187756#M7138</guid>
      <dc:creator>DEMO9S12XEP100</dc:creator>
      <dc:date>2011-03-03T00:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme for MSCAN</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187757#M7139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pay attention to your BaudRata. May be your baudrate in the kit is not the same with the&amp;nbsp;&amp;nbsp;analyser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 14:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187757#M7139</guid>
      <dc:creator>helh_girl</dc:creator>
      <dc:date>2011-03-04T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme for MSCAN</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187758#M7140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;you are rignt in my program there is an error about my configuration timing&lt;/P&gt;&lt;P&gt;i tested&amp;nbsp;and it s good about 125Kbit and i have a frame in my trace with Canalyser which&amp;nbsp;its configured also at 125kbits (good)&lt;/P&gt;&lt;P&gt;the eroor is&amp;nbsp;CAN0BTR0= 0xC1; and not 0xC0.&lt;/P&gt;&lt;P&gt;its necessary to configured the port ao TJA 1041T inpaut EN an STB to "1"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will buy a oscillater with 16Mhz to make 500 Kbits/s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 17:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Probleme-for-MSCAN/m-p/187758#M7140</guid>
      <dc:creator>DEMO9S12XEP100</dc:creator>
      <dc:date>2011-03-04T17:02:50Z</dc:date>
    </item>
  </channel>
</rss>

