?? register1.h
字號:
/*; 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 = (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
/* 數字 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 * IPSRA = (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 數據和方向控制寄存器*/
/*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;
/*通道選擇域 :結果 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,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 * RESULT1 = (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*/
volatile 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 int *) 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 * RESULT12 = (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;
/* 轉換結果寄存器 15*/
volatile unsigned int * CALIBRATION = (volatile unsigned int *) 0x70B8;
/* 校準寄存器*/
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;
/* T4周期寄存器*/
volatile unsigned int * T4CON = (volatile unsigned int *) 0x7508;
/* T4控制寄存器*/
volatile unsigned int * EVBIFRB = (volatile unsigned int *) 0x7530;
/* EVB 中斷標志寄存器 B*/
volatile unsigned int *SCSR1 = (volatile unsigned int *) 0x7018;
/* 系統控制和狀態寄存器1*/
volatile unsigned int * GPTCONB = (volatile unsigned int *) 0x7500;
/*通用定時器控制寄存器*/
volatile unsigned int * WDCR = (volatile unsigned int *) 0x7029;
/* 看門狗控制寄存器*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -