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

📄 st7flite3_reg.c

📁 很有用的st单片机应用程序
💻 C
字号:
/*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st72FLITE3_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 c files for peripherals of
 st72FLITE3.

********************************Revision History********************************
_______________________________________________________________________________
Date :23/09/2003           Release:2.0 
      17/05/2004           Release:2.1
                           1.Added address information for all registers
                           2.Added 12 bit registers definition
                           3.Removed #pragma  
Date :2/06/2004            1.Address information added for metrowerks registers
____________________________________________________________________________  */

#include "ST7lib_config.h"
#ifdef _HIWARE_

/* IO Ports Hardware Registers */
/* Port A Registers */

volatile unsigned char PADR @0x00;                    /* PORT A data register */ 
volatile unsigned char PADDR @0x01;                  /*Data direction register*/
volatile unsigned char PAOR @0x02;                  /* PORT A option register */
/* Port B Registers */
volatile unsigned char PBDR @0x03;                    /* PORT B data register */          
volatile unsigned char PBDDR @0x04;                 /*Data direction register */
volatile unsigned char PBOR @0x05;                  /* PORT B option register */

/* LITE TIMER 2 HARDWARE REGISTERS */
volatile unsigned char LTCSR2 @0x08;             /*Control and stats register2*/ 
volatile unsigned char LTARR @0x09;                   /* Auto-Reload Register */
volatile unsigned char LTCNTR @0x0A;                      /* Counter Register */
volatile unsigned char LTCSR1 @0x0B;            /*Control and stats register 1*/
volatile unsigned char LTICR @0x0C;                 /* Input capture register */
    
    
/* LART HARDWARE REGISTERS */
volatile unsigned char ATCSR @0x0D;              /* Control/Status Register   */
volatile unsigned int CNTR   @0x0E;              /* Counter Register 1        */
volatile unsigned char CNTR1H @0x0E;              /* Counter Register 1 High  */
volatile unsigned char CNTR1L @0x0F;              /* Counter Register 1 Low   */
volatile unsigned int ATR1    @0x10;              /* Autoreload Register 1    */
volatile unsigned char ATR1H @0x10;              /* Autoreload Register 1 High*/
volatile unsigned char ATR1L @0x11;               /* Autoreload Register1 Low */
volatile unsigned char PWMCR @0x12;              /* PWM Output control Reg    */
volatile unsigned char PWM0CSR @0x13;             /*PWM0 Output control/Status*/ 
volatile unsigned char PWM1CSR @0x14;             /*PWM1 Output control/Status*/
volatile unsigned char PWM2CSR @0x15;             /*PWM2 Output control/Status*/
volatile unsigned char PWM3CSR @0x16;             /*PWM3 Output control/Status*/
volatile unsigned int DCR0   @0x17;              /*PWM0 Duty Cycle Register   */
volatile unsigned char DCR0H @0x17;              /*PWM0 Duty Cycle HRegister  */
volatile unsigned char DCR0L @0x18;              /* PWM Duty Cycle LRegister  */
volatile unsigned int DCR1   @0x19;              /*PWM1 Duty Cycle Register   */    
volatile unsigned char DCR1H @0x19;             /*PWM 1 Duty Cycle HRegister  */
volatile unsigned char DCR1L @0x1A;             /*PWM 1 Duty Cycle LRegister  */
volatile unsigned int DCR2   @0x1B;              /*PWM2 Duty Cycle Register   */
volatile unsigned char DCR2H @0x1B;             /*PWM 2 Duty Cycle HRegister  */ 
volatile unsigned char DCR2L @0x1C;             /*PWM 2 Duty Cycle LRegister  */
volatile unsigned int DCR3   @0x1D;              /*PWM3 Duty Cycle Register   */
volatile unsigned char DCR3H @0x1D;             /*PWM 3 Duty Cycle HRegister  */ 
volatile unsigned char DCR3L @0x1E;             /*PWM 3 Duty Cycle LRegister  */ 
volatile unsigned int ATICR @0x1F;               /*Input Capture Register     */
volatile unsigned char ATICRH @0x1F;             /*Input Capture Register High*/
volatile unsigned char ATICRL @0x20;              /*Input Capture Register Low*/
volatile unsigned char ATCSR2 @0x21;             /* Timer Control Register 2  */
volatile unsigned char BREAKCR @0x22;               /* Break Control Register */
volatile unsigned int ATR2   @0x23;              /*Autoreload Register        */
volatile unsigned char ATR2H @0x23;             /* Auto-Reload Register 2 High*/
volatile unsigned char ATR2L @0x24;             /* Auto-Reload Register 2 Low */
volatile unsigned char DTGR @0x25;              /*Dead Time Generator Register*/
          
/* Watchdog Hardware registers */
volatile unsigned char WDGCR @0x2E;              /* Watchdog Control Register */

/* FLASH Hardware Register */
volatile unsigned char FCSR @0x2F;            /* Flash Control/Status Register*/
    
/* EEPROM Hardware Registers */  
volatile unsigned char EECSR @0x30;            /*EEPROM Control/Stats Register*/

/* SPI HARDWARE REGISTERS */
volatile unsigned char SPIDR @0x31;                     /* SPI Data register  */
volatile unsigned char SPICR @0x32;                  /* SPI Control register  */
volatile unsigned char SPICSR @0x33;                  /* SPI Status register  */
     
/* ADC HARDWARE REGISTERS */
volatile unsigned char ADCCSR @0x34;            /*ADC control & stats register*/
volatile unsigned char ADCDRH @0x35;             /* Data Register High        */
volatile unsigned char ADCDRL @0x36;             /* Data Register Low         */
    
/* ITC HARDWARE RREGISTERS */
volatile unsigned char EICR @0x37;              /*External Interrupt Register */ 

/* MCC HARDWARE REGISTERS */
volatile unsigned char MCCSR @0x38;            /* MCC Control/Status Register */
    
/* CLK HARDWARE REGISTERS */
volatile unsigned char RCCR @0x39;            /*RC Oscillator Control Register*/
volatile unsigned char SICSR @0x3A;
                                    /*System Integrity Control/Status register*/
    
/* ITC HARDWARE REGISTERS */
volatile unsigned char EISR @0x3C;
                                      /*External Interrupt Selection Register */

/* SCI Hardware Registers */
volatile unsigned char SCISR @0x40;                        /* Status Register */
volatile unsigned char SCIDR @0x41;                          /* Data Register */
volatile unsigned char SCIBRR @0x42;                    /* Baud Rate Register */
volatile unsigned char SCICR1 @0x43;                    /* Control Register 1 */
volatile unsigned char SCICR2 @0x44;                    /* Control Register 2 */
volatile unsigned char SCICR3 @0x45;                    /* Control Register 3 */
volatile unsigned char SCIERPR @0x46;        /*Extended Receive Prescaler Reg */
volatile unsigned char SCIETPR @0x47;        /*Extended TransmitPrescaler Reg */
           
/* AWU HARDWARE REGISTERS */    
volatile unsigned char AWUPR @0x49;                  /* AWU Prscaler Register */
volatile unsigned char AWUCSR @0x4A;            /*AWU Control/Status Register */

/* DM HARDWARE REGISTERS */
volatile unsigned char DMCR @0x4B;                     /* DM Control Register */
volatile unsigned char DMSR @0x4C;                      /* DM Status Register */
volatile unsigned char DMBK1H @0x4D;            /*DM Breakpoint register1 High*/
volatile unsigned char DMBK1L @0x4E;             /*DM Breakpoint register1 Low*/
volatile unsigned char DMBK2H @0x4F;            /*DM Breakpoint register2 High*/          
volatile unsigned char DMBK2L @0x50;            /*DM Breakpoint register 2 Low*/

#endif /* _HIWARE_ */

⌨️ 快捷键说明

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