<?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 LPC 1837 &amp; CAN - all messages in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-1837-CAN-all-messages/m-p/670220#M26811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can me somebody help?LPC has only 32 can messages, which make interrupt. &amp;nbsp;It is posible to catch all messages on CAN?&lt;/P&gt;&lt;P&gt;I have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_SCU_PinMuxSet(3, 1,(SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(3, 2,(SCU_MODE_INACT | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Chip_SCU_PinMuxSet(2, 13, (SCU_MODE_FUNC0 | SCU_PINIO_FAST));&lt;BR /&gt; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 13); /* GPIO5[6] = USB1_PWR_EN */&lt;BR /&gt; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 13, false); /* GPIO5[6] output high */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_SetBaseClock(CLK_BASE_APB3, CLKIN_IDIVC, true, false);&lt;BR /&gt; Chip_CCAN_Init(LPC_C_CAN0);&lt;BR /&gt; Chip_CCAN_SetBitRate(LPC_C_CAN0, 500000);&lt;/P&gt;&lt;P&gt;Chip_CCAN_EnableTestMode(LPC_C_CAN0);&lt;BR /&gt; Chip_CCAN_ConfigTestMode(LPC_C_CAN0, (CCAN_TEST_BASIC_MODE | CCAN_TEST_BASIC_MODE));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Chip_CCAN_EnableInt(LPC_C_CAN0, (CCAN_CTRL_IE | CCAN_CTRL_SIE | CCAN_CTRL_EIE));&lt;/P&gt;&lt;P&gt;&amp;nbsp;NVIC_EnableIRQ(C_CAN0_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and interrupt function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;void CAN0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; CCAN_MSG_OBJ_T msg_buf;&lt;BR /&gt; uint32_t can_interrupt;&lt;BR /&gt; uint32_t can_status;&lt;BR /&gt; uint16_t can_mini_id_0 = 0;&lt;BR /&gt; uint16_t can_mini_id_1 = 0;&lt;BR /&gt; uint16_t i_mod = 0;&lt;/P&gt;&lt;P&gt;while ( (can_interrupt = Chip_CCAN_GetIntID(LPC_C_CAN0)) != 0 )&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ((CCAN_INT_STATUS == can_interrupt) &amp;amp;&amp;amp; (CCAN_STAT_RXOK &amp;amp; LPC_C_CAN0-&amp;gt;STAT))&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg_buf.id = (LPC_C_CAN0-&amp;gt;IF[CCAN_MSG_IF1].ARB1 | LPC_C_CAN0-&amp;gt;IF[CCAN_MSG_IF1].ARB2 &amp;lt;&amp;lt; 16);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_C_CAN0-&amp;gt;STAT = LPC_C_CAN0-&amp;gt;STAT &amp;amp; (~CCAN_STAT_RXOK);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I can't to catch any messages....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jul 2017 14:52:00 GMT</pubDate>
    <dc:creator>phateee</dc:creator>
    <dc:date>2017-07-15T14:52:00Z</dc:date>
    <item>
      <title>LPC 1837 &amp; CAN - all messages</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-1837-CAN-all-messages/m-p/670220#M26811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;can me somebody help?LPC has only 32 can messages, which make interrupt. &amp;nbsp;It is posible to catch all messages on CAN?&lt;/P&gt;&lt;P&gt;I have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_SCU_PinMuxSet(3, 1,(SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_FUNC2));&lt;BR /&gt; Chip_SCU_PinMuxSet(3, 2,(SCU_MODE_INACT | SCU_MODE_FUNC2));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Chip_SCU_PinMuxSet(2, 13, (SCU_MODE_FUNC0 | SCU_PINIO_FAST));&lt;BR /&gt; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 13); /* GPIO5[6] = USB1_PWR_EN */&lt;BR /&gt; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 13, false); /* GPIO5[6] output high */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_Clock_SetBaseClock(CLK_BASE_APB3, CLKIN_IDIVC, true, false);&lt;BR /&gt; Chip_CCAN_Init(LPC_C_CAN0);&lt;BR /&gt; Chip_CCAN_SetBitRate(LPC_C_CAN0, 500000);&lt;/P&gt;&lt;P&gt;Chip_CCAN_EnableTestMode(LPC_C_CAN0);&lt;BR /&gt; Chip_CCAN_ConfigTestMode(LPC_C_CAN0, (CCAN_TEST_BASIC_MODE | CCAN_TEST_BASIC_MODE));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Chip_CCAN_EnableInt(LPC_C_CAN0, (CCAN_CTRL_IE | CCAN_CTRL_SIE | CCAN_CTRL_EIE));&lt;/P&gt;&lt;P&gt;&amp;nbsp;NVIC_EnableIRQ(C_CAN0_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and interrupt function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;void CAN0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; CCAN_MSG_OBJ_T msg_buf;&lt;BR /&gt; uint32_t can_interrupt;&lt;BR /&gt; uint32_t can_status;&lt;BR /&gt; uint16_t can_mini_id_0 = 0;&lt;BR /&gt; uint16_t can_mini_id_1 = 0;&lt;BR /&gt; uint16_t i_mod = 0;&lt;/P&gt;&lt;P&gt;while ( (can_interrupt = Chip_CCAN_GetIntID(LPC_C_CAN0)) != 0 )&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ((CCAN_INT_STATUS == can_interrupt) &amp;amp;&amp;amp; (CCAN_STAT_RXOK &amp;amp; LPC_C_CAN0-&amp;gt;STAT))&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msg_buf.id = (LPC_C_CAN0-&amp;gt;IF[CCAN_MSG_IF1].ARB1 | LPC_C_CAN0-&amp;gt;IF[CCAN_MSG_IF1].ARB2 &amp;lt;&amp;lt; 16);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_C_CAN0-&amp;gt;STAT = LPC_C_CAN0-&amp;gt;STAT &amp;amp; (~CCAN_STAT_RXOK);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I can't to catch any messages....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 14:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-1837-CAN-all-messages/m-p/670220#M26811</guid>
      <dc:creator>phateee</dc:creator>
      <dc:date>2017-07-15T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 1837 &amp; CAN - all messages</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-1837-CAN-all-messages/m-p/670221#M26812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="290603" data-username="phateee@seznam.cz" href="https://community.nxp.com/people/phateee@seznam.cz"&gt;Jan Mal&amp;amp;yacute&lt;/A&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'd already replied and please check the Case: &lt;A href="https://nxp.my.salesforce.com/5005700001VItbM"&gt;00125004&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Have a great day,&lt;/DIV&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 08:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-1837-CAN-all-messages/m-p/670221#M26812</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-07-18T08:18:02Z</dc:date>
    </item>
  </channel>
</rss>

