📄 mc9s08sh8.inc
字号:
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
; bit position masks
mADCRH_ADR8: equ %00000001
mADCRH_ADR9: equ %00000010
;*** 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
; bit position masks
mADCCVH_ADCV8: equ %00000001
mADCCVH_ADCV9: equ %00000010
;*** 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
; bit position masks
mAPCTL2_ADPC8: equ %00000001
mAPCTL2_ADPC9: equ %00000010
mAPCTL2_ADPC10: equ %00000100
mAPCTL2_ADPC11: equ %00001000
;*** IRQSC - Interrupt request status and control register; 0x0000001A ***
IRQSC: equ $0000001A ;*** IRQSC - Interrupt request status and control register; 0x0000001A ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
IRQSC_IRQMOD: equ 0 ; IRQ Detection Mode
IRQSC_IRQIE: equ 1 ; IRQ Interrupt Enable
IRQSC_IRQACK: equ 2 ; IRQ Acknowledge
IRQSC_IRQF: equ 3 ; IRQ Flag
IRQSC_IRQPE: equ 4 ; IRQ Pin Enable
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
;*** MTIMSC - MTIM Clock Configuration Register; 0x0000001C ***
MTIMSC: equ $0000001C ;*** MTIMSC - MTIM Clock Configuration Register; 0x0000001C ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
MTIMSC_TSTP: equ 4 ; MTIM Counter Stop
MTIMSC_TRST: equ 5 ; MTIM Counter Reset
MTIMSC_TOIE: equ 6 ; MTIM Overflow Interrupt Enable
MTIMSC_TOF: equ 7 ; MTIM Overflow Flag
; bit position masks
mMTIMSC_TSTP: equ %00010000
mMTIMSC_TRST: equ %00100000
mMTIMSC_TOIE: equ %01000000
mMTIMSC_TOF: equ %10000000
;*** MTIMCLK - MTIM Clock Configuration Register; 0x0000001D ***
MTIMCLK: equ $0000001D ;*** MTIMCLK - MTIM Clock Configuration Register; 0x0000001D ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
MTIMCLK_PS0: equ 0 ; Clock source Prescaler Bit 0
MTIMCLK_PS1: equ 1 ; Clock source Prescaler Bit 1
MTIMCLK_PS2: equ 2 ; Clock source Prescaler Bit 2
MTIMCLK_PS3: equ 3 ; Clock source Prescaler Bit 3
MTIMCLK_CLKS0: equ 4 ; Clock source Select Bit 0
MTIMCLK_CLKS1: equ 5 ; Clock source Select Bit 1
; bit position masks
mMTIMCLK_PS0: equ %00000001
mMTIMCLK_PS1: equ %00000010
mMTIMCLK_PS2: equ %00000100
mMTIMCLK_PS3: equ %00001000
mMTIMCLK_CLKS0: equ %00010000
mMTIMCLK_CLKS1: equ %00100000
;*** MTIMCNT - MTIM Counter Register; 0x0000001E ***
MTIMCNT: equ $0000001E ;*** MTIMCNT - MTIM Counter Register; 0x0000001E ***
;*** MTIMMOD - MTIM Modulo Register; 0x0000001F ***
MTIMMOD: equ $0000001F ;*** MTIMMOD - MTIM Modulo Register; 0x0000001F ***
;*** TPM1SC - TPM1 Status and Control Register; 0x00000020 ***
TPM1SC: equ $00000020 ;*** TPM1SC - TPM1 Status and Control Register; 0x00000020 ***
; bit numbers for usage in BCLR, BSET, BRCLR and BRSET
TPM1SC_PS0: equ 0 ; Prescale Divisor Select Bit 0
TPM1SC_PS1: equ 1 ; Prescale Divisor Select Bit 1
TPM1SC_PS2: equ 2 ; Prescale Divisor Select Bit 2
TPM1SC_CLKSA: equ 3 ; Clock Source Select A
TPM1SC_CLKSB: equ 4 ; Clock Source Select B
TPM1SC_CPWMS: equ 5 ; Center-Aligned PWM Select
TPM1SC_TOIE: equ 6 ; Timer Overflow Interrupt Enable
TPM1SC_TOF: equ 7 ; Timer Overflow Flag
; bit position masks
mTPM1SC_PS0: equ %00000001
mTPM1SC_PS1: equ %00000010
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -