<?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  CAN's 29ID in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-s-29ID/m-p/628447#M24704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;This code comes from NXP's official example.But I do not know how to change to 29ID.Who knows to give me a reminder？&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;uint32_t CanApiClkInitTable[2];&lt;BR /&gt;/* Publish CAN Callback Functions */&lt;BR /&gt;CCAN_CALLBACKS_T callbacks = {&lt;BR /&gt;CAN_rx,&lt;BR /&gt;CAN_tx,&lt;BR /&gt;CAN_error,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;};&lt;BR /&gt;SystemCoreClockUpdate();&lt;BR /&gt;//Board_Init();&lt;BR /&gt;baudrateCalculate(TEST_CCAN_BAUD_RATE, CanApiClkInitTable);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;LPC_CCAN_API-&amp;gt;init_can(&amp;amp;CanApiClkInitTable[0], TRUE);&lt;BR /&gt;/* Configure the CAN callback functions */&lt;BR /&gt;LPC_CCAN_API-&amp;gt;config_calb(&amp;amp;callbacks);&lt;BR /&gt;/* Enable the CAN Interrupt */&lt;BR /&gt;NVIC_EnableIRQ(CAN_IRQn);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;/* Send a simple one time CAN message */&lt;BR /&gt;msg_obj.msgobj = 0;&lt;BR /&gt;msg_obj.mode_id = 0x345;&lt;BR /&gt;msg_obj.mask = 0x0;&lt;BR /&gt;msg_obj.dlc = 4;&lt;BR /&gt;msg_obj.data[0] = 'T'; // 0x54&lt;BR /&gt;msg_obj.data[1] = 'E'; // 0x45&lt;BR /&gt;msg_obj.data[2] = 'S'; // 0x53&lt;BR /&gt;msg_obj.data[3] = 'T'; // 0x54&lt;BR /&gt;LPC_CCAN_API-&amp;gt;can_transmit(&amp;amp;msg_obj);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG&gt;/* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */&lt;/STRONG&gt;&lt;BR /&gt;msg_obj.msgobj = 1;&lt;BR /&gt;msg_obj.mode_id = 0x400;&lt;BR /&gt;msg_obj.mask = 0x700;&lt;BR /&gt;LPC_CCAN_API-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);&lt;BR /&gt;#if 0&lt;BR /&gt;while (1) {&lt;BR /&gt;//__WFI(); /* Go to Sleep */&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 08:38:51 GMT</pubDate>
    <dc:creator>vnv</dc:creator>
    <dc:date>2017-04-20T08:38:51Z</dc:date>
    <item>
      <title>CAN's 29ID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-s-29ID/m-p/628447#M24704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;This code comes from NXP's official example.But I do not know how to change to 29ID.Who knows to give me a reminder？&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;uint32_t CanApiClkInitTable[2];&lt;BR /&gt;/* Publish CAN Callback Functions */&lt;BR /&gt;CCAN_CALLBACKS_T callbacks = {&lt;BR /&gt;CAN_rx,&lt;BR /&gt;CAN_tx,&lt;BR /&gt;CAN_error,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;NULL,&lt;BR /&gt;};&lt;BR /&gt;SystemCoreClockUpdate();&lt;BR /&gt;//Board_Init();&lt;BR /&gt;baudrateCalculate(TEST_CCAN_BAUD_RATE, CanApiClkInitTable);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;LPC_CCAN_API-&amp;gt;init_can(&amp;amp;CanApiClkInitTable[0], TRUE);&lt;BR /&gt;/* Configure the CAN callback functions */&lt;BR /&gt;LPC_CCAN_API-&amp;gt;config_calb(&amp;amp;callbacks);&lt;BR /&gt;/* Enable the CAN Interrupt */&lt;BR /&gt;NVIC_EnableIRQ(CAN_IRQn);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;/* Send a simple one time CAN message */&lt;BR /&gt;msg_obj.msgobj = 0;&lt;BR /&gt;msg_obj.mode_id = 0x345;&lt;BR /&gt;msg_obj.mask = 0x0;&lt;BR /&gt;msg_obj.dlc = 4;&lt;BR /&gt;msg_obj.data[0] = 'T'; // 0x54&lt;BR /&gt;msg_obj.data[1] = 'E'; // 0x45&lt;BR /&gt;msg_obj.data[2] = 'S'; // 0x53&lt;BR /&gt;msg_obj.data[3] = 'T'; // 0x54&lt;BR /&gt;LPC_CCAN_API-&amp;gt;can_transmit(&amp;amp;msg_obj);&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG&gt;/* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */&lt;/STRONG&gt;&lt;BR /&gt;msg_obj.msgobj = 1;&lt;BR /&gt;msg_obj.mode_id = 0x400;&lt;BR /&gt;msg_obj.mask = 0x700;&lt;BR /&gt;LPC_CCAN_API-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);&lt;BR /&gt;#if 0&lt;BR /&gt;while (1) {&lt;BR /&gt;//__WFI(); /* Go to Sleep */&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 08:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-s-29ID/m-p/628447#M24704</guid>
      <dc:creator>vnv</dc:creator>
      <dc:date>2017-04-20T08:38:51Z</dc:date>
    </item>
    <item>
      <title>Re:  CAN's 29ID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-s-29ID/m-p/628449#M24706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your tips.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 05:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-s-29ID/m-p/628449#M24706</guid>
      <dc:creator>vnv</dc:creator>
      <dc:date>2017-04-21T05:41:31Z</dc:date>
    </item>
  </channel>
</rss>

