.include "m32def.inc" .equ XTAL = 1000000 .equ LCD_PORT = PORTB .equ LCD_Com = PortC .equ LCD_RS = PC0 .equ LCD_RW = PC2 .equ LCD_E = PC4 .equ LCD_LED = PD5 .equ RTCs = PC5 .equ RTCi = PC3 .equ RTCr = PC1 .equ PW_Relais = PC7 .equ SW0_Pin = PD0 .equ SW1_Pin = PD1 .equ SW2_Pin = PD4 .def temp1 = r16 .def temp2 = r17 .def temp3 = r18 .def dat0 = r19 .def adr0 = r20 .def MenuDelay = r21 ;Sekunden = RtcAdress, 0x80 (1R) (0W) ;Minuten = RtcAdress, 0x82 ;Stunden = RtcAdress, 0x84 ;Tag = RtcAdress, 0x86 ;Monat = RtcAdress, 0x88 ;Wochentag = RtcAdress, 0x8A ;Alarm0 = RtcAdress, 0xC0 ;Alarm1 = RtcAdress, 0xC2 ;Alarm on/off = RtcAdress, 0xC4 ;Status = RtcAdress, 0xC6 .org 0x0000 rjmp main .org INT0addr reti .org INT1addr reti .org OVF0addr rjmp Overflow0 main: ldi r16, LOW(RAMEND) out SPL, r16 ldi r16, HIGH(RAMEND) out SPH, r16 ldi r16, (1< < on >" MenuSleep: .db "Sleep-Timer0" .dseg SW0: .byte 1 SW0_Times: .byte 1 SW0_Toggle: .byte 1 SW0_Delay: .byte 1 SW0_Count: .byte 1 SW12_Dir: .byte 1 SW12_DirSet: .byte 1