Microchip | The Embedded Control Solutions Company Register Login
Browse All
Tropfen kft.
 5 Code Snippets

Simple Calendar module

Tropfen kft.

This is a simple calendar module capable of calculcating day of week and week among simple time and date functions. The module is PIC independent, it should be compile to all PICs that are at least in family 18F. Only a 1s interrupt is needed for incrementing the time and date.

About this Code Example

Usage
User have to register function isr_rtc_1s to a 1s cycle time interrupt.
Function init_rtc should be called to initialize module. The user can here set a default time. It is possible to change timeDate later with function rtcSetTimeDate.
Function do_rtc should be called from main context at least with a 1s cycle time.
TimeDate can be read out with rtcGetTimeDate.

Daylight saving for Europe added.

Categories

Release History

  • Nov 29, 2012

    Version: 1.0.1

    Daylight saving for Europe.

  • Oct 25, 2011

    Version: 1.0.0

    Initial release

Download Contact the Developer

*Required Fields

  • Current Version:1.0.1
  • Created:Oct 25, 2011
  • Updated:Feb 26, 2015
  • Downloads:7099
  • MPLAB Version:8.37
  • C Compiler:PICC18
  • Development Tools:ICD2
  • Supported Devices:PIC18F4550, should be compile to all PIC18F and bigger PICs.

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.