欢迎来到天天文库
浏览记录
ID:31569078
大小:140.50 KB
页数:14页
时间:2019-01-13
《c语言程序编写和调试环境简介》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、第4章C语言程序编写和调试环境简介4.1C编译器概述4.2TMS320C2x/C2xx/C5xC编译器环境介绍4.3利用TMS320C2x/C2xx/C5xC编译器开发应用程序的步骤4.4头文件和命令文件示例1.头文件LF2407REGS.H——在该头文件中,寄存器都以指针方式进行寻址。/**************************************************************;FileName:LF2407regs.h;Originator:TexasInstrument-ChongqingUniversityD
2、SPsLab.;Description:LF2407PeripheralRegisters+otherusefuldefinitions;**************************************************************//*--------------------------------------------------------------;片内外围寄存器定义;--------------------------------------------------------------*//*C2xx
3、内核寄存器;~~~~~~~~~~~~~~~~~~~~*/volatileunsignedint*IMR=(volatileunsignedint*)0x0004;/*中断屏蔽寄存器*/volatileunsignedint*GREG=(volatileunsignedint*)0x0005;/*全局变量定位寄存器*/volatileunsignedint*IFR=(volatileunsignedint*)0x0006;/*中断标志寄存器*/volatileunsignedint*ABRPT=(volatileunsignedint*)0x01f;
4、/*分析断点*/ioportunsignedportFFFF;#defineWSGRportFFFF/*系统模块寄存器;~~~~~~~~~~~~~~~~~~~~~~~*/volatileunsignedint*PIRQR0=(volatileunsignedint*)0x7010;/*外围中断请求寄存器0*/volatileunsignedint*PIRQR1=(volatileunsignedint*)0x7011;/*外围中断请求寄存器1*/95volatileunsignedint*PIRQR2=(volatileunsignedint*)0
5、x7012;/*外围中断请求寄存器2*/volatileunsignedint*PIACKR0=(volatileunsignedint*)0x7014;/*外围中断应答寄存器0*/volatileunsignedint*PIACKR1=(volatileunsignedint*)0x7015;/*外围中断应答寄存器1*/volatileunsignedint*PIACKR2=(volatileunsignedint*)0x7016;/*外围中断应答寄存器2*/volatileunsignedint*SCSR1=(volatileunsignedi
6、nt*)0x7018;/*系统控制和状态寄存器1*/volatileunsignedint*SCSR2=(volatileunsignedint*)0x7019;/*系统控制和状态寄存器2*/volatileunsignedint*DIN=(volatileunsignedint*)0x701C;/*期间识别寄存器*/volatileunsignedint*PVIR=(volatileunsignedint*)0x701E;/*外围中断向量寄存器*//*看门狗/实时中断(RTI)/锁相环(PLL)寄存器;~~~~~~~~~~~~~~~~~~~~~~
7、~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/volatileunsignedint*WDCNTR=(volatileunsignedint*)0x7023;/*看门狗计数寄存器*/volatileunsignedint*WDKEY=(volatileunsignedint*)0x7025;/*看门狗Key寄存器*/volatileunsignedint*WDCR=(volatileunsignedint*)0x7029;/*看门狗控制寄存器*//*外围串行接口(SPI)寄存器;~~~~~~~~~~~
8、~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/volatileunsignedint*SPICCR=
此文档下载收益归作者所有