- C51 COMPILER V7.06 ISR 07/02/2003 10:27:49 PAGE 1
- C51 COMPILER V7.06, COMPILATION OF MODULE ISR
- OBJECT MODULE PLACED IN Isr.OBJ
- COMPILER INVOKED BY: C:KEILC51BINC51.EXE Isr.c OPTIMIZE(2,SPEED) BROWSE DEBUG OBJECTEXTEND
- stmt level source
- 1 /****************************************Copyright (c)**************************************************
- 2 ** 广州周立功单片机发展有限公司
- 3 ** 研 究 所
- 4 ** http://www.zlgmcu.com
- 5 **--------------当前版本修订------------------------------------------------------------------------------
- 6 ** 修改人: 刘英斌
- 7 ** 日 期:2003-03-13
- 8 ** 描 述:ISP1581 V1.0
- 9 **------------------------------------------------------------------------------------------------------
- 10 ********************************************************************************************************/
- 11
- 12 #include "standard.h"
- 13 #include "Kernel.h"
- 14 #include "D14.h"
- 15
- 16 extern KERNEL Kernel_Flag;
- 17 extern D14_CNTRL_REG xdata *D14_Cntrl_Ptr;
- 18 extern volatile D14_CNTRL_REG xdata D14_Cntrl_Reg;
- 19
- 20 extern DMA_INT_FLAG DMA_Int_Flag;
- 21 extern USB_INT_FLAG USB_Int_Flag;
- 22 extern void Init_D14(void);
- 23 extern UC ATAPI_State;
- 24 extern DRIVE_CONFIG Drive_Setup;
- 25 extern void Set_USB(void);
- 26 extern ULI bytecount;
- 27 extern UI PIO_Count;
- 28
- 29 //***********************************************************************
- 30 //* *
- 31 //* Variable Definition *
- 32 //* *
- 33 //***********************************************************************
- 34
- 35
- 36 UI idata Data;
- 37 ULI USB_Interrupt;
- 38 UI DMA_Interrupt;
- 39
- 40
- 41 //***********************************************************************
- 42 //* *
- 43 //* Routine Definition *
- 44 //* *
- 45 //***********************************************************************
- 46
- 47 void Int_2(void) interrupt 2 using 0
- 48 {
- 49 1 }
- 50
- 51 void Int_3(void) interrupt 3 using 0
- 52 {
- 53 1 }
- 54
- 55 void Int_4(void) interrupt 4 using 0
- C51 COMPILER V7.06 ISR 07/02/2003 10:27:49 PAGE 2
- 56 {
- 57 1 }
- 58
- 59 void Int_5(void) interrupt 5 using 0
- 60 {
- 61 1 }
- 62
- 63 //***********************************************************************
- 64 //* *
- 65 //* Routine : Int_Timer0 *
- 66 //* Input : Timer 0 overflow *
- 67 //* Output : Set time up flag *
- 68 //* Function : To set the time up flag *
- 69 //* *
- 70 //***********************************************************************
- 71
- 72 void Int_Timer0(void) interrupt 1 using 0
- 73 {
- 74 1
- 75 1 Kernel_Flag.BITS.Timer_Expired = 1;
- 76 1 }
- 77
- 78 //***********************************************************************
- 79 //* *
- 80 //* Routine : Int Ext 0 *
- 81 //* Input : External Interrupt from ISP1581 *
- 82 //* Output : None *
- 83 //* Function : To read and keep a copy of the interrupt source of *
- 84 //* ISP1581 *
- 85 //***********************************************************************
- 86 void Int_Ext_0(void) interrupt 0 using 1
- 87 {
- 88 1
- 89 1 //read in USB interrupt register and keep a copy
- 90 1 // USB_Interrupt = D14_Cntrl_Reg.D14_INT.VALUE;
- 91 1 // USB_Int_Flag.VALUE |= USB_Interrupt;
- 92 1
- 93 1 //读取ISP1581中断寄存器
- 94 1 USB_Int_Flag.VALUE |= D14_Cntrl_Reg.D14_INT.VALUE;
- 95 1 //回写ISP1581中断寄存器
- 96 1 D14_Cntrl_Reg.D14_INT.VALUE = USB_Int_Flag.VALUE;
- 97 1
- 98 1 //总线复位处理
- 99 1 if(USB_Int_Flag.BITS.RESET)
- 100 1 {
- 101 2 //清除总线复位中断位
- 102 2 USB_Int_Flag.BITS.RESET = 0;
- 103 2 //设置总线复位标志
- 104 2 Kernel_Flag.BITS.Bus_Reset = 1;
- 105 2
- 106 2 PIO_Count = 64;
- 107 2
- 108 2 //切换到全速模式
- 109 2 HS_FS_LED = FULL_SPEED_LED;
- 110 2 Kernel_Flag.BITS.HS_FS_State = FULL_SPEED;
- 111 2 //初始化ISP1581
- 112 2 Init_D14();
- 113 2 //设置softconnect
- 114 2 D14_Cntrl_Reg.D14_MODE.BITS.SOFTCT = 1;
- 115 2 }
- 116 1
- 117 1 }
- C51 COMPILER V7.06 ISR 07/02/2003 10:27:49 PAGE 3
- MODULE INFORMATION: STATIC OVERLAYABLE
- CODE SIZE = 147 ----
- CONSTANT SIZE = ---- ----
- XDATA SIZE = ---- ----
- PDATA SIZE = ---- ----
- DATA SIZE = 6 ----
- IDATA SIZE = 2 ----
- BIT SIZE = ---- ----
- END OF MODULE INFORMATION.
- C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)