<?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>Processor Expert SoftwareのトピックRe: Changing parameters on the fly, when the code was generated with PE</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Changing-parameters-on-the-fly-when-the-code-was-generated-with/m-p/263297#M1653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OM,&lt;/P&gt;&lt;P&gt;sure you can change the baud at run time.&lt;/P&gt;&lt;P&gt;Got to the baud setting in PEx, and then change it to 'list of values'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5038_5038.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119583i4F89FCB3254E1CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="5038_5038.png" alt="5038_5038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then specify all the values you need. With this you have a list of modes (starting with 0).&lt;/P&gt;&lt;P&gt;With this, you have SetBaudRateMode() available which you can use to change the baud at runtime:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5042_5042.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119584i41B4DCAECAF3330F/image-size/large?v=v2&amp;amp;px=999" role="button" title="5042_5042.png" alt="5042_5042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The header file of the component will create defines for the modes which you can use:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define AS1_BM_38400BAUD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;/* Baud rate constant for switch to the baud rate mode 0 */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define AS1_BM_9600BAUD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;/* Baud rate constant for switch to the baud rate mode 1 */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 10:01:21 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2013-07-10T10:01:21Z</dc:date>
    <item>
      <title>Changing parameters on the fly, when the code was generated with PE</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Changing-parameters-on-the-fly-when-the-code-was-generated-with/m-p/263296#M1652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started to use PE and suddenly I realize that it might not be the right tool to use, cause when I configure parameter in the PE, it is hard coded in the code that is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Suppose I created driver for UART, with baud rate of 115200.&lt;/P&gt;&lt;P&gt;Suppose that the user of my program wants to send me a message to change baud rate to 9600, on the fly, while the program is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be done? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Cause I set the baud one tine in PE, compile it (with IAR) and then it is fixed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I tell PE that I want to add a Auto created function that does some activity – like change the baud rate on the fly ?&lt;/P&gt;&lt;P&gt;(Or do something else)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp; OM&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Changing-parameters-on-the-fly-when-the-code-was-generated-with/m-p/263296#M1652</guid>
      <dc:creator>om</dc:creator>
      <dc:date>2013-07-10T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing parameters on the fly, when the code was generated with PE</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Changing-parameters-on-the-fly-when-the-code-was-generated-with/m-p/263297#M1653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OM,&lt;/P&gt;&lt;P&gt;sure you can change the baud at run time.&lt;/P&gt;&lt;P&gt;Got to the baud setting in PEx, and then change it to 'list of values'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5038_5038.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119583i4F89FCB3254E1CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="5038_5038.png" alt="5038_5038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then specify all the values you need. With this you have a list of modes (starting with 0).&lt;/P&gt;&lt;P&gt;With this, you have SetBaudRateMode() available which you can use to change the baud at runtime:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5042_5042.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119584i41B4DCAECAF3330F/image-size/large?v=v2&amp;amp;px=999" role="button" title="5042_5042.png" alt="5042_5042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The header file of the component will create defines for the modes which you can use:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define AS1_BM_38400BAUD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;/* Baud rate constant for switch to the baud rate mode 0 */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define AS1_BM_9600BAUD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;/* Baud rate constant for switch to the baud rate mode 1 */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 10:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Changing-parameters-on-the-fly-when-the-code-was-generated-with/m-p/263297#M1653</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-07-10T10:01:21Z</dc:date>
    </item>
  </channel>
</rss>

