Quality RTOS & Embedded Software

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




Loading

Increase the tick resolution?

Posted by kuku2010 on August 24, 2011
My understanding is that vTaskDelay( 1 ) is based on the resolution of tick (1ms).

Can I increase the resolution to 0.1ms?

If so, how?

I'd like to have a small/critical task at 0.1ms resolution, but all the others at 1ms or higher

Thanks for any input!

RE: Increase the tick resolution?

Posted by MEdwards on August 24, 2011
The tick frequency is set by configTICK_RATE_HZ in FreeRTOSConfig.h. If you set it faster than 1KHz then the portTICK_RATE_MS constant will not work, so the demo applications will also not work. The demo applications are separate to the kernel though. It will not prevent the kernel working, but will be extremely inefficient as you will spend a large amount of time in the tick interrupt and pointlessly switching tasks. You are better configuring a separate timer to generate an interrupt at that frequency if you need it.


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS