<?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>topic I.MX RT1052 PWM update duty cycle Causes inaccurate DMA SPI transmission data in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/I-MX-RT1052-PWM-update-duty-cycle-Causes-inaccurate-DMA-SPI/m-p/1606462#M23916</link>
    <description>&lt;P&gt;DMA is used to transmit SPI data. SPI is used as a slave, with a frequency of 21M and 20 bytes per transmission. RT1052 uses 528M as the main frequency. Only SPI uses DMA&lt;BR /&gt;Use PWM1 sub-module 0-2 to update the duty cycle every cycle, and use library function to update: PWM_ SetPwmLdok(PWM1,kPWM_Control_Module_0,true);&lt;BR /&gt;During use, check SPI data through the host and find that every other period of time, one byte of SPI data will become 0xFF&lt;BR /&gt;It is normal to check the data put into the DMA transmission array through debug&lt;BR /&gt;Increase the dominant frequency from 528M to 540M, and the number of errors will be reduced. When it is increased to 570M/600M, no errors will occur&lt;BR /&gt;Or use 528M main frequency without updating PWM duty cycle&lt;BR /&gt;The number of update errors will also decrease when the duty cycle of PWM sub-module is reduced (the more used, the higher the number of errors)&lt;BR /&gt;Also tested whether the priority of the DMA channel is changed to high priority or not&lt;BR /&gt;The SPI frequency is reduced to 12M, and it is not measured&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 01:47:37 GMT</pubDate>
    <dc:creator>ConnorShang</dc:creator>
    <dc:date>2023-02-28T01:47:37Z</dc:date>
    <item>
      <title>I.MX RT1052 PWM update duty cycle Causes inaccurate DMA SPI transmission data</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/I-MX-RT1052-PWM-update-duty-cycle-Causes-inaccurate-DMA-SPI/m-p/1606462#M23916</link>
      <description>&lt;P&gt;DMA is used to transmit SPI data. SPI is used as a slave, with a frequency of 21M and 20 bytes per transmission. RT1052 uses 528M as the main frequency. Only SPI uses DMA&lt;BR /&gt;Use PWM1 sub-module 0-2 to update the duty cycle every cycle, and use library function to update: PWM_ SetPwmLdok(PWM1,kPWM_Control_Module_0,true);&lt;BR /&gt;During use, check SPI data through the host and find that every other period of time, one byte of SPI data will become 0xFF&lt;BR /&gt;It is normal to check the data put into the DMA transmission array through debug&lt;BR /&gt;Increase the dominant frequency from 528M to 540M, and the number of errors will be reduced. When it is increased to 570M/600M, no errors will occur&lt;BR /&gt;Or use 528M main frequency without updating PWM duty cycle&lt;BR /&gt;The number of update errors will also decrease when the duty cycle of PWM sub-module is reduced (the more used, the higher the number of errors)&lt;BR /&gt;Also tested whether the priority of the DMA channel is changed to high priority or not&lt;BR /&gt;The SPI frequency is reduced to 12M, and it is not measured&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 01:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/I-MX-RT1052-PWM-update-duty-cycle-Causes-inaccurate-DMA-SPI/m-p/1606462#M23916</guid>
      <dc:creator>ConnorShang</dc:creator>
      <dc:date>2023-02-28T01:47:37Z</dc:date>
    </item>
  </channel>
</rss>

