Quality RTOS & Embedded Software

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


Loading

Real Time Clock

Posted by Chris Strahm on November 19, 2008
Does FreeRTOS have anykind of RTC? I was looking through the code and I see the xTickCount, but not much else. When dealing with file systems and Enet code, there is often a need for date/time. It would be great if the OS had a routine to generate date/time with software only using a cummulative millisecond counter, and also the ability to interface to RTC on the MCU. Anything like that?

RE: Real Time Clock

Posted by MEdwards on November 19, 2008
Real time clocks are very specific to the hardware. You would have to add in your own implementation. Most micros don't have real time clocks, and even if they do there is no retention of time during power cycles.

RE: Real Time Clock

Posted by Chris Strahm on November 20, 2008
>> You would have to add in your own implementation.

I think that's what I'll do. I can't see handling Enet and a file system without it. Both need real time. Nearly all of the MCU's I've worked with in the last 5 years have all had RTCs. They all have provisions for battery backup too. Having different ports to handle the registers in different MCUs is no different than handling different timer regs. It really isn't very much code.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 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