Quality RTOS & Embedded Software

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




Loading

How to configure the 1 us task switching time in FreeRTOS? Is it possible?

Posted by naveenkumarbece on March 18, 2016

i have created two rtos task which will read data from USB. In this case, the RTOS task is polling every 7 ms, Hwo can i reduce this to get the data in micro seconds?


How to configure the 1 us task switching time in FreeRTOS? Is it possible?

Posted by rtel on March 18, 2016

Can you please be more specific as to what your question is as the subject line and content of your post don't seem to match. Are you wanting to switch between tasks at 1us (which is highly undesirable, if even possible), or poll something?


How to configure the 1 us task switching time in FreeRTOS? Is it possible?

Posted by hs2sf on March 18, 2016

Better avoid this kind of design. Continous microsec response times are pretty hard to achieve reliably even today and you'd need a pretty fast processor. In short is this really required and/or matches the requirements of your USB data source ?


How to configure the 1 us task switching time in FreeRTOS? Is it possible?

Posted by richard_damon on March 18, 2016

Any action that needs a 1us response time basically needs to be in the ISR, which also limits what it can do. You also need to be sure no higher priority interrupts can block it.

USB ideally has DMA to fetch a packet, and you don't need to do much until you have a packet, and then you don't need us time scale operations.


[ 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