📄 lf2407.h
字号:
volatile unsigned int *T2CNT =(volatile unsigned int*) 0x7405;
volatile unsigned int *T2CMPR =(volatile unsigned int*) 0x7406;
volatile unsigned int *T2PER =(volatile unsigned int*) 0x7407;
volatile unsigned int *T2CON =(volatile unsigned int*) 0x7408;
/* volatile unsigned int *T3CNT =(volatile unsigned int*) 0x7409;
volatile unsigned int *T3CMPR =(volatile unsigned int*) 0x740A;
volatile unsigned int *T3PER =(volatile unsigned int*) 0x740B;
volatile unsigned int *T3CON =(volatile unsigned int*) 0x740C;*/
volatile unsigned int *COMCONA =(volatile unsigned int*) 0x7411;
volatile unsigned int *ACTRA =(volatile unsigned int*) 0x7413;
/* volatile unsigned int *SACTR =(volatile unsigned int*) 0x7414; */
volatile unsigned int *DBTCONA =(volatile unsigned int*) 0x7415;
volatile unsigned int *CMPR1 =(volatile unsigned int*) 0x7417;
volatile unsigned int *CMPR2 =(volatile unsigned int*) 0x7418;
volatile unsigned int *CMPR3 =(volatile unsigned int*) 0x7419;
/* volatile unsigned int *SCMPR1 =(volatile unsigned int*) 0x741A;
volatile unsigned int *SCMPR2 =(volatile unsigned int*) 0x741B;
volatile unsigned int *SCMPR3 =(volatile unsigned int*) 0x741C;*/
volatile unsigned int *CAPCONA =(volatile unsigned int*) 0x7420;
volatile unsigned int *CAPFIFOA =(volatile unsigned int*) 0x7422;
volatile unsigned int *CAP1FIFO =(volatile unsigned int*) 0x7423;
volatile unsigned int *CAP2FIFO =(volatile unsigned int*) 0x7424;
volatile unsigned int *CAP3FIFO =(volatile unsigned int*) 0x7425;
/* volatile unsigned int *CAP4FIFO =(volatile unsigned int*) 0x7426;*/
volatile unsigned int *CAP1FBOT =(volatile unsigned int*) 0x7427;
volatile unsigned int *CAP2FBOT =(volatile unsigned int*) 0x7428;
volatile unsigned int *CAP3FBOT =(volatile unsigned int*) 0x7429;
volatile unsigned int *EVAIMRA =(volatile unsigned int*) 0x742C;
volatile unsigned int *EVAIMRB =(volatile unsigned int*) 0x742D;
volatile unsigned int *EVAIMRC =(volatile unsigned int*) 0x742E;
volatile unsigned int *EVAIFRA =(volatile unsigned int*) 0x742F;
volatile unsigned int *EVAIFRB =(volatile unsigned int*) 0x7430;
volatile unsigned int *EVIAFRC =(volatile unsigned int*) 0x7431;
/* volatile unsigned int *EVIVRA =(volatile unsigned int*) 0x7432;
volatile unsigned int *EVIVRB =(volatile unsigned int*) 0x7433;
volatile unsigned int *EVIVRC =(volatile unsigned int*) 0x7434;*/
volatile unsigned int *GPTCONB =(volatile unsigned int*) 0x7500;
volatile unsigned int *T3CNT =(volatile unsigned int*) 0x7501;
volatile unsigned int *T3CMPR =(volatile unsigned int*) 0x7502;
volatile unsigned int *T3PER =(volatile unsigned int*) 0x7503;
volatile unsigned int *T3CON =(volatile unsigned int*) 0x7504;
volatile unsigned int *T4CNT =(volatile unsigned int*) 0x7505;
volatile unsigned int *T4CMPR =(volatile unsigned int*) 0x7506;
volatile unsigned int *T4PER =(volatile unsigned int*) 0x7507;
volatile unsigned int *T4CON =(volatile unsigned int*) 0x7508;
volatile unsigned int *COMCONB =(volatile unsigned int*) 0x7511;
volatile unsigned int *ACTRB =(volatile unsigned int*) 0x7513;
volatile unsigned int *DBTCONB =(volatile unsigned int*) 0x7515;
volatile unsigned int *CMPR4 =(volatile unsigned int*) 0x7517;
volatile unsigned int *CMPR5 =(volatile unsigned int*) 0x7518;
volatile unsigned int *CMPR6 =(volatile unsigned int*) 0x7519;
volatile unsigned int *CAPCONB =(volatile unsigned int*) 0x7520;
volatile unsigned int *CAPFIFOB =(volatile unsigned int*) 0x7522;
volatile unsigned int *CAP4FIFO =(volatile unsigned int*) 0x7523;
volatile unsigned int *CAPFIFO5 =(volatile unsigned int*) 0x7524;
volatile unsigned int *CAPFIFO6 =(volatile unsigned int*) 0x7525;
volatile unsigned int *CAP4FBOT =(volatile unsigned int*) 0x7527;
volatile unsigned int *CAP5FBOT =(volatile unsigned int*) 0x7528;
volatile unsigned int *CAP6FBOT =(volatile unsigned int*) 0x7529;
volatile unsigned int *EVBIMRA =(volatile unsigned int*) 0x752C;
volatile unsigned int *EVMRMRB =(volatile unsigned int*) 0x752D;
volatile unsigned int *EVBRMRC =(volatile unsigned int*) 0x752E;
volatile unsigned int *EVBIFRA =(volatile unsigned int*) 0x752F;
volatile unsigned int *EVBIFRB =(volatile unsigned int*) 0x7530;
volatile unsigned int *EVBIFRC =(volatile unsigned int*) 0x7531;
/*
volatile unsigned int *PMPC =(volatile unsigned int*) 0xXX00;
volatile unsigned int *CTRL+ =(volatile unsigned int*) 0xXX01;
volatile unsigned int *WADDR =(volatile unsigned int*) 0xXX02;
volatile unsigned int *WDATA =(volatile unsigned int*) 0xXX03;
volatile unsigned int *TCR =(volatile unsigned int*) 0xXX04;
volatile unsigned int *ENAB =(volatile unsigned int*) 0xXX05;
volatile unsigned int *SECT =(volatile unsigned int*) 0xXX06;
*/
ioport unsigned portFFFF;
#define WSGR portFFFF
ioport unsigned port8002;
#define WSGR1 port8002
ioport unsigned port8003;
#define WSGR2 port8003
volatile unsigned int *FCMR =(volatile unsigned int*) 0xFF0F;
#define B2_SADDR 0x0060
#define B2_EADDR 0x007F
#define B0_SADDR 0x0200
#define B0_EADDR 0x02FF
#define B1_SADDR 0x0300
#define B1_EADDR 0x03FF
#define SARAM 0x0800/*SARAM首地址*/
#define EXTDATA 0x8000/*外部数据空间首地址*/
/*经常用到的数据页*/
#define DP_B2 0
#define DP_B01 4
#define DP_B02 5
#define DP_B11 6
#define DP_B12 7
#define DP_SARAM1 16
#define DP_PF1 224
#define DP_PF2 225
#define DP_PF3 226
#define DP_PF4 227
#define DP_PF5 228
#define DP_EVA 232
#define DP_EVB 234
#define DP_EXT1 256
/*位测试指令的位代码*/
#define BIT15 0
#define BIT14 1
#define BIT13 2
#define BIT12 3
#define BIT11 4
#define BIT10 5
#define BIT9 6
#define BIT8 7
#define BIT7 8
#define BIT6 9
#define BIT5 10
#define BIT4 11
#define BIT3 12
#define BIT2 13
#define BIT1 14
#define BIT0 15
/*用SBIT0和SBIT0宏屏蔽位*/
#define B15_MSK 0x8000
#define B14_MSK 0x4000
#define B13_MSK 0x2000
#define B12_MSK 0x1000
#define B11_MSK 0x0800
#define B10_MSK 0x0400
#define B9_MSK 0x0200
#define B8_MSK 0x0100
#define B7_MSK 0x0080
#define B6_MSK 0x0040
#define B5_MSK 0x0020
#define B4_MSK 0x0010
#define B3_MSK 0x0008
#define B2_MSK 0x0004
#define B1_MSK 0x0002
#define B0_MSK 0x0001
#define wd_ret_1 0x0055
#define wd_ret_2 0x00AA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -