?? register.h
字號:
/*C2xx內核寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *IMR =(volatile unsigned int *) 0x0004;
/*中斷屏蔽寄存器*/
volatile unsigned int *GREG =(volatile unsigned int *) 0x0005;
/*全局變量定位寄存器*/
volatile unsigned int *IFR =(volatile unsigned int *) 0x0006;
/*中斷標志寄存器*/
volatile unsigned int *ABRPT =(volatile unsigned int *) 0x01f;
/*分析斷點*/
ioport unsigned portFFFF;
#define WSGR portFFFF
/*系統模塊寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *PIRQR0 =(volatile unsigned int *) 0x7010; /*外部中斷請求寄存器0*/
volatile unsigned int *PIRQR1 =(volatile unsigned int *) 0x7011; /*外部中斷請求寄存器1*/
volatile unsigned int *PIRQR2 =(volatile unsigned int *) 0x7012; /*外部中斷請求寄存器2*/
volatile unsigned int *PIACKR0 =(volatile unsigned int *) 0x7014; /*外部中斷響應寄存器0*/
volatile unsigned int *PIACKR1 =(volatile unsigned int *) 0x7015; /*外部中斷響應寄存器1*/
volatile unsigned int *PIACKR2 =(volatile unsigned int *) 0x7016; /*外部中斷響應寄存器2*/
volatile unsigned int *SCSR1 =(volatile unsigned int *) 0x7018;
/*系統控制和狀態寄存器1*/
volatile unsigned int *SCSR2 =(volatile unsigned int *) 0x7019;
/*系統控制和狀態寄存器2*/
volatile unsigned int *DINR =(volatile unsigned int *)0x701C; /*器件版本號寄存器*/
volatile unsigned int *PVIR =(volatile unsigned int *)0x701E; /*外部中斷矢量寄存器*/
/*看門狗/實時中斷(RTI)/鎖相環(PLL)寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *WDCNTR =(volatile unsigned int *) 0x7023;
/*看門狗計數寄存器*/
volatile unsigned int *WDKEY =(volatile unsigned int *) 0x7025;
/*看門狗KEY寄存器*/
volatile unsigned int *WDCR =(volatile unsigned int *) 0x7029;
/*看門狗控制寄存器*/
/*串行外設接口 (SPI) 寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *SPICCR =(volatile unsigned int *)0x7040; /*SPI 配置控制寄存器*/
volatile unsigned int *SPICTL =(volatile unsigned int *)0x7041; /* SPI 操作控制寄存器*/
volatile unsigned int *SPISTS =(volatile unsigned int *)0x7042; /* SPI 狀態寄存器*/
volatile unsigned int *SPIBRR =(volatile unsigned int *)0x7044; /*SPI 波特率控制寄存器*/
volatile unsigned int *SPIEMU =(volatile unsigned int *)0x7046; /*SPI 仿真緩沖寄存器*/
volatile unsigned int *SPIRXBUF =(volatile unsigned int *)0x7047; /* SPI 串行接收緩沖寄存器*/
volatile unsigned int *SPITXBUF =(volatile unsigned int *)0x7048; /*SPI 串行發送緩沖寄存器*/
volatile unsigned int *SPIDAT =(volatile unsigned int *)0x7049; /*SPI 串行數據寄存器*/
volatile unsigned int *SPIPC1 =(volatile unsigned int *)0x704D; /*SPI 端口控制寄存器1*/
volatile unsigned int *SPIPC2 =(volatile unsigned int *)0x704E; /*SPI 端口控制寄存器2*/
volatile unsigned int *SPIPRI =(volatile unsigned int *)0x704F; /* SPI 中斷優先級控制寄存器*/
/*串行通信接口 (SCI) 寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *SCICCR =(volatile unsigned int *) 0x7050; /*SCI 通信控制寄存器*/
volatile unsigned int *SCICTL1 =(volatile unsigned int *) 0x7051; /* SCI 控制寄存器 1*/
volatile unsigned int *SCIHBAUD =(volatile unsigned int *) 0x7052; /*SCI 波特率高位字節寄存器*/
volatile unsigned int *SCILBAUD =(volatile unsigned int *) 0x7053; /* SCI 波特率低位字節寄存器*/
volatile unsigned int *SCICTL2 =(volatile unsigned int *) 0x7054; /* SCI 控制寄存器 2*/
volatile unsigned int *SCIRXST =(volatile unsigned int *) 0x07055; /*SCI 接收狀態寄存器*/
volatile unsigned int *SCIRXEMU =(volatile unsigned int *) 0x7056; /*SCI 仿真數據緩沖寄存器*/
volatile unsigned int *SCIRXBUF =(volatile unsigned int *) 0x7057; /* SCI 接收數據緩沖寄存器*/
volatile unsigned int *SCITXBUF =(volatile unsigned int *) 0x7059; /*SCI 發送數據緩沖寄存器*/
volatile unsigned int *SCIPRI =(volatile unsigned int *) 0x705F; /*SCI 中斷優先級控制寄存器*/
/*外部中斷配置寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *XINT1CR =(volatile unsigned int *) 0x7070; /* 外部中斷 1 控制寄存器*/
volatile unsigned int *XINT2CR =(volatile unsigned int *) 0x7071; /*外部中斷 2 控制寄存器*/
/*數字I/O控制寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *MCRA =(volatile unsigned int *) 0x7090;
/*I/O復用控制寄存器A*/
volatile unsigned int *MCRB =(volatile unsigned int *) 0x7092;
/*I/O復用控制寄存器B*/
volatile unsigned int *MCRC =(volatile unsigned int *) 0x7094;
/*I/O復用控制寄存器C*/
volatile unsigned int *PADATDIR =(volatile unsigned int *) 0x7098;
/*I/O端口A數據和方向控制寄存器*/
volatile unsigned int *PBDATDIR =(volatile unsigned int *) 0x709A;
/*I/O端口B數據和方向控制寄存器*/
volatile unsigned int *PCDATDIR =(volatile unsigned int *) 0x709C;
/*I/O端口C數據和方向控制寄存器*/
volatile unsigned int *PDDATDIR =(volatile unsigned int *) 0x709E;
/*I/O端口D數據和方向控制寄存器*/
volatile unsigned int *PEDATDIR =(volatile unsigned int *) 0x7095;
/*I/O端口E數據和方向控制寄存器*/
volatile unsigned int *PFDATDIR =(volatile unsigned int *) 0x7096;
/*I/O端口F數據和方向控制寄存器*/
/*模數轉換(ADC) 寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *ADCTRL1 =(volatile unsigned int *) 0x70A0; /*ADC 控制寄存器 1*/
volatile unsigned int *ADCTRL2 =(volatile unsigned int *) 0x70A1; /*ADC 控制寄存器 2*/
volatile unsigned int *MAXCONV =(volatile unsigned int *) 0x70A2; /*最大轉換通道個數寄存器*/
volatile unsigned int *CHSELSEQ1 =(volatile unsigned int *) 0x70A3; /*通道選擇排序控制寄存器1*/
volatile unsigned int *CHSELSEQ2 =(volatile unsigned int *) 0x70A4; /*通道選擇排序控制寄存器2*/
volatile unsigned int *CHSELSEQ3 =(volatile unsigned int *) 0x70A5; /*通道選擇排序控制寄存器3*/
volatile unsigned int *CHSELSEQ4 =(volatile unsigned int *) 0x70A6; /* 通道選擇排序控制寄存器4*/
volatile unsigned int *AUTO_SEQ_SR =(volatile unsigned int *) 0x70A7; /*自動排序狀態寄存器*/
volatile unsigned int *RESULT0 =(volatile unsigned int *) 0x70A8; /*A/D轉換結果寄存器0*/
volatile unsigned int *RESULT1 =(volatile unsigned int *) 0x70A9; /*A/D轉換結果寄存器1*/
volatile unsigned int *RESULT2 =(volatile unsigned int *) 0x70AA; /* A/D轉換結果寄存器2*/
volatile unsigned int *RESULT3 =(volatile unsigned int *) 0x70AB; /*A/D轉換結果寄存器3*/
volatile unsigned int *RESULT4 =(volatile unsigned int *) 0x70AC; /*A/D轉換結果寄存器4*/
volatile unsigned int *RESULT5 =(volatile unsigned int *) 0x70AD; /* A/D轉換結果寄存器5*/
volatile unsigned int *RESULT6 =(volatile unsigned int *) 0x70AE; /* A/D轉換結果寄存器6*/
volatile unsigned int *RESULT7 =(volatile unsigned int *) 0x70AF; /*A/D轉換結果寄存器7*/
volatile unsigned int *RESULT8 =(volatile unsigned int *) 0x70B0; /* A/D轉換結果寄存器8*/
volatile unsigned int *RESULT9 =(volatile unsigned int *) 0x70B1; /*A/D轉換結果寄存器9*/
volatile unsigned int *RESULT10 =(volatile unsigned int *) 0x70B2; /* A/D轉換結果寄存器10*/
volatile unsigned int *RESULT11 =(volatile unsigned int *) 0x70B3; /*A/D轉換結果寄存器11*/
volatile unsigned int *RESULT12 =(volatile unsigned int *) 0x70B4; /*A/D轉換結果寄存器12*/
volatile unsigned int *RESULT13 =(volatile unsigned int *) 0x70B5; /* A/D轉換結果寄存器13*/
volatile unsigned int *RESULT14 =(volatile unsigned int *) 0x70B6; /*A/D轉換結果寄存器14*/
volatile unsigned int *RESULT15 =(volatile unsigned int *) 0x70B7; /*A/D轉換結果寄存器15*/
volatile unsigned int *CALIBRATION =(volatile unsigned int *) 0x70B8; /* 校準結果寄存器*/
/*局部控制網絡CAN 寄存器
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
volatile unsigned int *MDER =(volatile unsigned int *)0x7100; /*CAN郵箱方向/使能寄存器*/
volatile unsigned int *TCR= (volatile unsigned int *) 0x7101; /*CAN發送控制寄存器*/
volatile unsigned int *RCR=(volatile unsigned int *)0x7102; /*CAN接收控制寄存器*/
volatile unsigned int *MCR=(volatile unsigned int *)0x7103; /*CAN主控制寄存器*/
volatile unsigned int *BCR2 =(volatile unsigned int *)0x7104; /*CAN位配置寄存器2*/
volatile unsigned int *BCR1 =(volatile unsigned int *)0x7105; /*CAN位配置寄存器1*/
volatile unsigned int *ESR =(volatile unsigned int *)0x7106; /*CAN錯誤狀態寄存器*/
volatile unsigned int *GSR =(volatile unsigned int *)0x7107; /*CAN全局狀態寄存器*/
volatile unsigned int *CEC =(volatile unsigned int *)0x7108; /*CAN傳送和接收錯誤計數器*/
volatile unsigned int *CAN_IFR =(volatile unsigned int *)0x7109; /*CAN中斷標志寄存器*/
volatile unsigned int *CAN_IMR =(volatile unsigned int *)0x710A; /* CAN中斷屏蔽寄存器*/
volatile unsigned int *LAM0_H =(volatile unsigned int *)0x710B; /* CAN本地接收屏蔽高位字寄存器(MBX0/1)*/
volatile unsigned int *LAM0_L =(volatile unsigned int *)0x710C; /*CAN本地接收屏蔽低位字寄存器(MBX0/1)*/
volatile unsigned int *LAM1_H =(volatile unsigned int *)0x710D; /*CAN本地接收屏蔽高位字寄存器(MBX2/3)*/
volatile unsigned int *LAM1_L =(volatile unsigned int *)0x710E; /* CAN本地接收屏蔽低位字寄存器(MBX2/3)*/
volatile unsigned int *MSGID0L =(volatile unsigned int *)0x7200; /* CAN郵箱0消息標識符(低16位字)*/
volatile unsigned int *MSGID0H =(volatile unsigned int *)0x7201; /* CAN郵箱0消息標識符(高16位字)*/
volatile unsigned int *MSGCTRL0 =(volatile unsigned int *)0x7202; /* CAN郵箱0消息控制域寄存器*/
volatile unsigned int *MBX0A =(volatile unsigned int *)0x7204; /* CAN郵箱0中郵箱RAM的2個字節 */
volatile unsigned int *MBX0B =(volatile unsigned int *)0x7205; /*CAN郵箱0中郵箱RAM的2個字節*/
volatile unsigned int *MBX0C =(volatile unsigned int *)0x7206; /* CAN郵箱0中郵箱RAM的2個字節 */
volatile unsigned int *MBX0D =(volatile unsigned int *)0x7207; /* CAN郵箱0中郵箱RAM的2個字節 */
volatile unsigned int *MSGID1L =(volatile unsigned int *)0x7208; /*CAN郵箱1消息標識符(低16位字)*/
volatile unsigned int *MSGID1H =(volatile unsigned int *)0x7209; /* CAN郵箱1消息標識符(高16位字)*/
volatile unsigned int *MSGCTRL1 =(volatile unsigned int *)0x720A; /*CAN郵箱1消息控制域寄存器*/
volatile unsigned int *MBX1A =(volatile unsigned int *)0x720C; /*CAN郵箱1中郵箱RAM的2個字節*/
volatile unsigned int *MBX1B =(volatile unsigned int *)0x720D; /*CAN郵箱1中郵箱RAM的2個字節*/
volatile unsigned int *MBX1C =(volatile unsigned int *)0x720E; /*CAN郵箱1中郵箱RAM的2個字節*/
volatile unsigned int *MBX1D =(volatile unsigned int *)0x720F; /*CAN郵箱1中郵箱RAM的2個字節*/
volatile unsigned int *MSGID2L =(volatile unsigned int *)0x7210; /*CAN郵箱2消息標識符(低16位字)*/
volatile unsigned int *MSGID2H =(volatile unsigned int *)0x7211; /*CAN郵箱2消息標識符(高16位字)*/
volatile unsigned int *MSGCTRL2 =(volatile unsigned int *)0x7212; /*CAN郵箱2消息控制域寄存器*/
volatile unsigned int *MBX2A =(volatile unsigned int *)0x7214; /* CAN郵箱2中郵箱RAM的2個字節*/
volatile unsigned int *MBX2B =(volatile unsigned int *)0x7215; /*CAN郵箱2中郵箱RAM的2個字節*/
volatile unsigned int *MBX2C =(volatile unsigned int *)0x7216; /*CAN郵箱2中郵箱RAM的2個字節*/
volatile unsigned int *MBX2D =(volatile unsigned int *)0x7217; /*CAN郵箱2中郵箱RAM的2個字節*/
volatile unsigned int *MSGID3L =(volatile unsigned int *)0x7218; /* CAN郵箱3消息標識符(低16位字)*/
volatile unsigned int *MSGID3H =(volatile unsigned int *)0x7219; /* CAN郵箱3消息標識符(高16位字)*/
volatile unsigned int *MSGCTRL3 =(volatile unsigned int *)0x721A; /* CAN郵箱3消息控制域寄存器*/
volatile unsigned int *MBX3A =(volatile unsigned int *)0x721C; /* CAN郵箱3中郵箱RAM的2個字節*/
volatile unsigned int *MBX3B =(volatile unsigned int *)0x721D; /*CAN郵箱3中郵箱RAM的2個字節*/
volatile unsigned int *MBX3C =(volatile unsigned int *)0x721E; /* CAN郵箱3中郵箱RAM的2個字節*/
volatile unsigned int *MBX3D =(volatile unsigned int *)0x721F; /*CAN郵箱3中郵箱RAM的2個字節*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -