📄 u_c33cpu.h
字号:
unsigned char FSTX0 : 1; /* Serial I/F Ch.0 transmit buffer empty */
unsigned char FSERR1 : 1; /* Serial I/F Ch.1 receive error */
unsigned char FSRX1 : 1; /* Serial I/F Ch.1 receive buffer full */
unsigned char FSTX1 : 1; /* Serial I/F Ch.1 transmit buffer empty */
} bISR;
volatile unsigned char ucISR;
} rISR7;
union { /* Port input 4-7, clock timer, A/D interrupt request flag enable */
volatile struct {
unsigned char FADE : 1; /* A/D converter */
unsigned char FCTM : 1; /* Clock timer */
unsigned char FP4 : 1; /* Port input 4 */
unsigned char FP5 : 1; /* Port input 5 */
unsigned char FP6 : 1; /* Port input 6 */
unsigned char FP7 : 1; /* Port input 7 */
} bISR;
volatile unsigned char ucISR;
} rISR8;
unsigned char Dummy2[8];
union { /* Port input 0-3, high-speed DMA, 16-bit timer 0 IDMA request register */
volatile struct {
unsigned char RP0 : 1; /* Port input 0 IDMA request */
unsigned char RP1 : 1; /* Port input 1 IDMA request */
unsigned char RP2 : 1; /* Port input 2 IDMA request */
unsigned char RP3 : 1; /* Port input 3 IDMA request */
unsigned char RHDM0 : 1; /* High-speed DMA Ch.0 IDMA request */
unsigned char RHDM1 : 1; /* High-speed DMA Ch.1 IDMA request */
unsigned char R16TU0 : 1; /* 16-bit timer 0 comparison B IDMA request */
unsigned char R16TC0 : 1; /* 16-bit timer 0 comparison A IDMA request */
} bIDMAREQ;
volatile unsigned char ucIDMAREQ;
} rIDMAREQ1;
union { /* 16-bit timer 1-4 IDMA request register */
volatile struct {
unsigned char R16TU1 : 1; /* 16-bit timer 1 comparison B IDMA request */
unsigned char R16TC1 : 1; /* 16-bit timer 1 comparison A IDMA request */
unsigned char R16TU2 : 1; /* 16-bit timer 2 comparison B IDMA request */
unsigned char R16TC2 : 1; /* 16-bit timer 2 comparison A IDMA request */
unsigned char R16TU3 : 1; /* 16-bit timer 3 comparison B IDMA request */
unsigned char R16TC3 : 1; /* 16-bit timer 3 comparison A IDMA request */
unsigned char R16TU4 : 1; /* 16-bit timer 4 comparison B IDMA request */
unsigned char R16TC4 : 1; /* 16-bit timer 4 comparison A IDMA request */
} bIDMAREQ;
volatile unsigned char ucIDMAREQ;
} rIDMAREQ2;
union { /* 16-bit timer 5, 8-bit timer, serial I/F Ch.0 IDMA request register */
volatile struct {
unsigned char R16TU5 : 1; /* 16-bit timer 5 comparison B IDMA request */
unsigned char R16TC5 : 1; /* 16-bit timer 5 comparison A IDMA request */
unsigned char R8TU0 : 1; /* 8-bit timer 0 underflow IDMA request */
unsigned char R8TU1 : 1; /* 8-bit timer 1 underflow IDMA request */
unsigned char R8TU2 : 1; /* 8-bit timer 2 underflow IDMA request */
unsigned char R8TU3 : 1; /* 8-bit timer 3 underflow IDMA request */
unsigned char RSRX0 : 1; /* Serial I/F Ch.0 receive buffer full IDMA request */
unsigned char RSTX0 : 1; /* Serial I/F Ch.0 receive buffer empty IDMA request */
} bIDMAREQ;
volatile unsigned char ucIDMAREQ;
} rIDMAREQ3;
union { /* Serial I/F Ch.1, A/D, port input 4-7 IDMA request register */
volatile struct {
unsigned char RSRX1 : 1; /* Serial I/F Ch.1 receive buffer full IDMA request */
unsigned char RSTX1 : 1; /* Serial I/F Ch.1 receive buffer empty IDMA request */
unsigned char RADE : 1; /* A/D converter conversion end IDMA request */
unsigned char Dummy : 1; /* D3 reserved */
unsigned char RP4 : 1; /* Port input 4 IDMA request */
unsigned char RP5 : 1; /* Port input 5 IDMA request */
unsigned char RP6 : 1; /* Port input 6 IDMA request */
unsigned char RP7 : 1; /* Port input 7 IDMA request */
} bIDMAREQ;
volatile unsigned char ucIDMAREQ;
} rIDMAREQ4;
union { /* Port input 0-3, high-speed DMA, 16-bit timer 0 IDMA enable register */
volatile struct {
unsigned char DEP0 : 1; /* Port input 0 IDMA enable */
unsigned char DEP1 : 1; /* Port input 1 IDMA enable */
unsigned char DEP2 : 1; /* Port input 2 IDMA enable */
unsigned char DEP3 : 1; /* Port input 3 IDMA enable */
unsigned char DEHDM0 : 1; /* High-speed DMA Ch.0 IDMA enable */
unsigned char DEHDM1 : 1; /* High-speed DMA Ch.1 IDMA enable */
unsigned char DE16TU0 : 1; /* 16-bit timer 0 comparison B IDMA enable */
unsigned char DE16TC0 : 1; /* 16-bit timer 0 comparison A IDMA enable */
} bIDMA_EN;
volatile unsigned char ucIDMA_EN;
} rIDMA_EN1;
union { /* 16-bit timer 1-4 IDMA enable register */
volatile struct {
unsigned char DE16TU1 : 1; /* 16-bit timer 1 comparison B IDMA enable */
unsigned char DE16TC1 : 1; /* 16-bit timer 1 comparison A IDMA enable */
unsigned char DE16TU2 : 1; /* 16-bit timer 2 comparison B IDMA enable */
unsigned char DE16TC2 : 1; /* 16-bit timer 2 comparison A IDMA enable */
unsigned char DE16TU3 : 1; /* 16-bit timer 3 comparison B IDMA enable */
unsigned char DE16TC3 : 1; /* 16-bit timer 3 comparison A IDMA enable */
unsigned char DE16TU4 : 1; /* 16-bit timer 4 comparison B IDMA enable */
unsigned char DE16TC4 : 1; /* 16-bit timer 4 comparison A IDMA enable */
} bIDMA_EN;
volatile unsigned char ucIDMA_EN;
} rIDMA_EN2;
union { /* 16-bit timer 5, 8-bit timer, serial I/F Ch.0 IDMA enable register */
volatile struct {
unsigned char DE16TU5 : 1; /* 16-bit timer 5 comparison B IDMA enable */
unsigned char DE16TC5 : 1; /* 16-bit timer 5 comparison A IDMA enable */
unsigned char DE8TU0 : 1; /* 8-bit timer 0 underflow IDMA enable */
unsigned char DE8TU1 : 1; /* 8-bit timer 1 underflow IDMA enable */
unsigned char DE8TU2 : 1; /* 8-bit timer 2 underflow IDMA enable */
unsigned char DE8TU3 : 1; /* 8-bit timer 3 underflow IDMA enable */
unsigned char DESRX0 : 1; /* Serial I/F Ch.0 receive buffer full IDMA enable */
unsigned char DESTX0 : 1; /* Serial I/F Ch.0 receive buffer empty IDMA enable */
} bIDMA_EN;
volatile unsigned char ucIDMA_EN;
} rIDMA_EN3;
union { /* Serial I/F Ch.1, A/D, port input 4-7 IDMA enable register */
volatile struct {
unsigned char DESRX1 : 1; /* Serial I/F Ch.1 receive buffer full IDMA enable */
unsigned char DESTX1 : 1; /* Serial I/F Ch.1 receive buffer empty IDMA enable */
unsigned char DEADE : 1; /* A/D converter IDMA enable */
unsigned char Dummy : 1; /* D3 reserved */
unsigned char DEP4 : 1; /* Port input4 IDMA enable */
unsigned char DEP5 : 1; /* Port input5 IDMA enable */
unsigned char DEP6 : 1; /* Port input6 IDMA enable */
unsigned char DEP7 : 1; /* Port input7 IDMA enable */
} bIDMA_EN;
volatile unsigned char ucIDMA_EN;
} rIDMA_EN4;
union { /* High-speed DMA Ch.0/1 trigger select register */
volatile struct {
unsigned char HSD0S : 4; /* High-speed DMA Ch.0 trigger selection */
unsigned char HSD1S : 4; /* High-speed DMA Ch.1 trigger selection */
} bHTGR;
volatile unsigned char ucHTGR;
} rHTGR1;
union { /* High-speed DMA Ch.2/3 trigger select register */
volatile struct {
unsigned char HSD2S : 4; /* High-speed DMA Ch.2 trigger selection */
unsigned char HSD3S : 4; /* High-speed DMA Ch.3 trigger selection */
} bHTGR;
volatile unsigned char ucHTGR;
} rHTGR2;
union { /* High-speed DMA software trigger select register */
volatile struct {
unsigned char HST0 : 1; /* High-speed DMA Ch.0 software trigger */
unsigned char HST1 : 1; /* High-speed DMA Ch.1 software trigger */
unsigned char HST2 : 1; /* High-speed DMA Ch.2 software trigger */
unsigned char HST3 : 1; /* High-speed DMA Ch.3 software trigger */
} bHSOFTTGR;
volatile unsigned char ucHSOFTTGR;
} rHSOFTTGR;
unsigned char Dummy4[4];
union { /* Flag set/reset method select register */
volatile struct {
unsigned char RSTONLY : 1; /* Interrupt factor flag reset method selection */
unsigned char IDMAONLY : 1; /* IDMA factor register set method selection */
unsigned char DENONLY : 1; /* IDMA enable register set method selection */
} bRESET;
volatile unsigned char ucRESET;
} rRESET;
};
/****************************************************************/
/* [Input port (K port)] c_KPORT */
/****************************************************************/
struct c_KPORTtag {
union { /* K5 function select register */
volatile struct {
unsigned char CFK50 : 1; /* K50 function selection */
unsigned char CFK51 : 1; /* K51 function selection */
unsigned char CFK52 : 1; /* K52 function selection */
unsigned char CFK53 : 1; /* K53 function selection */
unsigned char CFK54 : 1; /* K54 function selection */
} bCFK5;
volatile unsigned char ucCFK5;
} rCFK5;
union { /* K5 input port register */
volatile struct {
unsigned char K50D : 1; /* K50 input port data */
unsigned char K51D : 1; /* K51 input port data */
unsigned char K52D : 1; /* K52 input port data */
unsigned char K53D : 1; /* K53 input port data */
unsigned char K54D : 1; /* K54 input port data */
} bK5D;
volatile unsigned char ucK5D;
} rK5D;
unsigned char Dummy;
union { /* K6 function select register */
volatile struct {
unsigned char CFK60 : 1; /* K60 function selection */
unsigned char CFK61 : 1; /* K61 function selection */
unsigned char CFK62 : 1; /* K62 function selection */
unsigned char CFK63 : 1; /* K63 function selection */
unsigned char CFK64 : 1; /* K64 function selection */
unsigned char CFK65 : 1; /* K65 function selection */
unsigned char CFK66 : 1; /* K66 function selection */
unsigned char CFK67 : 1; /* K67 function selection */
} bCFK6;
volatile unsigned char ucCFK6;
} rCFK6;
union { /* K6 input port register */
volatile struct {
unsigned char K60D : 1; /* K60 input port data */
unsigned char K61D : 1; /* K61 input port data */
unsigned char K62D : 1; /* K62 input port data */
unsigned char K63D : 1; /* K63 input port data */
unsigned char K64D : 1; /* K64 input port data */
unsigned char K65D : 1; /* K65 input port data */
unsigned char K66D : 1; /* K66 input port data */
unsigned char K67D : 1; /* K67 input port data */
} bK6D;
volatile unsigned char ucK6D;
} rK6D;
};
/****************************************************************/
/* [Port input interrupt] c_PINT */
/****************************************************************/
struct c_PINTtag {
union { /* Port input interrupt select register1 */
volatile struct {
unsigned char SPT0 : 2; /* FPT0 interrupt input port selection */
unsigned char SPT1 : 2; /* FPT1 interrupt input port selection */
unsigned char SPT2 : 2; /* FPT2 interrupt input port selection */
unsigned char SPT3 : 2; /* FPT3 interrupt input port selection */
} bSPT03;
volatile unsigned char ucSPT03;
} rSPT1;
union { /* Port input interrupt select register2 */
volatile struct {
unsigned char SPT4 : 2; /* FPT4 interrupt input port selection */
unsigned char SPT5 : 2; /* FPT5 interrupt input port selection */
unsigned char SPT6 : 2; /* FPT6 interrupt input port selection */
unsigned char SPT7 : 2; /* FPT7 interrupt input port selection */
} bSPT47;
volatile unsigned char ucSPT47;
} rSPT2;
union { /* Port input interrupt input polarity select register */
volatile struct {
unsigned char SPPT0 : 1; /* FPT0 input polarity selection */
unsigned char SPPT1 : 1; /* FPT1 input polarity selection */
unsigned char SPPT2 : 1; /* FPT2 input polarity selection */
unsigned char SPPT3 : 1; /* FPT3 input polarity selection */
unsigned char SPPT4 : 1; /* FPT4 input polarity selection */
unsigned char SPPT5 : 1; /* FPT5 input polarity selection */
unsigned char SPPT6 : 1; /* FPT6 input polarity selection */
unsigned char SPPT7 : 1; /* FPT7 input polarity selection */
} bSPPT;
volatile unsigned char ucSPPT;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -