<?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>Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79948/radio-test---transmitter-example</link><description>Hi, 
 I have nRF52840 DK, and using nRF SDK v17. I am trying to understand radio transmitter example sendpacket(). 
 RTC(1) seems to be used to the transmitting packet. 
 ret_code_t app_timer_init(void) { 
 ... err_code = NRF_ATFIFO_INIT(m_req_fifo);</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 12:25:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79948/radio-test---transmitter-example" /><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/332146?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83acd95-aa56-40af-814f-49c52ca399d2</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Thank you Marte,&lt;/p&gt;
&lt;p&gt;David Zhou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/332085?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 09:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3507b43e-8376-4216-b0ec-c1d47855b958</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
[quote user="TigerD"]Or simpler question: NRF_POWER-&amp;gt;DCDCEN =0 or 1 is save to the DK board[/quote]
&lt;p&gt;Setting&amp;nbsp;DCDCEN to 1 enables the DC/DC regulator for REG1 stage.&lt;/p&gt;
&lt;p&gt;If you do not connect an external LC filter when DC/DC regulator is enabled&amp;nbsp;you&amp;nbsp;might damage the chip. Please see the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ref_circuitry.html?cp=4_0_0_6_2"&gt;reference circuitry&lt;/a&gt;&amp;nbsp;for the nRF52840 SoC. When looking at the different circuit configurations, you will see that when&amp;nbsp;DCDCEN0 and/or DCDCEN1 are enabled there are LC filters connected for each of the DC/DC regulators, such as the inductor L4 between VDD and DCCH in circuit configuration no. 4.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/331141?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 15:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:824436e4-a021-4c38-bc02-a8b2085ce2c2</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;I have an urgent question, I would like to turn on DCDC regulator. In the radio_cmd.c file, (radio_test, or transmitter projects),&lt;/p&gt;
&lt;p&gt;void toggle_dcdc_state(uint8_t dcdc_state)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (dcdc_state &amp;lt;= 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_POWER-&amp;gt;DCDCEN = dcdc_state;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;But in this link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33233/enable-dc-dc-regulator-without-an-external-lc-filter"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33233/enable-dc-dc-regulator-without-an-external-lc-filter&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and PDF document states that it needs internal LC filter.&lt;/p&gt;
&lt;p&gt;So why it the toggle_dcdc_state function simply turns on DCDCEN regulator without ensuring LC filter? Is the LC filter on the nRF52840 DK board always connected?&lt;/p&gt;
&lt;p&gt;Or simpler question: NRF_POWER-&amp;gt;DCDCEN =0 or 1 is save to the DK board?&lt;/p&gt;
&lt;p&gt;Otherwise, how to turn on the LC filter?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OK, I set it anyway.&lt;/p&gt;
&lt;p&gt;NRF_POWER-&amp;gt;DCDCEN = POWER_DCDCEN_DCDCEN_Enabled &amp;lt;&amp;lt; POWER_DCDCEN_DCDCEN_Pos;&lt;/p&gt;
&lt;p&gt;It seems working ok.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;David Zhou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/331124?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 14:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89dd6a6a-65c5-42e5-8a9a-c24c4dd160ca</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;I am using PPKI. Maybe it reaches cut-off 80mA. After I managed nrf_rng_task_trigger(NRF_RNG_TASK_START) and HFXO, the Maximum current is down to 35mA. I know there are some rooms to go. I just need to go through all the steps and to minimize power. I am ok at this point.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;David Zhou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/331122?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 13:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd7badb3-7cbb-4fa9-9b35-8f5f813f8745</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Are you using PPK1 or PPK2 to measure the current consumption? The peak you are getting in your measurement is the peak current of PPK1,&amp;nbsp;which can mean you have a short circuit somewhere. We have seen this happen with the PPK1 before, giving current measurements around to 80 mA.&lt;/p&gt;
&lt;p&gt;Even so, the current consumption is most likely not actually 80 mA. According to &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/_tmp/nrf52840/autodita/CURRENT/parameters.i_radio.html?cp=4_0_0_4_1_0_4"&gt;nRF52840 radio transmitting/receiving current consumption&lt;/a&gt;, you should expect to get around 5 mA with -40 dBm output power. Even if something was configured incorrectly and&amp;nbsp;output power was set to maximum you should not get more than 20 mA.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/331091?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 12:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d843116a-2477-4bfa-b5d6-02b25d48e461</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Thank you Marte,&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/331087?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 12:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a638dff5-810c-462e-be8a-a3ebd909767f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
[quote user=""]What is the role of this timer in the sending of radio packets?[/quote]
&lt;p&gt;The app_timer is used by the Board Support Package (BSP) module. This is the module responsible for indicating certain states on LEDs, such as BSP_INDICATE_SENT_OK to indicate that the packet was sent, and to handle button events. In the example,&amp;nbsp;upon receiving a button event, the button state will be read. If this is true,&amp;nbsp;that is&amp;nbsp;a button is pressed,&amp;nbsp;it will tell the program that there is a packet to transmit. The radio will then be enabled, and&amp;nbsp;when an event is ready the packet is transmitted.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have asked internally about your question regarding current consumption, and I will get back to you regarding this next week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Test - transmitter example</title><link>https://devzone.nordicsemi.com/thread/330926?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 20:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6966de55-8515-42b6-bad8-bd5e83a2111e</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems to me that without app_timer_init() is ok. Actually it needs:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Start 64 MHz crystal oscillator.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t know why the radio needs the CLOCK. It it possible using low frequency crystal oscillator?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok. Clock HFXO is required for Radio Tx/Rx.&lt;/p&gt;
&lt;p&gt;But now the question is, it has to use 64MHz? And When needs to turn on the clock or can be turn off after transmitting/Receiving to save power consumption?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok. The main thing is the TX power is at 80mA at peak. I have already set tx_power level to -40dBm. What I do have to do in order to bring down the power consumption?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632431445863v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok. I found that&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_rng_task_trigger(NRF_RNG_TASK_START); shall be managed. It takes 3mA constantly. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;More need to investigate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;David Zhou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>