Quality RTOS & Embedded Software

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




Loading

Is 23us from Queue Writing to Queue Reading normal?

Posted by shalongbasi on May 6, 2015

I just modified a demo program in which one task writing to the Queue and another task reading the Queue to evaluate the performance of freertos. I make the program toggling two different IO pins when writing and reading are finished. It takes about 22us from writing task to reading task. Is this normal for Freertos? feels like it should go faster than this with a 80MHz/105MDMIPS microcontroller.


Is 23us from Queue Writing to Queue Reading normal?

Posted by rtel on May 7, 2015

If I understand correctly you are measuring the time between one task writing data to a queue, a task being unblocked, the scheduler selecting the task as the highest priority task, switching to the task, then the task reading from a queue - 23us might be reasonable, or at least, not unreasonable.

Are you calling portYIELDFROMISR() (or maybe portENDSWITCHINGISR(), I forget which is implemented on the PIC32, maybe both) at the end of the interrupt? Do you have compiler optimisation on?

Regards.


[ 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