Quality RTOS & Embedded Software

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


Loading

FreeRTOS delay in microseconds

Posted by disideris on May 23, 2017

Hi there,

I am trying to implement a delay microsecnods functions in terms of FreeRTOS and read different threads in this forum but dint get a clear way through.

I have some basic questions and it would be very helpful if anyone could answer them.

My setup: I am running FreeRTOS on an NXP LPC4367. So far i have all these tasks running that read different sensors and so on.

I want to make a task that constructs and sends infrared commands. I have figured out the timings and without Freertos it works.

This IR functionality needs a delay microseconds function in order to get built.

So my configTICKRATEHZ is default -> (TickType_t) 1000)

  1. Can i implement in terms of FreeRTOS a delaymicrosecnods function?

  2. Freertos makes use of SysTickHandler. (When i try to make use of SysTickHandler compiler says that is already used.) Having that trouble i tried to use a peripheral timer that LPC offers. Peripheral timer doesn't work alongside FreeRTOS.

Any help plz?

Thanks a lot in advance!


FreeRTOS delay in microseconds

Posted by rtel on May 23, 2017
Can i implement in terms of FreeRTOS a delaymicrosecnods function?

Not using the RTOS tick, if it is running at 1KHz, and it is not recommended to run it faster than that.

2.

Freertos makes use of SysTick_Handler. (When i try to make use of
SysTick_Handler compiler says that is already used.) Having that
trouble i tried to use a peripheral timer that LPC offers.
Peripheral timer doesn't work alongside FreeRTOS.

Using a peripheral timer would be my initial advice. FreeRTOS doesn't touch any other timers so it should work.


FreeRTOS delay in microseconds

Posted by glenenglish on May 26, 2017

Use a hardware timer, and interrupt.

in the interrupt, you can yieldfromISR , taskgivefromISR etc

this way you can get a deterministic hard RTOS . especially if nested interrupts is all working as it should...' that's how I fire the firing pin at exactly the time it needs to fire...


[ 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