Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner