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

📄 clock_timer_good.lst

📁 cy8c24794单片机程序
💻 LST
📖 第 1 页 / 共 5 页
字号:
(0116) 	mov	reg[b2h], 00h		; Row_0_LogicInputAMux register (RDI0IS)
    0273: 62 B2 00 MOV   REG[178],0
(0117) 	mov	reg[b3h], 33h		; Row_0_LogicSelect_0 register (RDI0LT0)
    0276: 62 B3 33 MOV   REG[179],51
(0118) 	mov	reg[b4h], 33h		; Row_0_LogicSelect_1 register (RDI0LT1)
    0279: 62 B4 33 MOV   REG[180],51
(0119) 	mov	reg[b5h], 00h		; Row_0_OutputDrive_0 register (RDI0SRO0)
    027C: 62 B5 00 MOV   REG[181],0
(0120) 	mov	reg[b6h], 00h		; Row_0_OutputDrive_1 register (RDI0SRO1)
    027F: 62 B6 00 MOV   REG[182],0
(0121) 	mov	reg[4ah], 00h		; USBControl_0 register (USB_CR0)
    0282: 62 4A 00 MOV   REG[74],0
(0122) 	mov	reg[4bh], 00h		; USBIOControl_0 register (USBIO_CR0)
    0285: 62 4B 00 MOV   REG[75],0
(0123) 	mov	reg[4ch], 00h		; USBIOControl_1 register (USBIO_CR1)
    0288: 62 4C 00 MOV   REG[76],0
(0124) ;  Instance name Timer16, User Module Timer16
(0125) ;       Instance name Timer16, Block Name TIMER16_LSB(DBB01)
(0126) 	mov	reg[27h], 00h		;Timer16_CONTROL_LSB_REG(DBB01CR0)
    028B: 62 27 00 MOV   REG[39],0
(0127) 	mov	reg[25h], 05h		;Timer16_PERIOD_LSB_REG(DBB01DR1)
    028E: 62 25 05 MOV   REG[37],5
(0128) 	mov	reg[26h], 00h		;Timer16_COMPARE_LSB_REG(DBB01DR2)
    0291: 62 26 00 MOV   REG[38],0
(0129) ;       Instance name Timer16, Block Name TIMER16_MSB(DCB02)
(0130) 	mov	reg[2bh], 04h		;Timer16_CONTROL_MSB_REG(DCB02CR0)
    0294: 62 2B 04 MOV   REG[43],4
(0131) 	mov	reg[29h], 00h		;Timer16_PERIOD_MSB_REG(DCB02DR1)
    0297: 62 29 00 MOV   REG[41],0
(0132) 	mov	reg[2ah], 00h		;Timer16_COMPARE_MSB_REG(DCB02DR2)
    029A: 62 2A 00 MOV   REG[42],0
(0133) ;  Instance name Timer8, User Module Timer8
(0134) ;       Instance name Timer8, Block Name TIMER8(DBB00)
(0135) 	mov	reg[23h], 04h		;Timer8_CONTROL_REG(DBB00CR0)
    029D: 62 23 04 MOV   REG[35],4
(0136) 	mov	reg[21h], 05h		;Timer8_PERIOD_REG(DBB00DR1)
    02A0: 62 21 05 MOV   REG[33],5
(0137) 	mov	reg[22h], 00h		;Timer8_COMPARE_REG(DBB00DR2)
    02A3: 62 22 00 MOV   REG[34],0
(0138) 	M8C_SetBank1
    02A6: 71 10    OR    F,16
(0139) ;  Global Register values
(0140) 	mov	reg[61h], 00h		; AnalogClockSelect1 register (CLK_CR1)
    02A8: 62 61 00 MOV   REG[97],0
(0141) 	mov	reg[69h], 00h		; AnalogClockSelect2 register (CLK_CR2)
    02AB: 62 69 00 MOV   REG[105],0
(0142) 	mov	reg[60h], 00h		; AnalogColumnClockSelect register (CLK_CR0)
    02AE: 62 60 00 MOV   REG[96],0
(0143) 	mov	reg[62h], 00h		; AnalogIOControl_0 register (ABF_CR0)
    02B1: 62 62 00 MOV   REG[98],0
(0144) 	mov	reg[67h], 33h		; AnalogLUTControl0 register (ALT_CR0)
    02B4: 62 67 33 MOV   REG[103],51
(0145) 	mov	reg[68h], 00h		; AnalogLUTControl1 register (ALT_CR1)
    02B7: 62 68 00 MOV   REG[104],0
(0146) 	mov	reg[63h], 00h		; AnalogModulatorControl_0 register (AMD_CR0)
    02BA: 62 63 00 MOV   REG[99],0
(0147) 	mov	reg[66h], 00h		; AnalogModulatorControl_1 register (AMD_CR1)
    02BD: 62 66 00 MOV   REG[102],0
(0148) 	mov	reg[64h], 00h		; ComparatorGlobalOutEn register (CMP_GO_EN)
    02C0: 62 64 00 MOV   REG[100],0
(0149) 	mov	reg[64h], 00h		; ComparatorGlobalOutEn1 register (CMP_GO_EN1)
    02C3: 62 64 00 MOV   REG[100],0
(0150) 	mov	reg[fdh], 80h		; DAC_Control register (DAC_CR)
    02C6: 62 FD 80 MOV   REG[253],128
(0151) 	mov	reg[c4h], 00h		; Endpoint1Control register (EP1_CR)
    02C9: 62 C4 00 MOV   REG[196],0
(0152) 	mov	reg[c5h], 00h		; Endpoint2Control register (EP2_CR)
    02CC: 62 C5 00 MOV   REG[197],0
(0153) 	mov	reg[c6h], 00h		; Endpoint3Control register (EP3_CR)
    02CF: 62 C6 00 MOV   REG[198],0
(0154) 	mov	reg[c7h], 00h		; Endpoint4Control register (EP4_CR)
    02D2: 62 C7 00 MOV   REG[199],0
(0155) 	mov	reg[d1h], 00h		; GlobalDigitalInterconnect_Drive_Even_Input register (GDI_E_IN)
    02D5: 62 D1 00 MOV   REG[209],0
(0156) 	mov	reg[d3h], 00h		; GlobalDigitalInterconnect_Drive_Even_Output register (GDI_E_OU)
    02D8: 62 D3 00 MOV   REG[211],0
(0157) 	mov	reg[d0h], 00h		; GlobalDigitalInterconnect_Drive_Odd_Input register (GDI_O_IN)
    02DB: 62 D0 00 MOV   REG[208],0
(0158) 	mov	reg[d2h], 00h		; GlobalDigitalInterconnect_Drive_Odd_Output register (GDI_O_OU)
    02DE: 62 D2 00 MOV   REG[210],0
(0159) 	mov	reg[e1h], b9h		; OscillatorControl_1 register (OSC_CR1)
    02E1: 62 E1 B9 MOV   REG[225],185
(0160) 	mov	reg[e2h], 00h		; OscillatorControl_2 register (OSC_CR2)
    02E4: 62 E2 00 MOV   REG[226],0
(0161) 	mov	reg[dfh], 63h		; OscillatorControl_3 register (OSC_CR3)
    02E7: 62 DF 63 MOV   REG[223],99
(0162) 	mov	reg[deh], 02h		; OscillatorControl_4 register (OSC_CR4)
    02EA: 62 DE 02 MOV   REG[222],2
(0163) 	mov	reg[ddh], 00h		; OscillatorGlobalBusEnableControl register (OSC_GO_EN)
    02ED: 62 DD 00 MOV   REG[221],0
(0164) 	mov	reg[d8h], 00h		; Port_0_MUXBusCtrl register (MUX_CR0)
    02F0: 62 D8 00 MOV   REG[216],0
(0165) 	mov	reg[d9h], 00h		; Port_1_MUXBusCtrl register (MUX_CR1)
    02F3: 62 D9 00 MOV   REG[217],0
(0166) 	mov	reg[dah], 00h		; Port_2_MUXBusCtrl register (MUX_CR2)
    02F6: 62 DA 00 MOV   REG[218],0
(0167) 	mov	reg[dbh], 00h		; Port_3_MUXBusCtrl register (MUX_CR3)
    02F9: 62 DB 00 MOV   REG[219],0
(0168) 	mov	reg[ech], 00h		; Port_4_MUXBusCtrl register (MUX_CR4)
    02FC: 62 EC 00 MOV   REG[236],0
(0169) 	mov	reg[edh], 00h		; Port_5_MUXBusCtrl register (MUX_CR5)
    02FF: 62 ED 00 MOV   REG[237],0
(0170) 	mov	reg[e7h], 00h		; Type2Decimator_Control register (DEC_CR2)
    0302: 62 E7 00 MOV   REG[231],0
(0171) 	mov	reg[c1h], 00h		; USBControl_1 register (USB_CR1)
    0305: 62 C1 00 MOV   REG[193],0
(0172) ;  Instance name Timer16, User Module Timer16
(0173) ;       Instance name Timer16, Block Name TIMER16_LSB(DBB01)
(0174) 	mov	reg[24h], 00h		;Timer16_FUNC_LSB_REG(DBB01FN)
    0308: 62 24 00 MOV   REG[36],0
(0175) 	mov	reg[25h], 11h		;Timer16_INPUT_LSB_REG(DBB01IN)
    030B: 62 25 11 MOV   REG[37],17
(0176) 	mov	reg[26h], 40h		;Timer16_OUTPUT_LSB_REG(DBB01OU)
    030E: 62 26 40 MOV   REG[38],64
(0177) ;       Instance name Timer16, Block Name TIMER16_MSB(DCB02)
(0178) 	mov	reg[28h], 20h		;Timer16_FUNC_MSB_REG(DCB02FN)
    0311: 62 28 20 MOV   REG[40],32
(0179) 	mov	reg[29h], 31h		;Timer16_INPUT_MSB_REG(DCB02IN)
    0314: 62 29 31 MOV   REG[41],49
(0180) 	mov	reg[2ah], 40h		;Timer16_OUTPUT_MSB_REG(DCB02OU)
    0317: 62 2A 40 MOV   REG[42],64
(0181) ;  Instance name Timer8, User Module Timer8
(0182) ;       Instance name Timer8, Block Name TIMER8(DBB00)
(0183) 	mov	reg[20h], 20h		;Timer8_FUNC_REG(DBB00FN)
    031A: 62 20 20 MOV   REG[32],32
(0184) 	mov	reg[21h], 11h		;Timer8_INPUT_REG(DBB00IN)
    031D: 62 21 11 MOV   REG[33],17
(0185) 	mov	reg[22h], 40h		;Timer8_OUTPUT_REG(DBB00OU)
    0320: 62 22 40 MOV   REG[34],64
(0186) 	M8C_SetBank0
    0323: 70 EF    AND   F,239
(0187) 	ret
    0325: 7F       RET   
FILE: lib\psocconfig.asm
(0001) ; Generated by PSoC Designer ver 4.2  b1013 : 02 September, 2004
(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_clock_timer_good
(0026) export _LoadConfig_clock_timer_good
(0027) 
(0028) export NO_SHADOW
(0029) export _NO_SHADOW
(0030) 
(0031) FLAG_CFG_MASK:      equ 10h         ;M8C flag register REG address bit mask
(0032) END_CONFIG_TABLE:   equ ffh         ;end of config table indicator
(0033) 
(0034) AREA psoc_config(rom, rel)
(0035) 
(0036) 
(0037) ;---------------------------------------------------------------------------
(0038) ; LoadConfigInit - Establish the start-up configuration (except for a few
(0039) ;                  parameters handled by boot code, like CPU speed). This
(0040) ;                  function can be called from user code, but typically it
(0041) ;                  is only called from boot.
(0042) ;
(0043) ;       INPUTS: None.
(0044) ;      RETURNS: Nothing.
(0045) ; SIDE EFFECTS: Registers are volatile: the A and X registers can be modified!
(0046) ;               In the large memory model currently only the page
(0047) ;               pointer registers listed below are modified.  This does
(0048) ;               not guarantee that in future implementations of this
(0049) ;               function other page pointer registers will not be
(0050) ;               modified.
(0051) ;          
(0052) ;               Page Pointer Registers Modified: 
(0053) ;               CUR_PP
(0054) ;
(0055) _LoadConfigInit:
(0056)  LoadConfigInit:
(0057)     RAM_PROLOGUE RAM_USE_CLASS_4
(0058)     
(0059) 	lcall	LoadConfig_clock_timer_good
    0326: 7C 03 2A LCALL 0x032A
(0060) 
(0061)     RAM_EPILOGUE RAM_USE_CLASS_4
(0062)     ret
    0329: 7F       RET   
(0063) 
(0064) ;---------------------------------------------------------------------------
(0065) ; Load Configuration clock_timer_good
(0066) ;
(0067) ;    Load configuration registers for clock_timer_good.
(0068) ;    IO Bank 0 registers a loaded first,then those in IO Bank 1.
(0069) ;
(0070) ;       INPUTS: None.
(0071) ;      RETURNS: Nothing.
(0072) ; SIDE EFFECTS: Registers are volatile: the CPU A and X registers may be
(0073) ;               modified as may the Page Pointer registers!
(0074) ;               In the large memory model currently only the page
(0075) ;               pointer registers listed below are modified.  This does
(0076) ;               not guarantee that in future implementations of this
(0077) ;               function other page pointer registers will not be
(0078) ;               modified.
(0079) ;          
(0080) ;               Page Pointer Registers Modified: 
(0081) ;               CUR_PP
(0082) ;
(0083) _LoadConfig_clock_timer_good:
(0084)  LoadConfig_clock_timer_good:
(0085)     RAM_PROLOGUE RAM_USE_CLASS_4
(0086)     lcall   LoadConfigTBL_clock_timer_good            ; Call load config table routine
    032A: 7C 01 52 LCALL 0x0152
(0087) 
(0088) 
(0089)     RAM_EPILOGUE RAM_USE_CLASS_4
(0090)     ret
    032D: 7F       RET   
FILE: lib\timer8int.asm
(0001) ;;*****************************************************************************
(0002) ;;*****************************************************************************
(0003) ;;  FILENAME: Timer8INT.asm
(0004) ;;   Version: 2.4, Updated on 2005/10/05 at 10:27:18
(0005) ;;  Generated by PSoC Designer ver 4.2  b1013 : 02 September, 2004
(0006) ;;
(0007) ;;  DESCRIPTION: Timer8 Interrupt Service Routine
(0008) ;;-----------------------------------------------------------------------------
(0009) ;;  Copyright (c) Cypress MicroSystems 2000-2004. All Rights Reserved.
(0010) ;;*****************************************************************************
(0011) ;;*****************************************************************************
(0012) 
(0013) include "m8c.inc"
(0014) include "memory.inc"
(0015) include "Timer8.inc"
(0016) 
(0017) 
(0018) ;-----------------------------------------------
(0019) ;  Global Symbols
(0020) ;-----------------------------------------------
(0021) export  _Timer8_ISR
(0022) 
(0023) 
(0024) AREA InterruptRAM (RAM,REL,CON)
(0025) 
(0026) ;@PSoC_UserCode_INIT@ (Do not change this line.)
(0027) ;---------------------------------------------------
(0028) ; Insert your custom declarations below this banner
(0029) ;---------------------------------------------------
(0030) 
(0031) ;------------------------
(0032) ; Includes
(0033) ;------------------------
(0034) 
(0035) 	
(0036) ;------------------------
(0037) ;  Constant Definitions
(0038) ;------------------------
(0039) 
(0040) 
(0041) ;------------------------
(0042) ; Variable Allocation
(0043) ;------------------------
(0044) 
(0045) 
(0046) ;---------------------------------------------------
(0047) ; Insert your custom declarations above this banner
(0048) ;---------------------------------------------------
(0049) ;@PSoC_UserCode_END@ (Do not change this line.)
(0050) 
(0051) 
(0052) AREA UserModules (ROM, REL)
(0053) 
(0054) ;-----------------------------------------------------------------------------
(0055) ;  FUNCTION NAME: _Timer8_ISR
(0056) ;
(0057) ;  DESCRIPTION: Unless modified, this implements only a null handler stub.
(0058) ;
(0059) ;-----------------------------------------------------------------------------
(0060) ;
(0061) 
(0062) _Timer8_ISR:
(0063) 
(0064)    ;@PSoC_UserCode_BODY@ (Do not change this line.)
(0065)    ;---------------------------------------------------
(0066)    ; Insert your custom code below this banner
(0067)    ;---------------------------------------------------
(0068)    ;   NOTE: interrupt service routines must preserve
(0069)    ;   the values of the A and X CPU registers.
(0070) 
(0071)    ;---------------------------------------------------
(0072)    ; Insert your custom code above this banner
(0073)    ;---------------------------------------------------
(0074)    ;@PSoC_UserCode_END@ (Do not change this line.)
(0075) ljmp _Timer8 
    032E: 7D 06 2E LJMP  _Timer8
(0076)    reti
    0331: 7E       RETI  
FILE: lib\timer16int.asm
(0001) ;;*****************************************************************************
(0002) ;;*****************************************************************************
(0003) ;;  FILENAME: Timer16INT.asm
(0004) ;;   Version: 2.4, Updated on 2005/10/05 at 10:25:01
(0005) ;;  Generated by PSoC Designer ver 4.2  b1013 : 02 September, 2004
(0006) ;;

⌨️ 快捷键说明

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