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

📄 baseint.asm

📁 电力系统中的保护装置全部代码
💻 ASM
字号:
;/*************************************************************************/
;/*                                                                       */
;/*        Copyright (c) 1993-1998 Accelerated Technology, Inc.           */
;/*                                                                       */
;/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
;/* subject matter of this material.  All manufacturing, reproduction,    */
;/* use, and sales rights pertaining to this subject matter are governed  */
;/* by the license agreement.  The recipient of this software implicitly  */
;/* accepts the terms of the license.                                     */
;/*                                                                       */
;/*************************************************************************/
;
;/*************************************************************************/
;/*                                                                       */
;/* FILE NAME                                            VERSION          */
;/*                                                                       */
;/*      int.asm                                      PLUS/C3XB/D 1.8     */
;/*                                                                       */
;/* COMPONENT                                                             */
;/*                                                                       */
;/*      IN - Initialization                                              */
;/*                                                                       */
;/* DESCRIPTION                                                           */
;/*                                                                       */
;/*      This file contains the target processor dependent initialization */
;/*      routines and data.                                               */
;/*                                                                       */
;/* AUTHOR                                                                */
;/*                                                                       */
;/*      William E. Lamie, Accelerated Technology, Inc.                   */
;/*                                                                       */
;/* DATA STRUCTURES                                                       */
;/*                                                                       */
;/*      INT_Vectors                         Interrupt vector table       */
;/*                                                                       */
;/* FUNCTIONS                                                             */
;/*                                                                       */
;/*      INT_Initialize                      Target initialization        */
;/*      INT_Vectors_Loaded                  Returns a NU_TRUE if all the */
;/*                                            default vectors are loaded */
;/*      INT_Setup_Vector                    Sets up an actual vector     */
;/*                                                                       */
;/* DEPENDENCIES                                                          */
;/*                                                                       */
;/*      None                                                             */
;/*                                                                       */
;/* HISTORY                                                               */
;/*                                                                       */
;/*         NAME            DATE                    REMARKS               */
;/*                                                                       */
;/*      J. Trippi       03-11-1997       Modified for large memory model */
;/*      M. Trippi       03-12-1997       Released initial version 1.0    */
;/*      M. Trippi       05-18-1997       Registered LISRs now work.      */
;/*                                         (SPR284)                      */
;/*      M. Trippi       05-25-1997       IE register is now used to      */
;/*                                         control interrupts instead of */
;/*                                         the GIE bit in the ST.        */
;/*      M. Trippi       05-25-1997       Released version 1.1            */
;/*      M. Trippi       06-02-1997       Added conditional assembler     */
;/*                                         statments to allow user to    */
;/*                                         configure for SMALL memory    */
;/*                                         model.                        */
;/*      M. Trippi       06-03-1997       Released version 1.2            */
;/*      M. Trippi       06-21-1997       Corrected Small memory model    */
;/*                                         support so that it allows     */
;/*                                         .text to be larger than 64k.  */
;/*      M. Trippi       07-01-1997       Released version 1.3            */
;/*      M. Trippi       07-09-1997       Added support for the REGISTER  */
;/*                                         argument model.               */
;/*      M. Trippi       07-09-1997       Released version 1.4            */
;/*      M. Trippi       11-06-1997       Added support for Microcomputer */
;/*                                         mode.                         */
;/*      M. Trippi       11-07-1997       Released version 1.5            */
;/*      M. Trippi       11-14-1997       Initialized variables where not */
;/*                                         being setup properly and      */
;/*                                         the startup code was using    */
;/*                                         these variables.              */
;/*      M. Trippi       11-14-1997       INT_Setup_Vector and            */
;/*                                         INT_Retrieve_Shell were       */
;/*                                         trashing the DP Register in   */
;/*                                         Small memory model.           */
;/*      M. Trippi       11-21-1997       Released version 1.6            */
;/*      M. Trippi       02-24-1998       Released version 1.7 using      */
;/*                                         version 5.00 tools.           */
;/*      M. Trippi       04-03-1998       Corrected SPR458 where the C31  */
;/*                                         bus configurations where not  */
;/*                                         being setup properly and the  */
;/*                                         reset vector was not being    */
;/*                                         handled properly in           */
;/*                                         microcomputer mode.           */
;/*      K. Pontzloff    04-03-1998       Released version 1.8            */
;/*                                                                       */
;/*************************************************************************/
;
;           The following descriped by WeiYang
;/***********************************************************************************************/
;/*        硬件资源描述                                                                         */
;/*        *******************                                                                  */
;/*        TMS320C32片内有2*256*32 SRAM                                                         */
;/*        一个同步串口                                                                         */
;/*        两个DMA控制器                                                                        */
;/*        两个32位定时器                                                                       */
;/*        板上有12路开出(包括一路告警和一路信号复归),一路启动                                  */
;/*        32路开入,一路开出回读                                                                */
;/*        16位AD输出接至74HC574                                                                */
;/*        AD采集最大16路,其中一路直流自检,15路外部模拟量                                       */
;/*        FLASH 4MBIT-->256k*16                                                                */
;/*        SRAM  4MBIT-->256K*16                                                                */
;/*        ******************                                                                   */
;/*        TMS320TMS320C32寄存器                                                                */
;/*        R0--R7       40BIT 扩展精度寄存器                                                    */
;/*        AR0--AR7     辅助寄存器                                                              */
;/*        DP           数据页指针寄存器                                                        */
;/*        IR0--IR1     变址寄存器                                                              */
;/*        BK           循环BLOCK SIZE块大小寄存器                                              */
;/*        SP           栈指针                                                                  */
;/*        ST           状态                                                                    */
;/*        IE           中断使能                                                                */
;/*        IF           中断标志                                                                */
;/*        IOF          I/O FLAG                                                                */
;/*        RS           REPEAT START_ADDRESS                                                    */
;/*        RE           REPEAT END_ADDRESS                                                      */
;/*        RC           重复计数器                                                              */
;/*                                                                                             */
;/*        ******************                                                                   */
;/*        硬件地址空间分配                                                                     */
;/*                                        0  1  2  3   4   5   6   7   8   9   10              */
;/*        FLASHROM  256K*32BIT  共11扇区,8K,4K,4K,16K,32K,32K,32K,32K,32K,32K,32K,0扇为BOOT区 */
;/*        0X000000--0X03FFFF   用于固化程序,存放定值,或其他擦写不频繁,需长期保存的数据,需将 */
;/*        需将数据变成16位进行存储                                                             */
;/*        flash 0扇为BOOT区放中断向量,引导程序,0x000000--0x01ffff 128k*32 程序区             */
;/*        flash 7扇32k为定值区每份定值10k,共存3份,0x020000--0x027fff                           */
;/*        flash 8扇32k为用户定义数据区,电子盘     0x028000--0x02ffff                           */
;/*        flash 9,10扇64k为电子盘,或录波用        0x030000--0x03ffff                           */
;/*        0X040000--0X07FFFF  暂时不可用 保留将来扩展用                                        */
;/*        NVRAM     32k*8BIT, 高 8字节是RTC Registers                                          */
;/*        0X080000--0X09FFFF  用于经常改写,长期保存的数据,需将数据变成16位存储                */
;/*        0X0A0000--0X7FFFFF  保留空间将来扩展用                                               */
;/*        0X800000--0X807FFF  DSP保留                                                          */
;/*        0X808000--0X8097FF  外围设备映射寄存器                                               */
;/*        0X809800--0X80FFFF  DSP保留                                                          */
;/*        0X810000--0X82FFFF  I/O端口                                                          */
;/*           ;0X820000H       开入1-16(读)

⌨️ 快捷键说明

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