Blame | Last modification | View Log | Download | RSS feed
ifndef __reg1200inc__reg1200inc equ 1savelisting off ; kein Listing ueber diesen File;****************************************************************************;* *;* AS 1.42 - File REG1200.INC *;* *;* Contains Bit & Register Definitions for AT90S1200 *;* *;****************************************************************************;----------------------------------------------------------------------------; Memory LimitsE2END equ 63 ; End Address EEPROMRAMSTART equ 0x60,data ; Start Address SRAMRAMEND equ 95,data ; End Address SRAM (i.e. no SRAM!)FLASHEND label 1023 ; End Address Flash;----------------------------------------------------------------------------; Chip ConfigurationMCUCR port 0x35 ; MCU General Control RegisterSM avrbit MCUCR,4 ; Choose Idle/Powerdown ModeSE avrbit MCUCR,5 ; Enable Sleep Mode;----------------------------------------------------------------------------; EEPROMinclude "ee90.inc";----------------------------------------------------------------------------; GPIOPINB port 0x16 ; Port B @ 0x16 (IO) ff.PIND port 0x10 ; Port D @ 0x10 (IO) ff.__PORTD_BITS equ 0x7f ; (bits 0..6);----------------------------------------------------------------------------; Interrupt Vectorsenumconf 1,codeenum INT0_vect=1 ; External Interrupt Request 0nextenum TIMER0_OVF_vect ; Timer/Counter 0 Overflownextenum ANA_COMP_vect ; Analog Comparator;----------------------------------------------------------------------------; External InterruptsISC00 avrbit MCUCR,0 ; External Interrupt 0 Sense ControlISC01 avrbit MCUCR,1GIMSK port 0x3b ; General Interrupt Mask RegisterINT0 avrbit GIMSK,6 ; Enable External Interrupt 0;----------------------------------------------------------------------------; TimersTCCR0 port 0x33 ; Timer/Counter 0 Control RegisterCS00 avrbit TCCR0,0 ; Clock SelectCS01 avrbit TCCR0,1CS02 avrbit TCCR0,2TCNT0 port 0x32 ; Timer/Counter 0 ValueTIMSK port 0x39 ; Timer Interrupt Mask RegisterTOIE0 avrbit TIMSK,1 ; Timer/Counter 0 Overflow Interrupt EnableTIFR port 0x38 ; Timer Interrupt Status Register;----------------------------------------------------------------------------; Watchdog Timerinclude "wdm21.inc";----------------------------------------------------------------------------; Analog Comparatorinclude "ac90.inc"restoreendif ; __reg1200inc