<?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: LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1739258#M54388</link>
    <description>&lt;P&gt;Hello XiangJun Rong,&lt;BR /&gt;&lt;BR /&gt;I found the documentation. After you import the example from the SDk, the documentation "readme.txt" can be found in the "doc" folder. And it mentions the jumper cable. &lt;LI-EMOJI id="lia_thumbs-up" title=":thumbs_up:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I guess I missed that one.&lt;/P&gt;&lt;P&gt;Case closed .-)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 07:41:21 GMT</pubDate>
    <dc:creator>danielholala</dc:creator>
    <dc:date>2023-10-13T07:41:21Z</dc:date>
    <item>
      <title>LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1734113#M54271</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an LPC5536-EVK and have been playing with the analog features.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The LPC553x includes a voltage reference.&amp;nbsp;The voltage reference provides a buffered reference voltage for use as an external reference, which can be set to from 1.0 V to 2.1 V.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To test the &lt;STRONG&gt;internal voltage reference&lt;/STRONG&gt;, I ran driver example "vref_1_example" from &lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Why-doesn-t-MCUXpresso-IDE-show-recent-plugin-SDKs-for-LPC5536/td-p/1732008" target="_self"&gt;the LPC5536 SDK 2.14.0&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;This test uses the ADC to measure different voltage settings of internal VREF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, the value measured by ADC does not correlate with the VREF trimming except if I put a jumper cable from VREF_OUT (pin&amp;nbsp; 16 @ J12) to&amp;nbsp;BEMF_B/CUR_B (pin 3&amp;nbsp;@ J9).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems to me that this example requires an jumper cable. Is this correct?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Why does the source code does not contain an information about this prerequisite?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 08:43:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1734113#M54271</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2023-10-05T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735246#M54290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The answer is Yes. If you use ADC to sample external analog voltage, you have to select the analog channel in software, and connect the analog channel to the analog voltage with a cable.&lt;/P&gt;
&lt;P&gt;From software perspective, pls check the code:&lt;/P&gt;
&lt;P&gt;In the firmware of the *vref_1_example, this is the code to initialize ADC:&lt;/P&gt;
&lt;P&gt;#define DEMO_LPADC_BASE ADC0&lt;BR /&gt;/* Use adc to measure VREF_OUT. */&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;#define DEMO_LPADC_USER_CHANNEL 8U&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;static void LPADC_Configuration(void)&lt;BR /&gt;{&lt;BR /&gt;lpadc_config_t mLpadcConfigStruct;&lt;BR /&gt;lpadc_conv_trigger_config_t mLpadcTriggerConfigStruct;&lt;BR /&gt;lpadc_conv_command_config_t mLpadcCommandConfigStruct;&lt;/P&gt;
&lt;P&gt;LPADC_GetDefaultConfig(&amp;amp;mLpadcConfigStruct);&lt;BR /&gt;mLpadcConfigStruct.enableAnalogPreliminary = true;&lt;BR /&gt;#if defined(DEMO_LPADC_VREF_SOURCE)&lt;BR /&gt;mLpadcConfigStruct.referenceVoltageSource = DEMO_LPADC_VREF_SOURCE;&lt;BR /&gt;#endif /* DEMO_LPADC_VREF_SOURCE */&lt;BR /&gt;#if defined(FSL_FEATURE_LPADC_HAS_CTRL_CAL_AVGS) &amp;amp;&amp;amp; FSL_FEATURE_LPADC_HAS_CTRL_CAL_AVGS&lt;BR /&gt;mLpadcConfigStruct.conversionAverageMode = kLPADC_ConversionAverage128;&lt;BR /&gt;#endif /* FSL_FEATURE_LPADC_HAS_CTRL_CAL_AVGS */&lt;BR /&gt;LPADC_Init(DEMO_LPADC_BASE, &amp;amp;mLpadcConfigStruct);&lt;/P&gt;
&lt;P&gt;#if defined(FSL_FEATURE_LPADC_HAS_CTRL_CALOFS) &amp;amp;&amp;amp; FSL_FEATURE_LPADC_HAS_CTRL_CALOFS&lt;BR /&gt;#if defined(FSL_FEATURE_LPADC_HAS_OFSTRIM) &amp;amp;&amp;amp; FSL_FEATURE_LPADC_HAS_OFSTRIM&lt;BR /&gt;LPADC_DoOffsetCalibration(DEMO_LPADC_BASE);&lt;BR /&gt;#endif /* FSL_FEATURE_LPADC_HAS_OFSTRIM */&lt;BR /&gt;/* Request gain calibration. */&lt;BR /&gt;LPADC_DoAutoCalibration(DEMO_LPADC_BASE);&lt;BR /&gt;#endif /* FSL_FEATURE_LPADC_HAS_CTRL_CALOFS */&lt;BR /&gt;#if (defined(FSL_FEATURE_LPADC_HAS_CFG_CALOFS) &amp;amp;&amp;amp; FSL_FEATURE_LPADC_HAS_CFG_CALOFS)&lt;BR /&gt;/* Do auto calibration. */&lt;BR /&gt;LPADC_DoAutoCalibration(DEMO_LPADC_BASE);&lt;BR /&gt;#endif /* FSL_FEATURE_LPADC_HAS_CFG_CALOFS */&lt;/P&gt;
&lt;P&gt;/* Set conversion CMD configuration. */&lt;BR /&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct);&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;mLpadcCommandConfigStruct.channelNumber = DEMO_LPADC_USER_CHANNEL;&lt;/FONT&gt;&lt;BR /&gt;#if defined(FSL_FEATURE_LPADC_HAS_CMDL_MODE) &amp;amp;&amp;amp; FSL_FEATURE_LPADC_HAS_CMDL_MODE&lt;BR /&gt;mLpadcCommandConfigStruct.conversionResolutionMode = kLPADC_ConversionResolutionHigh;&lt;BR /&gt;#endif /* FSL_FEATURE_LPADC_HAS_CMDL_MODE */&lt;BR /&gt;LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID, &amp;amp;mLpadcCommandConfigStruct);&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;The software select the ADC0_8A channel, which corresponds to the P0_31 pin for the LPC5536.&lt;/P&gt;
&lt;P&gt;The P0_31 is connected to the pin3 of J9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1696736685165.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243974i21DF61FE6A9AC460/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1696736685165.png" alt="xiangjun_rong_0-1696736685165.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course, you can use the ADC0_3A to sample Vrefout, in the case, you can change:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;#define DEMO_LPADC_USER_CHANNEL 3U&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;From hardware perspective, connect the Vrefout(pin16 of J12) to pin1 of J9.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Hope it can help you&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;XiangJun Rong&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 03:48:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735246#M54290</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-08T03:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735591#M54307</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp; for the explanation.&lt;/P&gt;&lt;P&gt;I am just wondering why NXP leaves that as an exercise for the user? IMHO, the information about the jumper cable should be included in the example documentation, code, printout, etc.&lt;/P&gt;&lt;P&gt;Further, we could do away with a jumper cable by setting&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define DEMO_LPADC_USER_CHANNEL 5U&lt;/LI-CODE&gt;&lt;P&gt;as, according to the manual, ADC channel 5 is connected to VREF_OUT.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielholala_0-1696837762001.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244058i25A74EF397590D01/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_0-1696837762001.png" alt="danielholala_0-1696837762001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This way the example works "out of the box".&lt;/P&gt;&lt;P&gt;That makes a lot of sense to me. What about you?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 07:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735591#M54307</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2023-10-09T07:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735679#M54312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, you can use ADC0_5A channel to sample the VTEF_OUT voltage, because they are connected internally.&lt;/P&gt;
&lt;P&gt;But the ADC example can simulate customer real environment, for example, the customer has to do the pin assignment for ADC analog channel.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 09:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1735679#M54312</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-09T09:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536-EVK voltage reference: driver_examples/vref_1_example requires jumper cable?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1739258#M54388</link>
      <description>&lt;P&gt;Hello XiangJun Rong,&lt;BR /&gt;&lt;BR /&gt;I found the documentation. After you import the example from the SDk, the documentation "readme.txt" can be found in the "doc" folder. And it mentions the jumper cable. &lt;LI-EMOJI id="lia_thumbs-up" title=":thumbs_up:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I guess I missed that one.&lt;/P&gt;&lt;P&gt;Case closed .-)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-EVK-voltage-reference-driver-examples-vref-1-example/m-p/1739258#M54388</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2023-10-13T07:41:21Z</dc:date>
    </item>
  </channel>
</rss>

