⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 digbufint.lst

📁 PSOC 电动自行车代码 器件采用CYPRESS新电动自行车器件CY8C245
💻 LST
📖 第 1 页 / 共 5 页
字号:


HI-TECH Software Macro Assembler (PSoC MCU) V9.60PL1
                                                                                                           Mon Nov 26 12:52:32 2007


     1                          ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     2                          ;;;
     3                          ;;;  M8C.INC -- M8C24000 Microcontroller Family System Declarations
     4                          ;;;
     5                          ;;;  Copyright (c) 2003-2004, Cypress MicroSystems, Inc. All rights reserved.
     6                          ;;;
     7                          ;;;
     8                          ;;;  This file provides address constants, bit field masks and a set of macro
     9                          ;;;  facilities for the Cypress MicroSystems 24xxx Microcontroller family.
    10                          ;;;
    11                          ;;;  Last Modified: August 2, 2004
    12                          ;;;
    13                          ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    14                          
    15                          ;;=============================================================================
    16                          ;; Definition of abbreviations used in the descriptions below
    17                          ;;  (RW)   The register or bit supports reads and writes
    18                          ;;  (W)    The register or bit is write-only
    19                          ;;  (R)    The register or bit is read-only
    20                          ;;  (#)    Access to the register is bit specific (see the family datasheet)
    21                          ;;  (RC)   The register or bit can be read, but writing a 0 will clear it,
    22                          ;;         writing a 1 will have no effect.
    23                          ;;=============================================================================
    24                          
    25                          ;;=============================================================================
    26                          ;;      System Registers
    27                          ;;=============================================================================
    28                          
    29                          ;----------------------------
    30                          ;  Flag Register Bit Fields
    31                          ;----------------------------
    32  0000                    FLAG_XIO_MASK:  equ 10h
    33  0000                    FLAG_SUPER:     equ 08h
    34  0000                    FLAG_CARRY:     equ 04h
    35  0000                    FLAG_ZERO:      equ 02h
    36  0000                    FLAG_GLOBAL_IE: equ 01h
    37                          
    38                          
    39                          ;;=============================================================================
    40                          ;;      Register Space, Bank 0
    41                          ;;=============================================================================
    42                          
    43                          ;------------------------------------------------
    44                          ;  Port Registers
    45                          ;  Note: Also see this address range in Bank 1.
    46                          ;------------------------------------------------
    47                          ; Port 0
    48  0000                    PRT0DR:       equ 00h          ; Port 0 Data Register                     (RW)
    49  0000                    PRT0IE:       equ 01h          ; Port 0 Interrupt Enable Register         (RW)
    50  0000                    PRT0GS:       equ 02h          ; Port 0 Global Select Register            (RW)
    51  0000                    PRT0DM2:      equ 03h          ; Port 0 Drive Mode 2                      (RW)
    52                          ; Port 1
    53  0000                    PRT1DR:       equ 04h          ; Port 1 Data Register                     (RW)
    54  0000                    PRT1IE:       equ 05h          ; Port 1 Interrupt Enable Register         (RW)
    55  0000                    PRT1GS:       equ 06h          ; Port 1 Global Select Register            (RW)
    56  0000                    PRT1DM2:      equ 07h          ; Port 1 Drive Mode 2                      (RW)
    57                          ; Port 2
    58  0000                    PRT2DR:       equ 08h          ; Port 2 Data Register                     (RW)
    59  0000                    PRT2IE:       equ 09h          ; Port 2 Interrupt Enable Register         (RW)
    60  0000                    PRT2GS:       equ 0Ah          ; Port 2 Global Select Register            (RW)
    61  0000                    PRT2DM2:      equ 0Bh          ; Port 2 Drive Mode 2                      (RW)
    62                          ; Port 3
    63  0000                    PRT3DR:       equ 0Ch          ; Port 3 Data Register                     (RW)
    64  0000                    PRT3IE:       equ 0Dh          ; Port 3 Interrupt Enable Register         (RW)
    65  0000                    PRT3GS:       equ 0Eh          ; Port 3 Global Select Register            (RW)
    66  0000                    PRT3DM2:      equ 0Fh          ; Port 3 Drive Mode 2                      (RW)
    67                          
    68                          ;------------------------------------------------
    69                          ;  Digital PSoC(tm) block Registers
    70                          ;  Note: Also see this address range in Bank 1.
    71                          ;------------------------------------------------
    72                          ; Digital PSoC block 00, Basic Type B
    73  0000                    DBB00DR0:     equ 20h          ; data register 0                          (#)
    74  0000                    DBB00DR1:     equ 21h          ; data register 1                          (W)
    75  0000                    DBB00DR2:     equ 22h          ; data register 2                          (RW)
    76  0000                    DBB00CR0:     equ 23h          ; control & status register 0              (#)
    77                          
    78                          ; Digital PSoC block 01, Basic Type B
    79  0000                    DBB01DR0:     equ 24h          ; data register 0                          (#)
    80  0000                    DBB01DR1:     equ 25h          ; data register 1                          (W)
    81  0000                    DBB01DR2:     equ 26h          ; data register 2                          (RW)
    82  0000                    DBB01CR0:     equ 27h          ; control & status register 0              (#)
    83                          
    84                          ; Digital PSoC block 02, Communications Type B
    85  0000                    DCB02DR0:     equ 28h          ; data register 0                          (#)
    86  0000                    DCB02DR1:     equ 29h          ; data register 1                          (W)
    87  0000                    DCB02DR2:     equ 2Ah          ; data register 2                          (RW)
    88  0000                    DCB02CR0:     equ 2Bh          ; control & status register 0              (#)
    89                          
    90                          ; Digital PSoC block 03, Communications Type B
    91  0000                    DCB03DR0:     equ 2Ch          ; data register 0                          (#)
    92  0000                    DCB03DR1:     equ 2Dh          ; data register 1                          (W)
    93  0000                    DCB03DR2:     equ 2Eh          ; data register 2                          (RW)
    94  0000                    DCB03CR0:     equ 2Fh          ; control & status register 0              (#)
    95                          
    96                          ;-------------------------------------
    97                          ;  Analog Resource Control Registers
    98                          ;-------------------------------------
    99  0000                    AMX_IN:       equ 60h          ; Analog Input Multiplexor Control         (RW)
   100  0000                    AMX_IN_ACI1:          equ 0Ch    ; MASK: column 1 input mux
   101  0000                    AMX_IN_ACI0:          equ 03h    ; MASK: column 0 input mux
   102                          
   103  0000                    ARF_CR:       equ 63h          ; Analog Reference Control Register        (RW)
   104  0000                    ARF_CR_HBE:           equ 40h    ; MASK: Bias level control
   105  0000                    ARF_CR_REF:           equ 38h    ; MASK: Analog Reference controls
   106  0000                    ARF_CR_REFPWR:        equ 07h    ; MASK: Analog Reference power
   107  0000                    ARF_CR_APWR:          equ 04h    ; MASK: use deprecated; see datasheet
   108  0000                    ARF_CR_SCPWR:         equ 03h    ; MASK: Switched Cap block power
   109                          
   110  0000                    CMP_CR0:      equ 64h          ; Analog Comparator Bus 0 Register         (#)
   111  0000                    CMP_CR0_COMP1:        equ 20h    ; MASK: Column 1 comparator state        (R)
   112  0000                    CMP_CR0_COMP0:        equ 10h    ; MASK: Column 0 comparator state        (R)
   113  0000                    CMP_CR0_AINT1:        equ 02h    ; MASK: Column 1 interrupt source        (RW)
   114  0000                    CMP_CR0_AINT0:        equ 01h    ; MASK: Column 0 interrupt source        (RW)
   115                          
   116  0000                    ASY_CR:       equ 65h          ; Analog Synchronizaton Control            (#)
   117  0000                    ASY_CR_SARCOUNT:      equ 70h    ; MASK: SAR support: resolution count    (W)
   118  0000                    ASY_CR_SARSIGN:       equ 08h    ; MASK: SAR support: sign                (RW)
   119  0000                    ASY_CR_SARCOL:        equ 06h    ; MASK: SAR support: column spec         (RW)
   120  0000                    ASY_CR_SYNCEN:        equ 01h    ; MASK: Stall bit                        (RW)
   121                          
   122  0000                    CMP_CR1:      equ 66h          ; Analog Comparator Bus 1 Register         (RW)
   123  0000                    CMP_CR1_ASYNCH1:      equ 20h    ; MASK: Column 1 comparator bus synch
   124  0000                    CMP_CR1_ASYNCH0:      equ 10h    ; MASK: Column 0 comparator bus synch
   125                          
   126                          ;---------------------------------------------------
   127                          ;  Analog PSoC block Registers
   128                          ;
   129                          ;  Note: the following registers are mapped into
   130                          ;  both register bank 0 AND register bank 1.
   131                          ;---------------------------------------------------
   132                          
   133                          ; Continuous Time PSoC block Type B Row 0 Col 0
   134  0000                    ACB00CR3:     equ 70h          ; Control register 3                       (RW)
   135  0000                    ACB00CR0:     equ 71h          ; Control register 0                       (RW)
   136  0000                    ACB00CR1:     equ 72h          ; Control register 1                       (RW)
   137  0000                    ACB00CR2:     equ 73h          ; Control register 2                       (RW)
   138                          
   139                          ; Continuous Time PSoC block Type B Row 0 Col 1
   140  0000                    ACB01CR3:     equ 74h          ; Control register 3                       (RW)
   141  0000                    ACB01CR0:     equ 75h          ; Control register 0                       (RW)
   142  0000                    ACB01CR1:     equ 76h          ; Control register 1                       (RW)
   143  0000                    ACB01CR2:     equ 77h          ; Control register 2                       (RW)
   144                          
   145                          ; Switched Cap PSoC blockType C Row 1 Col 0
   146  0000                    ASC10CR0:     equ 80h          ; Control register 0                       (RW)
   147  0000                    ASC10CR1:     equ 81h          ; Control register 1                       (RW)
   148  0000                    ASC10CR2:     equ 82h          ; Control register 2                       (RW)
   149  0000                    ASC10CR3:     equ 83h          ; Control register 3                       (RW)
   150                          
   151                          ; Switched Cap PSoC blockType D Row 1 Col 1
   152  0000                    ASD11CR0:     equ 84h          ; Control register 0                       (RW)
   153  0000                    ASD11CR1:     equ 85h          ; Control register 1                       (RW)
   154  0000                    ASD11CR2:     equ 86h          ; Control register 2                       (RW)
   155  0000                    ASD11CR3:     equ 87h          ; Control register 3                       (RW)
   156                          
   157                          ; Switched Cap PSoC blockType D Row 2 Col 0
   158  0000                    ASD20CR0:     equ 90h          ; Control register 0                       (RW)
   159  0000                    ASD20CR1:     equ 91h          ; Control register 1                       (RW)
   160  0000                    ASD20CR2:     equ 92h          ; Control register 2                       (RW)
   161  0000                    ASD20CR3:     equ 93h          ; Control register 3                       (RW)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -