<?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: Cannot get the CAN bus working   in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456002#M11626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gerhard,&lt;/P&gt;&lt;P&gt;The Clock generation module changed from the S12C to the S12P.&amp;nbsp; Can you verify that the clocks to the system are correct and the MSCAN module is selecting the correct clocks.&amp;nbsp; If you look at the MSCAN module, the MSCAN clocks default to the external oscillator reference so please make sure the S12P64 has its oscillator enabled.&amp;nbsp; Note that by default, the S12P64 comes up in the PLL Engaged Internal (PEI) mode with the external oscillator disabled.&amp;nbsp; Therefore, you must set the OSCE bit in the CPMUOSC register to enable the external oscillator. &lt;/P&gt;&lt;P&gt;I hope this resolves your issues.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 20:23:59 GMT</pubDate>
    <dc:creator>peter_pinewski</dc:creator>
    <dc:date>2015-08-24T20:23:59Z</dc:date>
    <item>
      <title>Cannot get the CAN bus working </title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456000#M11624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working successfully the CANbus on&amp;nbsp; 9S12C64 9S12D128 and 9S12C32 controllers. &lt;/P&gt;&lt;P&gt;After switching on a new project to the 9S12P64 controller, I can get no CAN message onto the bus, and I cannot read any that is on the bus.&amp;nbsp; &lt;/P&gt;&lt;P&gt;There is only 1 register different on the P64 chip, and I wrote to that.&lt;/P&gt;&lt;P&gt;What are people usually do wrong, when they start with the P64 and CANbus ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456000#M11624</guid>
      <dc:creator>Gman</dc:creator>
      <dc:date>2015-08-20T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get the CAN bus working</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456001#M11625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using the same routines for entire portfolio of S12 devices. The only change I use is Buss off for newer devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually we have met following issues.&lt;BR /&gt; &lt;BR /&gt;1) There are incompatible CAN interface ICs used for physical CAN bus. Only devices with the same electrical and timing characteristics are able to communicate.&lt;BR /&gt;2) Wrong communication speed design. You can use attached excel sheet to check CANBTR0 and CANBTR1 registers setup.&lt;BR /&gt;3) Wrong PCB design. There could be some EMI which affect CAN bus. Please check by oscilloscope signals at CAN bus and also at MCU’s CAN pins.&lt;/P&gt;&lt;P&gt;4) I hope SW approach is OK if you are able to work in the loopback mode.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5) You can test the can by simplified connection between two devices without transceivers described in the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf" rel="nofollow"&gt;http://www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example for communication I have attached SW I made "a few" days ago.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; Best Regards, Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456001#M11625</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2015-08-21T08:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get the CAN bus working</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456002#M11626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gerhard,&lt;/P&gt;&lt;P&gt;The Clock generation module changed from the S12C to the S12P.&amp;nbsp; Can you verify that the clocks to the system are correct and the MSCAN module is selecting the correct clocks.&amp;nbsp; If you look at the MSCAN module, the MSCAN clocks default to the external oscillator reference so please make sure the S12P64 has its oscillator enabled.&amp;nbsp; Note that by default, the S12P64 comes up in the PLL Engaged Internal (PEI) mode with the external oscillator disabled.&amp;nbsp; Therefore, you must set the OSCE bit in the CPMUOSC register to enable the external oscillator. &lt;/P&gt;&lt;P&gt;I hope this resolves your issues.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 20:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Cannot-get-the-CAN-bus-working/m-p/456002#M11626</guid>
      <dc:creator>peter_pinewski</dc:creator>
      <dc:date>2015-08-24T20:23:59Z</dc:date>
    </item>
  </channel>
</rss>

