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

📄 io_map.h

📁 基于MC908LK24 MCU的热量表程序
💻 H
📖 第 1 页 / 共 5 页
字号:
  } MergedBits;
} PTESTR;
extern volatile PTESTR _PTE @0x00000008;
#define PTE _PTE.Byte
#define PTE_PTE0 _PTE.Bits.PTE0
#define PTE_PTE1 _PTE.Bits.PTE1
#define PTE_PTE2 _PTE.Bits.PTE2
#define PTE_PTE3 _PTE.Bits.PTE3
#define PTE_PTE4 _PTE.Bits.PTE4
#define PTE_PTE5 _PTE.Bits.PTE5
#define PTE_PTE6 _PTE.Bits.PTE6
#define PTE_PTE7 _PTE.Bits.PTE7
#define PTE_PTE _PTE.MergedBits.grpPTE



/*** DDRE - Data Direction Register E ***/
typedef union {
  byte Byte;
  struct {
    byte DDRE0   :1;                                       /* Data Direction Register E Bit 0 */
    byte DDRE1   :1;                                       /* Data Direction Register E Bit 1 */
    byte DDRE2   :1;                                       /* Data Direction Register E Bit 2 */
    byte DDRE3   :1;                                       /* Data Direction Register E Bit 3 */
    byte DDRE4   :1;                                       /* Data Direction Register E Bit 4 */
    byte DDRE5   :1;                                       /* Data Direction Register E Bit 5 */
    byte DDRE6   :1;                                       /* Data Direction Register E Bit 6 */
    byte DDRE7   :1;                                       /* Data Direction Register E Bit 7 */
  } Bits;
  struct {
    byte grpDDRE :8;
  } MergedBits;
} DDRESTR;
extern volatile DDRESTR _DDRE @0x00000009;
#define DDRE _DDRE.Byte
#define DDRE_DDRE0 _DDRE.Bits.DDRE0
#define DDRE_DDRE1 _DDRE.Bits.DDRE1
#define DDRE_DDRE2 _DDRE.Bits.DDRE2
#define DDRE_DDRE3 _DDRE.Bits.DDRE3
#define DDRE_DDRE4 _DDRE.Bits.DDRE4
#define DDRE_DDRE5 _DDRE.Bits.DDRE5
#define DDRE_DDRE6 _DDRE.Bits.DDRE6
#define DDRE_DDRE7 _DDRE.Bits.DDRE7
#define DDRE_DDRE _DDRE.MergedBits.grpDDRE



/*** PTF - Port F Data Register ***/
typedef union {
  byte Byte;
  struct {
    byte PTF0    :1;                                       /* Port F Data Bit 0 */
    byte PTF1    :1;                                       /* Port F Data Bit 1 */
    byte PTF2    :1;                                       /* Port F Data Bit 2 */
    byte PTF3    :1;                                       /* Port F Data Bit 3 */
    byte PTF4    :1;                                       /* Port F Data Bit 4 */
    byte PTF5    :1;                                       /* Port F Data Bit 5 */
    byte PTF6    :1;                                       /* Port F Data Bit 6 */
    byte PTF7    :1;                                       /* Port F Data Bit 7 */
  } Bits;
  struct {
    byte grpPTF  :8;
  } MergedBits;
} PTFSTR;
extern volatile PTFSTR _PTF @0x0000000A;
#define PTF _PTF.Byte
#define PTF_PTF0 _PTF.Bits.PTF0
#define PTF_PTF1 _PTF.Bits.PTF1
#define PTF_PTF2 _PTF.Bits.PTF2
#define PTF_PTF3 _PTF.Bits.PTF3
#define PTF_PTF4 _PTF.Bits.PTF4
#define PTF_PTF5 _PTF.Bits.PTF5
#define PTF_PTF6 _PTF.Bits.PTF6
#define PTF_PTF7 _PTF.Bits.PTF7
#define PTF_PTF _PTF.MergedBits.grpPTF



/*** DDRF - Data Direction Register F ***/
typedef union {
  byte Byte;
  struct {
    byte DDRF0   :1;                                       /* Data Direction Register F Bit 0 */
    byte DDRF1   :1;                                       /* Data Direction Register F Bit 1 */
    byte DDRF2   :1;                                       /* Data Direction Register F Bit 2 */
    byte DDRF3   :1;                                       /* Data Direction Register F Bit 3 */
    byte DDRF4   :1;                                       /* Data Direction Register F Bit 4 */
    byte DDRF5   :1;                                       /* Data Direction Register F Bit 5 */
    byte DDRF6   :1;                                       /* Data Direction Register F Bit 6 */
    byte DDRF7   :1;                                       /* Data Direction Register F Bit 7 */
  } Bits;
  struct {
    byte grpDDRF :8;
  } MergedBits;
} DDRFSTR;
extern volatile DDRFSTR _DDRF @0x0000000B;
#define DDRF _DDRF.Byte
#define DDRF_DDRF0 _DDRF.Bits.DDRF0
#define DDRF_DDRF1 _DDRF.Bits.DDRF1
#define DDRF_DDRF2 _DDRF.Bits.DDRF2
#define DDRF_DDRF3 _DDRF.Bits.DDRF3
#define DDRF_DDRF4 _DDRF.Bits.DDRF4
#define DDRF_DDRF5 _DDRF.Bits.DDRF5
#define DDRF_DDRF6 _DDRF.Bits.DDRF6
#define DDRF_DDRF7 _DDRF.Bits.DDRF7
#define DDRF_DDRF _DDRF.MergedBits.grpDDRF



/*** LEDB - Port B LED Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte LEDB0   :1;                                       /* Port B LED Drive Enable Bit 0 */
    byte LEDB1   :1;                                       /* Port B LED Drive Enable Bit 1 */
    byte LEDB2   :1;                                       /* Port B LED Drive Enable Bit 2 */
    byte LEDB3   :1;                                       /* Port B LED Drive Enable Bit 3 */
    byte LEDB4   :1;                                       /* Port B LED Drive Enable Bit 4 */
    byte LEDB5   :1;                                       /* Port B LED Drive Enable Bit 5 */
    byte         :1; 
    byte         :1; 
  } Bits;
  struct {
    byte grpLEDB :6;
    byte         :1;
    byte         :1;
  } MergedBits;
} LEDBSTR;
extern volatile LEDBSTR _LEDB @0x0000000C;
#define LEDB _LEDB.Byte
#define LEDB_LEDB0 _LEDB.Bits.LEDB0
#define LEDB_LEDB1 _LEDB.Bits.LEDB1
#define LEDB_LEDB2 _LEDB.Bits.LEDB2
#define LEDB_LEDB3 _LEDB.Bits.LEDB3
#define LEDB_LEDB4 _LEDB.Bits.LEDB4
#define LEDB_LEDB5 _LEDB.Bits.LEDB5
#define LEDB_LEDB _LEDB.MergedBits.grpLEDB



/*** LEDC - Port C LED Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte LEDC0   :1;                                       /* Port C LED Drive Enable Bit 0 */
    byte LEDC1   :1;                                       /* Port C LED Drive Enable Bit 1 */
    byte LEDC2   :1;                                       /* Port C LED Drive Enable Bit 2 */
    byte LEDC3   :1;                                       /* Port C LED Drive Enable Bit 3 */
    byte LEDC4   :1;                                       /* Port C LED Drive Enable Bit 4 */
    byte LEDC5   :1;                                       /* Port C LED Drive Enable Bit 5 */
    byte LEDC6   :1;                                       /* Port C LED Drive Enable Bit 6 */
    byte LEDC7   :1;                                       /* Port C LED Drive Enable Bit 7 */
  } Bits;
  struct {
    byte grpLEDC :8;
  } MergedBits;
} LEDCSTR;
extern volatile LEDCSTR _LEDC @0x0000000D;
#define LEDC _LEDC.Byte
#define LEDC_LEDC0 _LEDC.Bits.LEDC0
#define LEDC_LEDC1 _LEDC.Bits.LEDC1
#define LEDC_LEDC2 _LEDC.Bits.LEDC2
#define LEDC_LEDC3 _LEDC.Bits.LEDC3
#define LEDC_LEDC4 _LEDC.Bits.LEDC4
#define LEDC_LEDC5 _LEDC.Bits.LEDC5
#define LEDC_LEDC6 _LEDC.Bits.LEDC6
#define LEDC_LEDC7 _LEDC.Bits.LEDC7
#define LEDC_LEDC _LEDC.MergedBits.grpLEDC



/*** LEDE - Port E LED Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte LEDE0   :1;                                       /* Port E LED Drive Enable Bit 0 */
    byte LEDE1   :1;                                       /* Port E LED Drive Enable Bit 1 */
    byte LEDE2   :1;                                       /* Port E LED Drive Enable Bit 2 */
    byte LEDE3   :1;                                       /* Port E LED Drive Enable Bit 3 */
    byte LEDE4   :1;                                       /* Port E LED Drive Enable Bit 4 */
    byte LEDE5   :1;                                       /* Port E LED Drive Enable Bit 5 */
    byte LEDE6   :1;                                       /* Port E LED Drive Enable Bit 6 */
    byte LEDE7   :1;                                       /* Port E LED Drive Enable Bit 7 */
  } Bits;
  struct {
    byte grpLEDE :8;
  } MergedBits;
} LEDESTR;
extern volatile LEDESTR _LEDE @0x0000000E;
#define LEDE _LEDE.Byte
#define LEDE_LEDE0 _LEDE.Bits.LEDE0
#define LEDE_LEDE1 _LEDE.Bits.LEDE1
#define LEDE_LEDE2 _LEDE.Bits.LEDE2
#define LEDE_LEDE3 _LEDE.Bits.LEDE3
#define LEDE_LEDE4 _LEDE.Bits.LEDE4
#define LEDE_LEDE5 _LEDE.Bits.LEDE5
#define LEDE_LEDE6 _LEDE.Bits.LEDE6
#define LEDE_LEDE7 _LEDE.Bits.LEDE7
#define LEDE_LEDE _LEDE.MergedBits.grpLEDE



/*** LEDF - Port F LED Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte LEDF0   :1;                                       /* Port F LED Drive Enable Bit 0 */
    byte LEDF1   :1;                                       /* Port F LED Drive Enable Bit 1 */
    byte LEDF2   :1;                                       /* Port F LED Drive Enable Bit 2 */
    byte LEDF3   :1;                                       /* Port F LED Drive Enable Bit 3 */
    byte LEDF4   :1;                                       /* Port F LED Drive Enable Bit 4 */
    byte LEDF5   :1;                                       /* Port F LED Drive Enable Bit 5 */
    byte LEDF6   :1;                                       /* Port F LED Drive Enable Bit 6 */
    byte LEDF7   :1;                                       /* Port F LED Drive Enable Bit 7 */
  } Bits;
  struct {
    byte grpLEDF :8;
  } MergedBits;
} LEDFSTR;
extern volatile LEDFSTR _LEDF @0x0000000F;
#define LEDF _LEDF.Byte
#define LEDF_LEDF0 _LEDF.Bits.LEDF0
#define LEDF_LEDF1 _LEDF.Bits.LEDF1
#define LEDF_LEDF2 _LEDF.Bits.LEDF2
#define LEDF_LEDF3 _LEDF.Bits.LEDF3
#define LEDF_LEDF4 _LEDF.Bits.LEDF4
#define LEDF_LEDF5 _LEDF.Bits.LEDF5
#define LEDF_LEDF6 _LEDF.Bits.LEDF6
#define LEDF_LEDF7 _LEDF.Bits.LEDF7
#define LEDF_LEDF _LEDF.MergedBits.grpLEDF



/*** SPCR - SPI Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte SPTIE   :1;                                       /* SPI Transmit Interrupt Enable Bit */
    byte SPE     :1;                                       /* SPI Enable Bit */
    byte SPWOM   :1;                                       /* SPI Wired-OR Mode Bit */
    byte CPHA    :1;                                       /* Clock Phase Bit */
    byte CPOL    :1;                                       /* Clock Polarity Bit */
    byte SPMSTR  :1;                                       /* SPI Master Bit */
    byte         :1; 
    byte SPRIE   :1;                                       /* SPI Receiver Interrupt Enable Bit */
  } Bits;
} SPCRSTR;
extern volatile SPCRSTR _SPCR @0x00000010;
#define SPCR _SPCR.Byte
#define SPCR_SPTIE _SPCR.Bits.SPTIE
#define SPCR_SPE _SPCR.Bits.SPE
#define SPCR_SPWOM _SPCR.Bits.SPWOM
#define SPCR_CPHA _SPCR.Bits.CPHA
#define SPCR_CPOL _SPCR.Bits.CPOL
#define SPCR_SPMSTR _SPCR.Bits.SPMSTR
#define SPCR_SPRIE _SPCR.Bits.SPRIE



/*** SPSCR - SPI Status and Control Register ***/
typedef union {
  byte Byte;
  struct {
    byte SPR0    :1;                                       /* SPI Baud Rate Select Bit 0 */
    byte SPR1    :1;                                       /* SPI Baud Rate Select Bit 1 */
    byte MODFEN  :1;                                       /* Mode Fault Enable Bit */
    byte SPTE    :1;                                       /* SPI Transmitter Empty Bit */
    byte MODF    :1;                                       /* Mode Fault Bit */
    byte OVRF    :1;                                       /* Overflow Bit */
    byte ERRIE   :1;                                       /* Error Interrupt Enable Bit */
    byte SPRF    :1;                                       /* SPI Receiver Full Bit */
  } Bits;
  struct {
    byte grpSPR  :2;
    byte         :1;
    byte         :1;
    byte         :1;
    byte         :1;
    byte         :1;
    byte         :1;
  } MergedBits;
} SPSCRSTR;
extern volatile SPSCRSTR _SPSCR @0x00000011;
#define SPSCR _SPSCR.Byte
#define SPSCR_SPR0 _SPSCR.Bits.SPR0
#define SPSCR_SPR1 _SPSCR.Bits.SPR1
#define SPSCR_MODFEN _SPSCR.Bits.MODFEN
#define SPSCR_SPTE _SPSCR.Bits.SPTE
#define SPSCR_MODF _SPSCR.Bits.MODF
#define SPSCR_OVRF _SPSCR.Bits.OVRF
#define SPSCR_ERRIE _SPSCR.Bits.ERRIE
#define SPSCR_SPRF _SPSCR.Bits.SPRF
#define SPSCR_SPR _SPSCR.MergedBits.grpSPR



/*** SPDR - SPI Data Register ***/
typedef union {
  byte Byte;
  struct {
    byte R0_T0   :1;                                       /* Receive/Transmit Data Bit 0 */
    byte R1_T1   :1;                                       /* Receive/Transmit Data Bit 1 */
    byte R2_T2   :1;                                       /* Receive/Transmit Data Bit 2 */
    byte R3_T3   :1;                                       /* Receive/Transmit Data Bit 3 */
    byte R4_T4   :1;                                       /* Receive/Transmit Data Bit 4 */
    byte R5_T5   :1;                                       /* Receive/Transmit Data Bit 5 */
    byte R6_T6   :1;                                       /* Receive/Transmit Data Bit 6 */
    byte R7_T7   :1;                                       /* Receive/Transmit Data Bit 7 */
  } Bits;
} SPDRSTR;
extern volatile SPDRSTR _SPDR @0x00000012;
#define SPDR _SPDR.Byte
#define SPDR_R0_T0 _SPDR.Bits.R0_T0
#define SPDR_R1_T1 _SPDR.Bits.R1_T1
#define SPDR_R2_T2 _SPDR.Bits.R2_T2
#define SPDR_R3_T3 _SPDR.Bits.R3_T3
#define SPDR_R4_T4 _SPDR.Bits.R4_T4
#define SPDR_R5_T5 _SPDR.Bits.R5_T5
#define SPDR_R6_T6 _SPDR.Bits.R6_T6
#define SPDR_R7_T7 _SPDR.Bits.R7_T7

⌨️ 快捷键说明

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