Blame | Last modification | View Log | Download | RSS feed
ifndef __reg6208inc ; avoid multiple inclusion__reg6208inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REG6208.INC *;* *;* contains SFR and Bit Definitions for ST6208/09/10/20 *;* *;* Source: ST6208/09/10/20C Data Sheet, Rev. 4, January 2009 *;* *;****************************************************************************;----------------------------------------------------------------------------; Memory AddressesRAMSTART sfr 0080h ; Start Address Internal RAMRAMEND sfr 00bfh ; End Address Internal RAMswitch MOMCPUNAMEcase "ST6208"ROMSTART label 0ba0h ; End " " ROM__hasadc eval 0case "ST6209"ROMSTART label 0ba0h ; End " " ROM__hasadc eval 1case "ST6210"ROMSTART label 0880h ; End " " ROM__hasadc eval 1case "ST6220"ROMSTART label 0080h ; End " " ROM__hasadc eval 1elsecasefatal "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,""TOUT bit 5,TSCR ; Timer Output ControlDOUT bit 4,TSCR ; Data Outputrestoreendif ; __reg6208inc