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

📄 app_vect.s90

📁 μC/OS—ⅡV:2.80 对 ATMega256 单片机的移植程序代码。
💻 S90
字号:
;********************************************************************************************************
;                                               uC/OS-II
;                                         The Real-Time Kernel
;
;                                       ATmega128  Specific code
;                                        Interrupt Vector Table
;
;
; File     : APP_VECT.S90
; By       : Jean J. Labrosse
;********************************************************************************************************

#include    <app_cfg.h>
#include    <os_cfg.h>

    NAME    app_vect

;********************************************************************************************************
;                                          PUBLIC DECLARATIONS
;********************************************************************************************************

;********************************************************************************************************
;                                         EXTERNAL DECLARATIONS
;********************************************************************************************************

    EXTERN  AppTickISR
    
#if OS_VIEW_MODULE > 0    
    EXTERN  OSView_RxISR
    EXTERN  OSView_TxISR
#endif    

;********************************************************************************************************
;                                           INTVEC
;
; Description : Set up the AVR interrupt vector table for the ATmega256
;********************************************************************************************************
    COMMON  INTVEC
    
APP_INT_VECT_TBL:    
                          ; Vector #   Program Address   Interrupt Definition
                          ; --------   ---------------   ------------------------------------------
    DS      4             ;     1          0x0000        Reset

    DS      4             ;     2          0x0002        IRQ0 Handler
    DS      4             ;     3          0x0004        IRQ1 Handler
    DS      4             ;     4          0x0006        IRQ2 Handler
    DS      4             ;     5          0x0008        IRQ3 Handler
    DS      4             ;     6          0x000A        IRQ4 Handler
    DS      4             ;     7          0x000C        IRQ5 Handler
    DS      4             ;     8          0x000E        IRQ6 Handler
    DS      4             ;     9          0x0010        IRQ7 Handler
    
    DS      4             ;    10          0x0012        Pin Change Interrupt Request 0
    DS      4             ;    11          0x0014        Pin Change Interrupt Request 1
    DS      4             ;    12          0x0016        Pin Change Interrupt Request 2
    
    DS      4             ;    13          0x0018        Watchdog Timeout Interrupt
    
    DS      4             ;    14          0x001A        Timer2 Compare A Handler
    DS      4             ;    15          0x001C        Timer2 Compare B Handler
    DS      4             ;    16          0x001E        Timer2 Overflow  Handler
    
    DS      4             ;    17          0x0020        Timer1 Capture   Handler
    DS      4             ;    18          0x0022        Timer1 Compare A Handler
    DS      4             ;    19          0x0024        Timer1 Compare B Handler
    DS      4             ;    20          0x0026        Timer1 Compare C Handler
    DS      4             ;    21          0x0028        Timer1 Overflow  Handler
    
    JMP     AppTickISR    ;    22          0x002A        Timer0 Compare A Handler
    DS      4             ;    23          0x002C        Timer0 Compare B Handler
    DS      4             ;    24          0x002E        Timer0 Overflow  Handler

    DS      4             ;    25          0x0030        SPI    Transfer Complete Handler

#if (OS_VIEW_MODULE > 0) && (OS_VIEW_COMM_SEL == OS_VIEW_COMM_0)
    JMP     OSView_RxISR  ;    26          0x0032        USART0 RX Complete Handler
    DS      4             ;    27          0x0034        USART0 UDR Empty Handler
    JMP     OSView_TxISR  ;    28          0x0036        USART0 TX Complete Handler
#else
    DS      4             ;    26          0x0032        USART0 RX Complete Handler
    DS      4             ;    27          0x0034        USART0 UDR Empty Handler
    DS      4             ;    28          0x0036        USART0 TX Complete Handler
#endif    

    DS      4             ;    29          0x0038        Analog Compare Interrupt

    DS      4             ;    30          0x003A        ADC    Conversion Complete Handler

    DS      4             ;    31          0x003C        EEPROM Ready Handler

    DS      4             ;    32          0x003E        Timer3 Capture   Handler
    DS      4             ;    33          0x0040        Timer3 Compare A Handler
    DS      4             ;    34          0x0042        Timer3 Compare B Handler
    DS      4             ;    35          0x0044        Timer3 Compare C Handler
    DS      4             ;    36          0x0046        Timer3 Overflow  Handler

#if (OS_VIEW_MODULE > 0) && (OS_VIEW_COMM_SEL == OS_VIEW_COMM_1)    
    JMP     OSView_RxISR  ;    37          0x0048        USART1 RX Complete Handler
    DS      4             ;    38          0x004A        USART1 UDR Empty Handler
    JMP     OSView_TxISR  ;    39          0x004C        USART1 TX Complete Handler
#else
    DS      4             ;    37          0x0048        USART1 RX Complete Handler
    DS      4             ;    38          0x004A        USART1 UDR Empty Handler
    DS      4             ;    39          0x004C        USART1 TX Complete Handler
#endif    

    DS      4             ;    40          0x004E        Two-wire Serial Interface Interrupt       

    DS      4             ;    41          0x0050        SPM Ready Handler

    DS      4             ;    42          0x0052        Timer4 Capture   Handler
    DS      4             ;    43          0x0054        Timer4 Compare A Handler
    DS      4             ;    44          0x0056        Timer4 Compare B Handler
    DS      4             ;    45          0x0058        Timer4 Compare C Handler
    DS      4             ;    46          0x005A        Timer4 Overflow  Handler

    DS      4             ;    47          0x005C        Timer5 Capture   Handler
    DS      4             ;    48          0x005E        Timer5 Compare A Handler
    DS      4             ;    49          0x0060        Timer5 Compare B Handler
    DS      4             ;    50          0x0062        Timer5 Compare C Handler
    DS      4             ;    51          0x0064        Timer5 Overflow  Handler

#if (OS_VIEW_MODULE > 0) && (OS_VIEW_COMM_SEL == OS_VIEW_COMM_2)    
    JMP     OSView_RxISR  ;    52          0x0066        USART2 RX Complete Handler
    DS      4             ;    53          0x0068        USART2,UDR Empty Handler
    JMP     OSView_TxISR  ;    54          0x006A        USART2 TX Complete Handler
#else
    DS      4             ;    52          0x0066        USART2 RX Complete Handler
    DS      4             ;    53          0x0068        USART2,UDR Empty Handler
    DS      4             ;    54          0x006A        USART2 TX Complete Handler
#endif    

#if (OS_VIEW_MODULE > 0) && (OS_VIEW_COMM_SEL == OS_VIEW_COMM_3)    
    JMP     OSView_RxISR  ;    55          0x006C        USART3 RX Complete Handler
    DS      4             ;    56          0x006E        USART3 UDR Empty Handler
    JMP     OSView_TxISR  ;    57          0x0070        USART3 TX Complete Handler
#else
    DS      4             ;    55          0x006C        USART3 RX Complete Handler
    DS      4             ;    56          0x006E        USART3 UDR Empty Handler
    DS      4             ;    57          0x0070        USART3 TX Complete Handler
#endif    

    END

⌨️ 快捷键说明

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