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

📄 gp32c.h

📁 项目是为日本瑞萨工作所做的BAKE炉温控系统 整个文件夹包括设计文档
💻 H
📖 第 1 页 / 共 2 页
字号:
//[GP32C.h]MC68HC908GP32 MCU映像寄存器名定义--------------------------------#ifndef GP32C_H#define GP32C_H//通用I/O口//A口数据寄存器及位定义typedef union {  unsigned char Byte;  struct {    int PTA_0      :1;  /* Port A数据Bit 0 */    int PTA_1      :1;  /* Port A数据Bit 1 */    int PTA_2      :1;  /* Port A数据Bit 2 */    int PTA_3      :1;  /* Port A数据Bit 3 */    int PTA_4      :1;  /* Port A数据Bit 4 */    int PTA_5      :1;  /* Port A数据Bit 5 */    int PTA_6      :1;  /* Port A数据Bit 6 */    int PTA_7      :1;  /* Port A数据Bit 7 */  } Bits; }PTASTR;#define _PTA	 (*(volatile PTASTR *)0x00)#define PTA      _PTA.Byte#define PTA0     _PTA.Bits.PTA_0#define PTA1     _PTA.Bits.PTA_1#define PTA2     _PTA.Bits.PTA_2#define PTA3     _PTA.Bits.PTA_3#define PTA4     _PTA.Bits.PTA_4#define PTA5     _PTA.Bits.PTA_5#define PTA6     _PTA.Bits.PTA_6#define PTA7     _PTA.Bits.PTA_7//B口数据寄存器及位定义typedef union {  unsigned char Byte;  struct {    int PTB_0      :1;  /* Port B数据Bit 0 */    int PTB_1      :1;  /* Port B数据Bit 1 */    int PTB_2      :1;  /* Port B数据Bit 2 */    int PTB_3      :1;  /* Port B数据Bit 3 */    int PTB_4      :1;  /* Port B数据Bit 4 */    int PTB_5      :1;  /* Port B数据Bit 5 */    int PTB_6      :1;  /* Port B数据Bit 6 */    int PTB_7      :1;  /* Port B数据Bit 7 */  } Bits; }PTBSTR;#define _PTB	 (*(volatile PTBSTR *)0x01)#define PTB      _PTB.Byte#define PTB0     _PTB.Bits.PTB_0#define PTB1     _PTB.Bits.PTB_1#define PTB2     _PTB.Bits.PTB_2#define PTB3     _PTB.Bits.PTB_3#define PTB4     _PTB.Bits.PTB_4#define PTB5     _PTB.Bits.PTB_5#define PTB6     _PTB.Bits.PTB_6#define PTB7     _PTB.Bits.PTB_7//C口数据寄存器及位定义typedef union {  unsigned char Byte;  struct {    int PTC_0      :1;  /* Port C数据Bit 0 */    int PTC_1      :1;  /* Port C数据Bit 1 */    int PTC_2      :1;  /* Port C数据Bit 2 */    int PTC_3      :1;  /* Port C数据Bit 3 */    int PTC_4      :1;  /* Port C数据Bit 4 */    int PTC_5      :1;  /* Port C数据Bit 5 */    int PTC_6      :1;  /* Port C数据Bit 6 */    int PTC_7      :1;  /* Port C数据Bit 7 */  } Bits; }PTCSTR;#define _PTC	 (*(volatile PTCSTR *)0x02)#define PTC      _PTC.Byte#define PTC0     _PTC.Bits.PTC_0#define PTC1     _PTC.Bits.PTC_1#define PTC2     _PTC.Bits.PTC_2#define PTC3     _PTC.Bits.PTC_3#define PTC4     _PTC.Bits.PTC_4#define PTC5     _PTC.Bits.PTC_5#define PTC6     _PTC.Bits.PTC_6#define PTC7     _PTC.Bits.PTC_7 //D口数据寄存器及位定义typedef union {  unsigned char Byte;  struct {    int PTD_0      :1;  /* Port D数据Bit 0 */    int PTD_1      :1;  /* Port D数据Bit 1 */    int PTD_2      :1;  /* Port D数据Bit 2 */    int PTD_3      :1;  /* Port D数据Bit 3 */    int PTD_4      :1;  /* Port D数据Bit 4 */    int PTD_5      :1;  /* Port D数据Bit 5 */    int PTD_6      :1;  /* Port D数据Bit 6 */    int PTD_7      :1;  /* Port D数据Bit 7 */  } Bits; }PTDSTR;#define _PTD	 (*(volatile PTDSTR *)0x03)#define PTD      _PTD.Byte#define PTD0     _PTD.Bits.PTD_0#define PTD1     _PTD.Bits.PTD_1#define PTD2     _PTD.Bits.PTD_2#define PTD3     _PTD.Bits.PTD_3#define PTD4     _PTD.Bits.PTD_4#define PTD5     _PTD.Bits.PTD_5#define PTD6     _PTD.Bits.PTD_6#define PTD7     _PTD.Bits.PTD_7//A口方向寄存器及位定义typedef union {  unsigned char Byte;  struct {    int DDRA_0      :1;  /* Port A方向 Bit 0 */    int DDRA_1      :1;  /* Port A方向 Bit 1 */    int DDRA_2      :1;  /* Port A方向 Bit 2 */    int DDRA_3      :1;  /* Port A方向 Bit 3 */    int DDRA_4      :1;  /* Port A方向 Bit 4 */    int DDRA_5      :1;  /* Port A方向 Bit 5 */    int DDRA_6      :1;  /* Port A方向 Bit 6 */    int DDRA_7      :1;  /* Port A方向 Bit 7 */  } Bits; }DDRASTR;#define _DDRA	 (*(volatile DDRASTR *)0x04)#define DDRA      _DDRA.Byte#define DDRA0     _DDRA.Bits.DDRA_0#define DDRA1     _DDRA.Bits.DDRA_1#define DDRA2     _DDRA.Bits.DDRA_2#define DDRA3     _DDRA.Bits.DDRA_3#define DDRA4     _DDRA.Bits.DDRA_4#define DDRA5     _DDRA.Bits.DDRA_5#define DDRA6     _DDRA.Bits.DDRA_6#define DDRA7     _DDRA.Bits.DDRA_7//B口方向寄存器及位定义typedef union {  unsigned char Byte;  struct {    int DDRB_0      :1;  /* Port B方向 Bit 0 */    int DDRB_1      :1;  /* Port B方向 Bit 1 */    int DDRB_2      :1;  /* Port B方向 Bit 2 */    int DDRB_3      :1;  /* Port B方向 Bit 3 */    int DDRB_4      :1;  /* Port B方向 Bit 4 */    int DDRB_5      :1;  /* Port B方向 Bit 5 */    int DDRB_6      :1;  /* Port B方向 Bit 6 */    int DDRB_7      :1;  /* Port B方向 Bit 7 */  } Bits; }DDRBSTR;#define _DDRB	 (*(volatile DDRBSTR *)0x05)#define DDRB      _DDRB.Byte#define DDRB0     _DDRB.Bits.DDRB_0#define DDRB1     _DDRB.Bits.DDRB_1#define DDRB2     _DDRB.Bits.DDRB_2#define DDRB3     _DDRB.Bits.DDRB_3#define DDRB4     _DDRB.Bits.DDRB_4#define DDRB5     _DDRB.Bits.DDRB_5#define DDRB6     _DDRB.Bits.DDRB_6#define DDRB7     _DDRB.Bits.DDRB_7//C口方向寄存器及位定义typedef union {  unsigned char Byte;  struct {    int DDRC_0      :1;  /* Port C方向 Bit 0 */    int DDRC_1      :1;  /* Port C方向 Bit 1 */    int DDRC_2      :1;  /* Port C方向 Bit 2 */    int DDRC_3      :1;  /* Port C方向 Bit 3 */    int DDRC_4      :1;  /* Port C方向 Bit 4 */    int DDRC_5      :1;  /* Port C方向 Bit 5 */    int DDRC_6      :1;  /* Port C方向 Bit 6 */    int DDRC_7      :1;  /* Port C方向 Bit 7 */  } Bits; }DDRCSTR;#define _DDRC	 (*(volatile DDRCSTR *)0x06)#define DDRC      _DDRC.Byte#define DDRC0     _DDRC.Bits.DDRC_0#define DDRC1     _DDRC.Bits.DDRC_1#define DDRC2     _DDRC.Bits.DDRC_2#define DDRC3     _DDRC.Bits.DDRC_3#define DDRC4     _DDRC.Bits.DDRC_4#define DDRC5     _DDRC.Bits.DDRC_5#define DDRC6     _DDRC.Bits.DDRC_6#define DDRC7     _DDRC.Bits.DDRC_7//D口方向寄存器及位定义typedef union {  unsigned char Byte;  struct {    int DDRD_0      :1;  /* Port D方向 Bit 0 */    int DDRD_1      :1;  /* Port D方向 Bit 1 */    int DDRD_2      :1;  /* Port D方向 Bit 2 */    int DDRD_3      :1;  /* Port D方向 Bit 3 */    int DDRD_4      :1;  /* Port D方向 Bit 4 */    int DDRD_5      :1;  /* Port D方向 Bit 5 */    int DDRD_6      :1;  /* Port D方向 Bit 6 */    int DDRD_7      :1;  /* Port D方向 Bit 7 */  } Bits; }DDRDSTR;#define _DDRD	 (*(volatile DDRDSTR *)0x07)

⌨️ 快捷键说明

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