📄 lf2407regs.h
字号:
volatile unsigned int *CANMBX4D = (volatile unsigned int *)0x7227 ; // CAN 2 of 8 bytes of Mailbox 4
volatile unsigned int *CANMSGID5L = (volatile unsigned int *)0x7228 ; // CAN Message ID for mailbox 5 (lower 16 bits)
volatile unsigned int *CANMSGID5H = (volatile unsigned int *)0x7229 ; // CAN Message ID for mailbox 5 (upper 16 bits)
volatile unsigned int *CANMSGCTRL5= (volatile unsigned int *)0x722A ; // CAN RTR and DLC
volatile unsigned int *CANMBX5A = (volatile unsigned int *)0x722C ; // CAN 2 of 8 bytes of Mailbox 5
volatile unsigned int *CANMBX5B = (volatile unsigned int *)0x722D ; // CAN 2 of 8 bytes of Mailbox 5
volatile unsigned int *CANMBX5C = (volatile unsigned int *)0x722E ; // CAN 2 of 8 bytes of Mailbox 5
volatile unsigned int *CANMBX5D = (volatile unsigned int *)0x722F;
/* Event Manager (EV) registers*/
volatile unsigned int *GPTCONA = (volatile unsigned int *)0x7400; // GP Timer control register.
volatile unsigned int *T1CNT = (volatile unsigned int *)0x7401; // GP Timer 1 counter register.
volatile unsigned int *T1CMPR = (volatile unsigned int *)0x7402; // GP Timer 1 compare register.
volatile unsigned int *T1PR = (volatile unsigned int *)0x7403; // GP Timer 1 period register.
volatile unsigned int *T1CON = (volatile unsigned int *)0x7404; // GP Timer 1 control register.
volatile unsigned int *T2CNT = (volatile unsigned int *)0x7405; // GP Timer 2 counter register.
volatile unsigned int *T2CMPR = (volatile unsigned int *)0x7406; // GP Timer 2 compare register.
volatile unsigned int *T2PR = (volatile unsigned int *)0x7407; // GP Timer 2 period register.
volatile unsigned int *T2CON = (volatile unsigned int *)0x7408; // GP Timer 2 control register.
volatile unsigned int *COMCONA = (volatile unsigned int *)0x7411; // Compare control register.
volatile unsigned int *ACTRA = (volatile unsigned int *)0x7413; // Full compare action control register.
volatile unsigned int *DBTCONA = (volatile unsigned int *)0x7415; // Dead-band timer control register.
volatile unsigned int *CMPR1 = (volatile unsigned int *)0x7417; // Full compare unit compare register1.
volatile unsigned int *CMPR2 = (volatile unsigned int *)0x7418; // Full compare unit compare register2.
volatile unsigned int *CMPR3 = (volatile unsigned int *)0x7419; // Full compare unit compare register3.
volatile unsigned int *CAPCONA = (volatile unsigned int *)0x7420; // Capture control register.
volatile unsigned int *CAPFIFOA = (volatile unsigned int *)0x7422; // Capture FIFO status register.
volatile unsigned int *CAP1FIFO = (volatile unsigned int *)0x7423; // Capture Channel 1 FIFO Top
volatile unsigned int *CAP2FIFO = (volatile unsigned int *)0x7424; // Capture Channel 2 FIFO Top
volatile unsigned int *CAP3FIFO = (volatile unsigned int *)0x7425; // Capture Channel 3 FIFO Top
volatile unsigned int *CAP1FBOT = (volatile unsigned int *)0x7427; // Capture Channel 1 FIFO Bottom
volatile unsigned int *CAP2FBOT = (volatile unsigned int *)0x7428; // Capture Channel 2 FIFO Bottom
volatile unsigned int *CAP3FBOT = (volatile unsigned int *)0x7429; // Capture Channel 3 FIFO Bottom
volatile unsigned int *EVAIMRA = (volatile unsigned int *)0x742C; // Group A Interrupt Mask Register
volatile unsigned int *EVAIMRB = (volatile unsigned int *)0x742D; // Group B Interrupt Mask Register
volatile unsigned int *EVAIMRC = (volatile unsigned int *)0x742E; // Group C Interrupt Mask Register
volatile unsigned int *EVAIFRA = (volatile unsigned int *)0x742F; // Group A Interrupt Flag Register
volatile unsigned int *EVAIFRB = (volatile unsigned int *)0x7430; // Group B Interrupt Flag Register
volatile unsigned int *EVAIFRC = (volatile unsigned int *)0x7431; // Group C Interrupt Flag register
volatile unsigned int *GPTCONB = (volatile unsigned int *)0x7500; // Group C Interrupt Flag Register
volatile unsigned int *T3CNT = (volatile unsigned int *)0x7501; // Group C Interrupt Flag Register
volatile unsigned int *T3CMPR = (volatile unsigned int *)0x7502; // Group C Interrupt Flag Register
volatile unsigned int *T3PR = (volatile unsigned int *)0x7503; // Group C Interrupt Flag Register
volatile unsigned int *T3CON = (volatile unsigned int *)0x7504; // Group C Interrupt Flag Register
volatile unsigned int *T4CNT = (volatile unsigned int *)0x7505; // Group C Interrupt Flag Register
volatile unsigned int *T4CMPR = (volatile unsigned int *)0x7506; // Group C Interrupt Flag Register
volatile unsigned int *T4PR = (volatile unsigned int *)0x7507; // Group C Interrupt Flag Register
volatile unsigned int *T4CON = (volatile unsigned int *)0x7508; // Group C Interrupt Flag Register
volatile unsigned int *COMCONB = (volatile unsigned int *)0x7511; // Group C Interrupt Flag Register
volatile unsigned int *ACTRB = (volatile unsigned int *)0x7513; // Group C Interrupt Flag Register
volatile unsigned int *DBTCONB = (volatile unsigned int *)0x7515; // Group C Interrupt Flag Register
volatile unsigned int *CMPR4 = (volatile unsigned int *)0x7517; // Group C Interrupt Flag Register
volatile unsigned int *CMPR5 = (volatile unsigned int *)0x7518; // Group C Interrupt Flag Register
volatile unsigned int *CMPR6 = (volatile unsigned int *)0x7519; // Group C Interrupt Flag Register
volatile unsigned int *CAPCONB = (volatile unsigned int *)0x7520; // Group C Interrupt Flag Register
volatile unsigned int *CAPFIFOB = (volatile unsigned int *)0x7522; // Group C Interrupt Flag Register
volatile unsigned int *CAP4FIFO = (volatile unsigned int *)0x7523; // Group C Interrupt Flag Register
volatile unsigned int *CAP5FIFO = (volatile unsigned int *)0x7524; // Group C Interrupt Flag Register
volatile unsigned int *CAP6FIFO = (volatile unsigned int *)0x7525; // Group C Interrupt Flag Register
volatile unsigned int *CAP4FBOT = (volatile unsigned int *)0x7527; // Group C Interrupt Flag Register
volatile unsigned int *CAP5FBOT = (volatile unsigned int *)0x7528; // Group C Interrupt Flag Register
volatile unsigned int *CAP6FBOT = (volatile unsigned int *)0x7529; // Group C Interrupt Flag Register
volatile unsigned int *EVBIMRA = (volatile unsigned int *)0x752c; // Group C Interrupt Flag Register
volatile unsigned int *EVBIMRB = (volatile unsigned int *)0x752d; // Group C Interrupt Flag Register
volatile unsigned int *EVBIMRC = (volatile unsigned int *)0x752e; // Group C Interrupt Flag Register
volatile unsigned int *EVBIFRA = (volatile unsigned int *)0x752f; // Group C Interrupt Flag Register
volatile unsigned int *EVBIFRB = (volatile unsigned int *)0x7530; // Group C Interrupt Flag Register
volatile unsigned int *EVBIFRC = (volatile unsigned int *)0x7531; // Group C Interrupt Flag Register
//-----------------------------=--------------------------------------------
// I/O space mapped registers
//--------------------------------------------------------------------------
volatile unsigned int *WSGR = (volatile unsigned int *)0xFFFF; // Wait-State Generator Control Reg
//--------------------------------------------------------------------------
// Data Page pointer definition
//--------------------------------------------------------------------------
#define B2_SADDR 0x0060 //Page 1 of peripheral file (7000h/80h
#define B2_EADDR 0x007f //Page 1 of peripheral file (7000h/80h
#define B0_SADDR 0x0200 //Page 1 of peripheral file (7000h/80h
#define B0_EADDR 0x02ff //Page 1 of peripheral file (7000h/80h
#define B1_SADDR 0x0300 //Page 1 of peripheral file (7000h/80h
#define B1_EADDR 0x03ff //Page 1 of peripheral file (7000h/80h
#define SARAM 0x0800 //Page 1 of peripheral file (7000h/80h
#define EXTDATA 0x8000 //Page 1 of peripheral file (7000h/80h
#define DP_B2 0 //Page 1 of peripheral file (7000h/80h
#define DP_B01 4 //Page 1 of peripheral file (7000h/80h
#define DP_B02 5 //Page 1 of peripheral file (7000h/80h
#define DP_B11 6 //Page 1 of peripheral file (7000h/80h
#define DP_B12 7 //Page 1 of peripheral file (7000h/80h
#define DP_SARAM1 16 //Page 1 of peripheral file (7000h/80h
#define DP_PF1 224 //Page 1 of peripheral file (7000h/80h
#define DP_PF2 225 //Page 1 of peripheral file (7000h/80h
#define DP_PF3 226 //Page 1 of peripheral file (7000h/80h
#define DP_PF4 227 //Page 1 of peripheral file (7000h/80h
#define DP_PF5 228 //Page 1 of peripheral file (7000h/80h
#define DP_EVA 232 //EV Registers Page
#define DP_EVB 234 //EV Registers Page
#define DP_EXT1 256 //EV Registers Page
//--------------------------------------------------------------------------
// Bit codes for Test bit instruction (BIT) (15 Loads bit 0 into TC)
//--------------------------------------------------------------------------
#define BIT15 0x0000 // Bit Code for 15
#define BIT14 0x0001 // Bit Code for 14
#define BIT13 0x0002 // Bit Code for 13
#define BIT12 0x0003 // Bit Code for 12
#define BIT11 0x0004 // Bit Code for 11
#define BIT10 0x0005 // Bit Code for 10
#define BIT9 0x0006 // Bit Code for 9
#define BIT8 0x0007 // Bit Code for 8
#define BIT7 0x0008 // Bit Code for 7
#define BIT6 0x0009 // Bit Code for 6
#define BIT5 0x000A // Bit Code for 5
#define BIT4 0x000B // Bit Code for 4
#define BIT3 0x000C // Bit Code for 3
#define BIT2 0x000D // Bit Code for 2
#define BIT1 0x000E // Bit Code for 1
#define BIT0 0x000F // Bit Code for 0
#define B15_MSK 0x8000 // Bit MASK for 15
#define B14_MSK 0x4000 // Bit MASK for 14
#define B13_MSK 0x2000 // Bit MASK for 13
#define B12_MSK 0x1000 // Bit MASK for 12
#define B11_MSK 0x0800 // Bit MASK for 11
#define B10_MSK 0x0400 // Bit MASK for 10
#define B9_MSK 0x0200 // Bit MASK for 9
#define B8_MSK 0x0100 // Bit MASK for 8
#define B7_MSK 0x0080 // Bit MASK for 7
#define B6_MSK 0x0040 // Bit MASK for 6
#define B5_MSK 0x0020 // Bit MASK for 5
#define B4_MSK 0x0010 // Bit MASK for 4
#define B3_MSK 0x0008 // Bit MASK for 3
#define B2_MSK 0x0004 // Bit MASK for 2
#define B1_MSK 0x0002 // Bit MASK for 1
#define B0_MSK 0x0001 // Bit MASK for 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -