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

********************************Revision History*******************************
_______________________________________________________________________________
Date :23/09/2003                  Release:2.0
      02/06/2004                  Release:2.1
                 1.Changed 16 bit registers to extern and declared in reg.c
                 2.Removed #pragma 
                 3.Added address information to avoid long address in 
                   metrowerks long memory model
******************************************************************************/
#ifndef ST72F521_REG_H
#define ST72F521_REG_H 

#include "ST7lib_config.h"

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

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

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

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

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

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

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

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

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

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

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

/*ITC Hardware registers                                                     */
extern volatile unsigned char ITSPR0 @0x24; /*Interrupt Software Priority Reg0*/
extern volatile unsigned char ITSPR1 @0x25; /*Interrupt Software Priority Reg1*/ 
extern volatile unsigned char ITSPR2 @0x26; /*Interrupt Software Priority Reg2*/ 
extern volatile unsigned char ITSPR3 @0x27; /*Interrupt Software Priority Reg3*/ 
extern volatile unsigned char EICR   @0x28; /*External Interrupt Control Reg */ 

/*FLASH Memory                                                               */
extern volatile unsigned char FLASH_REG @0x29;     /*FLASH register          */

/* WDG Hardware registers                                                    */ 
extern volatile unsigned char WDGCR   @0x2a;	/* WDG Control Register      */  

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

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

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


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

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

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

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

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

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

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

#endif  /* _HIWARE_                                                          */

#ifdef _COSMIC_
           
/* IO Ports Hardware Registers                                               */  

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

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

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

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

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

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

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

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

/* I2C Hardware Registers                                                    */ 

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

/* SPI Hardware Registers                                                    */


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

/*ITC Hardware registers                                                     */

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

/*FLASH Memory                                                               */

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

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

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

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


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

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

/* 16 bit timer B register                                                   */
@tiny volatile	unsigned int  TBIC1R  @0x44;	/* Input Capture 1 Register  */
@tiny volatile	unsigned int  TBOC1R  @0x46;	/* Output Compare 1 Register */
@tiny volatile	unsigned int  TBCR    @0x48;	/* Counter Register          */
@tiny volatile	unsigned int  TBACR   @0x4a;	/* Alternate Counter Register*/
@tiny volatile	unsigned int  TBIC2R  @0x4c;	/* Input Capture 2 Register  */
@tiny volatile	unsigned int  TBOC2R  @0x4e;	/* Output Compare 2 Register */

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

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

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

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

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

#endif /* _COSMIC_                                                           */

#ifdef _RAISONANCE_ 

/* IO Ports Hardware Registers                                               */  
/* PORT A register                                                           */
at 0x00 hreg PADR    ;	     /* PORT A data Register */
at 0x01 hreg PADDR   ;      /* Data direction register */
at 0x02 hreg PAOR    ;	          /* Option register */

/* PORT B register                                                           */
at 0x03 hreg PBDR    ;	     /* PORT B data Register */
at 0x04 hreg PBDDR   ;      /* Data direction register */
at 0x05 hreg PBOR    ;	          /* Option register */

/* PORT C register                                                           */
at 0x06 hreg PCDR    ;	     /* PORT C data Register */
at 0x07 hreg PCDDR   ;      /* Data direction register */
at 0x08 hreg PCOR    ;	          /* Option register */

/* PORT D register                                                           */
at 0x09 hreg PDDR    ;	     /* PORT D data Register */
at 0x0A hreg PDDDR   ;      /* Data direction register */
at 0x0B hreg PDOR    ;	          /* Option register */

/* PORT E register                                                           */
at 0x0C hreg PEDR    ;	     /* PORT E data Register */
at 0x0D hreg PEDDR   ;      /* Data direction register */
at 0x0E hreg PEOR    ;	          /* Option register */

/* PORT F register                                                           */
at 0x0F hreg PFDR    ;	     /* PORT F data Register */
at 0x10 hreg PFDDR   ;      /* Data direction register */
at 0x11 hreg PFOR    ;	          /* Option register */

/* PORT G register                                                           */
at 0x12 hreg PGDR    ;	     /* PORT G data Register */
at 0x13 hreg PGDDR   ;      /* Data direction register */
at 0x14 hreg PGOR    ;	          /* Option register */

/* PORT H register                                                           */
at 0x15 hreg PHDR    ;	     /* PORT H data Register */
at 0x16 hreg PHDDR   ;      /* Data direction register */
at 0x17 hreg PHOR    ;	          /* Option register */

/* I2C Hardware Registers                                                    */ 
at 0x18 hreg I2CCR     ;       /* I2C control register */
at 0x19 hreg I2CSR1    ;       /* I2C status register1 */
at 0x1A hreg I2CSR2    ;       /* I2C status register2 */
at 0x1B hreg I2CCCR    ; /* I2C clock control register */
at 0x1C hreg I2COAR1   ;  /* I2C own address register1 */
at 0x1D hreg I2COAR2   ;  /* I2C own address register2 */ 
at 0x1E hreg I2CDR     ;          /* I2C data register */

/* SPI Hardware Registers                                                    */
at 0x21 hreg SPIDR   ;            /* SPI Data Register */
at 0x22 hreg SPICR   ;         /* SPI Control Register */
at 0x23 hreg SPICSR  ;          /* SPI Status Register */

/*ITC Hardware registers                                                     */
at 0x24 hreg ITSPR0 ; /*Interrupt Software Priority Reg0*/
at 0x25 hreg ITSPR1 ; /*Interrupt Software Priority Reg1*/ 
at 0x26 hreg ITSPR2 ; /*Interrupt Software Priority Reg2*/ 
at 0x27 hreg ITSPR3 ; /*Interrupt Software Priority Reg3*/ 
at 0x28 hreg EICR   ; /*hreg16errupt Control Reg */ 

/*FLASH Memory                                                               */
at 0x29 hreg FLASH_REG ;     /*FLASH register          */

/* WDG Hardware registers                                                    */ 
at 0x2a hreg WDGCR   ;	/* WDG Control Register      */  

/*SICSR  register                                                            */
at 0x2b hreg SICSR_REG ;

/* MCC Hardware Registers                                                    */
at 0x2C hreg MCCSR   ;   /* MCC Control/Status Register*/
at 0x2D hreg MCCBCR  ;     /* MCC beep control Register*/

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


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

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

/*SCI Hardware registers                                                     */
at 0x50 hreg SCISR  ;
at 0x51 hreg SCIDR  ; 
at 0x52 hreg SCIBRR ;
at 0x53 hreg SCICR1 ;
at 0x54 hreg SCICR2 ; 
at 0x55 hreg SCIERPR ;
at 0x56 hreg Res ;
at 0x57 hreg SCIETPR ; 

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

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

/* ADC Hardware Registers                                                    */
at 0x71 hreg ADCDRH  ;            /* ADC data register */
at 0x72 hreg ADCDRL  ;            /* ADC data register */
at 0x70 hreg ADCCSR  ; /* ADC control & staus register */

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

#endif  /* _RAISONANCE_                                                      */

#endif /* ST72F521_REG_H                                                     */                                   

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