<?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>S12 / MagniV MicrocontrollersのトピックRe: Can't start CAN link between to nodes</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-start-CAN-link-between-to-nodes/m-p/127009#M630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You wrote:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;PrescallerValue = 20 (P=0b10101)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;0b10101 is 21 and PrescalerValue=22&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 01:33:15 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2007-03-20T01:33:15Z</dc:date>
    <item>
      <title>Can't start CAN link between to nodes</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-start-CAN-link-between-to-nodes/m-p/127008#M629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to start CAN communications on MC9S12C32. I am using AN3034 application notes and code example that goes with it. I tested the Back Loop mode, which is implemented in the example and it seems to work well. Now I am trying to set up a link between mentioned controller and GZ16 STK. It is a 68HC908GZ16 controller starter kit, which has CAN. I trust the code (originally shipped with) that runs this GZ16 so I believe that this node is properly configured and has CAN communication set for 50kBaud (the width of a bit on the oscilloscope on the bus wire is approx. 20us, the rear edge (left) of the bit is bended significantly). The board is controlled through SPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample code is set for 125kbps speed it says in the AN3034. According to the data sheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bit time = ((Prescaller Value)*(1+TimeSeg1+TimeSeg2))/fCANCLK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My MSCAN Clock Source is 16 MHz oscillator clock (CANCTL1 = 0x80) just like in AN3034. I want speed 50 kbps so I pick up coefficients:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeSeg1 = 11 (TSEG1 = 0b1010)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeSeg2 = 4 (TSEG2 = 0b011)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PrescallerValue = 20 (P=0b10101)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SyncJump = 3 (SJW = 0b10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so: CANBTR0 = 0x95; CANBTR1 = 0x3A;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to formula I should get 20us time witch is what I see when message comes from the GZ16 node. But in practice I see something like 22us. Significantly bended left edge of the bit as well. The hardware seems to be right done (I use SN65HVD251 as a CAN transceiver). Hence microcontroller hangs when I try to send a message through CAN because it does no receive any acknowledgment. What do I do wrong????&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saulius&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 00:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-start-CAN-link-between-to-nodes/m-p/127008#M629</guid>
      <dc:creator>sauliuz</dc:creator>
      <dc:date>2007-03-20T00:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start CAN link between to nodes</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-start-CAN-link-between-to-nodes/m-p/127009#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You wrote:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;PrescallerValue = 20 (P=0b10101)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;0b10101 is 21 and PrescalerValue=22&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 01:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-start-CAN-link-between-to-nodes/m-p/127009#M630</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2007-03-20T01:33:15Z</dc:date>
    </item>
  </channel>
</rss>

