-
Datei
DS1307.ASM
;UP-Sammlung für die Kommunikation mit der RTC DS1307 ; ;RdTime ;RdDate ;WrTime ;WrDate ;DS1307Init ; ;****************************************************************************** .equ xDS1307Out =7 .equ xDS1307SQWE =4 .equ xDS1307RS1 =1 .equ xDS1307RS0 =0 .equ kDS1307AdrWr =0xD0 .equ kDS1307AdrRd =0xD1 ;****************************************************************************** DS1307Init: ;-----------TWI muss vorher! bereits initialisiert sein (TWIInit) ;---
in „DS1307 über ATmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.c
/RTC starten int sec; if (ds1307_started) return; sec = (read_ds1307(0) & (~0x80)); //CH = 0 -> start. write_ds1307(0,sec); ds1307_started = 1; } void stop_ds1307(){ //RTC stoppen int sec; sec = (read_ds1307(0) | 0x80); //CH = 1 -
in „DS1307 verhält sich komisch“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.c
i2c_write(ds1307_dec2bcd(second)); i2c_write(ds1307_dec2bcd(minute)); i2c_write(ds1307_dec2bcd(hour)); i2c_write(ds1307_dec2bcd(dayofweek)); i2c_write(ds1307_dec2bcd(day)); i2c_write(ds1307_dec2bcd(month)); i2c_write
in „ATmega16 liefert kein Signal an allen Pins außer I2c“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.h
ds1307_time_t *time_data) { uint8_t data; /* Tell the DS1307 we want to read starting at address 0. */ i2c_start_wait(DS1307_ADDR+I2C_WRITE); i2c_write(0x00); /* Commence the read. */ i2c_rep_start(DS1307
-
Datei
ds1307.h
ds1307_time_t *time_data) { uint8_t data; /* Tell the DS1307 we want to read starting at address 0. */ i2c_start_wait(DS1307_ADDR+I2C_WRITE); i2c_write(0x00); /* Commence the read. */ i2c_rep_start(DS1307
-
PDF
DS1307.pdf
Crystal Connection V - +3V Battery Input BAT GND - Ground ORDERING INFORMATION SDA - Serial Data DS1307 8-Pin DIP (300-mil) SCL - Serial Clock DS1307Z 8-Pin SOIC (150-mil) SQW/OUT - Square Wave/Output Driver DS1307N 8-Pin DIP (Industrial) DS1307ZN 8-Pin SOIC (Industrial) DESCRIPTION The DS1307 Serial
in „Real-Time Clock (ds1307)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS1307.pdf
INFORMATION PART TEMP RANGE VOLTAGE (V) PIN-PACKAGE TOP MARK* DS1307+ 0°C to +70°C 5.0 8 PDIP (300 mils) DS1307 DS1307N+ -40°C to +85°C 5.0 8 PDIP (300 mils) DS1307N DS1307Z+ 0°C to +70°C 5.0 8 SO (150 mils) DS1307 DS1307ZN+ -40°C to +85°C 5.0 8 SO (150 mils) DS1307N DS1307Z+T&R 0°C to +70°C 5.0 8 SO (150 mils) Tape and Reel DS1307 DS1307ZN+T&R -40°C to +85°C 5.0 8 SO (150 mils) Tape and Reel DS1307N +Denotes a lead-free/RoHS-compliant package. *A “+” anywhere on the
in „[V] noch 2 x 10St. Dallas RTC DS1307Z (SO8) abzugeben“ · Markt ·
-
PDF
DS1307.pdf
INFORMATION PART TEMP RANGE VOLTAGE (V) PIN-PACKAGE TOP MARK* DS1307+ 0°C to +70°C 5.0 8 PDIP (300 mils) DS1307 DS1307N+ -40°C to +85°C 5.0 8 PDIP (300 mils) DS1307N DS1307Z+ 0°C to +70°C 5.0 8 SO (150 mils) DS1307 DS1307ZN+ -40°C to +85°C 5.0 8 SO (150 mils) DS1307N DS1307Z+T&R 0°C to +70°C 5.0 8 SO (150 mils) Tape and Reel DS1307 DS1307ZN+T&R -40°C to +85°C 5.0 8 SO (150 mils) Tape and Reel DS1307N +Denotes a lead-free/RoHS-compliant package. *A “+” anywhere on the
-
PDF
ds1307.pdf
INFORMATION PART TEMP RANGE VOLTAGE (V) PIN-PACKAGE TOP MARK* DS1307+ 0°C to +70°C 5.0 8 PDIP (300 mils) DS1307 DS1307N+ -40°C to +85°C 5.0 8 PDIP (300 mils) DS1307N DS1307Z+ 0°C to +70°C 5.0 8 SO (150 mils) DS1307 DS1307ZN+ -40°C to +85°C 5.0 8 SO (150 mils) DS1307N DS1307Z+T&R 0°C to +70°C 5.0 8 SO (150 mils) Tape and Reel DS1307 DS1307ZN+T&R -40°C to +85°C 5.0 8 SO (150 mils) Tape and Reel DS1307N +Denotes a lead-free/RoHS-compliant package. *A “+” anywhere on the
in „Probleme mit DS1307 und dessen Zeitausgabe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS1037.txt
Beschreiben nach einem Reset: ds1307_writereg(0,0x00110000b); // sekunden ds1307_writereg(1,0x01000000b); // minuten ds1307_writereg(2,0x00000011b); // stunden ds1307_writereg(3,0x00000101b); // wochentag ds1307_writereg(4,0x00001001b
in „Probleme mit DS1307“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS1307.c
; uint8_t day, date, month, year; seconds = ds1307_readreg(0); minutes = ds1307_readreg(1); hours = ds1307_readreg(2); day = ds1307_readreg(3); date = ds1307_readreg(4); month = ds1307_readreg(5); year = ds1307_readreg(6); day = ds1307_readreg(3); date = ds1307_readreg(4); month = ds1307_readreg(5); year = ds1307_readreg(6); seconds &= ~128; uart_putc(((hours >> 4) & 0x01) + 0x30); uart_putc((hours & 0x0F) + 0x30); uart_putc(':'); uart_putc((minutes >> 4)
in „Probleme mit DS1307“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
RTC.c
********************************* A Program to demonstrate the use of I2C RTC (Real Time Clock) (DS1307). Here the DS1307 RTC Module is connected with an AVR ATmega8 MCU by I2C Serial Bus. This program reads time from the DS1307 and displays it in 16x2 LCD Module. The system also has two buttons for
in „LCD zeigt nur die hälfte an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.c
twi_stop(void) { TWCR = (1 << TWEN) | (1 << TWSTO) | (1 << TWINT); while(TWCR & (1 << TWSTO)); } void ds1307_writereg(uint8_t adr,uint8_t data) { twi_start(); twi_writeadr(DS1307ADR,TW_WRITE); twi_writedata(adr); twi_writedata(data); twi_stop(); } uint8_t ds1307_readreg(uint8_t adr) { uint8_t data; twi_start
in „Real-Time Clock (ds1307)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Michael_N_.ds1307.bas
regfile = "m8def.dat" $crystal = 16000000 $baud = 9600 $lib "mcsbyte.lbx" ' for smaller code $lib "ds1307clock.lib" ' lib 'statt der ds1307clock.lib kann auch die ds1307clock_GER.lib verwendet werden. 'dann ist das Datumsformat direkt in der deutschen Darstellung $lib "i2c_twi.lbx" ' Für Hardware TWI $
in „RTC DS1307 mit Bascom konfigurieren und abfragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uhr.c
*********************************/ //********************** Definitionen *************** #define DS1307_I2C_INPUT_ADDR 0xD0 // Adresse ueber die auf den DS1307 geschr. wird #define DS1307_I2C_OUTPUT_ADDR 0xD1 // Adresse ueber die auf den DS1307 geschr. wird //****************************** Funktionen
in „suche C source für die DS1307 RTC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.h
*/ #ifndef DS1307_H #define DS1307_H #include "ds1307.c" //definitions #define DS1307_ADDR (0x68<<1) //device address //path to i2c fleury lib #define DS1307_I2CFLEURYPATH "i2cmaster.h" //define the path to i2c fleury lib #define DS1307_I2CINIT 1 //init i2c //functions extern void ds1307_init(); extern uint8_t ds1307_setdate(uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second); extern void ds1307
in „ATmega16 liefert kein Signal an allen Pins außer I2c“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname1.bas
Nixie3 = 1 Portb = Stundezehner Nixiemulti = 0 End Select Timer0 = Timerval Return 'Zeitauslesen Ds1307auslesen: I2cstart ' Start I2cwbyte Ds1307w ' DS1307 schreiben I2cwbyte 0 ' DS1307 Adresszeiger auf 0 stellen I2cstart ' Start I2cwbyte Ds1307r ' DS1307 lesen (ab vorher eingestellter Adresse 0) I2crbyte
in „DS1307 - Atmega8 - Bascom - lässt sich nicht auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-uhr-test.c
i2cmaster.h" //***************************************************************************************** //DS1307 Configuration #define DS1307 0x68 // Adresse des DS1307 ist 0x68 #define SECOND 0b01011001 // Sekunden auf 59 einstellen #define MINUTE 0b00110101 // Minuten auf 33 einstellen #define HOUR 0b00100100
in „suche C source für die DS1307 RTC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
wc.txt
); DS1307setHour(hour); DS1307setSecond(0); RTCsetHour(hour); RTCsetSecond(0); time_to_letters(hour, minute, true); LEDupdateRequest:= true; Blinkenlights:= false; endif; if not MINUTEBTN then // neg. Logik! if inctolimwrap(minute,59,0) then inctolimwrap(hour,23,0); endif; DS1307setHour(hour); DS1307setMinute(minute); DS1307setSecond(0); RTCsetMinute(minute); RTCsetSecond(0); time_to_letters(hour, minute, true); LEDupdateRequest:= true; Blinkenlights:= false; endif; endif;
in „Wieder mal DCF“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
wordclock_mega888.PAS
); DS1307setHour(hour); DS1307setSecond(0); RTCsetHour(hour); RTCsetSecond(0); time_to_letters(hour, minute, true); LEDupdateRequest:= true; Blinkenlights:= false; endif; if not MINUTEBTN then // neg. Logik! if inctolimwrap(minute,59,0) then inctolimwrap(hour,23,0); endif; DS1307setHour(hour); DS1307setMinute(minute); DS1307setSecond(0); RTCsetMinute(minute); RTCsetSecond(0); time_to_letters(hour, minute, true); LEDupdateRequest:= true; Blinkenlights:= false; endif; endif;
in „Wer kennt sich aus mit Pascal?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.c
********************************************************** Libray fuctions to access the popular DS1307 RTC IC with AVR Microcontroller. The libray has just two functions. One reads the register whose address is provided. Other writes to the given register with given data.Please see DS1307 Datasheet
in „LCD zeigt nur die hälfte an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS1307.txt
register ldi temp0, 0x00 ;0x07 = DS1307 Control register rcall TWI_SEND_DATA cpi temp0, 0x28 ; data byte is send - ACK is received brne DS1307_SAFE_ERROR ; load display memory adress ldi XL, LOW(CLOCK) ldi XH, HIGH(CLOCK) adiw XH:XL, 1 ;
in „DS1307 - NACK anstelle von ACK“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
; ds1307_write_byte(0x02, (((u8_min & HOURS)+((u8_ho10 <<4)& HOURS10)) | CH)); } if(!io_get(GPIO_PUSH_BUTTON_1)){ state=Zeitbestaetigen; delay_ms(1000); } break; case Zeitbestaetigen: ds1307_write_byte(0x00
in „AVR32 Timer Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
RTC_init.bas
Changetime 'configure the scl and sda pins Config Sda = Portd.1 Config Scl = Portd.0 'address of ds1307 Const Ds1307w = &HD0 ' Addresses of Ds1307 clock Const Ds1307r = &HD1 Config Clock = User ' this will dim the bytes automatic Config Date = Dmy , Separator = . ' Deutsch Dim Weekday As Byte Goto Ende_rtc_init
in „RTC8563 und BASCOM“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
STM32_DS1307.pdf
DS1307 – 24C128 – DS18B20 – Module We are only interested in RTC-chip DS1307. We do not use memory chip 24C128 and digital thermometer IC DS18B20, and we do not use any battery on the back side of the module
in „I2C STM32F103“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
xFB_RC5_64.c
kkdat[5]*10+kkdat[6]; MON=kkdat[7]*10+kkdat[8]; YEA=kkdat[9]*10+kkdat[10]; //wdg20on; #if use_twi ds1307gefunden = i2c_start(0xd0); //0b11010000 - 188?? if (ds1307gefunden==0){ kk_ds1307_setAll();lcd_write(" ok....");}else{lcd_write("err1307");} #endif ir_cmd=fb_back; //wdg20off; //no break case(fb_back
in „Menuerstellung GLCD in C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.bas
crystal = 3686400 $baud = 19200 '$lib "i2c_twi.lbx" Config Sda = Portc.4 Config Scl = Portc.5 Const Ds1307w = &HD0 Const Ds1307r = &HD1 'Config Twi = 100000 Dim Weekday As Byte Declare Sub Setweekday Config Clock = User Config Date = Dmy , Separator = . Date$ = "08.05.12" Time$ = "22:44:00" Weekday = 2 Call Setweekday Do Print Time$ Print Date$ Waitms 500 Loop Getdatetime: I2cstart I2cwbyte Ds1307w I2cwbyte 0 I2cstart I2cwbyte Ds1307r I2crbyte _sec , Ack I2crbyte _min , Ack I2crbyte _hour , Ack I2crbyte Weekday , Ack I2crbyte _day , Ack I2crbyte _month , Ack I2crbyte _year , Nack I2cstop _sec
in „RTC DS1307 mit Bascom konfigurieren und abfragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
plotclock.c
instructions on how to hook up a real time clock, // see here -> http://www.pjrc.com/teensy/td_libs_DS1307RTC.html // DS1307RTC works with the DS1307, DS1337 and DS3231 real time clock chips. // Please run the SetTime example to initialize the time on new RTC chips and begin running. #include <Wire.h> #
in „Plotclock zusammenbauen und programmieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uhrzeiteinstellen.c
" #define DS1307_WRITE 0xD0 // Adresse ueber die auf den DS1307 geschr. wird #define DS1307_READ 0xD1 // Adresse ueber die auf den DS1307 geschr. wird set_time(unsigned char address, unsigned char value) { i2c_start(DS1307_WRITE); i2c_write(address); i2c_write(value); i2c_stop(); _delay_ms(1000); } int main(void) { i2c_init(); // init I2C interface set_time(0x00, 0x00); //Sekunden auf 0 set_time(0x01, 0x30); //Minuten
in „Interface zwischen RTC und ATmega16 zum Uhrzeit einstellen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Clockplot_ino.ino
instructions on how to hook up a real time clock, // see here -> http://www.pjrc.com/teensy/td_libs_DS1307RTC.html // DS1307RTC works with the DS1307, DS1337 and DS3231 real time clock chips. // Please run the SetTime example to initialize the time on new RTC chips and begin running. #include <Wire.h> #
in „Plotclock zusammenbauen und programmieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
plotclock.c
instructions on how to hook up a real time clock, // see here -> http://www.pjrc.com/teensy/td_libs_DS1307RTC.html // DS1307RTC works with the DS1307, DS1337 and DS3231 real time clock chips. // Please run the SetTime example to initialize the time on new RTC chips and begin running. #include <Wire.h> #
in „Plotclock zusammenbauen und programmieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
INT0_problem.txt
rcall temp_RS232 ; ldi akku,0x1F ; sts aktueller_tag_s,akku ; lds akku,aktueller_tag_s ;rcall init_DS1307 ;#### ENDE TEST #### ;################################# sei ;Interrupts global freigeben ; call test_RAM_DS1307 call sek_int_ein ;#### ; lds temp,EIMSK ; mov akku_2,temp ;; 1 bin_to_ascii wandelt das
in „atmega 168 INT0 löst keinen Interrupt aus! Assembler!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2c.c
******************************************************************************* ; Function: WriteDS1307 ; ; Description: Writes DS1307 register ; ; Inputs: address - address of the register ; dataByte - data to be written ; ; Returns: I2C_SUCCESS - dataByte is written ; Otherwise - I2C ERROR ; ******
in „I2C Probleme beim starten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Plotclock_v1_2.ino
instructions on how to hook up a real time clock, // see here -> http://www.pjrc.com/teensy/td_libs_DS1307RTC.html // DS1307RTC works with the DS1307, DS1337 and DS3231 real time clock chips. // Please run the SetTime example to initialize the time on new RTC chips and begin running. #include <Wire.h> #
in „Plotclock zusammenbauen und programmieren“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS1337_IIC_Note.pdf
Maxim/Dallas > App Notes > REAL-TIME CLOCKS Keywords: Real-Time Clock, RTC, DS1307, DS1337, DS1338, DS1339, DS1340, DS1375 Aug 05, 2004 APPLICATION NOTE 3300 Interfacing I2C Serial Real-Time Clocks to a Microcontroller 2 This application note desciibes a general hardware configuration
in „Problem mit RTC DS1337C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
read_rtc_temp.c
#define DS1307_ID 0x68 // wie DS3231 // diese CONTROL_REGISTER sind für DS3231, bitte anpassen für DS1307 -> Datenblatt // BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 #define CONTROL_REGISTER 0x0E // 14d NAME
in „RTC DS1307 1Hz“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uhr_Thermometer.bas
Portc.4 Config Scl = Portc.5 'LM75-Adressen Const Lm75_schreiben = &H90 Const Lm75_lesen = &H91 'DS1307-Adresse Const Ds1307_schreiben = &HD0 Const Ds1307_lesen = &HD1 I2cinit '--------------------- 'Konfiguration Eingabe '--------------------- Ddrb = &B0000_0000 Taster_uhrzeit Alias Pinb.2 Taster_incr
in „Bascom LM75 Schalttemperatur auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
RTC_NVRAM_DUMP.c
***************** * Function: void RTC_REG_DUMP(void) * Description: Print RTC register dump for DS1307/DS3231 chip * Uses: none * Returns: none *******************************************************************************/ void RTC_REG_DUMP(void) { byte i; byte j = 0; // if (16 != (_peripheral_enable
in „I2C mit DS3132 - Peter Fleury I2C implementierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.h
#ifndef DS1307_H #define DS1307_H #include <avr/io.h> uint8_t DS1307Read(uint8_t address,uint8_t *data); uint8_t DS1307Write(uint8_t address,uint8_t data); #endif
in „LCD zeigt nur die hälfte an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2C_Lib.inc
0x48 ;'* .equ c_24LCAdr = 0xA0 .equ c_24LCAdr_w = c_24LCAdr .equ c_24LCAdr_r = c_24LCAdr + 1 .equ c_DS1307 = 0xD0 ;'* .equ c_DS1307_w = c_DS1307 ;'* .equ c_DS1307_r = c_DS1307 + 1 ;'* ;****************************************************** ;*--------------------------------------------------------------
in „Einige Verständnis Fragen zum TWI (I²C)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.h
. */ #ifndef _DS1307_INCLUDED_ #define _DS1307_INCLUDED_ #include <i2c.h> #pragma used+ unsigned char rtc_read(unsigned char address); void rtc_write(unsigned char address,unsigned char data); void rtc_init(unsigned char
in „Codevision DS1307.h“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Code_Wordclock_V3.txt
TastS_ = 0; // Da nicht mehr betätigt den Merker für den nächsten Durchlauf zurück setzen SetzenDS1307(2,inttoBCD(Stunden)); // Schreiben der Zeit aus dem Zwischenspeicher in die RTC SetzenDS1307(1,inttoBCD(Minuten)); // RTC nimmt nur BCD, deshalb bei der Übergabe wandeln SetzenDS1307(0,0); // Sekunden
-
Datei
vfd-ds1307-2.bas
Date = Dmy , Separator = . $lib "i2c_twi.lbx" ' Config Sda = Portc.1 Config Scl = Portc.0 Const Ds1307w = &HD0 Const Ds1307r = &HD1 Config Twi = 100000 Enable Interrupts Declare Sub Showiw18 Declare Sub Setweekday Strich = 21 'Date$ = "13.05.11" 'Time$ = "23:27:30" 'Weekday = 6 'Call Setweekday Do Times
in „Schaltplan für IW-18 Uhr mit zwei UDN2981“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I_C_Versuch.ino
//Arduino 1.0+ Only //Arduino 1.0+ Only #include "Wire.h" #define DS1307_ADDRESS 0x68 byte zero = 0x00; //workaround for issue #527 void setup(){ pinMode(10, OUTPUT); Wire.begin(); Serial.begin(9600); setDateTime(); } void loop(){ printDate(); delay(3000); } void setDateTime
in „Arduino und DS1307“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds1307.c
L-Kiss: Keep It Simple! - Stupid! :-)) | |______| | (c) 2007 by ELEb 2003 |__________| Projectname: ds1307 Filename: ds1307.c Author: P.Berger Version: 1.0 Date: 16.09.2009 15:19:13 Function: *******************************************************************************/ // Einbinden von bestehenden Modulen
in „ATmega32 und ds1307 Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Sketch.txt
because the resistors divide the voltage in half // Reset the register pointer Wire.beginTransmission(DS1307_ADDRESS); Wire.write(zero); Wire.endTransmission(); Wire.requestFrom(DS1307_ADDRESS, 7); int second = bcdToDec(Wire.read()); int minute = bcdToDec(Wire.read()); int hour = bcdToDec(Wire.read() & 0b111111
in „Arduino problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
serieltest1.c
include "i2cmaster.h" #include <util/delay.h> /* 9600 baud */ #define UART_BAUD_RATE 9600 #define DS1307 0xD0 //Adresse des DS1307 #define PCF_Write 0x70 //Adresse für PCF Porterweiterung schreiben #define PCF_Read 0x71 //Adresse für PCF Porterweiterung lesen unsigned char time_s; unsigned char time_m
in „PCF8574 Ausgänge“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
global.h
include <avr/eeprom.h> #include <util/delay.h> #include "i2cmaster.h" #include "pgmspace1.h" #define DS1307_I2C_ADDRESS 0XD0 #define SCL_CLOCK 100000L #define XTAL 16e6 #define PHASE_A (PINA & 1<<PA0) #define PHASE_B (PINA & 1<<PA1) #define MOD_Normal 0b00000000 #define MOD_Sleep 0b00000001 #define MOD_AlarmEin
in „pgmspace.h|1067|error: unknown type name ‘uint_farpt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
include "ks0108.h" #include "arial_bold_14.h" #include "corsiva_12.h" #include "mcp4921.h" #include "ds1307.h" ISR( TIMER1_COMPA_vect ) // Interruptbehandlungsroutine { OCR1A = 2500-OCR1A; // Das Servosignal wird aus der Differenz von // Periodenlänge (2500*0,008ms=20ms) und letztem // Vergleichswert (OCR1A
in „ATmega16 liefert kein Signal an allen Pins außer I2c“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rtc.c
released while((TWCR & (1<<TWSTO))); // ATmega #endif // #if defined(__AVR__) Wire.beginTransmission(DS1307_ID); Wire.write(STATUS_REGISTER); Wire.endTransmission(); Wire.requestFrom( ( DS1307_ID ), 1); // request Status Register 1 Byte if ((Wire.read() & 0x00ff) & (1<<BSY)) // auf busy pruefen mit 0x00ff
in „arduino oder GCC Programmierung“ · Mikrocontroller und Digitale Elektronik ·