<?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>S12 / MagniV MicrocontrollersのトピックRe: MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761267#M15252</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already read it&amp;nbsp;before I upload&amp;nbsp;the question. But&amp;nbsp;it's now working on mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The motor repeats stop and go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is concerned with trigger timing.&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #3366ff;"&gt;ISR&lt;/SPAN&gt; or &lt;SPAN style="color: #3366ff;"&gt;value of delay1/2&lt;/SPAN&gt; or &lt;SPAN style="color: #3366ff;"&gt;UpdateDutycycle() function's TriggerEventList value setting&lt;/SPAN&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me your more opinions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 23:38:32 GMT</pubDate>
    <dc:creator>subinkim</dc:creator>
    <dc:date>2018-03-15T23:38:32Z</dc:date>
    <item>
      <title>MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761265#M15250</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 want to use ADC module to get AMP0 and AN1_0 in&amp;nbsp;BLDC_sensorless example code.&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My codes are&amp;nbsp;like this,&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void initGDU()&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;GDUE_GCSE0 = 1; // enable Current Sense Amplifier 0&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void initGPIO(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;DDRADH_DDRADH0 = 1; /*AN1_3 set*/&lt;BR /&gt;&amp;nbsp;PTAD_PTADH0 = 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volatile short PTUTriggerEventList[PTU_TOT_TRIGGERs_GEN_NO][PTU_TOT_LISTS_NO][4] ={ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ /*DelayT0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{0x0100, 0x0200, 0x0000, 0x0000}, {0x0000, 0x0000, 0x0000, 0x0000} &lt;BR /&gt;&amp;nbsp;&amp;nbsp;}, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{0x0100, 0x0200, 0x0000, 0x0000}, {0x0000, 0x0000, 0x0000, 0x0000} &lt;BR /&gt;&amp;nbsp;&amp;nbsp;} &lt;BR /&gt;};&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volatile char ADC0CommandList[6][4] = { &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x40, 0xD0, 0x00, 0x00 },&amp;nbsp;// current sense channel, end of sequence [D0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0xC0, 0xCB, 0x00, 0x00 },&amp;nbsp;// end of list + no int [C0], HD voltage [CB], 4 clock cycles sample time [00], reserved [00]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 } };&lt;BR /&gt;PR_SECTION(adcLists)&lt;/P&gt;&lt;P&gt;volatile char ADC1CommandList[6][4] = { &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x40, 0xCA, 0x00, 0x00 },&amp;nbsp;// [end of list] + no int [C0], phase voltage [CA], 4 clock cycles sample time [00]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0xC0, 0x50, 0x00, 0x00 }, // ADC1 AN1_0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 }, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;{ 0x00, 0x00, 0x00, 0x00 } };&lt;/P&gt;&lt;P&gt;volatile unsigned short ADC0ResultList[6] = { 0, 0, 0, 0, 0, 0 };&lt;BR /&gt;volatile unsigned short ADC1ResultList[6] = { 0, 0, 0, 0, 0, 0 };&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void UpdateDutycycle(void) {&lt;BR /&gt;&amp;nbsp;tU16 delay1, delay2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;PMFVAL0 = duty_cycle;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;delay1 = duty_cycle &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// middle of the pulse - DC Bus current&lt;BR /&gt;&amp;nbsp;if (delay1 &amp;lt; MIN_ADC_TRIGGER_FIRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;delay1 = MIN_ADC_TRIGGER_FIRST;&lt;BR /&gt;&amp;nbsp;PTUTriggerEventList[0][0][0] = delay1;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;delay2 = MLIB_Mul(duty_cycle,BEMF_SENSING_POINT_FRAC,F16);&amp;nbsp;// end of the pulse&lt;BR /&gt;&amp;nbsp;if (delay2 &amp;lt; MIN_ADC_TRIGGER_FIRST)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;delay2 = MIN_ADC_TRIGGER_FIRST;&lt;BR /&gt;&amp;nbsp;PTUTriggerEventList[1][0][0] = delay2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ADC1 - phase voltage&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (delay2 &amp;lt; (delay1 + MIN_ADC_TRIGGER_SECOND))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;delay2 = delay1 + MIN_ADC_TRIGGER_SECOND;&lt;BR /&gt;&amp;nbsp;PTUTriggerEventList[0][0][1] = delay2;&amp;nbsp;// ADC0 second sample - DC Bus Voltage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;PTUTriggerEventList[1][0][1] = delay2+35;&lt;/P&gt;&lt;P&gt;&amp;nbsp;PTUC_PTULDOK = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like that the ADC values are measured, but the BLDC motor is not rotating normally(repeat stop and go).&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's the problem of my code?? I beg your opinion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 05:51:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761265#M15250</guid>
      <dc:creator>subinkim</dc:creator>
      <dc:date>2018-03-15T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761266#M15251</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;You can find discussion about this topic on the site below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/458352"&gt;MC9S12ZVML128_BLDC_Sensorless adding ADC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761266#M15251</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-03-15T16:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761267#M15252</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already read it&amp;nbsp;before I upload&amp;nbsp;the question. But&amp;nbsp;it's now working on mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The motor repeats stop and go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is concerned with trigger timing.&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #3366ff;"&gt;ISR&lt;/SPAN&gt; or &lt;SPAN style="color: #3366ff;"&gt;value of delay1/2&lt;/SPAN&gt; or &lt;SPAN style="color: #3366ff;"&gt;UpdateDutycycle() function's TriggerEventList value setting&lt;/SPAN&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me your more opinions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 23:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761267#M15252</guid>
      <dc:creator>subinkim</dc:creator>
      <dc:date>2018-03-15T23:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761268#M15253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I use MC9S12ZVML128_BLDC_Sensorless example project.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Only to modify the current acquisition function from the operational AMP0 to the operational AMP1.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;But it has never been successful,&amp;nbsp;Is there an example here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 07:09:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/761268#M15253</guid>
      <dc:creator>528887301</dc:creator>
      <dc:date>2018-03-17T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12ZVML128_BLDC_Sensorless example adding ADC measuring</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/1400123#M18412</link>
      <description>&lt;P&gt;I have the same problem as you. This is my question.&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-config-ADC-of-MTRCKTSBNZVM128-CW11/td-p/1397121" target="_blank"&gt;How to config ADC of MTRCKTSBNZVM128_CW11 - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Like you, I have read a lot about ADC sampling, but there are no results. How did you solve it later?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 08:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12ZVML128-BLDC-Sensorless-example-adding-ADC-measuring/m-p/1400123#M18412</guid>
      <dc:creator>Monke</dc:creator>
      <dc:date>2022-01-17T08:33:24Z</dc:date>
    </item>
  </channel>
</rss>

