/******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st72f521_reg.c
Group            : IPSW,CMG - IPDF
Author           : MCD Application Team
Date First Issued: 23/09/2003
********************************Documentation**********************************
General Purpose - This file contains all the hardware registers of ST72F521

********************************Revision History*******************************
_______________________________________________________________________________
Date :23/09/2003                  Release:2.0
      02/06/2004                  Release:2.1
                1.Added register address information          
                2.Removed #pragma
______________________________________________________________________________

******************************************************************************/

#include "ST7lib_config.h"

/******************************************************************************
 Peripherals Registers Definition
******************************************************************************/
#ifdef _HIWARE_                                                                  

/* IO Ports Hardware Registers                                               */  
/* PORT A register                                                           */
 volatile unsigned char PADR    @0x00;	     /* PORT A data Register         */
 volatile unsigned char PADDR   @0x01;      /* Data direction register       */
 volatile unsigned char PAOR    @0x02;	          /* Option register         */

/* PORT B register                                                           */
 volatile unsigned char PBDR    @0x03;	     /* PORT B data Register         */
 volatile unsigned char PBDDR   @0x04;      /* Data direction register       */
 volatile unsigned char PBOR    @0x05;	          /* Option register         */

/* PORT C register                                                           */
 volatile unsigned char PCDR    @0x06;	     /* PORT C data Register         */
 volatile unsigned char PCDDR   @0x07;      /* Data direction register       */
 volatile unsigned char PCOR    @0x08;	          /* Option register         */

/* PORT D register                                                           */
 volatile unsigned char PDDR    @0x09;	     /* PORT D data Register         */
 volatile unsigned char PDDDR   @0x0A;      /* Data direction register       */
 volatile unsigned char PDOR    @0x0B;	          /* Option register         */

/* PORT E register                                                           */
 volatile unsigned char PEDR    @0x0C;	     /* PORT E data Register         */
 volatile unsigned char PEDDR   @0x0D;      /* Data direction register       */
 volatile unsigned char PEOR    @0x0E;	          /* Option register         */

/* PORT F register                                                           */
 volatile unsigned char PFDR    @0x0F;	     /* PORT F data Register         */
 volatile unsigned char PFDDR   @0x10;      /* Data direction register       */
 volatile unsigned char PFOR    @0x11;	          /* Option register         */

/* PORT G register                                                           */
 volatile unsigned char PGDR    @0x12;	     /* PORT G data Register         */
 volatile unsigned char PGDDR   @0x13;      /* Data direction register       */
 volatile unsigned char PGOR    @0x14;	          /* Option register         */

/* PORT H register                                                           */
 volatile unsigned char PHDR    @0x15;	     /* PORT H data Register         */
 volatile unsigned char PHDDR   @0x16;      /* Data direction register       */
 volatile unsigned char PHOR    @0x17;	          /* Option register         */

/* I2C Hardware Registers                                                    */ 

 volatile unsigned char I2CCR     @0x18;       /* I2C control register       */
 volatile unsigned char I2CSR1    @0x19;       /* I2C status register1       */
 volatile unsigned char I2CSR2    @0x1A;       /* I2C status register2       */
 volatile unsigned char I2CCCR    @0x1B; /* I2C clock control register       */
 volatile unsigned char I2COAR1   @0x1C;  /* I2C own address register1       */
 volatile unsigned char I2COAR2   @0x1D;  /* I2C own address register2       */ 
 volatile unsigned char I2CDR     @0x1E;          /* I2C data register       */

/* SPI Hardware Registers                                                    */


 volatile unsigned char SPIDR   @0x21;            /* SPI Data Register       */
 volatile unsigned char SPICR   @0x22;         /* SPI Control Register       */
 volatile unsigned char SPICSR  @0x23;          /* SPI Status Register       */

/*ITC Hardware registers                                                     */

 volatile unsigned char ITSPR0 @0x24; /*Interrupt Software Priority Register0*/
 volatile unsigned char ITSPR1 @0x25; /*Interrupt Software Priority Register1*/ 
 volatile unsigned char ITSPR2 @0x26; /*Interrupt Software Priority Register2*/ 
 volatile unsigned char ITSPR3 @0x27; /*Interrupt Software Priority Register3*/ 
 volatile unsigned char EICR   @0x28;   /*External Interrupt Control Register*/ 

/*FLASH Memory                                                               */

 volatile unsigned char FLASH_REG @0x29;     /*FLASH register                */
/* WDG Hardware registers                                                    */ 
 volatile unsigned char WDGCR   @0x2a;	/* WDG Control Register              */  

/*SICSR  register                                                            */
 volatile unsigned char SICSR_REG @0x2b;

/* MCC Hardware Registers                                                    */
 volatile unsigned char MCCSR   @0x2C;   /* MCC Control/Status Register      */
 volatile unsigned char MCCBCR  @0x2D;     /* MCC beep control Register      */

/* Timer Hardware Registers                                                  */
/* TIMER A section                                                           */ 
 volatile unsigned char TACR2   @0x31;	/* Control Register 2                */
 volatile unsigned char TACR1   @0x32;	/* Control Register 1                */
 volatile unsigned char TACSR   @0x33;	/* Status Register                   */
 volatile unsigned char TAIC1HR @0x34;	/* Input Capture 1 High              */
 volatile unsigned char TAIC1LR @0x35;	/* Input Capture 1 Low               */
 volatile unsigned char TAOC1HR @0x36;	/* Output Compare 1 High             */
 volatile unsigned char TAOC1LR @0x37;	/* Output Compare 1 Low              */
 volatile unsigned char TACHR   @0x38;	/* Counter High                      */
 volatile unsigned char TACLR   @0x39;	/* Counter Low                       */
 volatile unsigned char TAACHR  @0x3a;	/* Alternate Counter High            */
 volatile unsigned char TAACLR  @0x3b;	/* Alternate Counter Low             */
 volatile unsigned char TAIC2HR @0x3c;	/* Input Capture 2 High              */
 volatile unsigned char TAIC2LR @0x3d;	/* Input Capture 2 Low               */
 volatile unsigned char TAOC2HR @0x3e;	/* Output Compare 2 High             */
 volatile unsigned char TAOC2LR @0x3f;	/* Output Compare 2 Low              */


/* 16 bit timer A register                                                   */
 volatile unsigned int  TAIC1R  @0x34;	/* Input Capture 1 Register          */
 volatile unsigned int  TAOC1R  @0x36;	/* Output Compare 1 Register         */
 volatile unsigned int  TACR    @0x38;	/* Counter Register                  */
 volatile unsigned int  TAACR   @0x3a;	/* Alternate Counter Register        */
 volatile unsigned int  TAIC2R  @0x3c;	/* Input Capture 2 Register          */
 volatile unsigned int  TAOC2R  @0x3e;	/* Output Compare 2 Register         */

/*    TIMER B section                                                        */
 volatile unsigned char TBCR2   @0x41;	/* Control Register 2                */
 volatile unsigned char TBCR1   @0x42;	/* Control Register 1                */
 volatile unsigned char TBCSR   @0x43;	/* Status Register                   */
 volatile unsigned char TBIC1HR @0x44;	/* Input Capture 1 High              */
 volatile unsigned char TBIC1LR @0x45;	/* Input Capture 1 Low               */
 volatile unsigned char TBOC1HR @0x46;	/* Output Compare 1 High             */
 volatile unsigned char TBOC1LR @0x47;	/* Output Compare 1 Low              */
 volatile unsigned char TBCHR   @0x48;	/* Counter High                      */
 volatile unsigned char TBCLR   @0x49;	/* Counter Low                       */
 volatile unsigned char TBACHR  @0x4a;	/* Alternate Counter High            */
 volatile unsigned char TBACLR  @0x4b;	/* Alternate Counter Low             */
 volatile unsigned char TBIC2HR @0x4c;	/* Input Capture 2 High              */
 volatile unsigned char TBIC2LR @0x4d;	/* Input Capture 2 Low               */
 volatile unsigned char TBOC2HR @0x4e;	/* Output Compare 2 High             */
 volatile unsigned char TBOC2LR @0x4f;	/* Output Compare 2 Low              */
/* 16 bit timer B register                                                   */
 volatile unsigned int  TBIC1R  @0x44;	/* Input Capture 1 Register          */
 volatile unsigned int  TBOC1R  @0x46;	/* Output Compare 1 Register         */
 volatile unsigned int  TBCR    @0x48;	/* Counter Register                  */
 volatile unsigned int  TBACR   @0x4a;	/* Alternate Counter Register        */
 volatile unsigned int  TBIC2R  @0x4c;	/* Input Capture 2 Register          */
 volatile unsigned int  TBOC2R  @0x4e;	/* Output Compare 2 Register         */

/*SCI Hardware registers                                                     */
 volatile unsigned char SCISR  @0x50;
 volatile unsigned char SCIDR  @0x51; 
 volatile unsigned char SCIBRR @0x52;
 volatile unsigned char SCICR1 @0x53;
 volatile unsigned char SCICR2 @0x54; 
 volatile unsigned char SCIERPR @0x55;
 volatile unsigned char Res @0x56;
 volatile unsigned char SCIETPR @0x57; 

/* CAN Hardware registers */
 volatile unsigned char CANISR @0x5A;   /* CAN Interrupt Status Register     */
 volatile unsigned char CANICR @0x5B;   /* CAN Interrupt Control Register    */
 volatile unsigned char CANCSR @0x5C;     /* CAN Control/Status Register     */
 volatile unsigned char CANBRPR @0x5D;   /*  Baudrate Prescaler Register     */
 volatile unsigned char CANBTR @0x5E;         /* CAN Bit Timing Register     */
 volatile unsigned char CANPSR @0x5F;     /* CAN Page Selection Register     */

/* Actve CAN register                                                        */
 volatile unsigned char PAGE0 @0x60;   
 volatile unsigned char PAGE1 @0x61;
 volatile unsigned char PAGE2 @0x62;
 volatile unsigned char PAGE3 @0x63;
 volatile unsigned char PAGE4 @0x64;   
 volatile unsigned char PAGE5 @0x65;
 volatile unsigned char PAGE6 @0x66;
 volatile unsigned char PAGE7 @0x67;
 volatile unsigned char PAGE8 @0x68;   
 volatile unsigned char PAGE9 @0x69;
 volatile unsigned char PAGEA @0x6A;
 volatile unsigned char PAGEB @0x6B;
 volatile unsigned char PAGEC @0x6C;   
 volatile unsigned char PAGED @0x6D;
 volatile unsigned char PAGEE @0x6E;
 volatile unsigned char PAGEF @0x6F;

/* ADC Hardware Registers                                                    */
 volatile unsigned char ADCDRH  @0x71;              /* ADC data register     */
 volatile unsigned char ADCDRL  @0x72;              /* ADC data register     */
 volatile unsigned char ADCCSR  @0x70;   /* ADC control & staus register     */

/* PWMART Hardware Registers                                                 */
 volatile unsigned char PWMDCR3  @0x73;	/* PWM Duty Cycle Register 3         */
 volatile unsigned char PWMDCR2  @0x74;	/* PWM Duty Cycle Register 2         */
 volatile unsigned char PWMDCR1  @0x75;	/* PWM Duty Cycle Register 1         */
 volatile unsigned char PWMDCR0  @0x76;	/* PWM Duty Cycle Register 0         */
 volatile unsigned char PWMCR    @0x77;	/* PWM Control Register              */
 volatile unsigned char ARTCSR   @0x78;	/* ART Control/Status Reg.           */
 volatile unsigned char ARTCAR   @0x79;	/* ART Counter Access Reg.           */
 volatile unsigned char ARTARR   @0x7a;	/* ART Auto Reload Register          */
 volatile unsigned char ARTICCSR @0x7b;	/* ART ICAP Control/Status           */
 volatile unsigned char ARTICR1  @0x7c;	/* ART Input Capture Reg.1           */
 volatile unsigned char ARTICR2  @0x7d;	/* ART Input Capture Reg.2           */


#endif /* _HIWARE_                                                           */

/*** (c) 2003   STMicroelectronics ****************** END OF FILE ************/