📄 mc9s08qe128.inc
字号:
IRQSC_IRQEDG: equ 5 ; IRQ Edge Select
IRQSC_IRQPDD: equ 6 ; IRQ Pull Device Disable
; bit position masks
mIRQSC_IRQMOD: equ %00000001
mIRQSC_IRQIE: equ %00000010
mIRQSC_IRQACK: equ %00000100
mIRQSC_IRQF: equ %00001000
mIRQSC_IRQPE: equ %00010000
mIRQSC_IRQEDG: equ %00100000
mIRQSC_IRQPDD: equ %01000000
;*** ADCSC1 - Status and Control Register 1; 0x00000010 ***
ADCSC1: equ $00000010 ;*** ADCSC1 - Status and Control Register 1; 0x00000010 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCSC1_ADCH0: equ 0 ; Input Channel Select Bit 0
ADCSC1_ADCH1: equ 1 ; Input Channel Select Bit 1
ADCSC1_ADCH2: equ 2 ; Input Channel Select Bit 2
ADCSC1_ADCH3: equ 3 ; Input Channel Select Bit 3
ADCSC1_ADCH4: equ 4 ; Input Channel Select Bit 4
ADCSC1_ADCO: equ 5 ; Continuous Conversion Enable - ADCO is used to enable continuous conversions
ADCSC1_AIEN: equ 6 ; Interrupt Enable - AIEN is used to enable conversion complete interrupts. When COCO becomes set while AIEN is high, an interrupt is asserted
ADCSC1_COCO: equ 7 ; Conversion Complete Flag - The COCO flag is a read-only bit which is set each time a conversion is completed when the compare function is disabled (ACFE = 0). When the compare function is enabled (ACFE = 1) the COCO flag is set upon completion of a conversion only if the compare result is true. This bit is cleared whenever ADCSC1 is written or whenever ADCRL is read
; bit position masks
mADCSC1_ADCH0: equ %00000001
mADCSC1_ADCH1: equ %00000010
mADCSC1_ADCH2: equ %00000100
mADCSC1_ADCH3: equ %00001000
mADCSC1_ADCH4: equ %00010000
mADCSC1_ADCO: equ %00100000
mADCSC1_AIEN: equ %01000000
mADCSC1_COCO: equ %10000000
;*** ADCSC2 - Status and Control Register 2; 0x00000011 ***
ADCSC2: equ $00000011 ;*** ADCSC2 - Status and Control Register 2; 0x00000011 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCSC2_ACFGT: equ 4 ; Compare Function Greater Than Enable-ACFGT is used to configure the compare function to trigger when the result of the conversion of the input being monitored is greater than or equal to the compare value. The compare function defaults to triggering when the result of the compare of the input being monitored is less than the compare value
ADCSC2_ACFE: equ 5 ; Compare Function Enable - ACFE is used to enable the compare function
ADCSC2_ADTRG: equ 6 ; Conversion Trigger Select-ADTRG is used to select the type of trigger to be used for initiating a conversion. Two types of trigger are selectable: software trigger and hardware trigger. When software trigger is selected, a conversion is initiated following a write to ADCSC1. When hardware trigger is selected, a conversion is initiated following the assertion of the ADHWT input
ADCSC2_ADACT: equ 7 ; Conversion Active - ADACT indicates that a conversion is in progress. ADACT is set when a conversion is initiated and cleared when a conversion is completed or aborted
; bit position masks
mADCSC2_ACFGT: equ %00010000
mADCSC2_ACFE: equ %00100000
mADCSC2_ADTRG: equ %01000000
mADCSC2_ADACT: equ %10000000
;*** ADCR - Data Result Register; 0x00000012 ***
ADCR: equ $00000012 ;*** ADCR - Data Result Register; 0x00000012 ***
;*** ADCRH - Data Result High Register; 0x00000012 ***
ADCRH: equ $00000012 ;*** ADCRH - Data Result High Register; 0x00000012 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCRH_ADR8: equ 0 ; ADC Result Data Bit 8
ADCRH_ADR9: equ 1 ; ADC Result Data Bit 9
ADCRH_ADR10: equ 2 ; ADC Result Data Bit 10
ADCRH_ADR11: equ 3 ; ADC Result Data Bit 11
; bit position masks
mADCRH_ADR8: equ %00000001
mADCRH_ADR9: equ %00000010
mADCRH_ADR10: equ %00000100
mADCRH_ADR11: equ %00001000
;*** ADCRL - Data Result Low Register; 0x00000013 ***
ADCRL: equ $00000013 ;*** ADCRL - Data Result Low Register; 0x00000013 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCRL_ADR0: equ 0 ; ADC Result Data Bit 0
ADCRL_ADR1: equ 1 ; ADC Result Data Bit 1
ADCRL_ADR2: equ 2 ; ADC Result Data Bit 2
ADCRL_ADR3: equ 3 ; ADC Result Data Bit 3
ADCRL_ADR4: equ 4 ; ADC Result Data Bit 4
ADCRL_ADR5: equ 5 ; ADC Result Data Bit 5
ADCRL_ADR6: equ 6 ; ADC Result Data Bit 6
ADCRL_ADR7: equ 7 ; ADC Result Data Bit 7
; bit position masks
mADCRL_ADR0: equ %00000001
mADCRL_ADR1: equ %00000010
mADCRL_ADR2: equ %00000100
mADCRL_ADR3: equ %00001000
mADCRL_ADR4: equ %00010000
mADCRL_ADR5: equ %00100000
mADCRL_ADR6: equ %01000000
mADCRL_ADR7: equ %10000000
;*** ADCCV - Compare Value Register; 0x00000014 ***
ADCCV: equ $00000014 ;*** ADCCV - Compare Value Register; 0x00000014 ***
;*** ADCCVH - Compare Value High Register; 0x00000014 ***
ADCCVH: equ $00000014 ;*** ADCCVH - Compare Value High Register; 0x00000014 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCCVH_ADCV8: equ 0 ; Compare Function Value 8
ADCCVH_ADCV9: equ 1 ; Compare Function Value 9
ADCCVH_ADCV10: equ 2 ; Compare Function Value 10
ADCCVH_ADCV11: equ 3 ; Compare Function Value 11
; bit position masks
mADCCVH_ADCV8: equ %00000001
mADCCVH_ADCV9: equ %00000010
mADCCVH_ADCV10: equ %00000100
mADCCVH_ADCV11: equ %00001000
;*** ADCCVL - Compare Value Low Register; 0x00000015 ***
ADCCVL: equ $00000015 ;*** ADCCVL - Compare Value Low Register; 0x00000015 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCCVL_ADCV0: equ 0 ; Compare Function Value 0
ADCCVL_ADCV1: equ 1 ; Compare Function Value 1
ADCCVL_ADCV2: equ 2 ; Compare Function Value 2
ADCCVL_ADCV3: equ 3 ; Compare Function Value 3
ADCCVL_ADCV4: equ 4 ; Compare Function Value 4
ADCCVL_ADCV5: equ 5 ; Compare Function Value 5
ADCCVL_ADCV6: equ 6 ; Compare Function Value 6
ADCCVL_ADCV7: equ 7 ; Compare Function Value 7
; bit position masks
mADCCVL_ADCV0: equ %00000001
mADCCVL_ADCV1: equ %00000010
mADCCVL_ADCV2: equ %00000100
mADCCVL_ADCV3: equ %00001000
mADCCVL_ADCV4: equ %00010000
mADCCVL_ADCV5: equ %00100000
mADCCVL_ADCV6: equ %01000000
mADCCVL_ADCV7: equ %10000000
;*** ADCCFG - Configuration Register; 0x00000016 ***
ADCCFG: equ $00000016 ;*** ADCCFG - Configuration Register; 0x00000016 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
ADCCFG_ADICLK0: equ 0 ; Input Clock Select Bit 0
ADCCFG_ADICLK1: equ 1 ; Input Clock Select Bit 1
ADCCFG_MODE0: equ 2 ; Conversion Mode Selection Bit 0
ADCCFG_MODE1: equ 3 ; Conversion Mode Selection Bit 1
ADCCFG_ADLSMP: equ 4 ; Long Sample Time Configuration
ADCCFG_ADIV0: equ 5 ; Clock Divide Select Bit 0
ADCCFG_ADIV1: equ 6 ; Clock Divide Select Bit 1
ADCCFG_ADLPC: equ 7 ; Low Power Configuration
; bit position masks
mADCCFG_ADICLK0: equ %00000001
mADCCFG_ADICLK1: equ %00000010
mADCCFG_MODE0: equ %00000100
mADCCFG_MODE1: equ %00001000
mADCCFG_ADLSMP: equ %00010000
mADCCFG_ADIV0: equ %00100000
mADCCFG_ADIV1: equ %01000000
mADCCFG_ADLPC: equ %10000000
;*** APCTL1 - Pin Control 1 Register; 0x00000017 ***
APCTL1: equ $00000017 ;*** APCTL1 - Pin Control 1 Register; 0x00000017 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
APCTL1_ADPC0: equ 0 ; ADC Pin Control 0 - ADPC0 is used to control the pin associated with channel AD0
APCTL1_ADPC1: equ 1 ; ADC Pin Control 1 - ADPC1 is used to control the pin associated with channel AD1
APCTL1_ADPC2: equ 2 ; ADC Pin Control 2 - ADPC2 is used to control the pin associated with channel AD2
APCTL1_ADPC3: equ 3 ; ADC Pin Control 3 - ADPC3 is used to control the pin associated with channel AD3
APCTL1_ADPC4: equ 4 ; ADC Pin Control 4 - ADPC4 is used to control the pin associated with channel AD4
APCTL1_ADPC5: equ 5 ; ADC Pin Control 5 - ADPC5 is used to control the pin associated with channel AD5
APCTL1_ADPC6: equ 6 ; ADC Pin Control 6 - ADPC6 is used to control the pin associated with channel AD6
APCTL1_ADPC7: equ 7 ; ADC Pin Control 7 - ADPC7 is used to control the pin associated with channel AD7
; bit position masks
mAPCTL1_ADPC0: equ %00000001
mAPCTL1_ADPC1: equ %00000010
mAPCTL1_ADPC2: equ %00000100
mAPCTL1_ADPC3: equ %00001000
mAPCTL1_ADPC4: equ %00010000
mAPCTL1_ADPC5: equ %00100000
mAPCTL1_ADPC6: equ %01000000
mAPCTL1_ADPC7: equ %10000000
;*** APCTL2 - Pin Control 2 Register; 0x00000018 ***
APCTL2: equ $00000018 ;*** APCTL2 - Pin Control 2 Register; 0x00000018 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
APCTL2_ADPC8: equ 0 ; ADC Pin Control 8 - ADPC8 is used to control the pin associated with channel AD8
APCTL2_ADPC9: equ 1 ; ADC Pin Control 9 - ADPC9 is used to control the pin associated with channel AD9
APCTL2_ADPC10: equ 2 ; ADC Pin Control 10 - ADPC10 is used to control the pin associated with channel AD10
APCTL2_ADPC11: equ 3 ; ADC Pin Control 11 - ADPC11 is used to control the pin associated with channel AD11
APCTL2_ADPC12: equ 4 ; ADC Pin Control 12 - ADPC12 is used to control the pin associated with channel AD12
APCTL2_ADPC13: equ 5 ; ADC Pin Control 13 - ADPC13 is used to control the pin associated with channel AD13
APCTL2_ADPC14: equ 6 ; ADC Pin Control 14 - ADPC14 is used to control the pin associated with channel AD14
APCTL2_ADPC15: equ 7 ; ADC Pin Control 15 - ADPC15 is used to control the pin associated with channel AD15
; bit position masks
mAPCTL2_ADPC8: equ %00000001
mAPCTL2_ADPC9: equ %00000010
mAPCTL2_ADPC10: equ %00000100
mAPCTL2_ADPC11: equ %00001000
mAPCTL2_ADPC12: equ %00010000
mAPCTL2_ADPC13: equ %00100000
mAPCTL2_ADPC14: equ %01000000
mAPCTL2_ADPC15: equ %10000000
;*** APCTL3 - Pin Control 3 Register; 0x00000019 ***
APCTL3: equ $00000019 ;*** APCTL3 - Pin Control 3 Register; 0x00000019 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
APCTL3_ADPC16: equ 0 ; ADC Pin Control 16 - ADPC16 is used to control the pin associated with channel AD16
APCTL3_ADPC17: equ 1 ; ADC Pin Control 17 - ADPC17 is used to control the pin associated with channel AD17
APCTL3_ADPC18: equ 2 ; ADC Pin Control 18 - ADPC18 is used to control the pin associated with channel AD18
APCTL3_ADPC19: equ 3 ; ADC Pin Control 19 - ADPC19 is used to control the pin associated with channel AD19
APCTL3_ADPC20: equ 4 ; ADC Pin Control 20 - ADPC20 is used to control the pin associated with channel AD20
APCTL3_ADPC21: equ 5 ; ADC Pin Control 21 - ADPC21 is used to control the pin associated with channel AD21
APCTL3_ADPC22: equ 6 ; ADC Pin Control 22 - ADPC22 is used to control the pin associated with channel AD22
APCTL3_ADPC23: equ 7 ; ADC Pin Control 23 - ADPC23 is used to control the pin associated with channel AD23
; bit position masks
mAPCTL3_ADPC16: equ %00000001
mAPCTL3_ADPC17: equ %00000010
mAPCTL3_ADPC18: equ %00000100
mAPCTL3_ADPC19: equ %00001000
mAPCTL3_ADPC20: equ %00010000
mAPCTL3_ADPC21: equ %00100000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -