<?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>LPC MicrocontrollersのトピックRe: Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090563#M41815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC2129&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2020 11:05:07 GMT</pubDate>
    <dc:creator>akhileshverneka</dc:creator>
    <dc:date>2020-07-13T11:05:07Z</dc:date>
    <item>
      <title>Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090561#M41813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#include&amp;lt;lpc21xx.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; char a[100]={1,3,5,7,9,11,13,15};&lt;BR /&gt; char b[100]={2,4,6,8,10,12,14,16};&lt;BR /&gt;char rxdata[8]={0,0,0,0,0,0,0,0};&lt;BR /&gt;char txdata[8]={0,0,0,0,0,0,0,0};&lt;BR /&gt; int flag=1;&lt;BR /&gt; unsigned int l,id;&lt;BR /&gt; unsigned int low,high;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void can_init()&lt;BR /&gt;{&lt;BR /&gt; PINSEL1 |= 0x00040000; can1 rx&lt;/P&gt;&lt;P&gt;AFMR=0x02; // All messages are received&lt;BR /&gt; C1MOD=0x01; // CAN is set to reset mode&lt;BR /&gt; C1IER=0x00; // Disabling all interrupts&lt;BR /&gt; C1RFS=0x00003000;&lt;BR /&gt; C1BTR=0x00270004; // Setting Baud rate to 500kbps , Baudrate Prescalar &lt;BR /&gt;C1MOD=0×00; // CAN is set to normal mode&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void can_tx(char a[])&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; C1TFI1=0X00080000; // Data length code = 3 is set, RTR =0;&lt;BR /&gt; C1TID1=0X92; // Identifier is set to 34(dec)&lt;BR /&gt; &lt;BR /&gt; C1TDA1=(a[0]) | (a[1]&amp;lt;&amp;lt;8) | (a[2]&amp;lt;&amp;lt;16) | (a[3]&amp;lt;&amp;lt;24); // 4 bytes of data is added&lt;BR /&gt; C1TDB1=(a[4]) | (a[5]&amp;lt;&amp;lt;8) | (a[6]&amp;lt;&amp;lt;16) | (a[7]&amp;lt;&amp;lt;24); // &lt;BR /&gt; C1CMR=0X21; // Transmission request and Transmitter buffer 1 is selected;&lt;BR /&gt; &lt;BR /&gt; while((C1SR &amp;amp; 0x04 )!= 0x04); // wait till transmission is completed&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt;void can_rx()&lt;BR /&gt;{&lt;BR /&gt; int i;&lt;BR /&gt; //while ((C1GSR &amp;amp; 0x00000010)!= 0x000000010)&lt;/P&gt;&lt;P&gt;flag=0;&lt;BR /&gt; // Checking if data is present in Rx buffer&lt;BR /&gt; if((C1RFS &amp;amp; 0x00000008)!=0x00000008) &lt;BR /&gt; {&lt;BR /&gt; l=C1RFS; // Length of the Received data&lt;BR /&gt; id=C1RID; // Stores the Identifier of the Rx msg into id&lt;BR /&gt; low=C1RDA; // Received data is stored in d&lt;BR /&gt; high=C1RDB;&lt;BR /&gt; &lt;BR /&gt; for(i=0;i&amp;lt;4;i++)&lt;BR /&gt; {&lt;BR /&gt; txdata[i]=low&amp;lt;&amp;lt;(i*8);&lt;BR /&gt; }&lt;BR /&gt; for(i=4;i&amp;lt;8;i++)&lt;BR /&gt; {&lt;BR /&gt; txdata[i]=high&amp;lt;&amp;lt;(i*8);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; else&lt;BR /&gt;C1CMR=0x04; // Releases the Rx buffer&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; can_init();&lt;/P&gt;&lt;P&gt;can_tx(a);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2020 14:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090561#M41813</guid>
      <dc:creator>akhileshverneka</dc:creator>
      <dc:date>2020-07-11T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090562#M41814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="342565" data-username="akhileshvernekar30@gmail.com" href="https://community.nxp.com/people/akhileshvernekar30@gmail.com"&gt;Akhilesh Vernekar&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Please tell me which chip do you used, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:27:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090562#M41814</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-07-13T09:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090563#M41815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC2129&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 11:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090563#M41815</guid>
      <dc:creator>akhileshverneka</dc:creator>
      <dc:date>2020-07-13T11:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090564#M41816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lpc2129 board&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 11:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090564#M41816</guid>
      <dc:creator>akhileshverneka</dc:creator>
      <dc:date>2020-07-13T11:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sir when I do Pinsel for CAN 1 RX which is 0x00040000 the board resets Please help me.I have attached the code below</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090565#M41817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Akhilesh,&lt;/P&gt;&lt;P&gt;Have you config the clock well ?&lt;/P&gt;&lt;P&gt;This chip is too old, I recommend you use new LPC products, there are many demos and&lt;/P&gt;&lt;P&gt;applications support new chips.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 06:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sir-when-I-do-Pinsel-for-CAN-1-RX-which-is-0x00040000-the-board/m-p/1090565#M41817</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-07-20T06:49:53Z</dc:date>
    </item>
  </channel>
</rss>

