<?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>LPCXpresso IDEのトピックRe: CAN TD Problem LPCXpresso 1769</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582811#M25596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Oct 17 04:53:58 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably this function is providing a Bypass mode also ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&amp;nbsp;&amp;nbsp; CAN_SetACCF( ACCF_BYPASS );&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:02:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:02:44Z</dc:date>
    <item>
      <title>CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582800#M25585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Thu Oct 11 03:15:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am using the folowing setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]LPCXpresso 1769&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Computer Connected to Kvaser Eagle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]MCP2551 CAN Transceiver (interface between above mentioned items)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A schematic of how I connected the transceiver to my Xpresso is included. Also a picture of my setup is included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a startoff project I used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/mcb1700-sample-code-bundle-lpc1769-peripherals-using-lpcxpresso"&gt;http://www.lpcware.com/content/nxpfile/mcb1700-sample-code-bundle-lpc1769-peripherals-using-lpcxpresso&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Project name: CAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not modify anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I transmit a message from my Kvaser to my Xpresso, I can see on my scope that RD is receiving a nice logic signal, which is 5V when my kvaser Eagle is not transmitting anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However my Eagle keeps retransmitting because it does not get an acknowledgement. I am reading error flagx 0x20, which indicates and Error frame. This is a flag which I also receive when the eagle is not connected to any CAN BUS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot read anything on my TD bus except for a constant 3.0V signal. When I remove my Xpresso this signal is 5V because the MCP2551 has a pull-up resistor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried different PINMODE0 settings for the TD port without any success. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I am trying to run the program on my Xpresso, it transmits a message. But after that it gets stuck in this loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while ( !(LPC_CAN1-&amp;gt;GSR &amp;amp; (1 &amp;lt;&amp;lt; 3)) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cantest.c line 193&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any experience regarding CAN and their transceivers. This as much as I figured out on my own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help would be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already searched the forum extensively, but it is hard to try and test all CAN libraries and tests posted on this forum. Therefore I'm starting a fresh topic and hoping someone can help me out. Maybe there is a very simple solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joep Roebroek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582800#M25585</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582801#M25586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 11 03:30:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which CAN setup are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are P0.0 and P0.1 setup as CAN?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582801#M25586</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582802#M25587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Thu Oct 11 03:43:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, they are, this is default in the CAN project that was provided:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]LPC_PINCON-&amp;gt;PINSEL0 &amp;amp;= ~0x0000000F;&amp;nbsp; /* CAN1 is p0.0 and p0.1*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_PINCON-&amp;gt;PINSEL0 |=&amp;nbsp; 0x00000005;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_PINCON-&amp;gt;PINSEL4 &amp;amp;= ~0x0003C000;&amp;nbsp; /* CAN2 is p2.7 and p2.8 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_PINCON-&amp;gt;PINSEL4 |=&amp;nbsp; 0x00014000;[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The usermanual indicates that 01 indicates that the port should be used for CAN.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582802#M25587</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582803#M25588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 11 03:48:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the result of Local Self Test?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582803#M25588</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582804#M25589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Thu Oct 11 06:31:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm guessing you mean: testing whether it communicates between CAN1 and CAN2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I am trying to set that up now, but the problem is that I'm getting a debug error and I don't know why this started happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Image is included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched for a while and I did the following without any results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* enabled vector catch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* GND the ISP pin (P2.10) and assert RST (I don't know what that means, but I put RESET_N on +5V)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting really frustrated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582804#M25589</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582805#M25590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 11 06:47:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No :eek: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Local Self Test' is described in UM and #4 of &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?p=5962&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's used to test 1 channel &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 without transceiver :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 with transceiver without other nodes (= without acknowledgement) :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try to get debug access to your target again you have to pull low ISP pin and reset your target (= pin 17 low) or cycle power ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582805#M25590</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582806#M25591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Thu Oct 11 07:37:37 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did what you said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]uint32_t CAN_Init( uint32_t can_btr )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CAN1RxDone = CAN2RxDone = FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_SC-&amp;gt;PCONP |= ((1&amp;lt;&amp;lt;13)|(1&amp;lt;&amp;lt;14));&amp;nbsp; /* Enable CAN1 and CAN2 clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL0 &amp;amp;= ~0x0000000F;&amp;nbsp; /* CAN1 is p0.0 and p0.1*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL0 |=&amp;nbsp; 0x00000005;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL4 &amp;amp;= ~0x0003C000;&amp;nbsp; /* CAN2 is p2.7 and p2.8 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL4 |=&amp;nbsp; 0x00014000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINMODE0 &amp;amp;= ~0x0000000F;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_PINCON-&amp;gt;PINMODE0 |=&amp;nbsp; 0x00000002;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;MOD = LPC_CAN2-&amp;gt;MOD = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset CAN */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;IER = LPC_CAN2-&amp;gt;IER = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable Receive Interrupt */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;GSR = LPC_CAN2-&amp;gt;GSR = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset error counter when CANxMOD is in reset*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;MOD = (1&amp;lt;&amp;lt;2); //local self test&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;CMR = (0x1&amp;lt;&amp;lt;1) | // Abort transmission bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x1&amp;lt;&amp;lt;2) | // Release receive buffer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x1&amp;lt;&amp;lt;3);&amp;nbsp; // Clear data overrun bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;BTR = LPC_CAN2-&amp;gt;BTR = can_btr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //LPC_CAN1-&amp;gt;MOD = LPC_CAN2-&amp;gt;MOD = 0x0;&amp;nbsp; /* CAN in normal operation mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; NVIC_EnableIRQ(CAN_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CAN1-&amp;gt;IER = LPC_CAN2-&amp;gt;IER = 0x01; /* Enable receive interrupts */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return( TRUE );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CAN1-&amp;gt;MOD returns 0x5 in the expression watch, so my transceiver is probably broken?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My transceivers RD signal still works however, so this is very strange. But I will make sure that I get some new transceivers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joep Roebroek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582806#M25591</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582807#M25592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 11 07:49:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;LPC_CAN1-&amp;gt;MOD returns 0x5 in the expression watch, so my transceiver is probably broken?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;No :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5 = 4 + 1 = Self Test Mode + Reset Mode :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch Self Test Mode if all settings are done, just before you enable CAN Interrupt ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Reset Mode CAN isn't working :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: MCP2551 is a 5V transceiver,&amp;nbsp; if you change your transceiver use a 5V transceiver for 3.3V devices (TJF1051) or a real 3.3V transceiver (3.3V supply) like SN65HVD23x.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582807#M25592</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582808#M25593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Wed Oct 17 03:37:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some more debugging:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First I wanted to check if the signal that was put on the RD pin was processed so I made the following in my main.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]MsgBuf_RX1.Frame = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.MsgID = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.DataA = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.DataB = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CAN_SetACCF( ACCF_ON );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; while ( 1 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Check if message has been received&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if ( CAN1RxDone == TRUE )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CAN1RxDone = FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Everything is correct, reset buffer */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.Frame = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.MsgID = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.DataA = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBuf_RX1.DataB = 0x0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} /* Message on CAN 2 received */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should work when the kvaser is sending messages, but when i put a breakpoint in the if statement it never fires. CAN mode is set to 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I looked up CAN Mode in the manual and it said there is a Test Mode when you set bit 7 to 1. What this mode does is simply copy the input at RD to the output at TD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works! However the TD signal has a very long slope (large RC-time) and it only reaches 3V max (but this is what you explained the NXP LPC1769 works with 3V logic levels).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my questions are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]What causes this long RC-time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Why doesn't it process the received signal, i.e. Put the message received bool (CAN1RxDone) on 1? The interrupt is not called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help so far!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582808#M25593</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582809#M25594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Oct 17 04:22:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;So my questions are:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What causes this long RC-time?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;CAN-BUS (=wires) and it's termination :)&amp;nbsp; (Is it terminated :confused: And if so, how?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;So my questions are:&lt;BR /&gt;Why doesn't it process the received signal, i.e. Put the message received bool (CAN1RxDone) on 1? The interrupt is not called.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;CAN_SetACCF( ACCF_ON );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you familiar with Acceptance Filter? If not, bypass it ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582809#M25594</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582810#M25595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Wed Oct 17 04:33:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;CAN-BUS (=wires) and it's termination :)&amp;nbsp; (Is it terminated :confused: And if so, how?)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not measured on the bus. It is measured on the TD and RD pin. The RD pin shows a nice 0 and 5V logic signal. The TD pin replicates the RD signal, however this is 0 and 3V levels and has a long RC time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CAN bus itself is terminated using 2 x 120 Ohm resistors. And when I measure this on the scope there is a nice logic differential signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;CAN_SetACCF( ACCF_ON );&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I bypass acceptance filtering? I already tried setting it to ACCF_FULLCAN. Or shouldn't I call the function at all?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582810#M25595</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582811#M25596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Oct 17 04:53:58 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably this function is providing a Bypass mode also ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&amp;nbsp;&amp;nbsp; CAN_SetACCF( ACCF_BYPASS );&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582811#M25596</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582812#M25597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Thu Oct 18 00:58:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Probably this function is providing a Bypass mode also ;)&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp;&amp;nbsp; CAN_SetACCF( ACCF_BYPASS );&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for not checking that first, before posting a reply so quicly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Considering my status: The long RC-time was due to a defect in the measuring probe :(. So it now copies the signal nicely, however with 3.3V logic signals, but this is obvious because the Xpresso is a 3.3V unit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I put it back in normal mode however LPC_CAN1-&amp;gt;MOD = 0; Every time the Kvaser repeats the message on the CAN the Xpresso puts a 0 on the TD port. This looks like he is trying to post a confirm, but I'm not sure. The MCP2551 however doesn't seem to do anything with it. So I'll just wait for the NXP transceivers to arrive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I do find strange is that regardless of the confirm 0, the CANRx1Done bool never reaches true.... But this is something I will investigate later on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your support so far!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582812#M25597</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582813#M25598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 18 02:22:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what you are talking about :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how CAN is working? Are we talking about ACK at TD :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scoping signals (CAN-H against RD or TD) is showing you what's happening ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582813#M25598</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582814#M25599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mindblaze on Fri Oct 19 05:12:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the image attached you can see what RD and TD do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RD is yellow, this is the output RXD of the transceiver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TD is blue, this is the output of the LPCXpresso to TXD of the transceiver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I interpret this image, TD is Acknowledging the incoming signal RD with a 0V pulse. Is this correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However the LPCXpresso doesn't seem to do an interrupt in the code. I really don't get what is going wrong.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582814#M25599</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582815#M25600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Oct 19 06:16:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Mindblaze&lt;/STRONG&gt;&lt;BR /&gt; As I interpret this image, TD is Acknowledging the incoming signal RD with a 0V pulse. Is this correct?&lt;BR /&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, this is an classic ACK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How transceiver work is easier to understand if you scope CAN-H against RD / TD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This pictures show a received, transmitted and ACKed CAN frame:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://flic.kr/p/dkJ96Q&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://flic.kr/p/dkJ6Qv&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://flic.kr/p/dkJ991&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably your code is wrong :p&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582815#M25600</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAN TD Problem LPCXpresso 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582816#M25601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tarik1985 on Fri Nov 16 10:40:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am beginner in LPCXpresso lpc1769, and i want&amp;nbsp; to do a program in language C which can receive a data from CANbus to my PC in txt file but i don't know where i can develop it and how to begin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-TD-Problem-LPCXpresso-1769/m-p/582816#M25601</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:02:49Z</dc:date>
    </item>
  </channel>
</rss>

