<?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>Creating Biphasic Messages Using K_Timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103991/creating-biphasic-messages-using-k_timer</link><description>Hi all, 
 
 I&amp;#39;m currently using Zephyr on the nrf52832 platform. I have a case where I want the following to occur: 
 1. Output a specific value via SPI (let&amp;#39;s say 0x58 just for an example) continuously for 100us. 
 2. transmit a value of 0x00 (null)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Sep 2023 15:52:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103991/creating-biphasic-messages-using-k_timer" /><item><title>RE: Creating Biphasic Messages Using K_Timer</title><link>https://devzone.nordicsemi.com/thread/447131?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 15:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4d78f7-e7f4-473d-b586-ab05a006cf3b</guid><dc:creator>coventry</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. That was going to be my second approach. The initial approach was done so as to not store vectors of data, which may in some applications reach decently sized vectors (~5ms) and I was getting a little worried about memory. But I think I&amp;#39;ll give your suggestion a try and see what memory looks like.&lt;br /&gt;&lt;br /&gt;Thank you for your time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating Biphasic Messages Using K_Timer</title><link>https://devzone.nordicsemi.com/thread/447077?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 12:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d61b3fd-bcad-4baa-a7a1-8f883ec81bad</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see a way to do this the way you describe no. But looking at the clock frequency here I get the impression that you bascially are shuffling out 1byte data on MOSI every 2us (given @4MHz clock frequency),&amp;nbsp;the total sequence should last for 100+10+100=210us, so a total of 210/2=105bytes of data.&lt;/p&gt;
&lt;p&gt;So why don&amp;#39;t you just execute one spi transfer with 105bytes of data every 10ms?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>