Functions and formatted printing of time and date for RTC8563

Dependencies:   mbed

You are viewing an older revision! See the latest version

Homepage

Table of Contents

  1. RTC on HIMBED M0

Inhalt

RTC on HIMBED M0

/media/uploads/bulmecisco/rtc.jpg

Definition der benannten Konstanten für die Register des RTC8563 (Tabelle 4)

/media/uploads/bulmecisco/register.jpg

/***********************************
name:   const.h    Version: 0.1
author: PE HTL BULME
email:  pe@bulme.at
description:
    Named constants definitions for registers 
	RTC8563 on HIMBED M0 - LPC11U24 
***********************************/

#ifndef CONST_H
#define CONST_H

const int RTC8563_ADR = 0xA2;

const int CONTROL1 = 0x00;
const int CONTROL2 = 0x01;
const int SECONDS = 0x02;   
const int MINUTES = 0x03;
const int HOURS = 0x04;
const int DAYS = 0x05;
const int WEEKDAYS = 0x06;
const int MONTHS = 0x07;
const int YEARS = 0x08;
const int CLOCKOUT_FREQ = 0x0D;
const int TIMER_CINTROL = 0x0E;
const int _READ = 0x01;
// Alarm
const int MINUTE_ALARM = 0x09;
const int HOUR_ALARM = 0x0A;
const int DAY_ALARM = 0x0B;
const int WEEKDAY_ALARM = 0x0C;

#endif

Next


All wikipages