<?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>i.MX Processors中的主题 Re: RT1052 MQS Clock Frequencies</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1367277#M182685</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176988"&gt;@variable_andrew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Next time, please create the RT question in the RT area, thanks:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/bd-p/imxrt" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/bd-p/imxrt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My comment that :&lt;SPAN&gt;&amp;nbsp;"RT EVK board still can't support the MQS directly"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It means, you can't connect the MQS pin directly to the buzzer, you need the driver circuit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Eg, this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/RT1064-MQS-Driver-Circuitary/m-p/1367103#M182667" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/RT1064-MQS-Driver-Circuitary/m-p/1367103#M182667&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your side also add the amp, it is correct.&lt;/P&gt;
&lt;P&gt;If you still have issues, please create the RT question in the correct community ,thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 09:52:11 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2021-11-05T09:52:11Z</dc:date>
    <item>
      <title>RT1052 MQS Clock Frequencies</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1352886#M181292</link>
      <description>&lt;P&gt;My goal is to use the MQS (so from SAI3 as I understand) to generate some mono 8 bit sounds&lt;/P&gt;&lt;P&gt;I'm basing my code off of the sai_interrupt demo from the MCUXpresso SDK.&lt;/P&gt;&lt;P&gt;Could you explain why exactly these clock dividers were selected for the demo?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* Select Audio/Video PLL (786.48 MHz) as sai1 clock source */
#define DEMO_SAI1_CLOCK_SOURCE_SELECT (2U)
/* Clock pre divider for sai1 clock source */
#define DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER (0U)
/* Clock divider for sai1 clock source */
#define DEMO_SAI1_CLOCK_SOURCE_DIVIDER (63U)
/* Get frequency of sai1 clock */
#define DEMO_SAI_CLK_FREQ   (CLOCK_GetFreq(kCLOCK_AudioPllClk) / (DEMO_SAI1_CLOCK_SOURCE_DIVIDER + 1U) / (DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER + 1U))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the requirements for the SAI CLK Frequency when used for MQS (specifically for 16KHz sample rate)?&lt;/P&gt;&lt;P&gt;What I've found on my board - we have GPIO_B0_00 (as an MQS Audio Out pin) connected to an audio amp &amp;amp; speaker, and it seeems that instead of the above (0 and 63) divider values, I have to use any one of the following predivider &amp;amp; divider combos to get sound right:&lt;/P&gt;&lt;P&gt;(42 &amp;amp; 2, 33 &amp;amp; 2, 25 &amp;amp; 2, etc)...&lt;/P&gt;&lt;P&gt;When I say sound right - the pitch/tone matches what I see in Matlab or Audacity BUT the volume is very quiet.&lt;/P&gt;&lt;P&gt;If I use an off pitch / horrible pitch divider/predivider combo, the volume will get louder and be more audible, but the pitch / sound itself is awful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an explanation somewhere behind properly setting the dividers and how this affects pitch &amp;amp; volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 21:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1352886#M181292</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2021-10-08T21:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: RT1052 MQS Clock Frequencies</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1354069#M181392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176988"&gt;@variable_andrew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Could you explain why exactly these clock dividers were selected for the demo?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Answer: it is used to configure the SAI clock, which will be used to your SAI single.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2 What are the requirements for the SAI CLK Frequency when used for MQS (specifically for 16KHz sample rate)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Answer:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer to my SAI post:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT10xx-SAI-basic-and-SDCard-wave-file-play/ta-p/1259608" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT10xx-SAI-basic-and-SDCard-wave-file-play/ta-p/1259608&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BCLK= master clock/(TCR2[DIV]+1)*2&lt;/P&gt;
&lt;P&gt;Sample rate = Bitclockfreq /（&lt;SPAN&gt;bitwidth*channel)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your SAI module clock master &amp;gt;= master clock.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That's why you configure the SAI clock.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;What I've found on my board - we have GPIO_B0_00 (as an MQS Audio Out pin) connected to an audio amp &amp;amp; speaker,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Answer: do you connect to the driver circuit?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer to this post:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/How-to-use-MQS-on-trial/m-p/1154048" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/How-to-use-MQS-on-trial/m-p/1154048&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I share one video about the MQS play.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MQS hardware.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158871i224AE90DE0AA6D5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MQS hardware.jpg" alt="MQS hardware.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this type driver circuit, then connect to your&amp;nbsp;&lt;SPAN&gt;speaker.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;About the sai mqs code, please check the attachment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 08:42:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1354069#M181392</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-10-12T08:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: RT1052 MQS Clock Frequencies</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1366049#M182570</link>
      <description>&lt;P&gt;1,2 - The sample rate has to be greater than or equal to, or it needs to be an exact multiple of the sample rate?&lt;/P&gt;&lt;P&gt;I'd assume the latter avoids some sort of audio artifact...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-03 at 2.53.53 PM.png" style="width: 551px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161099i60DC831197EE52A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-11-03 at 2.53.53 PM.png" alt="Screen Shot 2021-11-03 at 2.53.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not using a separate driver.&lt;/P&gt;&lt;P&gt;The above circuit (where pwm Audio Signal is the MQS pin) actually works - and plays sounds, just that we had to mess with the MQS frequency clock dividers to get there. (We also had to change R94/R95 for better volume).&lt;/P&gt;&lt;P&gt;Not sure I understand why you say in your other post that "RT EVK board still can't support the MQS directly" - I suppose this is because the pin isn't directly accessible (not a limitation of the RT device itself, but rather the EVK)?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1366049#M182570</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2021-11-03T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: RT1052 MQS Clock Frequencies</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1367277#M182685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176988"&gt;@variable_andrew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Next time, please create the RT question in the RT area, thanks:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/bd-p/imxrt" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/bd-p/imxrt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My comment that :&lt;SPAN&gt;&amp;nbsp;"RT EVK board still can't support the MQS directly"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It means, you can't connect the MQS pin directly to the buzzer, you need the driver circuit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Eg, this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/RT1064-MQS-Driver-Circuitary/m-p/1367103#M182667" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/RT1064-MQS-Driver-Circuitary/m-p/1367103#M182667&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your side also add the amp, it is correct.&lt;/P&gt;
&lt;P&gt;If you still have issues, please create the RT question in the correct community ,thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 09:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1367277#M182685</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-11-05T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: RT1052 MQS Clock Frequencies</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1367329#M182700</link>
      <description>&lt;P&gt;Got it - and will try n remember - I thought we fell under i.MX &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1052-MQS-Clock-Frequencies/m-p/1367329#M182700</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2021-11-05T12:18:20Z</dc:date>
    </item>
  </channel>
</rss>

