<?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: auto baudrate detection</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543549#M12718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ianLWD on Wed May 06 04:16:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply, but it is still unclear what to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I add the can struct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the same struct in the LPC11xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I allready tried to add the struct in the following header files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; board.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ccand_11xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; chip.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it didnt work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CAN-&amp;gt;CNTL (1&amp;lt;&amp;lt;7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after using this code,the error is : " 'LPC_CAN' undeclared (first use in this function)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you can help me with this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with kind regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ianlwd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:43:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:43:32Z</dc:date>
    <item>
      <title>auto baudrate detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543547#M12716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ianLWD on Mon May 04 05:01:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi there!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a project i want to edit the LPCopen canbus example program so it can automatically detect the baud rate. I have found a way how to do that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.can-cia.org%2Ffileadmin%2Fcia%2Ffiles%2Ficc%2F9%2Fkoppe.pdf" rel="nofollow" target="_blank"&gt;http://www.can-cia.org/fileadmin/cia/files/icc/9/koppe.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The microcontroller I'm using is the LPC11C24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to set the cancontroller into silent mode so it will not generate error frames which will disrupt the canbus. I have no clue on how to set the registers. I know CMSIS uses LPC11xx.h to acces te registers. But I cannot find something simular for LPCopen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So can anyone help me on how i can set the registers? In the userguide the registers are CANCNTL (0x4005 0000 bit 7 page 286 User Guide UM10398) And CANTEST (0x4005 0014 bit 3 page 291 User Guide UM10398). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IanLWD&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543547#M12716</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: auto baudrate detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543548#M12717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon May 04 07:51:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There a missing a few things in LPCOpen&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;&lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add a CAN struct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/*------------- CAN Controller (CAN) ----------------------------*/
/** @addtogroup LPC11xx_CAN LPC11xx Controller Area Network(CAN)
&amp;nbsp; @{
*/
typedef struct
{
&amp;nbsp; __IO uint32_t CNTL;/* 0x000 */
&amp;nbsp; __IO uint32_t STAT;
&amp;nbsp; __IO uint32_t EC;
&amp;nbsp; __IO uint32_t BT;
&amp;nbsp; __IO uint32_t INT;
&amp;nbsp; __IO uint32_t TEST;
&amp;nbsp; __IO uint32_t BRPE;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED0;
&amp;nbsp; __IO uint32_t IF1_CMDREQ;/* 0x020 */
&amp;nbsp; __IO uint32_t IF1_CMDMSK;
&amp;nbsp; __IO uint32_t IF1_MSK1;
&amp;nbsp; __IO uint32_t IF1_MSK2;
&amp;nbsp; __IO uint32_t IF1_ARB1;
&amp;nbsp; __IO uint32_t IF1_ARB2;
&amp;nbsp; __IO uint32_t IF1_MCTRL;
&amp;nbsp; __IO uint32_t IF1_DA1;
&amp;nbsp; __IO uint32_t IF1_DA2;
&amp;nbsp; __IO uint32_t IF1_DB1;
&amp;nbsp; __IO uint32_t IF1_DB2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED1[13];
&amp;nbsp; __IO uint32_t IF2_CMDREQ;/* 0x080 */
&amp;nbsp; __IO uint32_t IF2_CMDMSK;
&amp;nbsp; __IO uint32_t IF2_MSK1;
&amp;nbsp; __IO uint32_t IF2_MSK2;
&amp;nbsp; __IO uint32_t IF2_ARB1;
&amp;nbsp; __IO uint32_t IF2_ARB2;
&amp;nbsp; __IO uint32_t IF2_MCTRL;
&amp;nbsp; __IO uint32_t IF2_DA1;
&amp;nbsp; __IO uint32_t IF2_DA2;
&amp;nbsp; __IO uint32_t IF2_DB1;
&amp;nbsp; __IO uint32_t IF2_DB2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED2[21];
&amp;nbsp; __I&amp;nbsp; uint32_t TXREQ1;/* 0x100 */
&amp;nbsp; __I&amp;nbsp; uint32_t TXREQ2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED3[6];
&amp;nbsp; __I&amp;nbsp; uint32_t ND1;/* 0x120 */
&amp;nbsp; __I&amp;nbsp; uint32_t ND2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED4[6];
&amp;nbsp; __I&amp;nbsp; uint32_t IR1;/* 0x140 */
&amp;nbsp; __I&amp;nbsp; uint32_t IR2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED5[6];
&amp;nbsp; __I&amp;nbsp; uint32_t MSGV1;/* 0x160 */
&amp;nbsp; __I&amp;nbsp; uint32_t MSGV2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t RESERVED6[6];
&amp;nbsp; __IO uint32_t CLKDIV;/* 0x180 */
} LPC_CAN_TypeDef;
/*@}*/ /* end of group LPC11xx_CAN */

#define LPC_CAN0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((LPC_CAN_TypeDef&amp;nbsp;&amp;nbsp;&amp;nbsp; *) LPC_CAN0_BASE)
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: That's a known issue&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fforgotten-can-register-struct-lpcxpresso-lpc11c24-lpcopen-v200a" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/forgotten-can-register-struct-lpcxpresso-lpc11c24-lpcopen-v200a&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543548#M12717</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: auto baudrate detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543549#M12718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ianLWD on Wed May 06 04:16:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply, but it is still unclear what to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I add the can struct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the same struct in the LPC11xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I allready tried to add the struct in the following header files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; board.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ccand_11xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; chip.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it didnt work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CAN-&amp;gt;CNTL (1&amp;lt;&amp;lt;7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after using this code,the error is : " 'LPC_CAN' undeclared (first use in this function)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you can help me with this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with kind regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ianlwd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543549#M12718</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: auto baudrate detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543550#M12719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed May 06 05:31:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ianLWD&lt;/STRONG&gt;&lt;BR /&gt;thanks for your reply, but it is still unclear what to do.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...because it's unclear what you are doing&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't describe your toolchain and you don't post your project (and if LPCOpen, the board library) &lt;SPAN class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;&lt;LI-EMOJI id="lia_face-with-open-mouth" title=":face_with_open_mouth:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I can just guess what you are doing &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: The correct name is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt; LPC_CAN[color=#f00]0[/color]-&amp;gt;CNTL ...&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ianLWD&lt;/STRONG&gt;&lt;BR /&gt;'LPC_CAN' undeclared (first use in this function)"&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... 'not declared' usually means that there is no correct declaration, that's this thing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define LPC_CAN0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((LPC_CAN_TypeDef&amp;nbsp;&amp;nbsp;&amp;nbsp; *) LPC_CAN0_BASE)&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543550#M12719</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: auto baudrate detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543551#M12720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ianLWD on Wed May 06 05:45:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started a project for a 6digits 14segments display. the display uses the canbus to link with a PLC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the NXP_lpcxpresso_11C24_periph_Ccan_rom example. this example is from LPCopen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added some own code for the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to change some registers so I can program a automatic Baudrate detection. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;atm I'm using LPCxpresso as compiler with default settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this will make some sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for helping me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ianlwd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:43:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/auto-baudrate-detection/m-p/543551#M12720</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:43:34Z</dc:date>
    </item>
  </channel>
</rss>

