Quality RTOS & Embedded Software

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




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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists