ANSI-C/cC++ Compiler for ST7 V-5.0.7, Aug 21 2001

    1:  /******************************************************************************
    2:  COPYRIGHT 2003 STMicroelectronics
    3:  Source File Name : st72f521_reg.c
    4:  Group            : IPSW,CMG - IPDF
    5:  Author           : MCD Application Team
    6:  Date First Issued: 23/09/2003
    7:  ********************************Documentation**********************************
    8:  General Purpose - This file contains all the hardware registers of ST72F521
    9:  
   10:  ********************************Revision History*******************************
   11:  _______________________________________________________________________________
   12:  Date :23/09/2003                  Release:2.0
   13:        02/06/2004                  Release:2.1
   14:                  1.Added register address information          
   15:                  2.Removed #pragma
   16:  ______________________________________________________________________________
   17:  
   18:  ******************************************************************************/
   19:  
   20:  #include "ST7lib_config.h"
   21:  
   22:  /******************************************************************************
   23:   Peripherals Registers Definition
   24:  ******************************************************************************/
   25:  #ifdef _HIWARE_                                                                  
   26:  
   27:  /* IO Ports Hardware Registers                                               */  
   28:  /* PORT A register                                                           */
   29:   volatile unsigned char PADR    @0x00;	     /* PORT A data Register         */
   30:   volatile unsigned char PADDR   @0x01;      /* Data direction register       */
   31:   volatile unsigned char PAOR    @0x02;	          /* Option register         */
   32:  
   33:  /* PORT B register                                                           */
   34:   volatile unsigned char PBDR    @0x03;	     /* PORT B data Register         */
   35:   volatile unsigned char PBDDR   @0x04;      /* Data direction register       */
   36:   volatile unsigned char PBOR    @0x05;	          /* Option register         */
   37:  
   38:  /* PORT C register                                                           */
   39:   volatile unsigned char PCDR    @0x06;	     /* PORT C data Register         */
   40:   volatile unsigned char PCDDR   @0x07;      /* Data direction register       */
   41:   volatile unsigned char PCOR    @0x08;	          /* Option register         */
   42:  
   43:  /* PORT D register                                                           */
   44:   volatile unsigned char PDDR    @0x09;	     /* PORT D data Register         */
   45:   volatile unsigned char PDDDR   @0x0A;      /* Data direction register       */
   46:   volatile unsigned char PDOR    @0x0B;	          /* Option register         */
   47:  
   48:  /* PORT E register                                                           */
   49:   volatile unsigned char PEDR    @0x0C;	     /* PORT E data Register         */
   50:   volatile unsigned char PEDDR   @0x0D;      /* Data direction register       */
   51:   volatile unsigned char PEOR    @0x0E;	          /* Option register         */
   52:  
   53:  /* PORT F register                                                           */
   54:   volatile unsigned char PFDR    @0x0F;	     /* PORT F data Register         */
   55:   volatile unsigned char PFDDR   @0x10;      /* Data direction register       */
   56:   volatile unsigned char PFOR    @0x11;	          /* Option register         */
   57:  
   58:  /* PORT G register                                                           */
   59:   volatile unsigned char PGDR    @0x12;	     /* PORT G data Register         */
   60:   volatile unsigned char PGDDR   @0x13;      /* Data direction register       */
   61:   volatile unsigned char PGOR    @0x14;	          /* Option register         */
   62:  
   63:  /* PORT H register                                                           */
   64:   volatile unsigned char PHDR    @0x15;	     /* PORT H data Register         */
   65:   volatile unsigned char PHDDR   @0x16;      /* Data direction register       */
   66:   volatile unsigned char PHOR    @0x17;	          /* Option register         */
   67:  
   68:  /* I2C Hardware Registers                                                    */ 
   69:  
   70:   volatile unsigned char I2CCR     @0x18;       /* I2C control register       */
   71:   volatile unsigned char I2CSR1    @0x19;       /* I2C status register1       */
   72:   volatile unsigned char I2CSR2    @0x1A;       /* I2C status register2       */
   73:   volatile unsigned char I2CCCR    @0x1B; /* I2C clock control register       */
   74:   volatile unsigned char I2COAR1   @0x1C;  /* I2C own address register1       */
   75:   volatile unsigned char I2COAR2   @0x1D;  /* I2C own address register2       */ 
   76:   volatile unsigned char I2CDR     @0x1E;          /* I2C data register       */
   77:  
   78:  /* SPI Hardware Registers                                                    */
   79:  
   80:  
   81:   volatile unsigned char SPIDR   @0x21;            /* SPI Data Register       */
   82:   volatile unsigned char SPICR   @0x22;         /* SPI Control Register       */
   83:   volatile unsigned char SPICSR  @0x23;          /* SPI Status Register       */
   84:  
   85:  /*ITC Hardware registers                                                     */
   86:  
   87:   volatile unsigned char ITSPR0 @0x24; /*Interrupt Software Priority Register0*/
   88:   volatile unsigned char ITSPR1 @0x25; /*Interrupt Software Priority Register1*/ 
   89:   volatile unsigned char ITSPR2 @0x26; /*Interrupt Software Priority Register2*/ 
   90:   volatile unsigned char ITSPR3 @0x27; /*Interrupt Software Priority Register3*/ 
   91:   volatile unsigned char EICR   @0x28;   /*External Interrupt Control Register*/ 
   92:  
   93:  /*FLASH Memory                                                               */
   94:  
   95:   volatile unsigned char FLASH_REG @0x29;     /*FLASH register                */
   96:  /* WDG Hardware registers                                                    */ 
   97:   volatile unsigned char WDGCR   @0x2a;	/* WDG Control Register              */  
   98:  
   99:  /*SICSR  register                                                            */
  100:   volatile unsigned char SICSR_REG @0x2b;
  101:  
  102:  /* MCC Hardware Registers                                                    */
  103:   volatile unsigned char MCCSR   @0x2C;   /* MCC Control/Status Register      */
  104:   volatile unsigned char MCCBCR  @0x2D;     /* MCC beep control Register      */
  105:  
  106:  /* Timer Hardware Registers                                                  */
  107:  /* TIMER A section                                                           */ 
  108:   volatile unsigned char TACR2   @0x31;	/* Control Register 2                */
  109:   volatile unsigned char TACR1   @0x32;	/* Control Register 1                */
  110:   volatile unsigned char TACSR   @0x33;	/* Status Register                   */
  111:   volatile unsigned char TAIC1HR @0x34;	/* Input Capture 1 High              */
  112:   volatile unsigned char TAIC1LR @0x35;	/* Input Capture 1 Low               */
  113:   volatile unsigned char TAOC1HR @0x36;	/* Output Compare 1 High             */
  114:   volatile unsigned char TAOC1LR @0x37;	/* Output Compare 1 Low              */
  115:   volatile unsigned char TACHR   @0x38;	/* Counter High                      */
  116:   volatile unsigned char TACLR   @0x39;	/* Counter Low                       */
  117:   volatile unsigned char TAACHR  @0x3a;	/* Alternate Counter High            */
  118:   volatile unsigned char TAACLR  @0x3b;	/* Alternate Counter Low             */
  119:   volatile unsigned char TAIC2HR @0x3c;	/* Input Capture 2 High              */
  120:   volatile unsigned char TAIC2LR @0x3d;	/* Input Capture 2 Low               */
  121:   volatile unsigned char TAOC2HR @0x3e;	/* Output Compare 2 High             */
  122:   volatile unsigned char TAOC2LR @0x3f;	/* Output Compare 2 Low              */
  123:  
  124:  
  125:  /* 16 bit timer A register                                                   */
  126:   volatile unsigned int  TAIC1R  @0x34;	/* Input Capture 1 Register          */
  127:   volatile unsigned int  TAOC1R  @0x36;	/* Output Compare 1 Register         */
  128:   volatile unsigned int  TACR    @0x38;	/* Counter Register                  */
  129:   volatile unsigned int  TAACR   @0x3a;	/* Alternate Counter Register        */
  130:   volatile unsigned int  TAIC2R  @0x3c;	/* Input Capture 2 Register          */
  131:   volatile unsigned int  TAOC2R  @0x3e;	/* Output Compare 2 Register         */
  132:  
  133:  /*    TIMER B section                                                        */
  134:   volatile unsigned char TBCR2   @0x41;	/* Control Register 2                */
  135:   volatile unsigned char TBCR1   @0x42;	/* Control Register 1                */
  136:   volatile unsigned char TBCSR   @0x43;	/* Status Register                   */
  137:   volatile unsigned char TBIC1HR @0x44;	/* Input Capture 1 High              */
  138:   volatile unsigned char TBIC1LR @0x45;	/* Input Capture 1 Low               */
  139:   volatile unsigned char TBOC1HR @0x46;	/* Output Compare 1 High             */
  140:   volatile unsigned char TBOC1LR @0x47;	/* Output Compare 1 Low              */
  141:   volatile unsigned char TBCHR   @0x48;	/* Counter High                      */
  142:   volatile unsigned char TBCLR   @0x49;	/* Counter Low                       */
  143:   volatile unsigned char TBACHR  @0x4a;	/* Alternate Counter High            */
  144:   volatile unsigned char TBACLR  @0x4b;	/* Alternate Counter Low             */
  145:   volatile unsigned char TBIC2HR @0x4c;	/* Input Capture 2 High              */
  146:   volatile unsigned char TBIC2LR @0x4d;	/* Input Capture 2 Low               */
  147:   volatile unsigned char TBOC2HR @0x4e;	/* Output Compare 2 High             */
  148:   volatile unsigned char TBOC2LR @0x4f;	/* Output Compare 2 Low              */
  149:  /* 16 bit timer B register                                                   */
  150:   volatile unsigned int  TBIC1R  @0x44;	/* Input Capture 1 Register          */
  151:   volatile unsigned int  TBOC1R  @0x46;	/* Output Compare 1 Register         */
  152:   volatile unsigned int  TBCR    @0x48;	/* Counter Register                  */
  153:   volatile unsigned int  TBACR   @0x4a;	/* Alternate Counter Register        */
  154:   volatile unsigned int  TBIC2R  @0x4c;	/* Input Capture 2 Register          */
  155:   volatile unsigned int  TBOC2R  @0x4e;	/* Output Compare 2 Register         */
  156:  
  157:  /*SCI Hardware registers                                                     */
  158:   volatile unsigned char SCISR  @0x50;
  159:   volatile unsigned char SCIDR  @0x51; 
  160:   volatile unsigned char SCIBRR @0x52;
  161:   volatile unsigned char SCICR1 @0x53;
  162:   volatile unsigned char SCICR2 @0x54; 
  163:   volatile unsigned char SCIERPR @0x55;
  164:   volatile unsigned char Res @0x56;
  165:   volatile unsigned char SCIETPR @0x57; 
  166:  
  167:  /* CAN Hardware registers */
  168:   volatile unsigned char CANISR @0x5A;   /* CAN Interrupt Status Register     */
  169:   volatile unsigned char CANICR @0x5B;   /* CAN Interrupt Control Register    */
  170:   volatile unsigned char CANCSR @0x5C;     /* CAN Control/Status Register     */
  171:   volatile unsigned char CANBRPR @0x5D;   /*  Baudrate Prescaler Register     */
  172:   volatile unsigned char CANBTR @0x5E;         /* CAN Bit Timing Register     */
  173:   volatile unsigned char CANPSR @0x5F;     /* CAN Page Selection Register     */
  174:  
  175:  /* Actve CAN register                                                        */
  176:   volatile unsigned char PAGE0 @0x60;   
  177:   volatile unsigned char PAGE1 @0x61;
  178:   volatile unsigned char PAGE2 @0x62;
  179:   volatile unsigned char PAGE3 @0x63;
  180:   volatile unsigned char PAGE4 @0x64;   
  181:   volatile unsigned char PAGE5 @0x65;
  182:   volatile unsigned char PAGE6 @0x66;
  183:   volatile unsigned char PAGE7 @0x67;
  184:   volatile unsigned char PAGE8 @0x68;   
  185:   volatile unsigned char PAGE9 @0x69;
  186:   volatile unsigned char PAGEA @0x6A;
  187:   volatile unsigned char PAGEB @0x6B;
  188:   volatile unsigned char PAGEC @0x6C;   
  189:   volatile unsigned char PAGED @0x6D;
  190:   volatile unsigned char PAGEE @0x6E;
  191:   volatile unsigned char PAGEF @0x6F;
  192:  
  193:  /* ADC Hardware Registers                                                    */
  194:   volatile unsigned char ADCDRH  @0x71;              /* ADC data register     */
  195:   volatile unsigned char ADCDRL  @0x72;              /* ADC data register     */
  196:   volatile unsigned char ADCCSR  @0x70;   /* ADC control & staus register     */
  197:  
  198:  /* PWMART Hardware Registers                                                 */
  199:   volatile unsigned char PWMDCR3  @0x73;	/* PWM Duty Cycle Register 3         */
  200:   volatile unsigned char PWMDCR2  @0x74;	/* PWM Duty Cycle Register 2         */
  201:   volatile unsigned char PWMDCR1  @0x75;	/* PWM Duty Cycle Register 1         */
  202:   volatile unsigned char PWMDCR0  @0x76;	/* PWM Duty Cycle Register 0         */
  203:   volatile unsigned char PWMCR    @0x77;	/* PWM Control Register              */
  204:   volatile unsigned char ARTCSR   @0x78;	/* ART Control/Status Reg.           */
  205:   volatile unsigned char ARTCAR   @0x79;	/* ART Counter Access Reg.           */
  206:   volatile unsigned char ARTARR   @0x7a;	/* ART Auto Reload Register          */
  207:   volatile unsigned char ARTICCSR @0x7b;	/* ART ICAP Control/Status           */
  208:   volatile unsigned char ARTICR1  @0x7c;	/* ART Input Capture Reg.1           */
  209:   volatile unsigned char ARTICR2  @0x7d;	/* ART Input Capture Reg.2           */
  210:  
  211:  
  212:  #endif /* _HIWARE_                                                           */
  213:  
  214:  /*** (c) 2003   STMicroelectronics ****************** END OF FILE ************/
