<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52832 PWM0 EasyDMA to stream to WS2812 string</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116532/nrf52832-pwm0-easydma-to-stream-to-ws2812-string</link><description>I&amp;#39;m trying to setup an nRF52832 to drive 127 ws2812 by using PWM. It seems the bit-by-bit method is too slow for the 1.25uS period. pwm_set() is using somehow ~5ms, so that is not an option. 
 I would like to use EasyDMA to drive the PWM peripheral one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2024 15:42:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116532/nrf52832-pwm0-easydma-to-stream-to-ws2812-string" /><item><title>RE: nRF52832 PWM0 EasyDMA to stream to WS2812 string</title><link>https://devzone.nordicsemi.com/thread/511359?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 15:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6cf99a6-dade-4445-b391-24741e82949b</guid><dc:creator>Erik de Wit</dc:creator><description>&lt;p&gt;Hi Einar,&lt;br /&gt;Thank you, I was questioning the nrfx solution AI suggested yesterday, glad to hear you also recommend that in this case. The device we developed has many functions, including I2S for sound, 2 SPI (one spi for Flash for sound wave and one spi for a&amp;nbsp; peripheral), I2C for&amp;nbsp;other LED drivers.&lt;br /&gt;Now I list this, I&amp;#39;m thinking I could try to disengage the I2C for other LED driver (will become&amp;nbsp;unnecessary when the WS2812 work) and setup a 3rd SPI, but first&amp;nbsp;I will try this and let you know if it was successful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 PWM0 EasyDMA to stream to WS2812 string</title><link>https://devzone.nordicsemi.com/thread/511316?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 13:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fdeb1fa-e985-45e6-8529-fc0c9257f7b5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not have any samples or recomendations for usig the PWM like this. I2S is typically what is used. It may be possible to use the PWM and play out a sequence from DMA, and we have generic samples for that. To get full control you can use the nrfx low-level driver directly, as demonstrated by the samples under zephyr/modules/hal/nordic/nrfx/samples/src/nrfx_pwm/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>