寄存器表和起始地址_第1页
寄存器表和起始地址_第2页
寄存器表和起始地址_第3页
寄存器表和起始地址_第4页
寄存器表和起始地址_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、/*; File Name :LF2407regs.h; Originator :Texas Instrument-Chongqing University DSPs Lab.; Description:LF2407 Peripheral Registers + other useful definitions;*/*-; 片内外围寄存器定义;-*/*C2xx 内核寄存器;*/volatile unsigned int * IMR = (volatile unsigned int * ) 0x0004; /*中断屏蔽寄存器*/volatile unsigned int *GREG = (vol

2、atile 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 unsig

3、ned 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 unsig

4、ned 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;/* 系

5、统控制和状态寄存器2*/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;/*看门狗计数寄存器*/volatile unsigned int *

6、WDKEY = (volatile unsigned int *) 0x7025;/* 看门狗 Key 寄存器*/volatile unsigned int * WDCR = (volatile unsigned int *) 0x7029;/* 看门狗控制寄存器*/ /*外围串行接口(SPI)寄存器;*/volatile unsigned int * SPICCR = (volatile unsigned int *) 0x7040;/* SPI配置控制寄存器1 */volatile unsigned int * SPICTL = (volatile unsigned int *) 0x70

7、41;/* SPI 运行控制寄存器2 */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 * SPIRXBU

8、F= (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 端口控

9、制寄存器1 */volatile unsigned int * SPIPC2 = (volatile unsigned int *) 0x704E;/* SPI端口控制寄存器2 */volatile unsigned int * SPIPRI = (volatile unsigned int *) 0x7023;/* SPI 优先级控制寄存器 */* 串行通信接口寄存器;*/volatile unsigned int * SCICCR = (volatile unsigned int *) 0x7050;/* SCI 通讯控制寄存器*/volatile unsigned int * SCICT

10、L1 = (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 控

11、制寄存器2*/volatile unsigned int * SCIRXST = (volatile unsigned int *) 0x7055;/* SCI 接收状态寄存器*/volatile unsigned int * SCIRXEMU= (volatile unsigned int *) 0x7056;/* SCI EMU 数据缓冲寄存器*/volatile unsigned int * SCIRXBUF= (volatile unsigned int *) 0x7057;/* SCI 接收数据缓冲寄存器 */volatile unsigned int * SCITXBUF= (vo

12、latile unsigned int *) 0x7059;/* SCI发送数据缓冲寄存器 */volatile unsigned int * SCIPRI = (volatile unsigned int *) 0x705F;/* SCI 优先级控制寄存器 */* 外围中断配置寄存器;*/volatile unsigned int * XINT1CR = (volatile unsigned int *) 0x7070;/* Int1 配置寄存器*/volatile unsigned int * XINT2CR = (volatile unsigned int *) 0x7071;/* In

13、t2 配置寄存器*/* 数字 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 * IPSR

14、A = (volatile unsigned int *) 0x7094;/*输入状态寄存器A*/volatile unsigned int * IPSRB = (volatile unsigned int *) 0x7096;/*输入状态寄存器B*/volatile unsigned int * PADATDIR = (volatile unsigned int *) 0x7098;/* I/O 端口 A 数据和方向控制寄存器*/ volatile unsigned int * PBDATDIR= (volatile unsigned int *) 0x709A;/* I/O 端口 B 数据

15、和方向控制寄存器*/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 unsigne

16、d 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 un

17、signed int *) 0x70A2;/*最大转换通道寄存器*/ volatile unsigned int * CHSELSEQ1 = (volatile unsigned int *) 0x70A3;/*通道选择域 :结果 3,2,1,0*/ volatile unsigned int * CHSELSEQ2 = (volatile unsigned int *) 0x70A4;/*通道选择域 :结果 7,6,5,4*/volatile unsigned int * CHSELSEQ3 = (volatile unsigned int *) 0x70A5;/*通道选择域 :结果 11,

18、10,9,8*/volatile unsigned int * CHSELSEQ4 = (volatile unsigned int *) 0x70A6;/*通道选择域 :结果 15,14,13,12*/ volatile unsigned int * AUTO_SEQ_SR = (volatile unsigned int *) 0x70A7;/* 自动排序状态寄存器 */ volatile unsigned int * RESULT0 = (volatile unsigned int *) 0x70A8;/* 转换结果寄存器 0*/ volatile unsigned int * RESU

19、LT1 = (volatile unsigned int *) 0x70A9;/* 转换结果寄存器 1*/ volatile unsigned int * RESULT2 = (volatile unsigned int *) 0x70AA;/* 转换结果寄存器 2*/ volatile unsigned int * RESULT3 = (volatile unsigned int *) 0x70AB;/* 转换结果寄存器 3*/ volatile unsigned int * RESULT4 = (volatile unsigned int *) 0x70AC;/* 转换结果寄存器 4*/v

20、olatile unsigned int * RESULT5 = (volatile unsigned int *) 0x70AD;/* 转换结果寄存器 5*/ volatile unsigned int * RESULT6 = (volatile unsigned int *) 0x70AE;/* 转换结果寄存器 6*/ volatile unsigned int * RESULT7 = (volatile unsigned int *) 0x70AF;/* 转换结果寄存器 7*/ volatile unsigned int * RESULT8 = (volatile unsigned in

21、t *) 0x70B0;/* 转换结果寄存器 8*/volatile unsigned int * RESULT9 = (volatile unsigned int *) 0x70B1;/* 转换结果寄存器 9*/ volatile unsigned int * RESULT10 = (volatile unsigned int *) 0x70B2;/* 转换结果寄存器 10*/volatile unsigned int * RESULT11= (volatile unsigned int *) 0x70B3;/* 转换结果寄存器 11*/ volatile unsigned int * RE

22、SULT12= (volatile unsigned int *) 0x70B4;/* 转换结果寄存器 12*/ volatile unsigned int * RESULT13= (volatile unsigned int *) 0x70B5;/* 转换结果寄存器 13*/ volatile unsigned int * RESULT14= (volatile unsigned int *) 0x70B6;/* 转换结果寄存器 14*/ volatile unsigned int * RESULT15= (volatile unsigned int *) 0x70B7;/* 转换结果寄存器

23、 15*/volatile unsigned int * CALIBRATION = (volatile unsigned int *) 0x70B8;/* 校准寄存器*/*局部控制网络(CAN) 寄存器 ;*/volatile unsigned int * CANMDER = (volatile unsigned int *) 0x7100;/* 邮包方向/使能寄存器*/ volatile unsigned int * CANTCR = (volatile unsigned int *) 0x7101;/* 发送控制寄存器*/ volatile unsigned int * CANRCR =

24、 (volatile unsigned int *) 0x7102;/* 接收控制寄存器*/ volatile unsigned int * CANMCR = (volatile unsigned int *) 0x7103;/* 主动控制寄存器*/volatile unsigned int * CANBCR2 = (volatile unsigned int *) 0x7104;/* 位配置寄存器2*/ volatile unsigned int * CANBCR1 = (volatile unsigned int *) 0x7105;/* 位配置寄存器1*/ volatile unsign

25、ed int * CANESR = (volatile unsigned int *) 0x7106;/* 错误状态寄存器*/ volatile unsigned int * CANGSR = (volatile unsigned int *) 0x7107;/* 全局状态寄存器 */volatile unsigned int * CANCEC = (volatile unsigned int *) 0x7108;/* CAN 错误计数寄存器*/volatile unsigned int * CANIFR = (volatile unsigned int *) 0x7109;/* CAN 中断

26、标志寄存器*/volatile unsigned int * CANIMR= (volatile unsigned int *) 0x710A;/* CAN 中断屏蔽寄存器 */ volatile unsigned int * CANLAM0H= (volatile unsigned int *) 0x710B;/* 局部接收屏蔽寄存器0 高位*/volatile unsigned int * CANLAM0L= (volatile unsigned int *) 0x710C;/* 局部接收屏蔽寄存器0 低位*/volatile unsigned int * CANLAM1H= (volat

27、ile unsigned int *) 0x710D;/* 局部接收屏蔽寄存器1 高位*/ volatile unsigned int * CANLAM1L= (volatile unsigned int *) 0x710E;/* 局部接收屏蔽寄存器1 低位*/volatile unsigned int * CANMSGID0L = (volatile unsigned int *) 0x7200;/* 对于邮包0的信息标志符 低位 */ volatile unsigned int * CANMSGID0H = (volatile unsigned int *) 0x7201;/* 对于邮包0

28、的信息标志符 高位 */ volatile unsigned int * CANMSGCTRL0= (volatile unsigned int *) 0x7202;/*对于邮包0的信息控制域*/volatile unsigned int * CANMBX0A = (volatile unsigned int *) 0x7204;/* 邮包0 A*/volatile unsigned int * CANMBX0B=(volatile unsigned int *) 0x7205;/* 邮包0 B*/volatile unsigned int * CANMBX0C= (volatile unsi

29、gned int *) 0x7206;/* 邮包 0 C*/volatile unsigned int * CANMBX0D= (volatile unsigned int *) 0x7207;/* 邮包 0 D*/volatile unsigned int * CANMSGID1L = (volatile unsigned int *) 0x7208;/* 对于邮包1的信息标志符 低位 */ volatile unsigned int * CANMSGID1H = (volatile unsigned int *) 0x7209;/* 对于邮包1的信息标志符 高位 */volatile un

30、signed int * CANMSGCTRL1= (volatile unsigned int *) 0x720A;/*对于邮包1的信息控制域*/volatile unsigned int * CANMBX1A= (volatile unsigned int *) 0x720C;/*邮包 1 A*/volatile unsigned int * CANMBX1B= (volatile unsigned int *) 0x720D;/* 邮包 1 B*/volatile unsigned int * CANMBX1C= (volatile unsigned int *) 0x720E;/* 邮

31、包 1 C*/volatile unsigned int * CANMBX1D= (volatile unsigned int *) 0x720F;/* 邮包 1 D*/volatile unsigned int * CANMSGID2L = (volatile unsigned int *) 0x7210;/* 对于邮包2的信息标志符 低位 */ volatile unsigned int * CANMSGID2H = (volatile unsigned int *) 0x7211;/* 对于邮包2的信息标志符 高位 */volatile unsigned int * CANMSGCTRL

32、2 = (volatile unsigned int *) 0x7212;/*对于邮包2的信息控制域*/volatile unsigned int * CANMBX2A = (volatile unsigned int *) 0x7214;/* 邮包 2 A*/volatile unsigned int * CANMBX2B = (volatile unsigned int *) 0x7215;/*邮包2 B*/volatile unsigned int * CANMBX2C = (volatile unsigned int *) 0x7216;/*邮包2 C*/volatile unsign

33、ed int * CANMBX2D = (volatile unsigned int *) 0x7217;/*邮包2 D*/volatile unsigned int * CANMSGID3L = (volatile unsigned int *) 0x7218;/* 对于邮包3的信息标志符 低位 */ volatile unsigned int * CANMSGID3H = (volatile unsigned int *) 0x7219;/* 对于邮包3的信息标志符 高位 */volatile unsigned int * CANMSGCTRL3 = (volatile unsigned

34、int *) 0x721A;/*对于邮包3的信息控制域*/volatile unsigned int * CANMBX3A = (volatile unsigned int *) 0x721C;/* 邮包 3 A*/volatile unsigned int * CANMBX3B = (volatile unsigned int *) 0x721D;/* 邮包 3 B*/volatile unsigned int * CANMBX3C = (volatile unsigned int *) 0x721E;/* 邮包 3 C*/volatile unsigned int * CANMBX3D =

35、(volatile unsigned int *) 0x721F;/* 邮包 3 D*/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;/*对于邮

36、包4的信息控制域*/volatile unsigned int * CANMBX4A= (volatile unsigned int *) 0x7224;/* 邮包 4 A*/volatile unsigned int * CANMBX4B= (volatile unsigned int *) 0x7225;/* 邮包 4 B*/volatile unsigned int * CANMBX4C= (volatile unsigned int *) 0x7226;/* 邮包 4 C*/volatile unsigned int * CANMBX4D= (volatile unsigned int

37、 *) 0x7227;/* 邮包 4 D*/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;/*对于邮包5的信息控制域*/volatile uns

38、igned int * CANMBX5A= (volatile unsigned int *) 0x722C;/* 邮包 5 A*/volatile unsigned int * CANMBX5B= (volatile unsigned int *) 0x722D;/* 邮包 5 B*/volatile unsigned int * CANMBX5C= (volatile unsigned int *) 0x722E;/* 邮包 5 C*/volatile unsigned int * CANMBX5D= (volatile unsigned int *) 0x722F;/*邮包5 D*/*事

39、件管理器 (EV)/ 事件管理器 A (EVA) 寄存器;*/volatile unsigned int * GPTCONA = (volatile unsigned int *) 0x7400;/* 通用定时器控制寄存器*/volatile unsigned int * T1CNT = (volatile unsigned int *) 0x7401;/* T1 计数器*/volatile unsigned int * T1CMP = (volatile unsigned int *) 0x7402;/* T1 比较值寄存器*/volatile unsigned int * T1PER =

40、(volatile unsigned int *) 0x7403;/* T1 周期寄存器*/volatile unsigned int * T1CON = (volatile unsigned int *) 0x7404;/* T1 控制寄存器*/volatile unsigned int * T2CNT = (volatile unsigned int *) 0x7405;/* T2 计数器*/volatile unsigned int * T2CMP = (volatile unsigned int *) 0x7406;/* T2 比较值寄存器*/volatile unsigned int

41、 * T2PER = (volatile unsigned int *) 0x7407;/* T2 周期寄存器*/volatile unsigned int * T2CON = (volatile unsigned int *) 0x7408;/* T2 控制寄存器*/volatile unsigned int * COMCONA = (volatile unsigned int *) 0x7411;/* 比较控制寄存器*/volatile unsigned int * ACTRA = (volatile unsigned int *) 0x7413;/* 比较输出动作控制寄存器*/volat

42、ile unsigned int * DBTCONA = (volatile unsigned int *) 0x7415;/* 死区控制寄存器*/volatile unsigned int * CMPR1 = (volatile unsigned int *) 0x7417;/* 比较值1*/volatile unsigned int * CMPR2 = (volatile unsigned int *) 0x7418;/* 比较值2*/volatile unsigned int * CMPR3 = (volatile unsigned int *) 0x7419;/* 比较值3*/vola

43、tile unsigned int * CAPCONA = (volatile unsigned int *) 0x7420;/* 捕捉控制寄存器*/volatile unsigned int * CAPFIFOA= (volatile unsigned int *) 0x7422;/* 捕捉 FIFO A 状态寄存器*/volatile unsigned int * CAP1FIFO= (volatile unsigned int *) 0x7423;/* 捕捉1 FIFO 顶部*/volatile unsigned int * CAP2FIFO= (volatile unsigned in

44、t *) 0x7424;/* 捕捉 2 FIFO 顶部*/volatile unsigned int * CAP3FIFO= (volatile unsigned int *) 0x7425;/* 捕捉 3 FIFO 顶部*/volatile unsigned int * CAP1FBOT= (volatile unsigned int *) 0x7427;/* 捕捉 1 FIFO 底部 */volatile unsigned int * CAP2FBOT= (volatile unsigned int *) 0x7428;/* 捕捉 2 FIFO 底部 */volatile unsigned

45、 int * CAP3FBOT = (volatile unsigned int *) 0x7429; /* 捕捉 2 FIFO 底部 */volatile unsigned int * EVAIMRA= (volatile unsigned int *) 0x742C;/* EVA 中断屏蔽寄存器 A*/volatile unsigned int * EVAIMRB= (volatile unsigned int *) 0x742D;/* EVA中断屏蔽寄存器 B*/volatile unsigned int * EVAIMRC= (volatile unsigned int *) 0x74

46、2E;/* EVA 中断屏蔽寄存器 C*/volatile unsigned int * EVAIFRA= (volatile unsigned int *) 0x742F;/* EVA中断标志寄存器 A*/volatile unsigned int * EVAIFRB= (volatile unsigned int *) 0x7430;/* EVA 中断标志寄存器 B*/volatile unsigned int * EVAIFRC= (volatile unsigned int *) 0x7431;/* EVA中断标志寄存器 C*/*事件管理器 B (EVB) 寄存器;*/volatile

47、 unsigned int * GPTCONB = (volatile unsigned int *) 0x7500;/*通用定时器控制寄存器*/volatile unsigned int * T3CNT = (volatile unsigned int *) 0x7501;/* T3计数器*/volatile unsigned int * T3CMP = (volatile unsigned int *) 0x7502;/* T3比较值寄存器*/volatile unsigned int * T3PER = (volatile unsigned int *) 0x7503;/* T3周期寄存

48、器*/volatile unsigned int * T3CON = (volatile unsigned int *) 0x7504;/* T3控制寄存器*/volatile unsigned int * T4CNT = (volatile unsigned int *) 0x7505;/* T4计数器*/volatile unsigned int * T4CMP = (volatile unsigned int *) 0x7506;/* T4比较值寄存器*/volatile unsigned int * T4PER = (volatile unsigned int *) 0x7507;/*

49、 T4周期寄存器*/volatile unsigned int * T4CON = (volatile unsigned int *) 0x7508;/* T4控制寄存器*/volatile unsigned int * COMCONB = (volatile unsigned int *) 0x7511;/*比较控制寄存器*/volatile unsigned int * ACTRB = (volatile unsigned int *) 0x7513;/*比较输出动作控制寄存器*/volatile unsigned int * DBTCONB = (volatile unsigned in

50、t *) 0x7515;/*死区控制寄存器*/volatile unsigned int * CMPR4 = (volatile unsigned int *) 0x7517;/*比较值4*/volatile unsigned int * CMPR5 = (volatile unsigned int *) 0x7518;/*比较值5*/volatile unsigned int * CMPR6 = (volatile unsigned int *) 0x7519;/*比较值6*/volatile unsigned int * CAPCONB = (volatile unsigned int *

51、) 0x7520;/*捕捉控制寄存器*/volatile unsigned int * CAPFIFOB= (volatile unsigned int *) 0x7522;/* 捕捉FIFO A 状态寄存器*/volatile unsigned int * CAP4FIFO= (volatile unsigned int *) 0x7523;/* 捕捉 4 FIFO 顶部*/volatile unsigned int * CAP5FIFO= (volatile unsigned int *) 0x7524;/* 捕捉 5 FIFO 顶部*/volatile unsigned int * CAP6FIFO= (volatile unsigned int *) 0x7525;/* 捕捉 6 FIFO 顶部*/volatile unsigned int * CAP4FBOT= (volatile unsigned int *) 0x7527;/* 捕捉 4 FIFO 底部*/ volatile unsigned int * CAP5FBOT= (volatile unsigned int *) 0x7528;/*捕捉 5 FIFO 底部*

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论