?? lf2407regs.h
字號:
#define CANRCR ((volatile unsigned int *)0x7102)
/* 接收控制寄存器*/
#define CANMCR ((volatile unsigned int *)0x7103)
/* 主動控制寄存器*/
#define CANBCR2 ((volatile unsigned int *)0x7104)
/* 位配置寄存器2*/
#define CANBCR1 ((volatile unsigned int *)0x7105)
/* 位配置寄存器1*/
#define CANESR ((volatile unsigned int *)0x7106)
/* 錯誤狀態(tài)寄存器*/
#define CANGSR ((volatile unsigned int *)0x7107)
/* 全局狀態(tài)寄存器 */
#define CANCEC ((volatile unsigned int *)0x7108)
/* CAN 錯誤計數(shù)寄存器*/
#define CANIFR ((volatile unsigned int *)0x7109)
/* CAN 中斷標志寄存器*/
#define CANIMR ((volatile unsigned int *)0x710A)
/* CAN 中斷屏蔽寄存器 */
#define CANLAM0H ((volatile unsigned int *)0x710B)
/* 局部接收屏蔽寄存器0 高位*/
#define CANLAM0L ((volatile unsigned int *)0x710C)
/* 局部接收屏蔽寄存器0 低位*/
#define CANLAM1H ((volatile unsigned int *)0x710D)
/* 局部接收屏蔽寄存器1 高位*/
#define CANLAM1L ((volatile unsigned int *)0x710E)
/* 局部接收屏蔽寄存器1 低位*/
#define CANMSGID0L ((volatile unsigned int *)0x7200)
/* 對于郵包0的信息標志符 低位 */
#define CANMSGID0H ((volatile unsigned int *)0x7201)
/* 對于郵包0的信息標志符 高位 */
#define CANMSGCTRL0 ((volatile unsigned int *)0x7202)
/*對于郵包0的信息控制域*/
#define CANMBX0A ((volatile unsigned int *)0x7204)
/* 郵包0 A*/
#define CANMBX0B ((volatile unsigned int *) 0x7205)
/* 郵包0 B*/
#define CANMBX0C ((volatile unsigned int *)0x7206)
/* 郵包 0 C*/
#define CANMBX0D ((volatile unsigned int *)0x7207)
/* 郵包 0 D*/
#define CANMSGID1L ((volatile unsigned int *)0x7208)
/* 對于郵包1的信息標志符 低位 */
#define CANMSGID1H ((volatile unsigned int *)0x7209)
/* 對于郵包1的信息標志符 高位 */
#define CANMSGCTRL1 ((volatile unsigned int *)0x720A)
/*對于郵包1的信息控制域*/
#define CANMBX1A ((volatile unsigned int *)0x720C)
/*郵包 1 A*/
#define CANMBX1B ((volatile unsigned int *)0x720D)
/* 郵包 1 B*/
#define CANMBX1C ((volatile unsigned int *)0x720E)
/* 郵包 1 C*/
#define CANMBX1D ((volatile unsigned int *)0x720F)
/* 郵包 1 D*/
#define CANMSGID2L ((volatile unsigned int *)0x7210)
/* 對于郵包2的信息標志符 低位 */
#define CANMSGID2H ((volatile unsigned int *)0x7211)
/* 對于郵包2的信息標志符 高位 */
#define CANMSGCTRL2 ((volatile unsigned int *)0x7212)
/*對于郵包2的信息控制域*/
#define CANMBX2A ((volatile unsigned int *)0x7214)
/* 郵包 2 A*/
#define CANMBX2B ((volatile unsigned int *)0x7215)
/*郵包2 B*/
#define CANMBX2C ((volatile unsigned int *)0x7216)
/*郵包2 C*/
#define CANMBX2D ((volatile unsigned int *)0x7217)
/*郵包2 D*/
#define CANMSGID3L ((volatile unsigned int *)0x7218)
/* 對于郵包3的信息標志符 低位 */
#define CANMSGID3H ((volatile unsigned int *)0x7219)
/* 對于郵包3的信息標志符 高位 */
#define CANMSGCTRL3 ((volatile unsigned int *)0x721A)
/*對于郵包3的信息控制域*/
#define CANMBX3A ((volatile unsigned int *)0x721C)
/* 郵包 3 A*/
#define CANMBX3B ((volatile unsigned int *)0x721D)
/* 郵包 3 B*/
#define CANMBX3C ((volatile unsigned int *)0x721E)
/* 郵包 3 C*/
#define CANMBX3D ((volatile unsigned int *)0x721F)
/* 郵包 3 D*/
#define CANMSGID4L ((volatile unsigned int *)0x7220)
/* 對于郵包4的信息標志符 低位 */
#define CANMSGID4H ((volatile unsigned int *)0x7221)
/* 對于郵包4的信息標志符 高位 */
#define CANMSGCTRL4 ((volatile unsigned int *)0x7222)
/*對于郵包4的信息控制域*/
#define CANMBX4A ((volatile unsigned int *)0x7224)
/* 郵包 4 A*/
#define CANMBX4B ((volatile unsigned int *)0x7225)
/* 郵包 4 B*/
#define CANMBX4C ((volatile unsigned int *)0x7226)
/* 郵包 4 C*/
#define CANMBX4D ((volatile unsigned int *)0x7227)
/* 郵包 4 D*/
#define CANMSGID5L ((volatile unsigned int *)0x7228)
/* 對于郵包5的信息標志符 低位 */
#define CANMSGID5H ((volatile unsigned int *)0x7229)
/* 對于郵包5的信息標志符 高位 */
#define CANMSGCTRL5 ((volatile unsigned int *)0x722A)
/*對于郵包5的信息控制域*/
#define CANMBX5A ((volatile unsigned int *)0x722C)
/* 郵包 5 A*/
#define CANMBX5B ((volatile unsigned int *)0x722D)
/* 郵包 5 B*/
#define CANMBX5C ((volatile unsigned int *)0x722E)
/* 郵包 5 C*/
#define CANMBX5D ((volatile unsigned int *)0x722F)
/*郵包5 D*/
/*事件管理器 (EV)/ 事件管理器 A (EVA) 寄存器
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define GPTCONA ((volatile unsigned int *)0x7400)
/* 通用定時器控制寄存器*/
#define T1CNT ((volatile unsigned int *)0x7401)
/* T1 計數(shù)器*/
#define T1CMP ((volatile unsigned int *)0x7402)
/* T1 比較值寄存器*/
#define T1PER ((volatile unsigned int *)0x7403)
/* T1 周期寄存器*/
#define T1CON ((volatile unsigned int *)0x7404)
/* T1 控制寄存器*/
#define T2CNT ((volatile unsigned int *)0x7405)
/* T2 計數(shù)器*/
#define T2CMP ((volatile unsigned int *)0x7406)
/* T2 比較值寄存器*/
#define T2PER ((volatile unsigned int *)0x7407)
/* T2 周期寄存器*/
#define T2CON ((volatile unsigned int *)0x7408)
/* T2 控制寄存器*/
#define COMCONA ((volatile unsigned int *)0x7411)
/* 比較控制寄存器*/
#define ACTRA ((volatile unsigned int *)0x7413)
/* 比較輸出動作控制寄存器*/
#define DBTCONA ((volatile unsigned int *)0x7415)
/* 死區(qū)控制寄存器*/
#define CMPR1 ((volatile unsigned int *)0x7417)
/* 比較值1*/
#define CMPR2 ((volatile unsigned int *)0x7418)
/* 比較值2*/
#define CMPR3 ((volatile unsigned int *)0x7419)
/* 比較值3*/
#define CAPCONA ((volatile unsigned int *)0x7420)
/* 捕捉控制寄存器*/
#define CAPFIFOA ((volatile unsigned int *)0x7422)
/* 捕捉 FIFO A 狀態(tài)寄存器*/
#define CAP1FIFO ((volatile unsigned int *)0x7423)
/* 捕捉1 FIFO 頂部*/
#define CAP2FIFO ((volatile unsigned int *)0x7424)
/* 捕捉 2 FIFO 頂部*/
#define CAP3FIFO ((volatile unsigned int *)0x7425)
/* 捕捉 3 FIFO 頂部*/
#define CAP1FBOT ((volatile unsigned int *)0x7427)
/* 捕捉 1 FIFO 底部 */
#define CAP2FBOT ((volatile unsigned int *)0x7428)
/* 捕捉 2 FIFO 底部 */
#define CAP3FBOT ((volatile unsigned int *)0x7429)
/* 捕捉 2 FIFO 底部 */
#define EVAIMRA ((volatile unsigned int *)0x742C)
/* EVA 中斷屏蔽寄存器 A*/
#define EVAIMRB ((volatile unsigned int *)0x742D)
/* EVA中斷屏蔽寄存器 B*/
#define EVAIMRC ((volatile unsigned int *)0x742E)
/* EVA 中斷屏蔽寄存器 C*/
#define EVAIFRA ((volatile unsigned int *)0x742F)
/* EVA中斷標志寄存器 A*/
#define EVAIFRB ((volatile unsigned int *)0x7430)
/* EVA 中斷標志寄存器 B*/
#define EVAIFRC ((volatile unsigned int *)0x7431)
/* EVA中斷標志寄存器 C*/
/*事件管理器 B (EVB) 寄存器
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define GPTCONB ((volatile unsigned int *)0x7500)
/*通用定時器控制寄存器*/
#define T3CNT ((volatile unsigned int *)0x7501)
/* T3計數(shù)器*/
#define T3CMP ((volatile unsigned int *)0x7502)
/* T3比較值寄存器*/
#define T3PER ((volatile unsigned int *)0x7503)
/* T3周期寄存器*/
#define T3CON ((volatile unsigned int *)0x7504)
/* T3控制寄存器*/
#define T4CNT ((volatile unsigned int *)0x7505)
/* T4計數(shù)器*/
#define T4CMP ((volatile unsigned int *)0x7506)
/* T4比較值寄存器*/
#define T4PER ((volatile unsigned int *)0x7507)
/* T4周期寄存器*/
#define T4CON ((volatile unsigned int *)0x7508)
/* T4控制寄存器*/
#define COMCONB ((volatile unsigned int *)0x7511)
/*比較控制寄存器*/
#define ACTRB ((volatile unsigned int *)0x7513)
/*比較輸出動作控制寄存器*/
#define DBTCONB ((volatile unsigned int *)0x7515)
/*死區(qū)控制寄存器*/
#define CMPR4 ((volatile unsigned int *)0x7517)
/*比較值4*/
#define CMPR5 ((volatile unsigned int *)0x7518)
/*比較值5*/
#define CMPR6 ((volatile unsigned int *)0x7519)
/*比較值6*/
#define CAPCONB ((volatile unsigned int *)0x7520)
/*捕捉控制寄存器*/
#define CAPFIFOB ((volatile unsigned int *)0x7522)
/* 捕捉FIFO A 狀態(tài)寄存器*/
#define CAP4FIFO ((volatile unsigned int *)0x7523)
/* 捕捉 4 FIFO 頂部*/
#define CAP5FIFO ((volatile unsigned int *)0x7524)
/* 捕捉 5 FIFO 頂部*/
#define CAP6FIFO ((volatile unsigned int *)0x7525)
/* 捕捉 6 FIFO 頂部*/
#define CAP4FBOT ((volatile unsigned int *)0x7527)
/* 捕捉 4 FIFO 底部*/
#define CAP5FBOT ((volatile unsigned int *)0x7528)
/*捕捉 5 FIFO 底部*/
#define CAP6FBOT ((volatile unsigned int *)0x7529)
/*捕捉 6 FIFO底部*/
#define EVBIMRA ((volatile unsigned int *)0x752C)
/* EVB中斷屏蔽寄存器A*/
#define EVBIMRB ((volatile unsigned int *)0x752D)
/* EVB 中斷屏蔽寄存器B*/
#define EVBIMRC ((volatile unsigned int *)0x752E)
/* EVB 中斷屏蔽寄存器 C*/
#define EVBIFRA ((volatile unsigned int *)0x752F)
/* EVB 中斷標志寄存器 A*/
#define EVBIFRB ((volatile unsigned int *)0x7530)
/* EVB 中斷標志寄存器 B*/
#define EVBIFRC ((volatile unsigned int *)0x7531)
/* EVB 中斷標志寄存器 C*/
/*-----------------------------------------------------------------------------
)常量的定義
)-----------------------------------------------------------------------------
)數(shù)據(jù)空間
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define B2_SADDR 0x0060 /*塊 B2 的開始地址*/
#define B2_EADDR 0x007F /*塊 B2 的結(jié)束地址*/
#define B0_SADDR 0x0200 /*塊 B0 的開始地址*/
#define B0_EADDR 0x02FF /*塊 B0 的結(jié)束地址*/
#define B1_SADDR 0x0300 /*塊 B1 的開始地址*/
#define B1_EADDR 0x03FF /*塊 B1 的結(jié)束地址*/
#define SARAM 0x0800 /*SARAM 的開始地址(0800h-0FFFh)*/
#define EXTDATA 0x8000 /*外部的數(shù)據(jù)空間的開始地址*/
/*經(jīng)常用到的數(shù)據(jù)頁
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define DP_B2 0 /*頁 0 數(shù)據(jù)空間*/
#define DP_B01 4 /*頁 4 B0(200H/80H)*/
#define DP_B02 5 /*頁 5 B0(280H/80H)*/
#define DP_B11 6 /*頁 6 B1(300H/80H)*/
#define DP_B12 7 /*頁 7 B1(380H/80H)*/
#define DP_SARAM1 16 /*頁 16 SARAM(800H/80H)*/
#define DP_PF1 224 /*頁1 外設幀文件 (7000h/80h)(0xE0)*/
#define DP_PF2 225 /*頁 2 外設幀文件 (7080h/80h)(0xE1)*/
#define DP_PF3 226 /*頁 3 外設幀文件 (7100h/80h)(0xE2)*/
#define DP_PF4 227 /*頁 4外設幀文件(7180h/80h)(0xE3)*/
#define DP_PF5 228 /*頁 5外設幀文件(7200h/80h)(0xE4)*/
#define DP_EVA 232 /*EVA 寄存器文件 (7400h/80h)(0xE8)*/
#define DP_EVB 234 /*EVB 寄存器文件 (7500h/80h)(0xEA)*/
#define DP_EXT1 256 /*外部存儲器的第一塊(8000H/80H)*/
/*位測試指令的位代碼(BIT)
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define BIT15 0 /*位代碼 15*/
#define BIT14 1 /*位代碼14*/
#define BIT13 2 /*位代碼13*/
#define BIT12 3 /*位代碼12*/
#define BIT11 4 /*位代碼11*/
#define BIT10 5 /*位代碼10*/
#define BIT9 6 /*位代碼9*/
#define BIT8 7 /*位代碼8*/
#define BIT7 8 /*位代碼7*/
#define BIT6 9 /*位代碼6*/
#define BIT5 10 /*位代碼5*/
#define BIT4 11 /*位代碼4*/
#define BIT3 12 /*位代碼3*/
#define BIT2 13 /*位代碼2*/
#define BIT1 14 /*位代碼1*/
#define BIT0 15 /*位代碼0*/
/*用SBIT0和SBIT1宏屏蔽位
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define B15_MSK 0x8000 /*位屏蔽15*/
#define B14_MSK 0x4000 /*位屏蔽14*/
#define B13_MSK 0x2000 /*位屏蔽13*/
#define B12_MSK 0x1000 /*位屏蔽12*/
#define B11_MSK 0x0800 /*位屏蔽11*/
#define B10_MSK 0x0400 /*位屏蔽10*/
#define B9_MSK 0x0200 /*位屏蔽9*/
#define B8_MSK 0x0100 /*位屏蔽8*/
#define B7_MSK 0x0080 /*位屏蔽7*/
#define B6_MSK 0x0040 /*位屏蔽6*/
#define B5_MSK 0x0020 /*位屏蔽5*/
#define B4_MSK 0x0010 /*位屏蔽4*/
#define B3_MSK 0x0008 /*位屏蔽3*/
#define B2_MSK 0x0004 /*位屏蔽2*/
#define B1_MSK 0x0002 /*位屏蔽1*/
#define B0_MSK 0x0001 /*位屏蔽0*/
/*看門狗定時器復位字符串
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define wd_rst_1 0x0055
#define wd_rst_2 0x00AA
/*以下為用戶自行定義的變量
)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#endif//_LF2407REGS_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -