Blame | Last modification | View Log | Download | RSS feed
ifndef __reg6200inc ; avoid multiple inclusion__reg6200inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REG6200.INC *;* *;* contains SFR and Bit Definitions for ST6200/01/03 *;* *;* Source: ST6200/01/03C Data Sheet, Rev. 3.2, July 2001 *;* *;****************************************************************************;----------------------------------------------------------------------------; Memory AddressesRAMSTART sfr 0080h ; Start Address Internal RAMRAMEND sfr 00bfh ; End Address Internal RAMswitch MOMCPUNAMEcase "ST6200","ST6201"ROMSTART label 0880h ; End " " ROM__hasadc eval 1case "ST6203"ROMSTART label 0ba0h ; End " " ROM__hasadc eval 0elsecasefatal "Huh?"endcase;----------------------------------------------------------------------------; Interrupt Vectorsif __hasadcADC_vect label 0ff0h ; End Of ConversionendifTIMER_vect label 0ff2h ; Timer UnderflowPORTB_vect label 0ff4h ; Ext. Interrupt Port BPORTA_vect label 0ff6h ; Ext. Interrupt Port ANMI_vect label 0ffch ; Non Maskable InterruptRESET_vect label 0ffeh ; RESET;----------------------------------------------------------------------------; GPIOinclude "gpio.inc"__defgpio "A",0c0h__defgpio "B",0c1h;----------------------------------------------------------------------------; CPUinclude "ior.inc";----------------------------------------------------------------------------; Watchdoginclude "wdg.inc";----------------------------------------------------------------------------; Analog/Digital Converterif __hasadcinclude "adc.inc"elseifADCR sfr 0d1hendifOSCOFF bit 2,ADCR ; Main Oscillator Off;----------------------------------------------------------------------------; Timer 1include "timer.inc"__deftimer 0d2h,""restoreendif ; __reg6200inc