📄 drawusb.lst
字号:
(0004) ; Personalization tables
(0005) export LoadConfigTBL_drawusb2
(0006) AREA psoc_config(rom, rel)
(0007) LoadConfigTBL_drawusb2:
(0008) ; Ordered Global Register values
02A1: EF 62 JACC 0x0204 (0009) M8C_SetBank0
(0010) ; Global Register values
02A3: 30 HALT (0011) mov reg[30h], 00h ; CPUCLKCR register (CPUCLKCR)
02A4: 00 SWI
02A5: 62 05 00 MOV REG[5],0 (0012) mov reg[05h], 00h ; P00CR register (P00CR)
02A8: 62 06 00 MOV REG[6],0 (0013) mov reg[06h], 00h ; P01CR register (P01CR)
02AB: 62 07 06 MOV REG[7],6 (0014) mov reg[07h], 06h ; P02CR register (P02CR)
02AE: 62 08 06 MOV REG[8],6 (0015) mov reg[08h], 06h ; P03CR register (P03CR)
02B1: 62 09 00 MOV REG[9],0 (0016) mov reg[09h], 00h ; P04CR register (P04CR)
02B4: 62 0A 07 MOV REG[10],7 (0017) mov reg[0ah], 07h ; P05CR register (P05CR)
02B7: 62 0B 07 MOV REG[11],7 (0018) mov reg[0bh], 07h ; P06CR register (P06CR)
02BA: 62 0C 00 MOV REG[12],0 (0019) mov reg[0ch], 00h ; P07CR register (P07CR)
02BD: 62 0D 00 MOV REG[13],0 (0020) mov reg[0dh], 00h ; P10CR register (P10CR)
02C0: 62 0E 00 MOV REG[14],0 (0021) mov reg[0eh], 00h ; P11CR register (P11CR)
02C3: 62 0F 00 MOV REG[15],0 (0022) mov reg[0fh], 00h ; P12CR register (P12CR)
02C6: 62 10 00 MOV REG[16],0 (0023) mov reg[10h], 00h ; P13CR register (P13CR)
02C9: 62 11 00 MOV REG[17],0 (0024) mov reg[11h], 00h ; P14CR register (P14CR)
02CC: 62 12 00 MOV REG[18],0 (0025) mov reg[12h], 00h ; P15CR register (P15CR)
02CF: 62 13 00 MOV REG[19],0 (0026) mov reg[13h], 00h ; P16CR register (P16CR)
02D2: 62 14 00 MOV REG[20],0 (0027) mov reg[14h], 00h ; P17CR register (P17CR)
02D5: 62 15 00 MOV REG[21],0 (0028) mov reg[15h], 00h ; P20CR register (P20CR)
02D8: 62 16 00 MOV REG[22],0 (0029) mov reg[16h], 00h ; P30CR register (P30CR)
02DB: 62 17 00 MOV REG[23],0 (0030) mov reg[17h], 00h ; P40CR register (P40CR)
02DE: 62 3D 00 MOV REG[61],0 (0031) mov reg[3dh], 00h ; SPICR register (SPICR)
02E1: 62 2B 00 MOV REG[43],0 (0032) mov reg[2bh], 00h ; TCAPINTE register (TCAPINTE)
02E4: 62 31 00 MOV REG[49],0 (0033) mov reg[31h], 00h ; TMRCLKCR register (TMRCLKCR)
02E7: 62 2A 00 MOV REG[42],0 (0034) mov reg[2ah], 00h ; TMRCR register (TMRCR)
02EA: 62 73 00 MOV REG[115],0 (0035) mov reg[73h], 00h ; VREGCR register (VREGCR)
(0036) ; Instance name USB, User Module USB
02ED: 71 10 OR F,16 (0037) M8C_SetBank1
(0038) ; Global Register values
02EF: 62 E3 14 MOV REG[227],20 (0039) mov reg[e3h], 14h ; VLDCR register (VLDCR)
(0040) ; Instance name USB, User Module USB
02F2: 70 EF AND F,239 (0041) M8C_SetBank0
02F4: 7F RET (0042) ret
FILE: lib\psocconfig.asm
(0001) ; Generated by PSoC Designer ver 4.4 b1884 : 14 Jan, 2007
(0002) ;
(0003) ;==========================================================================
(0004) ; PSoCConfig.asm
(0005) ; @PSOC_VERSION
(0006) ;
(0007) ; Version: 0.85
(0008) ; Revised: June 22, 2004
(0009) ; Copyright Cypress MicroSystems 2000-2004. All Rights Reserved.
(0010) ;
(0011) ; This file is generated by the Device Editor on Application Generation.
(0012) ; It contains code which loads the configuration data table generated in
(0013) ; the file PSoCConfigTBL.asm
(0014) ;
(0015) ; DO NOT EDIT THIS FILE MANUALLY, AS IT IS OVERWRITTEN!!!
(0016) ; Edits to this file will not be preserved.
(0017) ;==========================================================================
(0018) ;
(0019) include "m8c.inc"
(0020) include "memory.inc"
(0021) include "GlobalParams.inc"
(0022)
(0023) export LoadConfigInit
(0024) export _LoadConfigInit
(0025) export LoadConfig_drawusb2
(0026) export _LoadConfig_drawusb2
(0027) export Port_1_Data_SHADE
(0028) export _Port_1_Data_SHADE
(0029)
(0030)
(0031) export NO_SHADOW
(0032) export _NO_SHADOW
(0033)
(0034) FLAG_CFG_MASK: equ 10h ;M8C flag register REG address bit mask
(0035) END_CONFIG_TABLE: equ ffh ;end of config table indicator
(0036)
(0037) AREA psoc_config(rom, rel)
(0038)
(0039)
(0040) ;---------------------------------------------------------------------------
(0041) ; LoadConfigInit - Establish the start-up configuration (except for a few
(0042) ; parameters handled by boot code, like CPU speed). This
(0043) ; function can be called from user code, but typically it
(0044) ; is only called from boot.
(0045) ;
(0046) ; INPUTS: None.
(0047) ; RETURNS: Nothing.
(0048) ; SIDE EFFECTS: Registers are volatile: the A and X registers can be modified!
(0049) ; In the large memory model currently only the page
(0050) ; pointer registers listed below are modified. This does
(0051) ; not guarantee that in future implementations of this
(0052) ; function other page pointer registers will not be
(0053) ; modified.
(0054) ;
(0055) ; Page Pointer Registers Modified:
(0056) ; CUR_PP
(0057) ;
(0058) _LoadConfigInit:
(0059) LoadConfigInit:
(0060) RAM_PROLOGUE RAM_USE_CLASS_4
(0061)
02F5: 55 1A 00 MOV [26],0 (0062) mov [Port_1_Data_SHADE], 0h
(0063)
02F8: 7C 02 FC LCALL 0x02FC (0064) lcall LoadConfig_drawusb2
(0065)
(0066)
(0067) RAM_EPILOGUE RAM_USE_CLASS_4
02FB: 7F RET (0068) ret
(0069)
(0070) ;---------------------------------------------------------------------------
(0071) ; Load Configuration drawusb2
(0072) ;
(0073) ; Load configuration registers for drawusb2.
(0074) ; IO Bank 0 registers a loaded first,then those in IO Bank 1.
(0075) ;
(0076) ; INPUTS: None.
(0077) ; RETURNS: Nothing.
(0078) ; SIDE EFFECTS: Registers are volatile: the CPU A and X registers may be
(0079) ; modified as may the Page Pointer registers!
(0080) ; In the large memory model currently only the page
(0081) ; pointer registers listed below are modified. This does
(0082) ; not guarantee that in future implementations of this
(0083) ; function other page pointer registers will not be
(0084) ; modified.
(0085) ;
(0086) ; Page Pointer Registers Modified:
(0087) ; CUR_PP
(0088) ;
(0089) _LoadConfig_drawusb2:
(0090) LoadConfig_drawusb2:
(0091) RAM_PROLOGUE RAM_USE_CLASS_4
02FC: 7C 02 A0 LCALL 0x02A0 (0092) lcall LoadConfigTBL_drawusb2 ; Call load config table routine
(0093)
(0094)
02FF: 70 EF AND F,239 (0095) M8C_SetBank0 ; Force return to bank 0
(0096) RAM_EPILOGUE RAM_USE_CLASS_4
0301: 7F RET (0097) ret
FILE: lib\usb_std.asm
(0001) ;;*****************************************************************************
(0002) ;;*****************************************************************************
(0003) ;; FILENAME: USB_std.asm
(0004) ;; Version: 1.5, Updated on 2006/06/19 at 11:43:56
(0005) ;; Generated by PSoC Designer ver 4.4 b1884 : 14 Jan, 2007
(0006) ;;
(0007) ;; DESCRIPTION: USB Device User Module software implementation file
(0008) ;; for the enCoRe II family of devices
(0009) ;;
(0010) ;; NOTE: User Module APIs conform to the fastcall convention for marshalling
(0011) ;; arguments and observe the associated "Registers are volatile" policy.
(0012) ;; This means it is the caller's responsibility to preserve any values
(0013) ;; in the X and A registers that are still needed after the API
(0014) ;; function returns. Even though these registers may be preserved now,
(0015) ;; there is no guarantee they will be preserved in future releases.
(0016) ;;-----------------------------------------------------------------------------
(0017) ;; Copyright (c) Cypress Semiconductor 2004. All Rights Reserved.
(0018) ;;*****************************************************************************
(0019) ;;*****************************************************************************
(0020)
(0021) include "m8c.inc"
(0022) include "USB_macros.inc"
(0023) include "USB.inc"
(0024)
(0025) ;-----------------------------------------------
(0026) ; Global Symbols
(0027) ;-----------------------------------------------
(0028)
(0029) AREA bss (RAM,REL)
(0030)
(0031) ;-----------------------------------------------
(0032) ; Constant Definitions
(0033) ;-----------------------------------------------
(0034) ;-----------------------------------------------
(0035) ; Variable Allocation
(0036) ;-----------------------------------------------
(0037)
(0038) AREA UserModules (ROM, REL)
(0039)
(0040) ;-----------------------------------------------------------------------------
(0041) ; FUNCTION NAME: USB_Not_Supported
(0042) ;
(0043) ; DESCRIPTION: The USB_Not_Supported routine is invoked for any
(0044) ; USB request that is not supported. It is invoked with a
(0045) ; JMP/LJMP and does not return. It exits through the common
(0046) ; EP0 exit.
(0047) ;
(0048) ;-----------------------------------------------------------------------------
(0049) ;
(0050) ; ARGUMENTS: None
(0051) ;
(0052) ; RETURNS: Does not return
(0053) ;
(0054) ; SIDE EFFECTS: REGISTERS ARE VOLATILE: THE A AND X REGISTERS MAY BE MODIFIED!
(0055) ;
(0056) ; THEORY of OPERATION or PROCEDURE:
(0057) ;
(0058) ;-----------------------------------------------------------------------------
(0059)
(0060) ; d2h_std_dev
(0061) IF (USB_CB_SRC_d2h_std_dev_00 & USB_NOT_SUPPORTED)
(0062) export USB_CB_d2h_std_dev_00
(0063) USB_CB_d2h_std_dev_00:
(0064) ENDIF
(0065) IF (USB_CB_SRC_d2h_std_dev_01 & USB_NOT_SUPPORTED)
(0066) export USB_CB_d2h_std_dev_01
(0067) USB_CB_d2h_std_dev_01:
(0068) ENDIF
(0069) IF (USB_CB_SRC_d2h_std_dev_02 & USB_NOT_SUPPORTED)
(0070) export USB_CB_d2h_std_dev_02
(0071) USB_CB_d2h_std_dev_02:
(0072) ENDIF
(0073) IF (USB_CB_SRC_d2h_std_dev_03 & USB_NOT_SUPPORTED)
(0074) export USB_CB_d2h_std_dev_03
(0075) USB_CB_d2h_std_dev_03:
(0076) ENDIF
(0077) IF (USB_CB_SRC_d2h_std_dev_04 & USB_NOT_SUPPORTED)
(0078) export USB_CB_d2h_std_dev_04
(0079) USB_CB_d2h_std_dev_04:
(0080) ENDIF
(0081) IF (USB_CB_SRC_d2h_std_dev_05 & USB_NOT_SUPPORTED)
(0082) export USB_CB_d2h_std_dev_05
(0083) USB_CB_d2h_std_dev_05:
(0084) ENDIF
(0085) IF (USB_CB_SRC_d2h_std_dev_06 & USB_NOT_SUPPORTED)
(0086) export USB_CB_d2h_std_dev_06
(0087) USB_CB_d2h_std_dev_06:
(0088) ENDIF
(0089) IF (USB_CB_SRC_d2h_std_dev_07 & USB_NOT_SUPPORTED)
(0090) export USB_CB_d2h_std_dev_07
(0091) USB_CB_d2h_std_dev_07:
(0092) ENDIF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -