Real Time Clock Module with I2C Interface  0.3
⇒ back to Project Page
 All Data Structures Files Functions Variables Typedefs Macros Pages
Data Structures | Macros | Typedefs
rtc_control.h File Reference

Contains the main definitions for the real time clock module. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dcf77_config_struc
 

Macros

#define TRUE   1
 value for TRUE
 
#define FALSE   0
 value for FALSE
 
#define RTC_CONTROL_VERSION   0.3
 software version of RTC module
 
#define RTC_LCD_DEBUG   0
 enables or disables debugging with LCD output [0, 1]
 
#define RTC_LCD_TIMEDEBUG   0
 enables or disables time data output with LCD output [0, 1]
 
#define RTC_OCR0A   195
 value for compare match (156 = 10 ms for 16 MHz clock, 195 = 10 ms for 20 MHz clock)
 
#define RTC_BASE_YEAR   2000
 base year for realtime
 
#define RTC_SAA1064_OUTPUT   1
 time data output on 7 segment LED via SAA1064
 
#define MAX_TIME_SCALE   250
 maximum time scale [10 ms]
 
#define DCF77_SAMPLE_TIME   1
 sample time for DCF77 signal [10 ms]
 
#define DCF77_UPDATE_CYCLE   30
 update cycle for DFC sync [min]
 
#define DCF77_ENABLED_DEFAULT   1
 default value for DCF enabled (1) or not (0)
 
#define DCF77_CYCLE_SECONDS   58
 current second after complete received cycle
 
#define LED_HIGH_CURRENT_START_TIME   72000UL
 start time for high LED current (==day time) - ATTENTION: no leading zero (0)!
 
#define LED_LOW_CURRENT_START_TIME   214500UL
 start time for low LED current (==night time) - ATTENTION: no leading zero (0)!
 
#define RTC_CTRL_GETTIME   0x01
 get time command
 
#define RTC_CTRL_CONFIG   0x02
 set config command
 
#define I2C_SLAVE_TRANSFER_ABORT_CYCLES   30
 time (timer counts) to wait until slave receive/transmission will be aborted
 

Typedefs

typedef struct dcf77_config_struc dcf77_config_data
 

Detailed Description

Contains the main definitions for the real time clock module.

Author
Michael Skutek
Date
20.03.2013
Version
0.3

Platform: AVR ATmega (tested on ATmega168)

Include Files:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file rtc_control.h.