Blame | Last modification | View Log | Download | RSS feed
ifndef __reg72324inc ; avoid multiple inclusion__reg72324inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REG72324.INC *;* *;* contains SFR and Bit Definitions for ST72324 *;* *;* Source: ST72324 Data Sheet, Rev. 5, April 2008 *;* *;****************************************************************************;----------------------------------------------------------------------------; Memory AddressesRAMSTART label $0080 ; start address internal RAMswitch substr(MOMCPUNAME,8,1)case "2"RAMEND label $01ff ; end " " "case "4"RAMEND label $027f ; end " " "case "6"RAMEND label $047f ; end " " "elsecasefatal "cannot deduce RAM size"endcase;----------------------------------------------------------------------------; Interrupt VectorsAVD_vect label $ffe4 ; Auxiliary Voltage detector interruptSCI_vect label $ffe6 ; SCI Interrupt VectorTIMB_vect label $ffe8 ; TIMER B Interrupt VectorTIMA_vect label $ffea ; TIMER A Interrupt VectorSPI_vect label $ffec ; SPI Interrupt VectorEI3_vect label $fff0 ; External Interrupt Vector B7..4EI2_vect label $fff2 ; External Interrupt Vector B3..0EI1_vect label $fff4 ; External Interrupt Vector F2..0EI0_vect label $fff6 ; External Interrupt Vector A3..0MCC_RTC_vect label $fff8 ; Main clock controller time base interruptTRAP_vect label $fffc ; TRAP (software) Interrupt VectorRESET_vect label $fffe ; RESET Vector;----------------------------------------------------------------------------; GPIOinclude "gpio.inc"__defgpio "PA",$0000__defgpio "PB",$0003__defgpio "PC",$0006__defgpio "PD",$0009__defgpio "PE",$000c__defgpio "PF",$000f;----------------------------------------------------------------------------; Miscellaneous;----------------------------------------------------------------------------; SPIinclude "spi2.inc"__defspi $0021;----------------------------------------------------------------------------; ITCISPR0 label $0024 ; Interrupt Software Priority Register 0I0_0 bit ISPR0,0 ; TLII1_0 bit ISPR0,1I0_1 bit ISPR0,2 ; MCC+SII1_1 bit ISPR0,3I0_2 bit ISPR0,4 ; EI0I1_2 bit ISPR0,5I0_3 bit ISPR0,6 ; EI1I1_3 bit ISPR0,7ISPR1 label $0025 ; Interrupt Software Priority Register 1I0_4 bit ISPR1,0 ; EI2I1_4 bit ISPR1,1I0_5 bit ISPR1,2 ; EI3I1_5 bit ISPR1,3I0_6 bit ISPR1,4I1_6 bit ISPR1,5I0_7 bit ISPR1,6 ; SPII1_7 bit ISPR1,7ISPR2 label $0026 ; Interrupt Software Priority Register 2I0_8 bit ISPR2,0 ; Timer AI1_8 bit ISPR2,1I0_9 bit ISPR2,2 ; Timer BI1_9 bit ISPR2,3I0_10 bit ISPR2,4 ; SCII1_10 bit ISPR2,5I0_11 bit ISPR2,6 ; AVDI1_11 bit ISPR2,7ISPR3 label $0027 ; Interrupt Software Priority Register 3I0_12 bit ISPR3,0 ; I2CI1_12 bit ISPR3,1I0_13 bit ISPR3,2 ; PWMARTI1_13 bit ISPR3,3EICR label $0028 ; External Interrupt Control RegisterIS1 bfield EICR,6,2 ; ei2 and ei3 sensitivityIPB bit EICR,5 ; Interrupt polarity for port BIS2 bfield EICR,3,2 ; ei0 and ei1 sensitivityIPA bit EICR,2 ; Interrupt polarity for port ATLIS bit EICR,1 ; TLI sensitivityTLIE bit EICR,0 ; TLI enable;----------------------------------------------------------------------------; FlashFCSR label $0029 ; Flash Control/Status Register;----------------------------------------------------------------------------; WatchdogWDGCR label $002a ; Watchdog Control RegisterWDGA bit WDGCR,7 ; Activation bit;----------------------------------------------------------------------------; System IntegritySICSR label $002b ; System Integrity Control/Status RegisterAVDS bit SICSR,7 ; Voltage Detection selectionAVDIE bit SICSR,6 ; Voltage Detector interrupt enableAVDF bit SICSR,5 ; Voltage Detector flagLVDRF bit SICSR,4 ; LVD reset flagCSSIE bit SICSR,2 ; Clock security syst. interrupt enableCSSD bit SICSR,1 ; Clock security system detectionWDGRF bit SICSR,0 ; Watchdog reset flag;----------------------------------------------------------------------------; MCCMCCSR label $002c ; Main Clock Control / Status RegisterMCO bit MCCSR,7 ; Main clock out selectionCP bfield MCCSR,5,2 ; CPU clock prescalerSMS bit MCCSR,4 ; Slow mode selectTB bfield MCCSR,2,2 ; Time base controlOIE bit MCCSR,1 ; Oscillator interrupt enableOIF bit MCCSR,0 ; Oscillator interrupt flagMCCBCR label $002d ; Main Clock Controller: Beep Control RegisterBC bfield MCCBCR,0,2 ; Beep control;----------------------------------------------------------------------------; Timer A/Binclude "timer.inc"__deftimer "TA",$0030__deftimer "TB",$0040;----------------------------------------------------------------------------; Serial Communications Interfaceinclude "sci2.inc"__defsci2 $0050,5;----------------------------------------------------------------------------; Analog/Digital Converterinclude "adc10.inc"__defadc10 $0070restoreendif ; __reg72324inc