📄 msc1210.h
字号:
__sbit __at (0xb5) T1; /* Timer 1 External Input */
__sbit __at (0xb6) WR; /* External Memory Write Strobe */
__sbit __at (0xb7) RD; /* External Memory Read Strobe */
__sfr __at (0xb1) P2DDRL; /* Port 2 Data Direction Low */
__sfr __at (0xb2) P2DDRH; /* Port 2 Data Direction High */
__sfr __at (0xb3) P3DDRL; /* Port 3 Data Direction Low */
__sfr __at (0xb4) P3DDRH; /* Port 3 Data Direction High */
__sfr __at (0xb5) DACL; /* Digital-to-Analog Converter Low */
__sfr __at (0xb6) DACH; /* Digital-to-Analog Converter High */
__sfr __at (0xb7) DACSEL; /* Digital-to-Analog Converter Select */
__sfr __at (0xb8) IP; /* Interrupt Priority */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* | | |PT2|PS |PT1|PX1|PT0|PX0| */
__sbit __at (0xb8) PX0; /* External Interrupt 0 */
__sbit __at (0xb9) PT0; /* Timer 0 */
__sbit __at (0xba) PX1; /* External Interrupt 1 */
__sbit __at (0xbb) PT1; /* Timer 1 */
__sbit __at (0xbc) PS; /* Serial Port */
__sbit __at (0xbd) PT2; /* Timer 2 */
__sfr __at (0xc0) SCON1; /* Serial Control 1 */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* |SM0|SM1|SM2|REN|TB8|RB8|TI |RI | */
__sbit __at (0xc0) RI1; /* Receive Interrupt Flag */
__sbit __at (0xc0) RI_1; /* Receive Interrupt Flag */
__sbit __at (0xc1) TI1; /* Transmit Interrupt Flag */
__sbit __at (0xc1) TI_1; /* Transmit Interrupt Flag */
__sbit __at (0xc2) RB8_1; /* Receive Bit 8 */
__sbit __at (0xc3) TB8_1; /* Transmit Bit 8 */
__sbit __at (0xc4) REN_1; /* Receive Enable */
__sbit __at (0xc5) SM2_1; /* Multiprocessor Communication Enable*/
__sbit __at (0xc6) SM1_1; /* Serial Port Select Mode 1 */
__sbit __at (0xc7) SM0_1; /* Serial Port Select Mode 0 */
__sfr __at (0xc1) SBUF1; /* Serial Buffer 1 */
__sfr __at (0xc6) EWU; /* Enable Wake Up */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* | | | | | |EWUEX1|EWUEX0|EWUWDT| */
__sbit __at (0xc6) EWUWDT; /* Enable Watchdog Interrupt */
__sbit __at (0xc7) EWUEX0; /* Enable External Interrupt 0 */
__sbit __at (0xc8) EWUEX1; /* Enable External Interrupt 1 */
__sfr __at (0xc7) SYSCLK; /* System Clock Divider */
__sfr __at (0xc8) T2CON; /* Timer 2 Control */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* |TF2|EXF2|RCLK|TCLK|EXEN2|TR2|C_T2|CP_RL2 | */
__sbit __at (0xc8) CP_RL2; /* Capture/Reload Flag */
__sbit __at (0xc9) C_T2; /* Overflow Flag */
__sbit __at (0xca) TR2; /* Timer Run */
__sbit __at (0xcb) EXEN2; /* Timer External Enable */
__sbit __at (0xcc) TCLK; /* Transmit Clock Flag */
__sbit __at (0xcd) RCLK; /* Receive Clock Flag */
__sbit __at (0xce) EXF2; /* External Flag */
__sbit __at (0xcf) TF2; /* Overflow Flag */
__sfr __at (0xca) RCAP2L; /* Timer 2 Capture Low */
__sfr __at (0xcb) RCAP2H; /* Timer 2 Capture High */
__sfr __at (0xcc) TL2; /* Timer 2 Low byte */
__sfr __at (0xcd) TH2; /* Timer 2 High byte */
__sfr __at (0xd0) PSW; /* Program Status Word */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* |CY |AC |F0 |RS1|RS0|OV |F1 |P | */
__sbit __at (0xd0) P; /* Parity Flag */
__sbit __at (0xd1) F1; /* General Purpose User Flag 1 */
__sbit __at (0xd2) OV; /* Overflow Flag */
__sbit __at (0xd3) RS0; /* Register Bank Select 0 Flag */
__sbit __at (0xd4) RS1; /* Register Bank Select 1 Flag */
__sbit __at (0xd5) F0; /* General Purpose User Flag 0 */
__sbit __at (0xd6) AC; /* Auxiliary Carry Flag */
__sbit __at (0xd7) CY; /* Carry Flag */
__sfr __at (0xd1) OCL; /* (ADC) Offset Calibration Low byte */
__sfr __at (0xd2) OCM; /* (ADC) Offset Calibration Middle byte */
__sfr __at (0xd3) OCH; /* (ADC) Offset Calibration High byte */
__sfr __at (0xd4) GCL; /* (ADC) Gain Low byte */
__sfr __at (0xd5) GCM; /* (ADC) Gain Middle byte */
__sfr __at (0xd6) GCH; /* (ADC) Gain High byte */
__sfr __at (0xd7) ADMUX; /* ADC Multiplexer Register */
__sfr __at (0xd8) EICON; /* Enable Interrupt Control */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* |SMOD1| |EAI|AI |WDTI| | | | */
__sbit __at (0xdb) WDTI; /* Watchdog Timer Interrupt Flag */
__sbit __at (0xdc) AI; /* Auxiliary Interrupt Flag */
__sbit __at (0xdd) EAI; /* Enable Auxiliary Interrupt */
__sbit __at (0xdf) SMOD1; /* Serial Port 1 Mode */
__sfr __at (0xd9) ADRESL; /* ADC Conversion Result Low byte */
__sfr __at (0xda) ADRESM; /* ADC Conversion Result Middle byte */
__sfr __at (0xdb) ADRESH; /* ADC Conversion Result High byte */
__sfr __at (0xdc) ADCON0; /* ADC Control 0 */
__sfr __at (0xdd) ADCON1; /* ADC Control 1 */
__sfr __at (0xde) ADCON2; /* ADC Control 2 */
__sfr __at (0xdf) ADCON3; /* ADC Control 3 */
__sfr __at (0xe0) ACC; /* Accumulator */
__sfr __at (0xe1) SSCON; /* Summation and Shift Control */
__sfr __at (0xe2) SUMR0; /* Summation Register 0 (LSB) */
__sfr __at (0xe3) SUMR1; /* Summation Register 1 */
__sfr __at (0xe4) SUMR2; /* Summation Register 2 */
__sfr __at (0xe5) SUMR3; /* Summation Register 3 (MSB) */
__sfr __at (0xe6) ODAC; /* (ADC) Offset DAC Register */
__sfr __at (0xe7) LVDCON; /* Low Voltage Detection Control */
__sfr __at (0xe8) EIE; /* Extended Interrupt Enable */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* | | | |EWDI|EX5|EX4|EX3|EX2| */
__sbit __at (0xe8) EX2; /* Enable External Interrupt 2 */
__sbit __at (0xe9) EX3; /* Enable External Interrupt 3 */
__sbit __at (0xea) EX4; /* Enable External Interrupt 4 */
__sbit __at (0xeb) EX5; /* Enable External Interrupt 5 */
__sbit __at (0xec) EWDI; /* Enable Watchdog Interrupt */
__sfr __at (0xe9) HWPC0; /* Hardware Product Code 0 */
__sfr __at (0xea) HWPC1; /* Hardware Product Code 1 */
__sfr __at (0xeb) HWVER; /* Hardware Version number */
__sfr __at (0xee) FMCON; /* Flash Memory Control */
__sfr __at (0xef) FTCON; /* Flash Memory Timing Control */
__sfr __at (0xf0) B; /* B Register */
__sfr __at (0xf1) PDCON; /* Power Down Control */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* | | | |PDPWM|PDAD|PDWDT|PDST|PDSPI| */
__sbit __at (0xf1) PDSPI; /* SPI System Control */
__sbit __at (0xf2) PDST; /* System Timer Control */
__sbit __at (0xf3) PDWDT; /* Watchdog Timer Control */
__sbit __at (0xf4) PDAD; /* A/D Control */
__sbit __at (0xf5) PDPWM; /* PWM Control */
__sfr __at (0xf2) PASEL; /* /PSEN|ALE Select */
__sfr __at (0xf6) ACLK; /* Analog Clock */
__sfr __at (0xf7) SRST; /* System Reset Register */
__sfr __at (0xf8) EIP; /* Extended Interrupt Priority */
/* _7_ _6_ _5_ _4_ _3_ _2_ _1_ _0_ */
/* | | | |PWDI|PX5|PX4|PX3|PX2| */
__sbit __at (0xf8) PX2; /* External Interrupt 2 Priority */
__sbit __at (0xf9) PX3; /* External Interrupt 3 Priority */
__sbit __at (0xfa) PX4; /* External Interrupt 4 Priority */
__sbit __at (0xfb) PX5; /* External Interrupt 5 Priority */
__sbit __at (0xfc) PWDI; /* Watchdog Interrupt Priority */
__sfr __at (0xf9) SECINT; /* Seconds Timer Interrupt */
__sfr __at (0xfa) MSINT; /* Milliseconds Interrupt */
__sfr __at (0xfb) USEC; /* Microsecond Register */
__sfr __at (0xfc) MSECL; /* Millisecond Low byte */
__sfr __at (0xfd) MSECH; /* Millisecond High byte */
__sfr __at (0xfe) HMSEC; /* Hundred Millisecond Clock */
__sfr __at (0xff) WDTCON; /* Watchdog Control */
/* Word Registers */
__sfr16 __at (0x8c8a) TMR0;
__sfr16 __at (0x8d8b) TMR1;
__sfr16 __at (0xa3a2) PWM;
__sfr16 __at (0xa3a2) TONE;
__sfr16 __at (0xabaa) BP;
__sfr16 __at (0xabaa) BREAKPT;
__sfr16 __at (0xadac) P0DDR;
__sfr16 __at (0xafae) P1DDR;
__sfr16 __at (0xb2b1) P2DDR;
__sfr16 __at (0xb4b3) P3DDR;
__sfr16 __at (0xcbca) RCAP2;
__sfr16 __at (0xcdcc) TMR2;
__sfr16 __at (0xdfde) DECIMATION;
__sfr16 __at (0xfdfc) ONEMS;
__sfr16 __at (0xfdfc) MSEC;
/* Double Word Registers */
__sfr32 __at (0xe5e4e3e2) SUMR;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -