Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


What is the fastest tick rate achievable?

Posted by Rick Huang on May 5, 2009
I'm using FreeRTOS on an ARM_CM3 (LM3S1968) running at 50MHz. I wonder what would the fastest tick rate achievable be?

If such a rate is faster then 1KHz, what would it take to achieve it beside changing the value of configTICK_RATE_HZ in FreeRTOSConfig.h.

Many thanks,

RE: What is the fastest tick rate achievable?

Posted by dave m on May 5, 2009
I've been using FreeRTOS on various Luminary procs, and have occasionally run at 1kHz. You can definitely run them much faster -- I just tried 50kHz (with a 50MHz system clock) and it seemed to work OK. (This was an LM5732 board I built myself, and the app just blinks LEDs and talks out the serial port, but it didn't do anything unusual.) Just change configTICK_RATE_HZ and give it a try.


RE: What is the fastest tick rate achievable?

Posted by Richard on May 5, 2009
There is nothing to stop you running the tick faster, but 1KHz is already much faster than most applications need. The faster the tick the more interrupt and scheduler overhead there is so you are reducing efficiency.

A couple of things to watch out for.

1) prvSetupTimerInterrupt() in port.c may have numerical problems if you change the tick frequency too much. For example, you may need to adjust the pre-scale on the clock that feeds the timer.

2) portTICK_RATE_MS is a constant used for convenience to convert delay periods from ms to ticks. The kernel itself does not use this constant although lots of the standard demo tasks do. Changing the tick rate to be greater than 1KHz could cause problems if portTICK_RATE_MS became equal to zero.


RE: What is the fastest tick rate achievable?

Posted by Rick Huang on May 6, 2009
Thanks a lot!


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists