?? lf2407_c.h
字號:
/*********************************************************************************
File Name : LF2407regs.h
Originator : JZMING
Discription : LF2407 Peripheral Rigisters + other useful definnitors
/********************************************************************************/
/*------------------------------------------------------
;片內外圍寄存器定義
------------------------------------------------------*/
/* 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
//============================================================
/* 系統模塊寄存器 */
//============================================================
/* 外圍中斷請求寄存器0 */
volatile unsigned int *PIRQR0 =(volatile unsigned int *)0x7010;
/* 外圍中斷請求寄存器1 */
volatile unsigned int *PIRQR1 =(volatile unsigned int *)0x7011;
/* 外圍中斷請求寄存器2 */
volatile unsigned int *PIRQR2 =(volatile unsigned int *)0x7012;
/* 外圍中斷應答寄存器0 */
volatile unsigned int *PIACKR0 =(volatile unsigned int *)0x7014;
/* 外圍中斷應答寄存器1 */
volatile unsigned int *PIACKR1 =(volatile unsigned int *)0x7015;
/* 外圍中斷應答寄存器2 */
volatile unsigned int *PIACKR2 =(volatile unsigned int *)0x7016;
/* 系統控制和狀態寄存器1 */
volatile unsigned int *SCSR1 =(volatile unsigned int *)0x7018;
/* 系統控制和狀態寄存器2 */
volatile unsigned int *SCSR2 =(volatile unsigned int *)0x7019;
/* 期間識別寄存器 */
volatile unsigned int *DIN =(volatile unsigned int *)0x701C;
/* 外圍中斷向量寄存器 */
volatile unsigned int *PVIR =(volatile unsigned int *)0x701E;
//==============================================================
/* 看門狗/實時中斷#(RTI)/鎖相環(PLL)寄存器 */
//==============================================================
/* 看門狗記數寄存器 */
volatile unsigned int *WDCNTR =(volatile unsigned int *)0x7023;
/* 看門狗KEY寄存器 */
volatile unsigned int *WDKEY =(volatile unsigned int *)0x7025;
/* 看門狗控制寄存器 */
volatile unsigned int *WDCR =(volatile unsigned int *)0x7029;
//==============================================================
/*外圍串行接口(SPI)寄存器
//==============================================================
/* SPI配置控制寄存器1 */
volatile unsigned int *SPICCR =(volatile unsigned int *)0x7040;
/* SPI運行控制寄存器2 */
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端口控制寄存器1 */
volatile unsigned int *SPIPC1 =(volatile unsigned int *)0x704D;
/* SPI端口控制寄存器2 */
volatile unsigned int *SPIPC2 =(volatile unsigned int *)0x704E;
/* SPI優先級控制寄存器 */
volatile unsigned int *SPIPRI =(volatile unsigned int *)0x704F;
//===============================================================
/* 串行通信接口(SCI)寄存器 */
//===============================================================
/* SCI通信控制寄存器 */
volatile unsigned int *SCICCR =(volatile unsigned int *)0x7050;
/* SCI控制寄存器1 */
volatile unsigned int *SCICTL1 =(volatile unsigned int *)0x7051;
/* SCI波特率控制寄存器高位 */
volatile unsigned int *SCIHBAUD =(volatile unsigned int *)0x7052;
/* SCI波特率控制寄存器低位 */
volatile unsigned int *SCILBAUD =(volatile unsigned int *)0x7053;
/* SCI控制寄存器2 */
volatile unsigned int *SCICTL2 =(volatile unsigned int *)0x7054;
/* SCI接收狀態存器 */
volatile unsigned int *SCIRXST =(volatile unsigned int *)0x7055;
/* SCI EMU數據緩沖寄存器 */
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;
//=================================================================
/* 外圍中斷配置寄存器 */
//=================================================================
/* INT1配置寄存器 */
volatile unsigned int *XINT1CR =(volatile unsigned int *)0x7070;
/* INT2配置寄存器 */
volatile unsigned int *XINT2CR =(volatile unsigned int *)0x7071;
//=================================================================
/* 數字I/O口配置寄存器 */
//=================================================================
/* I/O口復用控制寄存器A */
volatile unsigned int *MCRA =(volatile unsigned int *)0x7090;
/* I/O口復用控制寄存器B */
volatile unsigned int *MCRB =(volatile unsigned int *)0x7092;
/* I/O口復用控制寄存器C */
volatile unsigned int *MCRC =(volatile unsigned int *)0x7094;
/* I/O端口A數據和方向控制寄存器 */
volatile unsigned int *PADATDIR =(volatile unsigned int *)0x7098;
/* I/O端口B數據和方向控制寄存器 */
volatile unsigned int *PBDATDIR =(volatile unsigned int *)0x709A;
/* I/O端口C數據和方向控制寄存器 */
volatile unsigned int *PCDATDIR =(volatile unsigned int *)0x709C;
/* I/O端口D數據和方向控制寄存器 */
volatile unsigned int *PDDATDIR =(volatile unsigned int *)0x709E;
/* I/O端口E數據和方向控制寄存器 */
volatile unsigned int *PEDATDIR =(volatile unsigned int *)0x7095;
/* I/O端口F數據和方向控制寄存器 */
volatile unsigned int *PFDATDIR =(volatile unsigned int *)0x7096;
//==================================================================
/* ADC寄存器定義 */
//==================================================================
/* ADC控制寄存器1 */
volatile unsigned int *ADCTRL1 =(volatile unsigned int *)0x70A0;
/* ADC控制寄存器2 */
volatile unsigned int *ADCTRL2 =(volatile unsigned int *)0x70A1;
/* 最大轉換通道寄存器 */
volatile unsigned int *MAXCONV =(volatile unsigned int *)0x70A2;
/* 通道選擇域寄存器 結果:3 2 1 0 */
volatile unsigned int *CHSELSEQ1 =(volatile unsigned int *)0x70A3;
/* 通道選擇域寄存器 結果:7 6 5 4 */
volatile unsigned int *CHSELSEQ2 =(volatile unsigned int *)0x70A4;
/* 通道選擇域寄存器 結果:11 10 9 8 */
volatile unsigned int *CHSELSEQ3 =(volatile unsigned int *)0x70A5;
/* 通道選擇域寄存器 結果:15 14 13 12 */
volatile unsigned int *CHSELSEQ4 =(volatile unsigned int *)0x70A6;
/* 自動排序狀態寄存器 */
volatile unsigned int *AUTO_SEQ_SR =(volatile unsigned int *)0x70A7;
/* 轉換結果寄存器0 */
volatile unsigned int *RESULT0 =(volatile unsigned int *)0x70A8;
/* 轉換結果寄存器1 */
volatile unsigned int *RESULT1 =(volatile unsigned int *)0x70A9;
/* 轉換結果寄存器2 */
volatile unsigned int *RESULT2 =(volatile unsigned int *)0x70AA;
/* 轉換結果寄存器3 */
volatile unsigned int *RESULT3 =(volatile unsigned int *)0x70AB;
/* 轉換結果寄存器4 */
volatile unsigned int *RESULT4 =(volatile unsigned int *)0x70AC;
/* 轉換結果寄存器5 */
volatile unsigned int *RESULT5 =(volatile unsigned int *)0x70AD;
/* 轉換結果寄存器6 */
volatile unsigned int *RESULT6 =(volatile unsigned int *)0x70AE;
/* 轉換結果寄存器7 */
volatile unsigned int *RESULT7 =(volatile unsigned int *)0x70AF;
/* 轉換結果寄存器8 */
volatile unsigned int *RESULT8 =(volatile unsigned int *)0x70B0;
/* 轉換結果寄存器9 */
volatile unsigned int *RESULT9 =(volatile unsigned int *)0x70B1;
/* 轉換結果寄存器10 */
volatile unsigned int *RESULT10 =(volatile unsigned int *)0x70B2;
/* 轉換結果寄存器11 */
volatile unsigned int *RESULT11 =(volatile unsigned int *)0x70B3;
/* 轉換結果寄存器12 */
volatile unsigned int *RESULT12 =(volatile unsigned int *)0x70B4;
/* 轉換結果寄存器13 */
volatile unsigned int *RESULT13 =(volatile unsigned int *)0x70B5;
/* 轉換結果寄存器14 */
volatile unsigned int *RESULT14 =(volatile unsigned int *)0x70B6;
/* 轉換結果寄存器15 */
volatile unsigned int *RESULT15 =(volatile unsigned int *)0x70B7;
/* 校準寄存器 */
volatile unsigned int *CALIBRATION =(volatile unsigned int *)0x70B8;
//=====================================================================
/* 局部控制網絡寄存器 */
//=====================================================================
/* 郵包方向/使能寄存器 */
volatile unsigned int *CANMDER =(volatile unsigned int *)0x7100;
/* 發送控制寄存器 */
volatile unsigned int *CANTCR =(volatile unsigned int *)0x7101;
/* 接收控制寄存器 */
volatile unsigned int *CANRCR =(volatile unsigned int *)0x7102;
/* 主動控制寄存器 */
volatile unsigned int *CANMCR =(volatile unsigned int *)0x7103;
/* 位配置寄存器2 */
volatile unsigned int *CANBCR2 =(volatile unsigned int *)0x7104;
/* 位配置寄存器1 */
volatile unsigned int *CANBCR1 =(volatile unsigned int *)0x7105;
/* 錯誤狀態寄存器 */
volatile unsigned int *CANESR =(volatile unsigned int *)0x7106;
/* 全局狀態寄存器 */
volatile unsigned int *CANGSR =(volatile unsigned int *)0x7107;
/* CAN錯誤計數寄存器 */
volatile unsigned int *CANCEC =(volatile unsigned int *)0x7108;
/* CAN中斷標志寄存器 */
volatile unsigned int *CANIFR =(volatile unsigned int *)0x7109;
/* CAN中斷屏蔽寄存器 */
volatile unsigned int *CANIMR =(volatile unsigned int *)0x710A;
/* 局部接收屏蔽寄存器0高位 */
volatile unsigned int *CANLAM0H =(volatile unsigned int *)0x710B;
/* 局部接收屏蔽寄存器0低位 */
volatile unsigned int *CANLAM0L =(volatile unsigned int *)0x710C;
/* 局部接收屏蔽寄存器1高位 */
volatile unsigned int *CANLAM1H =(volatile unsigned int *)0x710D;
/* 局部接收屏蔽寄存器1低位 */
volatile unsigned int *CANLAM1L =(volatile unsigned int *)0x710E;
/* 對于郵包0的信息標志符低位 */
volatile unsigned int *CANMSGID0L =(volatile unsigned int *)0x7200;
/* 對于郵包0的信息標志符高位 */
volatile unsigned int *CANMSGID0H =(volatile unsigned int *)0x7201;
/* 對于郵包0的信息控制域 */
volatile unsigned int *CANMSGCTRL0 =(volatile unsigned int *)0x7202;
/* 郵包0A */
volatile unsigned int *CANMBX0A =(volatile unsigned int *)0x7204;
/* 郵包0B */
volatile unsigned int *CANMBX0B =(volatile unsigned int *)0x7205;
/* 郵包0C */
volatile unsigned int *CANMBX0C =(volatile unsigned int *)0x7206;
/* 郵包0D */
volatile unsigned int *CANMBX0D =(volatile unsigned int *)0x7207;
/* 對于郵包1的信息標志符低位 */
volatile unsigned int *CANMSGID1L =(volatile unsigned int *)0x7208;
/* 對于郵包1的信息標志符高位 */
volatile unsigned int *CANMSGID1H =(volatile unsigned int *)0x7209;
/* 對于郵包1的信息控制域 */
volatile unsigned int *CANMSGCTRL1 =(volatile unsigned int *)0x720A;
/* 郵包1A */
volatile unsigned int *CANMBX1A =(volatile unsigned int *)0x720C;
/* 郵包1B */
volatile unsigned int *CANMBX1B =(volatile unsigned int *)0x720D;
/* 郵包1C */
volatile unsigned int *CANMBX1C =(volatile unsigned int *)0x720E;
/* 郵包1D */
volatile unsigned int *CANMBX1D =(volatile unsigned int *)0x720F;
/* 對于郵包2的信息標志符低位 */
volatile unsigned int *CANMSGID2L =(volatile unsigned int *)0x7210;
/* 對于郵包2的信息標志符高位 */
volatile unsigned int *CANMSGID2H =(volatile unsigned int *)0x7211;
/* 對于郵包2的信息控制域 */
volatile unsigned int *CANMSGCTRL2 =(volatile unsigned int *)0x7212;
/* 郵包2A */
volatile unsigned int *CANMBX2A =(volatile unsigned int *)0x7214;
/* 郵包2B */
volatile unsigned int *CANMBX2B =(volatile unsigned int *)0x7215;
/* 郵包2C */
volatile unsigned int *CANMBX2C =(volatile unsigned int *)0x7216;
/* 郵包2D */
volatile unsigned int *CANMBX2D =(volatile unsigned int *)0x7217;
/* 對于郵包3的信息標志符低位 */
volatile unsigned int *CANMSGID3L =(volatile unsigned int *)0x7218;
/* 對于郵包3的信息標志符高位 */
volatile unsigned int *CANMSGID3H =(volatile unsigned int *)0x7219;
/* 對于郵包3的信息控制域 */
volatile unsigned int *CANMSGCTRL3 =(volatile unsigned int *)0x721A;
/* 郵包3A */
volatile unsigned int *CANMBX3A =(volatile unsigned int *)0x721C;
/* 郵包3B */
volatile unsigned int *CANMBX3B =(volatile unsigned int *)0x721D;
/* 郵包3C */
volatile unsigned int *CANMBX3C =(volatile unsigned int *)0x721E;
/* 郵包3D */
volatile unsigned int *CANMBX3D =(volatile unsigned int *)0x721F;
/* 對于郵包4的信息標志符低位 */
volatile unsigned int *CANMSGID4L =(volatile unsigned int *)0x7220;
/* 對于郵包4的信息標志符高位 */
volatile unsigned int *CANMSGID4H =(volatile unsigned int *)0x7221;
/* 對于郵包4的信息控制域 */
volatile unsigned int *CANMSGCTRL4 =(volatile unsigned int *)0x7222;
/* 郵包4A */
volatile unsigned int *CANMBX4A =(volatile unsigned int *)0x7224;
/* 郵包4B */
volatile unsigned int *CANMBX4B =(volatile unsigned int *)0x7225;
/* 郵包4C */
volatile unsigned int *CANMBX4C =(volatile unsigned int *)0x7226;
/* 郵包4D */
volatile unsigned int *CANMBX4D =(volatile unsigned int *)0x7227;
/* 對于郵包5的信息標志符低位 */
volatile unsigned int *CANMSGID5L =(volatile unsigned int *)0x7228;
/* 對于郵包5的信息標志符高位 */
volatile unsigned int *CANMSGID5H =(volatile unsigned int *)0x7229;
/* 對于郵包5的信息控制域 */
volatile unsigned int *CANMSGCTRL5 =(volatile unsigned int *)0x722A;
/* 郵包5A */
volatile unsigned int *CANMBX5A =(volatile unsigned int *)0x722C;
/* 郵包5B */
volatile unsigned int *CANMBX5B =(volatile unsigned int *)0x722D;
/* 郵包5C */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -