Quality RTOS & Embedded Software

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




Loading

Make realtime loop

Posted by https://www.google.com/accounts on October 20, 2012
Hi,
I would like to know if it is possible with Rtos to make a loop every 5ms .
In this loop of course I need to use serial port / Can BUS an other task.
I work with a PIC32.
Thanks you

RE: Make realtime loop

Posted by Richard on October 21, 2012
http://www.freertos.org/vtaskdelayuntil.html
http://www.freertos.org/a00127.html

The above links will be a good starting point. Plus look at any of the demo applications in the download.

You might want to consider if you really want to do all these things every 5ms. I might be wrong, as you don't provide much information, but the implication of your post is that you are converting a super loop program into an RTOS program by just copying the superloop into a task. It might be better to work of events generated by your peripherals.

Regards.

RE: Make realtime loop

Posted by https://www.google.com/accounts on October 21, 2012
Thank you for your answer
I will look at it asap
I need this to make PID and acceleration deravative calculation so I need a good precision in the loop time.


[ 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