<?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 Re: FreeRTOS tick rate in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818262#M49540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0px;"&gt;Thank you, Daniel.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;I changed the value from 200 to 500 and&amp;nbsp;sampling frequency&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;500.&amp;nbsp;Then I&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;streamed the data on Putty and saved the printout data on the terminal.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Despite the change, the number of sampled data for 5 seconds was still 1000 which means the sampling frequency was still 200Hz.&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;is there anything else that I am supposed to change other than "configTICK_RATE_HZ " in "FreeRTOSConfig.h"?&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Regards,&lt;BR /&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2018 17:05:17 GMT</pubDate>
    <dc:creator>songja</dc:creator>
    <dc:date>2018-11-12T17:05:17Z</dc:date>
    <item>
      <title>FreeRTOS tick rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818260#M49538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the FreeRTOS tick rate, I found that "configTICK_RATE_HZ" is set to 200.&lt;/P&gt;&lt;P&gt;Is it possible to change the value up to 1000Hz so I can measure with sampling frequency of 1000Hz?&lt;/P&gt;&lt;P&gt;I attached the part of the code related to this.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;#define ADC_SAMPLE_FREQ 1000U&lt;BR /&gt;#define mainQUEUE_SEND_PERIOD_MS (1000/(ADC_SAMPLE_FREQ*portTICK_PERIOD_MS))&lt;/P&gt;&lt;P&gt;#define mainSOFTWARE_TIMER_PERIOD_MS (1000 / portTICK_PERIOD_MS)&lt;BR /&gt;#define mainQUEUE_LENGTH (1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xExampleSoftwareTimer = xTimerCreate("LEDTimer", mainSOFTWARE_TIMER_PERIOD_MS, pdTRUE, (void *)0, vExampleTimerCallback);&lt;/P&gt;&lt;P&gt;xTimerStart(xExampleSoftwareTimer, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void vExampleTimerCallback(TimerHandle_t xTimer){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ulCountOfTimerCallbackExecutions++;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vTaskDelayUntil(&amp;amp;xLastWakeTime, mainQUEUE_SEND_PERIOD_MS);&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818260#M49538</guid>
      <dc:creator>songja</dc:creator>
      <dc:date>2018-11-09T09:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS tick rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818261#M49539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI JAEYONG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The systick rate can configured to 1000. Actually FreeRTOS doesn't impose a maximum tick rate. But it is advised not to go over 1k HZ, otherwise, too much time will be spent switching between tasks, and result in much overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 08:39:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818261#M49539</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-11-12T08:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS tick rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818262#M49540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0px;"&gt;Thank you, Daniel.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;I changed the value from 200 to 500 and&amp;nbsp;sampling frequency&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;500.&amp;nbsp;Then I&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;streamed the data on Putty and saved the printout data on the terminal.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Despite the change, the number of sampled data for 5 seconds was still 1000 which means the sampling frequency was still 200Hz.&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;is there anything else that I am supposed to change other than "configTICK_RATE_HZ " in "FreeRTOSConfig.h"?&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Regards,&lt;BR /&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 17:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-tick-rate/m-p/818262#M49540</guid>
      <dc:creator>songja</dc:creator>
      <dc:date>2018-11-12T17:05:17Z</dc:date>
    </item>
  </channel>
</rss>

