; Based on CPU DB MC68HC908QY1_P_DW, version 2.87.149 (RegistersPrg V2.28) ; ################################################################### ; Filename : mc68hc908qy1.inc ; Processor : MC68HC908QY1CP ; FileFormat: V2.28 ; DataSheet : MC68HC908QY4/D Rev. 5 07/2005, MC68HLC908QY4/D Rev. 3 07/2005 ; Compiler : CodeWarrior compiler ; Date/Time : 27.5.2009, 10:00 ; Abstract : ; This header implements the mapping of I/O devices. ; ; Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ; ; http : www.freescale.com ; mail : support@freescale.com ; ; CPU Registers Revisions: ; - none ; ; File-Format-Revisions: ; - 14.11.2005, V2.00 : ; - Deprecated symbols added for backward compatibility (section at the end of this file) ; - 15.11.2005, V2.01 : ; - Changes have not affected this file (because they are related to another family) ; - 17.12.2005, V2.02 : ; - Arrays (symbols xx_ARR) are defined as pointer to volatile, see issue #2778 ; - 16.01.2006, V2.03 : ; - Fixed declaration of non volatile registers. Now it does not require (but allows) their initialization, see issue #2920. ; - "volatile" modifier removed from declaration of non volatile registers (that contain modifier "const") ; - 08.03.2006, V2.04 : ; - Support for bit(s) names duplicated with any register name in .h header files ; - 24.03.2006, V2.05 : ; - Changes have not affected this file (because they are related to another family) ; - 26.04.2006, V2.06 : ; - Absolute assembly supported (depreciated symbols are not defined) ; - 27.04.2006, V2.07 : ; - Fixed macro __RESET_WATCHDOG for HCS12, HCS12X ,HCS08 DZ and HCS08 EN derivatives (write 0x55,0xAA). ; - 07.06.2006, V2.08 : ; - For .inc files added constants "RAMStart" and "RAMEnd" even there is only Z_RAM. ; - 03.07.2006, V2.09 : ; - Flash commands constants supported ; - 27.10.2006, V2.10 : ; - __RESET_WATCHDOG improved formating and re-definition ; - 23.11.2006, V2.11 : ; - Changes have not affected this file (because they are related to another family) ; - 22.01.2007, V2.12 : ; - Changes have not affected this file (because they are related to another family) ; - 01.03.2007, V2.13 : ; - Flash commands constants values converted to HEX format ; - 02.03.2007, V2.14 : ; - Interrupt vector numbers added into .H, see VectorNumber_* ; - 26.03.2007, V2.15 : ; - Changes have not affected this file (because they are related to another family) ; - 10.05.2007, V2.16 : ; - Fixed flash commands definition for ColdFireV1 assembler (equ -> .equ) ; - 05.06.2007, V2.17 : ; - Changes have not affected this file (because they are related to another family) ; - 19.07.2007, V2.18 : ; - Improved number of blanked lines inside register structures ; - 06.08.2007, V2.19 : ; - CPUDB revisions generated ahead of the file-format revisions. ; - 11.09.2007, V2.20 : ; - Added comment about initialization of unbonded pins. ; - 02.01.2008, V2.21 : ; - Changes have not affected this file (because they are related to another family) ; - 13.02.2008, V2.22 : ; - Changes have not affected this file (because they are related to another family) ; - 20.02.2008, V2.23 : ; - Changes have not affected this file (because they are related to another family) ; - 03.07.2008, V2.24 : ; - Added support for bits with name starting with number (like "1HZ") ; - 28.11.2008, V2.25 : ; - StandBy RAM array declaration for ANSI-C added ; - 1.12.2008, V2.26 : ; - Duplication of bit (or bit-group) name with register name is not marked as a problem, is register is internal only and it is not displayed in I/O map. ; - 17.3.2009, V2.27 : ; - Merged bit-group is not generated, if the name matchs with anouther bit name in the register ; - 6.4.2009, V2.28 : ; - Fixed generation of merged bits for bit-groups with a digit at the end, if group-name is defined in CPUDB ; ; Not all general-purpose I/O pins are available on all packages or on all mask sets of a specific ; derivative device. To avoid extra current drain from floating input pins, the user’s reset ; initialization routine in the application program must either enable on-chip pull-up devices ; or change the direction of unconnected pins to outputs so the pins do not float. ; ################################################################### ;*** Memory Map and Interrupt Vectors ;****************************************** ROMStart: equ $0000F800 ROMEnd: equ $0000FDFF Z_RAMStart: equ $00000080 Z_RAMEnd: equ $000000FF ROM1Start: equ $0000FFB0 ROM1End: equ $0000FFBD ROM2Start: equ $0000FFC2 ROM2End: equ $0000FFCF RAMStart: equ Z_RAMStart RAMEnd: equ Z_RAMEnd ; INT_KBI: equ $0000FFE0 Reserved1: equ $0000FFE2 Reserved2: equ $0000FFE4 Reserved3: equ $0000FFE6 Reserved4: equ $0000FFE8 Reserved5: equ $0000FFEA Reserved6: equ $0000FFEC Reserved7: equ $0000FFEE Reserved8: equ $0000FFF0 INT_TIMOvr: equ $0000FFF2 INT_TIMCH1: equ $0000FFF4 INT_TIMCH0: equ $0000FFF6 Reserved12: equ $0000FFF8 INT_IRQ: equ $0000FFFA INT_SWI: equ $0000FFFC INT_RESET: equ $0000FFFE ; ;*** PTA - Port A Data Register; 0x00000000 *** PTA: equ $00000000 ;*** PTA - Port A Data Register; 0x00000000 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET PTA_PTA0: equ 0 ; Port A Data Bit 0 PTA_PTA1: equ 1 ; Port A Data Bit 1 PTA_PTA2: equ 2 ; Port A Data Bit 2 PTA_PTA3: equ 3 ; Port A Data Bit 3 PTA_PTA4: equ 4 ; Port A Data Bit 4 PTA_PTA5: equ 5 ; Port A Data Bit 5 PTA_AWUL: equ 6 ; Auto Wake-up Latch Data Bit ; bit position masks mPTA_PTA0: equ %00000001 mPTA_PTA1: equ %00000010 mPTA_PTA2: equ %00000100 mPTA_PTA3: equ %00001000 mPTA_PTA4: equ %00010000 mPTA_PTA5: equ %00100000 mPTA_AWUL: equ %01000000 ;*** PTB - Port B Data Register; 0x00000001 *** PTB: equ $00000001 ;*** PTB - Port B Data Register; 0x00000001 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET PTB_PTB0: equ 0 ; Port B Data Bit 0 PTB_PTB1: equ 1 ; Port B Data Bit 1 PTB_PTB2: equ 2 ; Port B Data Bit 2 PTB_PTB3: equ 3 ; Port B Data Bit 3 PTB_PTB4: equ 4 ; Port B Data Bit 4 PTB_PTB5: equ 5 ; Port B Data Bit 5 PTB_PTB6: equ 6 ; Port B Data Bit 6 PTB_PTB7: equ 7 ; Port B Data Bit 7 ; bit position masks mPTB_PTB0: equ %00000001 mPTB_PTB1: equ %00000010 mPTB_PTB2: equ %00000100 mPTB_PTB3: equ %00001000 mPTB_PTB4: equ %00010000 mPTB_PTB5: equ %00100000 mPTB_PTB6: equ %01000000 mPTB_PTB7: equ %10000000 ;*** DDRA - Data Direction Register A; 0x00000004 *** DDRA: equ $00000004 ;*** DDRA - Data Direction Register A; 0x00000004 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET DDRA_DDRA0: equ 0 ; Data Direction Register A Bit 0 DDRA_DDRA1: equ 1 ; Data Direction Register A Bit 1 DDRA_DDRA3: equ 3 ; Data Direction Register A Bit 3 DDRA_DDRA4: equ 4 ; Data Direction Register A Bit 4 DDRA_DDRA5: equ 5 ; Data Direction Register A Bit 5 ; bit position masks mDDRA_DDRA0: equ %00000001 mDDRA_DDRA1: equ %00000010 mDDRA_DDRA3: equ %00001000 mDDRA_DDRA4: equ %00010000 mDDRA_DDRA5: equ %00100000 ;*** DDRB - Data Direction Register B; 0x00000005 *** DDRB: equ $00000005 ;*** DDRB - Data Direction Register B; 0x00000005 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET DDRB_DDRB0: equ 0 ; Data Direction Register B Bit 0 DDRB_DDRB1: equ 1 ; Data Direction Register B Bit 1 DDRB_DDRB2: equ 2 ; Data Direction Register B Bit 2 DDRB_DDRB3: equ 3 ; Data Direction Register B Bit 3 DDRB_DDRB4: equ 4 ; Data Direction Register B Bit 4 DDRB_DDRB5: equ 5 ; Data Direction Register B Bit 5 DDRB_DDRB6: equ 6 ; Data Direction Register B Bit 6 DDRB_DDRB7: equ 7 ; Data Direction Register B Bit 7 ; bit position masks mDDRB_DDRB0: equ %00000001 mDDRB_DDRB1: equ %00000010 mDDRB_DDRB2: equ %00000100 mDDRB_DDRB3: equ %00001000 mDDRB_DDRB4: equ %00010000 mDDRB_DDRB5: equ %00100000 mDDRB_DDRB6: equ %01000000 mDDRB_DDRB7: equ %10000000 ;*** PTAPUE - Input Pull-Up Enable Register PTAPUE; 0x0000000B *** PTAPUE: equ $0000000B ;*** PTAPUE - Input Pull-Up Enable Register PTAPUE; 0x0000000B *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET PTAPUE_PTAPUE0: equ 0 ; Pull-Up Enable bit 0, Port A PTAPUE_PTAPUE1: equ 1 ; Pull-Up Enable bit 1, Port A PTAPUE_PTAPUE2: equ 2 ; Pull-Up Enable bit 2, Port A PTAPUE_PTAPUE3: equ 3 ; Pull-Up Enable bit 3, Port A PTAPUE_PTAPUE4: equ 4 ; Pull-Up Enable bit 4, Port A PTAPUE_PTAPUE5: equ 5 ; Pull-Up Enable bit 5, Port A PTAPUE_OSC2EN: equ 7 ; Enable PTA4 on OSC2 Pin ; bit position masks mPTAPUE_PTAPUE0: equ %00000001 mPTAPUE_PTAPUE1: equ %00000010 mPTAPUE_PTAPUE2: equ %00000100 mPTAPUE_PTAPUE3: equ %00001000 mPTAPUE_PTAPUE4: equ %00010000 mPTAPUE_PTAPUE5: equ %00100000 mPTAPUE_OSC2EN: equ %10000000 ;*** PTBPUE - Input Pull-Up Enable Register PTBPUE; 0x0000000C *** PTBPUE: equ $0000000C ;*** PTBPUE - Input Pull-Up Enable Register PTBPUE; 0x0000000C *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET PTBPUE_PTBPUE0: equ 0 ; Pull-Up Enable bit 0, Port B PTBPUE_PTBPUE1: equ 1 ; Pull-Up Enable bit 1, Port B PTBPUE_PTBPUE2: equ 2 ; Pull-Up Enable bit 2, Port B PTBPUE_PTBPUE3: equ 3 ; Pull-Up Enable bit 3, Port B PTBPUE_PTBPUE4: equ 4 ; Pull-Up Enable bit 4, Port B PTBPUE_PTBPUE5: equ 5 ; Pull-Up Enable bit 5, Port B PTBPUE_PTBPUE6: equ 6 ; Pull-Up Enable bit 6, Port B PTBPUE_PTBPUE7: equ 7 ; Pull-Up Enable bit 7, Port B ; bit position masks mPTBPUE_PTBPUE0: equ %00000001 mPTBPUE_PTBPUE1: equ %00000010 mPTBPUE_PTBPUE2: equ %00000100 mPTBPUE_PTBPUE3: equ %00001000 mPTBPUE_PTBPUE4: equ %00010000 mPTBPUE_PTBPUE5: equ %00100000 mPTBPUE_PTBPUE6: equ %01000000 mPTBPUE_PTBPUE7: equ %10000000 ;*** KBSCR - Keyboard Status and Control Register; 0x0000001A *** KBSCR: equ $0000001A ;*** KBSCR - Keyboard Status and Control Register; 0x0000001A *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET KBSCR_MODEK: equ 0 ; Keyboard Triggering Sensitivity Bit KBSCR_IMASKK: equ 1 ; Keyboard Interrupt Mask Bit KBSCR_ACKK: equ 2 ; Keyboard Acknowledge Bit KBSCR_KEYF: equ 3 ; Keyboard Flag Bit ; bit position masks mKBSCR_MODEK: equ %00000001 mKBSCR_IMASKK: equ %00000010 mKBSCR_ACKK: equ %00000100 mKBSCR_KEYF: equ %00001000 ;*** KBIER - Keyboard Interrrupt Enable Register KBIER; 0x0000001B *** KBIER: equ $0000001B ;*** KBIER - Keyboard Interrrupt Enable Register KBIER; 0x0000001B *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET KBIER_KBIE0: equ 0 ; Keyboard Interrupt Enable Bit 0 KBIER_KBIE1: equ 1 ; Keyboard Interrupt Enable Bit 1 KBIER_KBIE2: equ 2 ; Keyboard Interrupt Enable Bit 2 KBIER_KBIE3: equ 3 ; Keyboard Interrupt Enable Bit 3 KBIER_KBIE4: equ 4 ; Keyboard Interrupt Enable Bit 4 KBIER_KBIE5: equ 5 ; Keyboard Interrupt Enable Bit 5 KBIER_AWUIE: equ 6 ; Auto Wake-up Interrupt Enable Bit ; bit position masks mKBIER_KBIE0: equ %00000001 mKBIER_KBIE1: equ %00000010 mKBIER_KBIE2: equ %00000100 mKBIER_KBIE3: equ %00001000 mKBIER_KBIE4: equ %00010000 mKBIER_KBIE5: equ %00100000 mKBIER_AWUIE: equ %01000000 ;*** INTSCR - IRQ Status and Control Register; 0x0000001D *** INTSCR: equ $0000001D ;*** INTSCR - IRQ Status and Control Register; 0x0000001D *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET INTSCR_MODE: equ 0 ; IRQ Edge/Level Select Bit INTSCR_IMASK: equ 1 ; IRQ Interrupt Mask Bit INTSCR_ACK: equ 2 ; IRQ Interrupt Request Acknowledge Bit INTSCR_IRQF: equ 3 ; IRQ Flag Bit ; bit position masks mINTSCR_MODE: equ %00000001 mINTSCR_IMASK: equ %00000010 mINTSCR_ACK: equ %00000100 mINTSCR_IRQF: equ %00001000 ;*** CONFIG2 - Configuration Register 2; 0x0000001E *** CONFIG2: equ $0000001E ;*** CONFIG2 - Configuration Register 2; 0x0000001E *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET CONFIG2_RSTEN: equ 0 ; RST Pin Function Selection CONFIG2_OSCOPT0: equ 3 ; Selection Bits for Oscillator Option 0 CONFIG2_OSCOPT1: equ 4 ; Selection Bits for Oscillator Option 1 CONFIG2_IRQEN: equ 6 ; IRQ Pin Function Selection Bit CONFIG2_IRQPUD: equ 7 ; IRQ Pin Pullup Control Bit ; bit position masks mCONFIG2_RSTEN: equ %00000001 mCONFIG2_OSCOPT0: equ %00001000 mCONFIG2_OSCOPT1: equ %00010000 mCONFIG2_IRQEN: equ %01000000 mCONFIG2_IRQPUD: equ %10000000 ;*** CONFIG1 - Configuration Register 1; 0x0000001F *** CONFIG1: equ $0000001F ;*** CONFIG1 - Configuration Register 1; 0x0000001F *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET CONFIG1_COPD: equ 0 ; COP Disable Bit CONFIG1_STOP: equ 1 ; STOP Instruction Enable Bit CONFIG1_SSREC: equ 2 ; Short Stop Recovery Bit CONFIG1_LVI5OR3: equ 3 ; LVI 5-V or 3-V Operating Mode Bit CONFIG1_LVIPWRD: equ 4 ; Low Voltage Inhibit Power Disable Bit CONFIG1_LVIRSTD: equ 5 ; Low Voltage Inhibit Reset Disable Bit CONFIG1_LVISTOP: equ 6 ; LVI Enable in Stop Mode Bit CONFIG1_COPRS: equ 7 ; COP Reset Period Selection Bit ; bit position masks mCONFIG1_COPD: equ %00000001 mCONFIG1_STOP: equ %00000010 mCONFIG1_SSREC: equ %00000100 mCONFIG1_LVI5OR3: equ %00001000 mCONFIG1_LVIPWRD: equ %00010000 mCONFIG1_LVIRSTD: equ %00100000 mCONFIG1_LVISTOP: equ %01000000 mCONFIG1_COPRS: equ %10000000 ;*** TSC - TIM Status and Control Register TSC; 0x00000020 *** TSC: equ $00000020 ;*** TSC - TIM Status and Control Register TSC; 0x00000020 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET TSC_PS0: equ 0 ; Prescaler Select Bit 0 TSC_PS1: equ 1 ; Prescaler Select Bit 1 TSC_PS2: equ 2 ; Prescaler Select Bit 2 TSC_TRST: equ 4 ; TIM Reset Bit TSC_TSTOP: equ 5 ; TIM Stop Bit TSC_TOIE: equ 6 ; TIM Overflow Interrupt Enable Bit TSC_TOF: equ 7 ; TIM Overflow Flag Bit ; bit position masks mTSC_PS0: equ %00000001 mTSC_PS1: equ %00000010 mTSC_PS2: equ %00000100 mTSC_TRST: equ %00010000 mTSC_TSTOP: equ %00100000 mTSC_TOIE: equ %01000000 mTSC_TOF: equ %10000000 ;*** TCNT - TIM Counter Register; 0x00000021 *** TCNT: equ $00000021 ;*** TCNT - TIM Counter Register; 0x00000021 *** ;*** TCNTH - TIM Counter Register High; 0x00000021 *** TCNTH: equ $00000021 ;*** TCNTH - TIM Counter Register High; 0x00000021 *** ;*** TCNTL - TIM Counter Register Low; 0x00000022 *** TCNTL: equ $00000022 ;*** TCNTL - TIM Counter Register Low; 0x00000022 *** ;*** TMOD - TIM Counter Modulo Register; 0x00000023 *** TMOD: equ $00000023 ;*** TMOD - TIM Counter Modulo Register; 0x00000023 *** ;*** TMODH - TIM Counter Modulo Register High; 0x00000023 *** TMODH: equ $00000023 ;*** TMODH - TIM Counter Modulo Register High; 0x00000023 *** ;*** TMODL - TIM Counter Modulo Register Low; 0x00000024 *** TMODL: equ $00000024 ;*** TMODL - TIM Counter Modulo Register Low; 0x00000024 *** ;*** TSC0 - TIM Channel 0 Status and Control Register; 0x00000025 *** TSC0: equ $00000025 ;*** TSC0 - TIM Channel 0 Status and Control Register; 0x00000025 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET TSC0_CH0MAX: equ 0 ; Channel 0 Maximum Duty Cycle Bit TSC0_TOV0: equ 1 ; Toggle-On-Overflow Bit TSC0_ELS0A: equ 2 ; Edge/Level Select Bit A TSC0_ELS0B: equ 3 ; Edge/Level Select Bit B TSC0_MS0A: equ 4 ; Mode Select Bit A TSC0_MS0B: equ 5 ; Mode Select Bit B TSC0_CH0IE: equ 6 ; Channel 0 Interrupt Enable Bit TSC0_CH0F: equ 7 ; Channel 0 Flag Bit ; bit position masks mTSC0_CH0MAX: equ %00000001 mTSC0_TOV0: equ %00000010 mTSC0_ELS0A: equ %00000100 mTSC0_ELS0B: equ %00001000 mTSC0_MS0A: equ %00010000 mTSC0_MS0B: equ %00100000 mTSC0_CH0IE: equ %01000000 mTSC0_CH0F: equ %10000000 ;*** TCH0 - TIM Channel 0 Register; 0x00000026 *** TCH0: equ $00000026 ;*** TCH0 - TIM Channel 0 Register; 0x00000026 *** ;*** TCH0H - TIM Channel 0 Register High; 0x00000026 *** TCH0H: equ $00000026 ;*** TCH0H - TIM Channel 0 Register High; 0x00000026 *** ;*** TCH0L - TIM Channel 0 Register Low; 0x00000027 *** TCH0L: equ $00000027 ;*** TCH0L - TIM Channel 0 Register Low; 0x00000027 *** ;*** TSC1 - TIM Channel 1 Status and Control Register; 0x00000028 *** TSC1: equ $00000028 ;*** TSC1 - TIM Channel 1 Status and Control Register; 0x00000028 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET TSC1_CH1MAX: equ 0 ; Channel 1 Maximum Duty Cycle Bit TSC1_TOV1: equ 1 ; Toggle-On-Overflow Bit TSC1_ELS1A: equ 2 ; Edge/Level Select Bit A TSC1_ELS1B: equ 3 ; Edge/Level Select Bit B TSC1_MS1A: equ 4 ; Mode Select Bit A TSC1_CH1IE: equ 6 ; Channel 1 Interrupt Enable Bit TSC1_CH1F: equ 7 ; Channel 1 Flag Bit ; bit position masks mTSC1_CH1MAX: equ %00000001 mTSC1_TOV1: equ %00000010 mTSC1_ELS1A: equ %00000100 mTSC1_ELS1B: equ %00001000 mTSC1_MS1A: equ %00010000 mTSC1_CH1IE: equ %01000000 mTSC1_CH1F: equ %10000000 ;*** TCH1 - TIM Channel 1 Register; 0x00000029 *** TCH1: equ $00000029 ;*** TCH1 - TIM Channel 1 Register; 0x00000029 *** ;*** TCH1H - TIM Channel 1 Register High; 0x00000029 *** TCH1H: equ $00000029 ;*** TCH1H - TIM Channel 1 Register High; 0x00000029 *** ;*** TCH1L - TIM Channel 1 Register Low; 0x0000002A *** TCH1L: equ $0000002A ;*** TCH1L - TIM Channel 1 Register Low; 0x0000002A *** ;*** OSCSTAT - Oscillator Status Register; 0x00000036 *** OSCSTAT: equ $00000036 ;*** OSCSTAT - Oscillator Status Register; 0x00000036 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET OSCSTAT_ECGST: equ 0 ; External Clock Status Bit OSCSTAT_ECGON: equ 1 ; External Clock Generator On Bit ; bit position masks mOSCSTAT_ECGST: equ %00000001 mOSCSTAT_ECGON: equ %00000010 ;*** OSCTRIM - Oscillator Trim Register; 0x00000038 *** OSCTRIM: equ $00000038 ;*** OSCTRIM - Oscillator Trim Register; 0x00000038 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET OSCTRIM_TRIM0: equ 0 ; ICG Trim Factor Bit 0 OSCTRIM_TRIM1: equ 1 ; ICG Trim Factor Bit 1 OSCTRIM_TRIM2: equ 2 ; ICG Trim Factor Bit 2 OSCTRIM_TRIM3: equ 3 ; ICG Trim Factor Bit 3 OSCTRIM_TRIM4: equ 4 ; ICG Trim Factor Bit 4 OSCTRIM_TRIM5: equ 5 ; ICG Trim Factor Bit 5 OSCTRIM_TRIM6: equ 6 ; ICG Trim Factor Bit 6 OSCTRIM_TRIM7: equ 7 ; ICG Trim Factor Bit 7 ; bit position masks mOSCTRIM_TRIM0: equ %00000001 mOSCTRIM_TRIM1: equ %00000010 mOSCTRIM_TRIM2: equ %00000100 mOSCTRIM_TRIM3: equ %00001000 mOSCTRIM_TRIM4: equ %00010000 mOSCTRIM_TRIM5: equ %00100000 mOSCTRIM_TRIM6: equ %01000000 mOSCTRIM_TRIM7: equ %10000000 ;*** SBSR - Break Status Register; 0x0000FE00 *** SBSR: equ $0000FE00 ;*** SBSR - Break Status Register; 0x0000FE00 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET SBSR_SBSW: equ 1 ; SIM Break Stop/Wait ; bit position masks mSBSR_SBSW: equ %00000010 ;*** SRSR - SIM Reset Status Register; 0x0000FE01 *** SRSR: equ $0000FE01 ;*** SRSR - SIM Reset Status Register; 0x0000FE01 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET SRSR_LVI: equ 1 ; Low-Voltage Inhibit Reset Bit SRSR_MODRST: equ 2 ; Monitor Mode Entry Module Reset bit SRSR_ILAD: equ 3 ; Illegal Address Reset Bit (opcode fetches only) SRSR_ILOP: equ 4 ; Illegal Opcode Reset Bit SRSR_COP: equ 5 ; Computer Operating Properly Reset Bit SRSR_PIN: equ 6 ; External Reset Bit SRSR_POR: equ 7 ; Power-On Reset Bit ; bit position masks mSRSR_LVI: equ %00000010 mSRSR_MODRST: equ %00000100 mSRSR_ILAD: equ %00001000 mSRSR_ILOP: equ %00010000 mSRSR_COP: equ %00100000 mSRSR_PIN: equ %01000000 mSRSR_POR: equ %10000000 ;*** BRKAR - Break Auxiliary Register; 0x0000FE02 *** BRKAR: equ $0000FE02 ;*** BRKAR - Break Auxiliary Register; 0x0000FE02 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET BRKAR_BDCOP: equ 0 ; Break Disable COP Bit ; bit position masks mBRKAR_BDCOP: equ %00000001 ;*** BFCR - SIM Break Flag Control Register; 0x0000FE03 *** BFCR: equ $0000FE03 ;*** BFCR - SIM Break Flag Control Register; 0x0000FE03 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET BFCR_BCFE: equ 7 ; Break Clear Flag Enable Bit ; bit position masks mBFCR_BCFE: equ %10000000 ;*** INT1 - Interrupt Status Register 1; 0x0000FE04 *** INT1: equ $0000FE04 ;*** INT1 - Interrupt Status Register 1; 0x0000FE04 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET INT1_IF1: equ 2 ; Interrupt Flag 1 INT1_IF3: equ 4 ; Interrupt Flag 3 INT1_IF4: equ 5 ; Interrupt Flag 4 INT1_IF5: equ 6 ; Interrupt Flag 5 ; bit position masks mINT1_IF1: equ %00000100 mINT1_IF3: equ %00010000 mINT1_IF4: equ %00100000 mINT1_IF5: equ %01000000 ;*** INT2 - Interrupt Status Register 2; 0x0000FE05 *** INT2: equ $0000FE05 ;*** INT2 - Interrupt Status Register 2; 0x0000FE05 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET INT2_IF14: equ 7 ; Interrupt Flag 14 ; bit position masks mINT2_IF14: equ %10000000 ;*** INT3 - Interrupt Status Register 3; 0x0000FE06 *** INT3: equ $0000FE06 ;*** INT3 - Interrupt Status Register 3; 0x0000FE06 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET INT3_IF15: equ 0 ; Interrupt Flag 15 ; bit position masks mINT3_IF15: equ %00000001 ;*** FLCR - FLASH Control Register; 0x0000FE08 *** FLCR: equ $0000FE08 ;*** FLCR - FLASH Control Register; 0x0000FE08 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET FLCR_PGM: equ 0 ; Program Control Bit FLCR_ERASE: equ 1 ; Erase Control Bit FLCR_MASS: equ 2 ; Mass Erase Control Bit FLCR_HVEN: equ 3 ; High-Voltage Enable Bit ; bit position masks mFLCR_PGM: equ %00000001 mFLCR_ERASE: equ %00000010 mFLCR_MASS: equ %00000100 mFLCR_HVEN: equ %00001000 ;*** BRK - Break Address Register; 0x0000FE09 *** BRK: equ $0000FE09 ;*** BRK - Break Address Register; 0x0000FE09 *** ;*** BRKH - Break Address Register High; 0x0000FE09 *** BRKH: equ $0000FE09 ;*** BRKH - Break Address Register High; 0x0000FE09 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET BRKH_BIT8: equ 0 ; Break Address Register Bit 8 BRKH_BIT9: equ 1 ; Break Address Register Bit 9 BRKH_BIT10: equ 2 ; Break Address Register Bit 10 BRKH_BIT11: equ 3 ; Break Address Register Bit 11 BRKH_BIT12: equ 4 ; Break Address Register Bit 12 BRKH_BIT13: equ 5 ; Break Address Register Bit 13 BRKH_BIT14: equ 6 ; Break Address Register Bit 14 BRKH_BIT15: equ 7 ; Break Address Register Bit 15 ; bit position masks mBRKH_BIT8: equ %00000001 mBRKH_BIT9: equ %00000010 mBRKH_BIT10: equ %00000100 mBRKH_BIT11: equ %00001000 mBRKH_BIT12: equ %00010000 mBRKH_BIT13: equ %00100000 mBRKH_BIT14: equ %01000000 mBRKH_BIT15: equ %10000000 ;*** BRKL - Break Address Register Low; 0x0000FE0A *** BRKL: equ $0000FE0A ;*** BRKL - Break Address Register Low; 0x0000FE0A *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET BRKL_BIT0: equ 0 ; Break Address Register Bit 0 BRKL_BIT1: equ 1 ; Break Address Register Bit 1 BRKL_BIT2: equ 2 ; Break Address Register Bit 2 BRKL_BIT3: equ 3 ; Break Address Register Bit 3 BRKL_BIT4: equ 4 ; Break Address Register Bit 4 BRKL_BIT5: equ 5 ; Break Address Register Bit 5 BRKL_BIT6: equ 6 ; Break Address Register Bit 6 BRKL_BIT7: equ 7 ; Break Address Register Bit 7 ; bit position masks mBRKL_BIT0: equ %00000001 mBRKL_BIT1: equ %00000010 mBRKL_BIT2: equ %00000100 mBRKL_BIT3: equ %00001000 mBRKL_BIT4: equ %00010000 mBRKL_BIT5: equ %00100000 mBRKL_BIT6: equ %01000000 mBRKL_BIT7: equ %10000000 ;*** BRKSCR - Break Status and Control Register; 0x0000FE0B *** BRKSCR: equ $0000FE0B ;*** BRKSCR - Break Status and Control Register; 0x0000FE0B *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET BRKSCR_BRKA: equ 6 ; Break Active Bit BRKSCR_BRKE: equ 7 ; Break Enable Bit ; bit position masks mBRKSCR_BRKA: equ %01000000 mBRKSCR_BRKE: equ %10000000 ;*** LVISR - LVI Status Register; 0x0000FE0C *** LVISR: equ $0000FE0C ;*** LVISR - LVI Status Register; 0x0000FE0C *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET LVISR_LVIOUT: equ 7 ; LVI Output Bit ; bit position masks mLVISR_LVIOUT: equ %10000000 ;*** FLBPR - FLASH Block Protect Register; 0x0000FFBE *** FLBPR: equ $0000FFBE ;*** FLBPR - FLASH Block Protect Register; 0x0000FFBE *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET FLBPR_BPR0: equ 0 ; Block Protect Register Bit 0 FLBPR_BPR1: equ 1 ; Block Protect Register Bit 1 FLBPR_BPR2: equ 2 ; Block Protect Register Bit 2 FLBPR_BPR3: equ 3 ; Block Protect Register Bit 3 FLBPR_BPR4: equ 4 ; Block Protect Register Bit 4 FLBPR_BPR5: equ 5 ; Block Protect Register Bit 5 FLBPR_BPR6: equ 6 ; Block Protect Register Bit 6 FLBPR_BPR7: equ 7 ; Block Protect Register Bit 7 ; bit position masks mFLBPR_BPR0: equ %00000001 mFLBPR_BPR1: equ %00000010 mFLBPR_BPR2: equ %00000100 mFLBPR_BPR3: equ %00001000 mFLBPR_BPR4: equ %00010000 mFLBPR_BPR5: equ %00100000 mFLBPR_BPR6: equ %01000000 mFLBPR_BPR7: equ %10000000 ;*** Optional - Internal Oscillator Trim; 0x0000FFC0 *** Optional: equ $0000FFC0 ;*** Optional - Internal Oscillator Trim; 0x0000FFC0 *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET Optional_TRIM0: equ 0 ; ICG Trim Factor Bit 0 Optional_TRIM1: equ 1 ; ICG Trim Factor Bit 1 Optional_TRIM2: equ 2 ; ICG Trim Factor Bit 2 Optional_TRIM3: equ 3 ; ICG Trim Factor Bit 3 Optional_TRIM4: equ 4 ; ICG Trim Factor Bit 4 Optional_TRIM5: equ 5 ; ICG Trim Factor Bit 5 Optional_TRIM6: equ 6 ; ICG Trim Factor Bit 6 Optional_TRIM7: equ 7 ; ICG Trim Factor Bit 7 ; bit position masks mOptional_TRIM0: equ %00000001 mOptional_TRIM1: equ %00000010 mOptional_TRIM2: equ %00000100 mOptional_TRIM3: equ %00001000 mOptional_TRIM4: equ %00010000 mOptional_TRIM5: equ %00100000 mOptional_TRIM6: equ %01000000 mOptional_TRIM7: equ %10000000 ;*** COPCTL - COP Control Register; 0x0000FFFF *** COPCTL: equ $0000FFFF ;*** COPCTL - COP Control Register; 0x0000FFFF *** ; bit numbers for usage in BCLR, BSET, BRCLR and BRSET COPCTL_BIT0: equ 0 ; Bit 0 COPCTL_BIT1: equ 1 ; Bit 1 COPCTL_BIT2: equ 2 ; Bit 2 COPCTL_BIT3: equ 3 ; Bit 3 COPCTL_BIT4: equ 4 ; Bit 4 COPCTL_BIT5: equ 5 ; Bit 5 COPCTL_BIT6: equ 6 ; Bit 6 COPCTL_BIT7: equ 7 ; Bit 7 ; bit position masks mCOPCTL_BIT0: equ %00000001 mCOPCTL_BIT1: equ %00000010 mCOPCTL_BIT2: equ %00000100 mCOPCTL_BIT3: equ %00001000 mCOPCTL_BIT4: equ %00010000 mCOPCTL_BIT5: equ %00100000 mCOPCTL_BIT6: equ %01000000 mCOPCTL_BIT7: equ %10000000 ;*********************************************** ;** D E P R E C I A T E D S Y M B O L S ** ;*********************************************** IFNDEF __GENERATE_APPLICATION__ ; not supported for absolute assembler XREF This_symb_has_been_depreciated ENDIF ; --------------------------------------------------------------------------- ; The following symbols were removed, because they were invalid or irrelevant ; --------------------------------------------------------------------------- ; EOF