diff --git a/include/fw_reg_stc8a8k64d4.h b/include/fw_reg_stc8a8k64d4.h index 34c3e4c..8a6e3e8 100755 --- a/include/fw_reg_stc8a8k64d4.h +++ b/include/fw_reg_stc8a8k64d4.h @@ -58,76 +58,76 @@ SFR(RSTCFG, 0xFF); //FF00H-FFFFH ///////////////////////////////////////////////// -#define PWMC (*(unsigned int volatile __XDATA *)0xff00) + #define PWMCH (*(unsigned char volatile __XDATA *)0xff00) #define PWMCL (*(unsigned char volatile __XDATA *)0xff01) #define PWMCKS (*(unsigned char volatile __XDATA *)0xff02) -#define PWMTADC (*(unsigned int volatile __XDATA *)0xff03) + #define PWMTADCH (*(unsigned char volatile __XDATA *)0xff03) #define PWMTADCL (*(unsigned char volatile __XDATA *)0xff04) #define PWMIF (*(unsigned char volatile __XDATA *)0xff05) #define PWMFDCR (*(unsigned char volatile __XDATA *)0xff06) #define PWMDELSEL (*(unsigned char volatile __XDATA *)0xff07) -#define PWM0T1 (*(unsigned int volatile __XDATA *)0xff10) + #define PWM0T1H (*(unsigned char volatile __XDATA *)0xff10) #define PWM0T1L (*(unsigned char volatile __XDATA *)0xff11) -#define PWM0T2 (*(unsigned int volatile __XDATA *)0xff12) + #define PWM0T2H (*(unsigned char volatile __XDATA *)0xff12) #define PWM0T2L (*(unsigned char volatile __XDATA *)0xff13) #define PWM0CR (*(unsigned char volatile __XDATA *)0xff14) #define PWM0HLD (*(unsigned char volatile __XDATA *)0xff15) -#define PWM1T1 (*(unsigned int volatile __XDATA *)0xff18) + #define PWM1T1H (*(unsigned char volatile __XDATA *)0xff18) #define PWM1T1L (*(unsigned char volatile __XDATA *)0xff19) -#define PWM1T2 (*(unsigned int volatile __XDATA *)0xff1a) + #define PWM1T2H (*(unsigned char volatile __XDATA *)0xff1a) #define PWM1T2L (*(unsigned char volatile __XDATA *)0xff1b) #define PWM1CR (*(unsigned char volatile __XDATA *)0xff1c) #define PWM1HLD (*(unsigned char volatile __XDATA *)0xff1d) -#define PWM2T1 (*(unsigned int volatile __XDATA *)0xff20) + #define PWM2T1H (*(unsigned char volatile __XDATA *)0xff20) #define PWM2T1L (*(unsigned char volatile __XDATA *)0xff21) -#define PWM2T2 (*(unsigned int volatile __XDATA *)0xff22) + #define PWM2T2H (*(unsigned char volatile __XDATA *)0xff22) #define PWM2T2L (*(unsigned char volatile __XDATA *)0xff23) #define PWM2CR (*(unsigned char volatile __XDATA *)0xff24) #define PWM2HLD (*(unsigned char volatile __XDATA *)0xff25) -#define PWM3T1 (*(unsigned int volatile __XDATA *)0xff28) + #define PWM3T1H (*(unsigned char volatile __XDATA *)0xff28) #define PWM3T1L (*(unsigned char volatile __XDATA *)0xff29) -#define PWM3T2 (*(unsigned int volatile __XDATA *)0xff2a) + #define PWM3T2H (*(unsigned char volatile __XDATA *)0xff2a) #define PWM3T2L (*(unsigned char volatile __XDATA *)0xff2b) #define PWM3CR (*(unsigned char volatile __XDATA *)0xff2c) #define PWM3HLD (*(unsigned char volatile __XDATA *)0xff2d) -#define PWM4T1 (*(unsigned int volatile __XDATA *)0xff30) + #define PWM4T1H (*(unsigned char volatile __XDATA *)0xff30) #define PWM4T1L (*(unsigned char volatile __XDATA *)0xff31) -#define PWM4T2 (*(unsigned int volatile __XDATA *)0xff32) + #define PWM4T2H (*(unsigned char volatile __XDATA *)0xff32) #define PWM4T2L (*(unsigned char volatile __XDATA *)0xff33) #define PWM4CR (*(unsigned char volatile __XDATA *)0xff34) #define PWM4HLD (*(unsigned char volatile __XDATA *)0xff35) -#define PWM5T1 (*(unsigned int volatile __XDATA *)0xff38) + #define PWM5T1H (*(unsigned char volatile __XDATA *)0xff38) #define PWM5T1L (*(unsigned char volatile __XDATA *)0xff39) -#define PWM5T2 (*(unsigned int volatile __XDATA *)0xff3a) + #define PWM5T2H (*(unsigned char volatile __XDATA *)0xff3a) #define PWM5T2L (*(unsigned char volatile __XDATA *)0xff3b) #define PWM5CR (*(unsigned char volatile __XDATA *)0xff3c) #define PWM5HLD (*(unsigned char volatile __XDATA *)0xff3d) -#define PWM6T1 (*(unsigned int volatile __XDATA *)0xff40) + #define PWM6T1H (*(unsigned char volatile __XDATA *)0xff40) #define PWM6T1L (*(unsigned char volatile __XDATA *)0xff41) -#define PWM6T2 (*(unsigned int volatile __XDATA *)0xff42) + #define PWM6T2H (*(unsigned char volatile __XDATA *)0xff42) #define PWM6T2L (*(unsigned char volatile __XDATA *)0xff43) #define PWM6CR (*(unsigned char volatile __XDATA *)0xff44) #define PWM6HLD (*(unsigned char volatile __XDATA *)0xff45) -#define PWM7T1 (*(unsigned int volatile __XDATA *)0xff48) + #define PWM7T1H (*(unsigned char volatile __XDATA *)0xff48) #define PWM7T1L (*(unsigned char volatile __XDATA *)0xff49) -#define PWM7T2 (*(unsigned int volatile __XDATA *)0xff4a) + #define PWM7T2H (*(unsigned char volatile __XDATA *)0xff4a) #define PWM7T2L (*(unsigned char volatile __XDATA *)0xff4b) #define PWM7CR (*(unsigned char volatile __XDATA *)0xff4c) @@ -308,8 +308,8 @@ SFR(RSTCFG, 0xFF); #define MD5 (*(unsigned char volatile __XDATA *)0xfcf4) #define MD4 (*(unsigned char volatile __XDATA *)0xfcf5) #define dwOP1 (*(unsigned long volatile __XDATA *)0xfcf0) -#define wOP1 (*(unsigned int volatile __XDATA *)0xfcf2) -#define wOP2 (*(unsigned int volatile __XDATA *)0xfcf4) + + #define ARCON (*(unsigned char volatile __XDATA *)0xfcf6) #define OPCON (*(unsigned char volatile __XDATA *)0xfcf7) @@ -422,4 +422,29 @@ SFR(RSTCFG, 0xFF); #define DMA_LCM_RXAH (*(unsigned char volatile __XDATA *)0xfa77) #define DMA_LCM_RXAL (*(unsigned char volatile __XDATA *)0xfa78) +#if defined __CX51__ + +#define PWMC (*(unsigned int volatile __XDATA *)0xff00) +#define PWMTADC (*(unsigned int volatile __XDATA *)0xff03) +#define PWM0T1 (*(unsigned int volatile __XDATA *)0xff10) +#define PWM0T2 (*(unsigned int volatile __XDATA *)0xff12) +#define PWM1T1 (*(unsigned int volatile __XDATA *)0xff18) +#define PWM1T2 (*(unsigned int volatile __XDATA *)0xff1a) +#define PWM2T1 (*(unsigned int volatile __XDATA *)0xff20) +#define PWM2T2 (*(unsigned int volatile __XDATA *)0xff22) +#define PWM3T1 (*(unsigned int volatile __XDATA *)0xff28) +#define PWM3T2 (*(unsigned int volatile __XDATA *)0xff2a) +#define PWM4T1 (*(unsigned int volatile __XDATA *)0xff30) +#define PWM4T2 (*(unsigned int volatile __XDATA *)0xff32) +#define PWM5T1 (*(unsigned int volatile __XDATA *)0xff38) +#define PWM5T2 (*(unsigned int volatile __XDATA *)0xff3a) +#define PWM6T1 (*(unsigned int volatile __XDATA *)0xff40) +#define PWM6T2 (*(unsigned int volatile __XDATA *)0xff42) +#define PWM7T1 (*(unsigned int volatile __XDATA *)0xff48) +#define PWM7T2 (*(unsigned int volatile __XDATA *)0xff4a) +#define wOP1 (*(unsigned int volatile __XDATA *)0xfcf2) +#define wOP2 (*(unsigned int volatile __XDATA *)0xfcf4) + +#endif + #endif diff --git a/include/fw_reg_stc8g.h b/include/fw_reg_stc8g.h index 2d1ccf0..73d4b32 100644 --- a/include/fw_reg_stc8g.h +++ b/include/fw_reg_stc8g.h @@ -58,217 +58,217 @@ SFR(RSTCFG, 0xFF); //FF00H-FFFFH ///////////////////////////////////////////////// -#define PWM0C (*(unsigned int volatile __XDATA *)0xff00) + #define PWM0CH (*(unsigned char volatile __XDATA *)0xff00) #define PWM0CL (*(unsigned char volatile __XDATA *)0xff01) #define PWM0CKS (*(unsigned char volatile __XDATA *)0xff02) -#define PWM0TADC (*(unsigned int volatile __XDATA *)0xff03) + #define PWM0TADCH (*(unsigned char volatile __XDATA *)0xff03) #define PWM0TADCL (*(unsigned char volatile __XDATA *)0xff04) #define PWM0IF (*(unsigned char volatile __XDATA *)0xff05) #define PWM0FDCR (*(unsigned char volatile __XDATA *)0xff06) -#define PWM00T1 (*(unsigned int volatile __XDATA *)0xff10) + #define PWM00T1L (*(unsigned char volatile __XDATA *)0xff11) -#define PWM00T2 (*(unsigned int volatile __XDATA *)0xff12) + #define PWM00T2H (*(unsigned char volatile __XDATA *)0xff12) #define PWM00T2L (*(unsigned char volatile __XDATA *)0xff13) #define PWM00CR (*(unsigned char volatile __XDATA *)0xff14) #define PWM00HLD (*(unsigned char volatile __XDATA *)0xff15) -#define PWM01T1 (*(unsigned int volatile __XDATA *)0xff18) + #define PWM01T1H (*(unsigned char volatile __XDATA *)0xff18) #define PWM01T1L (*(unsigned char volatile __XDATA *)0xff19) -#define PWM01T2 (*(unsigned int volatile __XDATA *)0xff1a) + #define PWM01T2H (*(unsigned char volatile __XDATA *)0xff1a) #define PWM01T2L (*(unsigned char volatile __XDATA *)0xff1b) #define PWM01CR (*(unsigned char volatile __XDATA *)0xff1c) #define PWM01HLD (*(unsigned char volatile __XDATA *)0xff1d) -#define PWM02T1 (*(unsigned int volatile __XDATA *)0xff20) + #define PWM02T1H (*(unsigned char volatile __XDATA *)0xff20) #define PWM02T1L (*(unsigned char volatile __XDATA *)0xff21) -#define PWM02T2 (*(unsigned int volatile __XDATA *)0xff22) + #define PWM02T2H (*(unsigned char volatile __XDATA *)0xff22) #define PWM02T2L (*(unsigned char volatile __XDATA *)0xff23) #define PWM02CR (*(unsigned char volatile __XDATA *)0xff24) #define PWM02HLD (*(unsigned char volatile __XDATA *)0xff25) -#define PWM03T1 (*(unsigned int volatile __XDATA *)0xff28) + #define PWM03T1H (*(unsigned char volatile __XDATA *)0xff28) #define PWM03T1L (*(unsigned char volatile __XDATA *)0xff29) -#define PWM03T2 (*(unsigned int volatile __XDATA *)0xff2a) + #define PWM03T2H (*(unsigned char volatile __XDATA *)0xff2a) #define PWM03T2L (*(unsigned char volatile __XDATA *)0xff2b) #define PWM03CR (*(unsigned char volatile __XDATA *)0xff2c) #define PWM03HLD (*(unsigned char volatile __XDATA *)0xff2d) -#define PWM04T1 (*(unsigned int volatile __XDATA *)0xff30) + #define PWM04T1H (*(unsigned char volatile __XDATA *)0xff30) #define PWM04T1L (*(unsigned char volatile __XDATA *)0xff31) -#define PWM04T2 (*(unsigned int volatile __XDATA *)0xff32) + #define PWM04T2H (*(unsigned char volatile __XDATA *)0xff32) #define PWM04T2L (*(unsigned char volatile __XDATA *)0xff33) #define PWM04CR (*(unsigned char volatile __XDATA *)0xff34) #define PWM04HLD (*(unsigned char volatile __XDATA *)0xff35) -#define PWM05T1 (*(unsigned int volatile __XDATA *)0xff38) + #define PWM05T1H (*(unsigned char volatile __XDATA *)0xff38) #define PWM05T1L (*(unsigned char volatile __XDATA *)0xff39) -#define PWM05T2 (*(unsigned int volatile __XDATA *)0xff3a) + #define PWM05T2H (*(unsigned char volatile __XDATA *)0xff3a) #define PWM05T2L (*(unsigned char volatile __XDATA *)0xff3b) #define PWM05CR (*(unsigned char volatile __XDATA *)0xff3c) #define PWM05HLD (*(unsigned char volatile __XDATA *)0xff3d) -#define PWM06T1 (*(unsigned int volatile __XDATA *)0xff40) + #define PWM06T1H (*(unsigned char volatile __XDATA *)0xff40) #define PWM06T1L (*(unsigned char volatile __XDATA *)0xff41) -#define PWM06T2 (*(unsigned int volatile __XDATA *)0xff42) + #define PWM06T2H (*(unsigned char volatile __XDATA *)0xff42) #define PWM06T2L (*(unsigned char volatile __XDATA *)0xff43) #define PWM06CR (*(unsigned char volatile __XDATA *)0xff44) #define PWM06HLD (*(unsigned char volatile __XDATA *)0xff45) -#define PWM07T1 (*(unsigned int volatile __XDATA *)0xff48) + #define PWM07T1H (*(unsigned char volatile __XDATA *)0xff48) #define PWM07T1L (*(unsigned char volatile __XDATA *)0xff49) -#define PWM07T2 (*(unsigned int volatile __XDATA *)0xff4a) + #define PWM07T2H (*(unsigned char volatile __XDATA *)0xff4a) #define PWM07T2L (*(unsigned char volatile __XDATA *)0xff4b) #define PWM07CR (*(unsigned char volatile __XDATA *)0xff4c) #define PWM07HLD (*(unsigned char volatile __XDATA *)0xff4d) -#define PWM1C (*(unsigned int volatile __XDATA *)0xff50) + #define PWM1CH (*(unsigned char volatile __XDATA *)0xff50) #define PWM1CL (*(unsigned char volatile __XDATA *)0xff51) #define PWM1CKS (*(unsigned char volatile __XDATA *)0xff52) #define PWM1IF (*(unsigned char volatile __XDATA *)0xff55) #define PWM1FDCR (*(unsigned char volatile __XDATA *)0xff56) -#define PWM10T1 (*(unsigned int volatile __XDATA *)0xff60) + #define PWM10T1H (*(unsigned char volatile __XDATA *)0xff60) #define PWM10T1L (*(unsigned char volatile __XDATA *)0xff61) -#define PWM10T2 (*(unsigned int volatile __XDATA *)0xff62) + #define PWM10T2H (*(unsigned char volatile __XDATA *)0xff62) #define PWM10T2L (*(unsigned char volatile __XDATA *)0xff63) #define PWM10CR (*(unsigned char volatile __XDATA *)0xff64) #define PWM10HLD (*(unsigned char volatile __XDATA *)0xff65) -#define PWM11T1 (*(unsigned int volatile __XDATA *)0xff68) + #define PWM11T1H (*(unsigned char volatile __XDATA *)0xff68) #define PWM11T1L (*(unsigned char volatile __XDATA *)0xff69) -#define PWM11T2 (*(unsigned int volatile __XDATA *)0xff6a) + #define PWM11T2H (*(unsigned char volatile __XDATA *)0xff6a) #define PWM11T2L (*(unsigned char volatile __XDATA *)0xff6b) #define PWM11CR (*(unsigned char volatile __XDATA *)0xff6c) #define PWM11HLD (*(unsigned char volatile __XDATA *)0xff6d) -#define PWM12T1 (*(unsigned int volatile __XDATA *)0xff70) + #define PWM12T1H (*(unsigned char volatile __XDATA *)0xff70) #define PWM12T1L (*(unsigned char volatile __XDATA *)0xff71) -#define PWM12T2 (*(unsigned int volatile __XDATA *)0xff72) + #define PWM12T2H (*(unsigned char volatile __XDATA *)0xff72) #define PWM12T2L (*(unsigned char volatile __XDATA *)0xff73) #define PWM12CR (*(unsigned char volatile __XDATA *)0xff74) #define PWM12HLD (*(unsigned char volatile __XDATA *)0xff75) -#define PWM13T1 (*(unsigned int volatile __XDATA *)0xff78) + #define PWM13T1H (*(unsigned char volatile __XDATA *)0xff78) #define PWM13T1L (*(unsigned char volatile __XDATA *)0xff79) -#define PWM13T2 (*(unsigned int volatile __XDATA *)0xff7a) + #define PWM13T2H (*(unsigned char volatile __XDATA *)0xff7a) #define PWM13T2L (*(unsigned char volatile __XDATA *)0xff7b) #define PWM13CR (*(unsigned char volatile __XDATA *)0xff7c) #define PWM13HLD (*(unsigned char volatile __XDATA *)0xff7d) -#define PWM14T1 (*(unsigned int volatile __XDATA *)0xff80) + #define PWM14T1H (*(unsigned char volatile __XDATA *)0xff80) #define PWM14T1L (*(unsigned char volatile __XDATA *)0xff81) -#define PWM14T2 (*(unsigned int volatile __XDATA *)0xff82) + #define PWM14T2H (*(unsigned char volatile __XDATA *)0xff82) #define PWM14T2L (*(unsigned char volatile __XDATA *)0xff83) #define PWM14CR (*(unsigned char volatile __XDATA *)0xff84) #define PWM14HLD (*(unsigned char volatile __XDATA *)0xff85) -#define PWM15T1 (*(unsigned int volatile __XDATA *)0xff88) + #define PWM15T1H (*(unsigned char volatile __XDATA *)0xff88) #define PWM15T1L (*(unsigned char volatile __XDATA *)0xff89) -#define PWM15T2 (*(unsigned int volatile __XDATA *)0xff8a) + #define PWM15T2H (*(unsigned char volatile __XDATA *)0xff8a) #define PWM15T2L (*(unsigned char volatile __XDATA *)0xff8b) #define PWM15CR (*(unsigned char volatile __XDATA *)0xff8c) #define PWM15HLD (*(unsigned char volatile __XDATA *)0xff8d) -#define PWM16T1 (*(unsigned int volatile __XDATA *)0xff90) + #define PWM16T1H (*(unsigned char volatile __XDATA *)0xff90) #define PWM16T1L (*(unsigned char volatile __XDATA *)0xff91) -#define PWM16T2 (*(unsigned int volatile __XDATA *)0xff92) + #define PWM16T2H (*(unsigned char volatile __XDATA *)0xff92) #define PWM16T2L (*(unsigned char volatile __XDATA *)0xff93) #define PWM16CR (*(unsigned char volatile __XDATA *)0xff94) #define PWM16HLD (*(unsigned char volatile __XDATA *)0xff95) -#define PWM17T1 (*(unsigned int volatile __XDATA *)0xff98) + #define PWM17T1H (*(unsigned char volatile __XDATA *)0xff98) #define PWM17T1L (*(unsigned char volatile __XDATA *)0xff99) -#define PWM17T2 (*(unsigned int volatile __XDATA *)0xff9a) + #define PWM17T2H (*(unsigned char volatile __XDATA *)0xff9a) #define PWM17T2L (*(unsigned char volatile __XDATA *)0xff9b) #define PWM17CR (*(unsigned char volatile __XDATA *)0xff9c) #define PWM17HLD (*(unsigned char volatile __XDATA *)0xff9d) -#define PWM2C (*(unsigned int volatile __XDATA *)0xffa0) + #define PWM2CH (*(unsigned char volatile __XDATA *)0xffa0) #define PWM2CL (*(unsigned char volatile __XDATA *)0xffa1) #define PWM2CKS (*(unsigned char volatile __XDATA *)0xffa2) -#define PWM2TADC (*(unsigned int volatile __XDATA *)0xffa3) + #define PWM2TADCH (*(unsigned char volatile __XDATA *)0xffa3) #define PWM2TADCL (*(unsigned char volatile __XDATA *)0xffa4) #define PWM2IF (*(unsigned char volatile __XDATA *)0xffa5) #define PWM2FDCR (*(unsigned char volatile __XDATA *)0xffa6) -#define PWM20T1 (*(unsigned int volatile __XDATA *)0xffb0) + #define PWM20T1H (*(unsigned char volatile __XDATA *)0xffb0) #define PWM20T1L (*(unsigned char volatile __XDATA *)0xffb1) -#define PWM20T2 (*(unsigned int volatile __XDATA *)0xffb2) + #define PWM20T2H (*(unsigned char volatile __XDATA *)0xffb2) #define PWM20T2L (*(unsigned char volatile __XDATA *)0xffb3) #define PWM20CR (*(unsigned char volatile __XDATA *)0xffb4) #define PWM20HLD (*(unsigned char volatile __XDATA *)0xffb5) -#define PWM21T1 (*(unsigned int volatile __XDATA *)0xffb8) + #define PWM21T1H (*(unsigned char volatile __XDATA *)0xffb8) #define PWM21T1L (*(unsigned char volatile __XDATA *)0xffb9) -#define PWM21T2 (*(unsigned int volatile __XDATA *)0xffba) + #define PWM21T2H (*(unsigned char volatile __XDATA *)0xffba) #define PWM21T2L (*(unsigned char volatile __XDATA *)0xffbb) #define PWM21CR (*(unsigned char volatile __XDATA *)0xffbc) #define PWM21HLD (*(unsigned char volatile __XDATA *)0xffbd) -#define PWM22T1 (*(unsigned int volatile __XDATA *)0xffc0) + #define PWM22T1H (*(unsigned char volatile __XDATA *)0xffc0) #define PWM22T1L (*(unsigned char volatile __XDATA *)0xffc1) -#define PWM22T2 (*(unsigned int volatile __XDATA *)0xffc2) + #define PWM22T2H (*(unsigned char volatile __XDATA *)0xffc2) #define PWM22T2L (*(unsigned char volatile __XDATA *)0xffc3) #define PWM22CR (*(unsigned char volatile __XDATA *)0xffc4) #define PWM22HLD (*(unsigned char volatile __XDATA *)0xffc5) -#define PWM23T1 (*(unsigned int volatile __XDATA *)0xffc8) + #define PWM23T1H (*(unsigned char volatile __XDATA *)0xffc8) #define PWM23T1L (*(unsigned char volatile __XDATA *)0xffc9) -#define PWM23T2 (*(unsigned int volatile __XDATA *)0xffca) + #define PWM23T2H (*(unsigned char volatile __XDATA *)0xffca) #define PWM23T2L (*(unsigned char volatile __XDATA *)0xffcb) #define PWM23CR (*(unsigned char volatile __XDATA *)0xffcc) #define PWM23HLD (*(unsigned char volatile __XDATA *)0xffcd) -#define PWM24T1 (*(unsigned int volatile __XDATA *)0xffd0) + #define PWM24T1H (*(unsigned char volatile __XDATA *)0xffd0) #define PWM24T1L (*(unsigned char volatile __XDATA *)0xffd1) -#define PWM24T2 (*(unsigned int volatile __XDATA *)0xffd2) + #define PWM24T2H (*(unsigned char volatile __XDATA *)0xffd2) #define PWM24T2L (*(unsigned char volatile __XDATA *)0xffd3) #define PWM24CR (*(unsigned char volatile __XDATA *)0xffd4) #define PWM24HLD (*(unsigned char volatile __XDATA *)0xffd5) -#define PWM25T1 (*(unsigned int volatile __XDATA *)0xffd8) + #define PWM25T1H (*(unsigned char volatile __XDATA *)0xffd8) #define PWM25T1L (*(unsigned char volatile __XDATA *)0xffd9) -#define PWM25T2 (*(unsigned int volatile __XDATA *)0xffda) + #define PWM25T2H (*(unsigned char volatile __XDATA *)0xffda) #define PWM25T2L (*(unsigned char volatile __XDATA *)0xffdb) #define PWM25CR (*(unsigned char volatile __XDATA *)0xffdc) #define PWM25HLD (*(unsigned char volatile __XDATA *)0xffdd) -#define PWM26T1 (*(unsigned int volatile __XDATA *)0xffe0) + #define PWM26T1H (*(unsigned char volatile __XDATA *)0xffe0) #define PWM26T1L (*(unsigned char volatile __XDATA *)0xffe1) -#define PWM26T2 (*(unsigned int volatile __XDATA *)0xffe2) + #define PWM26T2H (*(unsigned char volatile __XDATA *)0xffe2) #define PWM26T2L (*(unsigned char volatile __XDATA *)0xffe3) #define PWM26CR (*(unsigned char volatile __XDATA *)0xffe4) #define PWM26HLD (*(unsigned char volatile __XDATA *)0xffe5) -#define PWM27T1 (*(unsigned int volatile __XDATA *)0xffe8) + #define PWM27T1H (*(unsigned char volatile __XDATA *)0xffe8) #define PWM27T1L (*(unsigned char volatile __XDATA *)0xffe9) -#define PWM27T2 (*(unsigned int volatile __XDATA *)0xffea) + #define PWM27T2H (*(unsigned char volatile __XDATA *)0xffea) #define PWM27T2L (*(unsigned char volatile __XDATA *)0xffeb) #define PWM27CR (*(unsigned char volatile __XDATA *)0xffec) @@ -598,215 +598,215 @@ SFR(RSTCFG, 0xFF); //FC00H-FCFFH ///////////////////////////////////////////////// -#define PWM3C (*(unsigned int volatile __XDATA *)0xfc00) + #define PWM3CH (*(unsigned char volatile __XDATA *)0xfc00) #define PWM3CL (*(unsigned char volatile __XDATA *)0xfc01) #define PWM3CKS (*(unsigned char volatile __XDATA *)0xfc02) #define PWM3IF (*(unsigned char volatile __XDATA *)0xfc05) #define PWM3FDCR (*(unsigned char volatile __XDATA *)0xfc06) -#define PWM30T1 (*(unsigned int volatile __XDATA *)0xfc10) + #define PWM30T1H (*(unsigned char volatile __XDATA *)0xfc10) #define PWM30T1L (*(unsigned char volatile __XDATA *)0xfc11) -#define PWM30T2 (*(unsigned int volatile __XDATA *)0xfc12) + #define PWM30T2H (*(unsigned char volatile __XDATA *)0xfc12) #define PWM30T2L (*(unsigned char volatile __XDATA *)0xfc13) #define PWM30CR (*(unsigned char volatile __XDATA *)0xfc14) #define PWM30HLD (*(unsigned char volatile __XDATA *)0xfc15) -#define PWM31T1 (*(unsigned int volatile __XDATA *)0xfc18) + #define PWM31T1H (*(unsigned char volatile __XDATA *)0xfc18) #define PWM31T1L (*(unsigned char volatile __XDATA *)0xfc19) -#define PWM31T2 (*(unsigned int volatile __XDATA *)0xfc1a) + #define PWM31T2H (*(unsigned char volatile __XDATA *)0xfc1a) #define PWM31T2L (*(unsigned char volatile __XDATA *)0xfc1b) #define PWM31CR (*(unsigned char volatile __XDATA *)0xfc1c) #define PWM31HLD (*(unsigned char volatile __XDATA *)0xfc1d) -#define PWM32T1 (*(unsigned int volatile __XDATA *)0xfc20) + #define PWM32T1H (*(unsigned char volatile __XDATA *)0xfc20) #define PWM32T1L (*(unsigned char volatile __XDATA *)0xfc21) -#define PWM32T2 (*(unsigned int volatile __XDATA *)0xfc22) + #define PWM32T2H (*(unsigned char volatile __XDATA *)0xfc22) #define PWM32T2L (*(unsigned char volatile __XDATA *)0xfc23) #define PWM32CR (*(unsigned char volatile __XDATA *)0xfc24) #define PWM32HLD (*(unsigned char volatile __XDATA *)0xfc25) -#define PWM33T1 (*(unsigned int volatile __XDATA *)0xfc28) + #define PWM33T1H (*(unsigned char volatile __XDATA *)0xfc28) #define PWM33T1L (*(unsigned char volatile __XDATA *)0xfc29) -#define PWM33T2 (*(unsigned int volatile __XDATA *)0xfc2a) + #define PWM33T2H (*(unsigned char volatile __XDATA *)0xfc2a) #define PWM33T2L (*(unsigned char volatile __XDATA *)0xfc2b) #define PWM33CR (*(unsigned char volatile __XDATA *)0xfc2c) #define PWM33HLD (*(unsigned char volatile __XDATA *)0xfc2d) -#define PWM34T1 (*(unsigned int volatile __XDATA *)0xfc30) + #define PWM34T1H (*(unsigned char volatile __XDATA *)0xfc30) #define PWM34T1L (*(unsigned char volatile __XDATA *)0xfc31) -#define PWM34T2 (*(unsigned int volatile __XDATA *)0xfc32) + #define PWM34T2H (*(unsigned char volatile __XDATA *)0xfc32) #define PWM34T2L (*(unsigned char volatile __XDATA *)0xfc33) #define PWM34CR (*(unsigned char volatile __XDATA *)0xfc34) #define PWM34HLD (*(unsigned char volatile __XDATA *)0xfc35) -#define PWM35T1 (*(unsigned int volatile __XDATA *)0xfc38) + #define PWM35T1H (*(unsigned char volatile __XDATA *)0xfc38) #define PWM35T1L (*(unsigned char volatile __XDATA *)0xfc39) -#define PWM35T2 (*(unsigned int volatile __XDATA *)0xfc3a) + #define PWM35T2H (*(unsigned char volatile __XDATA *)0xfc3a) #define PWM35T2L (*(unsigned char volatile __XDATA *)0xfc3b) #define PWM35CR (*(unsigned char volatile __XDATA *)0xfc3c) #define PWM35HLD (*(unsigned char volatile __XDATA *)0xfc3d) -#define PWM36T1 (*(unsigned int volatile __XDATA *)0xfc40) + #define PWM36T1H (*(unsigned char volatile __XDATA *)0xfc40) #define PWM36T1L (*(unsigned char volatile __XDATA *)0xfc41) -#define PWM36T2 (*(unsigned int volatile __XDATA *)0xfc42) + #define PWM36T2H (*(unsigned char volatile __XDATA *)0xfc42) #define PWM36T2L (*(unsigned char volatile __XDATA *)0xfc43) #define PWM36CR (*(unsigned char volatile __XDATA *)0xfc44) #define PWM36HLD (*(unsigned char volatile __XDATA *)0xfc45) -#define PWM37T1 (*(unsigned int volatile __XDATA *)0xfc48) + #define PWM37T1H (*(unsigned char volatile __XDATA *)0xfc48) #define PWM37T1L (*(unsigned char volatile __XDATA *)0xfc49) -#define PWM37T2 (*(unsigned int volatile __XDATA *)0xfc4a) + #define PWM37T2H (*(unsigned char volatile __XDATA *)0xfc4a) #define PWM37T2L (*(unsigned char volatile __XDATA *)0xfc4b) #define PWM37CR (*(unsigned char volatile __XDATA *)0xfc4c) #define PWM37HLD (*(unsigned char volatile __XDATA *)0xfc4d) -#define PWM4C (*(unsigned int volatile __XDATA *)0xfc50) + #define PWM4CH (*(unsigned char volatile __XDATA *)0xfc50) #define PWM4CL (*(unsigned char volatile __XDATA *)0xfc51) #define PWM4CKS (*(unsigned char volatile __XDATA *)0xfc52) -#define PWM4TADC (*(unsigned int volatile __XDATA *)0xfc53) + #define PWM4TADCH (*(unsigned char volatile __XDATA *)0xfc53) #define PWM4TADCL (*(unsigned char volatile __XDATA *)0xfc54) #define PWM4IF (*(unsigned char volatile __XDATA *)0xfc55) #define PWM4FDCR (*(unsigned char volatile __XDATA *)0xfc56) -#define PWM40T1 (*(unsigned int volatile __XDATA *)0xfc60) + #define PWM40T1H (*(unsigned char volatile __XDATA *)0xfc60) #define PWM40T1L (*(unsigned char volatile __XDATA *)0xfc61) -#define PWM40T2 (*(unsigned int volatile __XDATA *)0xfc62) + #define PWM40T2H (*(unsigned char volatile __XDATA *)0xfc62) #define PWM40T2L (*(unsigned char volatile __XDATA *)0xfc63) #define PWM40CR (*(unsigned char volatile __XDATA *)0xfc64) #define PWM40HLD (*(unsigned char volatile __XDATA *)0xfc65) -#define PWM41T1 (*(unsigned int volatile __XDATA *)0xfc68) + #define PWM41T1H (*(unsigned char volatile __XDATA *)0xfc68) #define PWM41T1L (*(unsigned char volatile __XDATA *)0xfc69) -#define PWM41T2 (*(unsigned int volatile __XDATA *)0xfc6a) + #define PWM41T2H (*(unsigned char volatile __XDATA *)0xfc6a) #define PWM41T2L (*(unsigned char volatile __XDATA *)0xfc6b) #define PWM41CR (*(unsigned char volatile __XDATA *)0xfc6c) #define PWM41HLD (*(unsigned char volatile __XDATA *)0xfc6d) -#define PWM42T1 (*(unsigned int volatile __XDATA *)0xfc70) + #define PWM42T1H (*(unsigned char volatile __XDATA *)0xfc70) #define PWM42T1L (*(unsigned char volatile __XDATA *)0xfc71) -#define PWM42T2 (*(unsigned int volatile __XDATA *)0xfc72) + #define PWM42T2H (*(unsigned char volatile __XDATA *)0xfc72) #define PWM42T2L (*(unsigned char volatile __XDATA *)0xfc73) #define PWM42CR (*(unsigned char volatile __XDATA *)0xfc74) #define PWM42HLD (*(unsigned char volatile __XDATA *)0xfc75) -#define PWM43T1 (*(unsigned int volatile __XDATA *)0xfc78) + #define PWM43T1H (*(unsigned char volatile __XDATA *)0xfc78) #define PWM43T1L (*(unsigned char volatile __XDATA *)0xfc79) -#define PWM43T2 (*(unsigned int volatile __XDATA *)0xfc7a) + #define PWM43T2H (*(unsigned char volatile __XDATA *)0xfc7a) #define PWM43T2L (*(unsigned char volatile __XDATA *)0xfc7b) #define PWM43CR (*(unsigned char volatile __XDATA *)0xfc7c) #define PWM43HLD (*(unsigned char volatile __XDATA *)0xfc7d) -#define PWM44T1 (*(unsigned int volatile __XDATA *)0xfc80) + #define PWM44T1H (*(unsigned char volatile __XDATA *)0xfc80) #define PWM44T1L (*(unsigned char volatile __XDATA *)0xfc81) -#define PWM44T2 (*(unsigned int volatile __XDATA *)0xfc82) + #define PWM44T2H (*(unsigned char volatile __XDATA *)0xfc82) #define PWM44T2L (*(unsigned char volatile __XDATA *)0xfc83) #define PWM44CR (*(unsigned char volatile __XDATA *)0xfc84) #define PWM44HLD (*(unsigned char volatile __XDATA *)0xfc85) -#define PWM45T1 (*(unsigned int volatile __XDATA *)0xfc88) + #define PWM45T1H (*(unsigned char volatile __XDATA *)0xfc88) #define PWM45T1L (*(unsigned char volatile __XDATA *)0xfc89) -#define PWM45T2 (*(unsigned int volatile __XDATA *)0xfc8a) + #define PWM45T2H (*(unsigned char volatile __XDATA *)0xfc8a) #define PWM45T2L (*(unsigned char volatile __XDATA *)0xfc8b) #define PWM45CR (*(unsigned char volatile __XDATA *)0xfc8c) #define PWM45HLD (*(unsigned char volatile __XDATA *)0xfc8d) -#define PWM46T1 (*(unsigned int volatile __XDATA *)0xfc90) + #define PWM46T1H (*(unsigned char volatile __XDATA *)0xfc90) #define PWM46T1L (*(unsigned char volatile __XDATA *)0xfc91) -#define PWM46T2 (*(unsigned int volatile __XDATA *)0xfc92) + #define PWM46T2H (*(unsigned char volatile __XDATA *)0xfc92) #define PWM46T2L (*(unsigned char volatile __XDATA *)0xfc93) #define PWM46CR (*(unsigned char volatile __XDATA *)0xfc94) #define PWM46HLD (*(unsigned char volatile __XDATA *)0xfc95) -#define PWM47T1 (*(unsigned int volatile __XDATA *)0xfc98) + #define PWM47T1H (*(unsigned char volatile __XDATA *)0xfc98) #define PWM47T1L (*(unsigned char volatile __XDATA *)0xfc99) -#define PWM47T2 (*(unsigned int volatile __XDATA *)0xfc9a) + #define PWM47T2H (*(unsigned char volatile __XDATA *)0xfc9a) #define PWM47T2L (*(unsigned char volatile __XDATA *)0xfc9b) #define PWM47CR (*(unsigned char volatile __XDATA *)0xfc9c) #define PWM47HLD (*(unsigned char volatile __XDATA *)0xfc9d) -#define PWM5C (*(unsigned int volatile __XDATA *)0xfca0) + #define PWM5CH (*(unsigned char volatile __XDATA *)0xfca0) #define PWM5CL (*(unsigned char volatile __XDATA *)0xfca1) #define PWM5CKS (*(unsigned char volatile __XDATA *)0xfca2) #define PWM5IF (*(unsigned char volatile __XDATA *)0xfca5) #define PWM5FDCR (*(unsigned char volatile __XDATA *)0xfca6) -#define PWM50T1 (*(unsigned int volatile __XDATA *)0xfcb0) + #define PWM50T1H (*(unsigned char volatile __XDATA *)0xfcb0) #define PWM50T1L (*(unsigned char volatile __XDATA *)0xfcb1) -#define PWM50T2 (*(unsigned int volatile __XDATA *)0xfcb2) + #define PWM50T2H (*(unsigned char volatile __XDATA *)0xfcb2) #define PWM50T2L (*(unsigned char volatile __XDATA *)0xfcb3) #define PWM50CR (*(unsigned char volatile __XDATA *)0xfcb4) #define PWM50HLD (*(unsigned char volatile __XDATA *)0xfcb5) -#define PWM51T1 (*(unsigned int volatile __XDATA *)0xfcb8) + #define PWM51T1H (*(unsigned char volatile __XDATA *)0xfcb8) #define PWM51T1L (*(unsigned char volatile __XDATA *)0xfcb9) -#define PWM51T2 (*(unsigned int volatile __XDATA *)0xfcba) + #define PWM51T2H (*(unsigned char volatile __XDATA *)0xfcba) #define PWM51T2L (*(unsigned char volatile __XDATA *)0xfcbb) #define PWM51CR (*(unsigned char volatile __XDATA *)0xfcbc) #define PWM51HLD (*(unsigned char volatile __XDATA *)0xfcbd) -#define PWM52T1 (*(unsigned int volatile __XDATA *)0xfcc0) + #define PWM52T1H (*(unsigned char volatile __XDATA *)0xfcc0) #define PWM52T1L (*(unsigned char volatile __XDATA *)0xfcc1) -#define PWM52T2 (*(unsigned int volatile __XDATA *)0xfcc2) + #define PWM52T2H (*(unsigned char volatile __XDATA *)0xfcc2) #define PWM52T2L (*(unsigned char volatile __XDATA *)0xfcc3) #define PWM52CR (*(unsigned char volatile __XDATA *)0xfcc4) #define PWM52HLD (*(unsigned char volatile __XDATA *)0xfcc5) -#define PWM53T1 (*(unsigned int volatile __XDATA *)0xfcc8) + #define PWM53T1H (*(unsigned char volatile __XDATA *)0xfcc8) #define PWM53T1L (*(unsigned char volatile __XDATA *)0xfcc9) -#define PWM53T2 (*(unsigned int volatile __XDATA *)0xfcca) + #define PWM53T2H (*(unsigned char volatile __XDATA *)0xfcca) #define PWM53T2L (*(unsigned char volatile __XDATA *)0xfccb) #define PWM53CR (*(unsigned char volatile __XDATA *)0xfccc) #define PWM53HLD (*(unsigned char volatile __XDATA *)0xfccd) -#define PWM54T1 (*(unsigned int volatile __XDATA *)0xfcd0) + #define PWM54T1H (*(unsigned char volatile __XDATA *)0xfcd0) #define PWM54T1L (*(unsigned char volatile __XDATA *)0xfcd1) -#define PWM54T2 (*(unsigned int volatile __XDATA *)0xfcd2) + #define PWM54T2H (*(unsigned char volatile __XDATA *)0xfcd2) #define PWM54T2L (*(unsigned char volatile __XDATA *)0xfcd3) #define PWM54CR (*(unsigned char volatile __XDATA *)0xfcd4) #define PWM54HLD (*(unsigned char volatile __XDATA *)0xfcd5) -#define PWM55T1 (*(unsigned int volatile __XDATA *)0xfcd8) + #define PWM55T1H (*(unsigned char volatile __XDATA *)0xfcd8) #define PWM55T1L (*(unsigned char volatile __XDATA *)0xfcd9) -#define PWM55T2 (*(unsigned int volatile __XDATA *)0xfcda) + #define PWM55T2H (*(unsigned char volatile __XDATA *)0xfcda) #define PWM55T2L (*(unsigned char volatile __XDATA *)0xfcdb) #define PWM55CR (*(unsigned char volatile __XDATA *)0xfcdc) #define PWM55HLD (*(unsigned char volatile __XDATA *)0xfcdd) -#define PWM56T1 (*(unsigned int volatile __XDATA *)0xfce0) + #define PWM56T1H (*(unsigned char volatile __XDATA *)0xfce0) #define PWM56T1L (*(unsigned char volatile __XDATA *)0xfce1) -#define PWM56T2 (*(unsigned int volatile __XDATA *)0xfce2) + #define PWM56T2H (*(unsigned char volatile __XDATA *)0xfce2) #define PWM56T2L (*(unsigned char volatile __XDATA *)0xfce3) #define PWM56CR (*(unsigned char volatile __XDATA *)0xfce4) #define PWM56HLD (*(unsigned char volatile __XDATA *)0xfce5) -#define PWM57T1 (*(unsigned int volatile __XDATA *)0xfce8) + #define PWM57T1H (*(unsigned char volatile __XDATA *)0xfce8) #define PWM57T1L (*(unsigned char volatile __XDATA *)0xfce9) -#define PWM57T2 (*(unsigned int volatile __XDATA *)0xfcea) + #define PWM57T2H (*(unsigned char volatile __XDATA *)0xfcea) #define PWM57T2L (*(unsigned char volatile __XDATA *)0xfceb) #define PWM57CR (*(unsigned char volatile __XDATA *)0xfcec) @@ -872,55 +872,55 @@ SFR(RSTCFG, 0xFF); #define TSSTA1 (*(unsigned char volatile __XDATA *)0xfb46) #define TSSTA2 (*(unsigned char volatile __XDATA *)0xfb47) #define TSRT (*(unsigned char volatile __XDATA *)0xfb48) -#define TSDAT (*(unsigned int volatile __XDATA *)0xfb49) + #define TSDATH (*(unsigned char volatile __XDATA *)0xfb49) #define TSDATL (*(unsigned char volatile __XDATA *)0xfb4a) -#define TSTH00 (*(unsigned int volatile __XDATA *)0xfb50) + #define TSTH00H (*(unsigned char volatile __XDATA *)0xfb50) #define TSTH00L (*(unsigned char volatile __XDATA *)0xfb51) -#define TSTH01 (*(unsigned int volatile __XDATA *)0xfb52) + #define TSTH01H (*(unsigned char volatile __XDATA *)0xfb52) #define TSTH01L (*(unsigned char volatile __XDATA *)0xfb53) -#define TSTH02 (*(unsigned int volatile __XDATA *)0xfb54) + #define TSTH02H (*(unsigned char volatile __XDATA *)0xfb54) #define TSTH02L (*(unsigned char volatile __XDATA *)0xfb55) -#define TSTH03 (*(unsigned int volatile __XDATA *)0xfb56) + #define TSTH03H (*(unsigned char volatile __XDATA *)0xfb56) #define TSTH03L (*(unsigned char volatile __XDATA *)0xfb57) -#define TSTH04 (*(unsigned int volatile __XDATA *)0xfb58) + #define TSTH04H (*(unsigned char volatile __XDATA *)0xfb58) #define TSTH04L (*(unsigned char volatile __XDATA *)0xfb59) -#define TSTH05 (*(unsigned int volatile __XDATA *)0xfb5a) + #define TSTH05H (*(unsigned char volatile __XDATA *)0xfb5a) #define TSTH05L (*(unsigned char volatile __XDATA *)0xfb5b) -#define TSTH06 (*(unsigned int volatile __XDATA *)0xfb5c) + #define TSTH06H (*(unsigned char volatile __XDATA *)0xfb5c) #define TSTH06L (*(unsigned char volatile __XDATA *)0xfb5d) -#define TSTH07 (*(unsigned int volatile __XDATA *)0xfb5e) + #define TSTH07H (*(unsigned char volatile __XDATA *)0xfb5e) #define TSTH07L (*(unsigned char volatile __XDATA *)0xfb5f) -#define TSTH08 (*(unsigned int volatile __XDATA *)0xfb60) + #define TSTH08H (*(unsigned char volatile __XDATA *)0xfb60) #define TSTH08L (*(unsigned char volatile __XDATA *)0xfb61) -#define TSTH09 (*(unsigned int volatile __XDATA *)0xfb62) + #define TSTH09H (*(unsigned char volatile __XDATA *)0xfb62) #define TSTH09L (*(unsigned char volatile __XDATA *)0xfb63) -#define TSTH10 (*(unsigned int volatile __XDATA *)0xfb64) + #define TSTH10H (*(unsigned char volatile __XDATA *)0xfb64) #define TSTH10L (*(unsigned char volatile __XDATA *)0xfb65) -#define TSTH11 (*(unsigned int volatile __XDATA *)0xfb66) + #define TSTH11H (*(unsigned char volatile __XDATA *)0xfb66) #define TSTH11L (*(unsigned char volatile __XDATA *)0xfb67) -#define TSTH12 (*(unsigned int volatile __XDATA *)0xfb68) + #define TSTH12H (*(unsigned char volatile __XDATA *)0xfb68) #define TSTH12L (*(unsigned char volatile __XDATA *)0xfb69) -#define TSTH13 (*(unsigned int volatile __XDATA *)0xfb6a) + #define TSTH13H (*(unsigned char volatile __XDATA *)0xfb6a) #define TSTH13L (*(unsigned char volatile __XDATA *)0xfb6b) -#define TSTH14 (*(unsigned int volatile __XDATA *)0xfb6c) + #define TSTH14H (*(unsigned char volatile __XDATA *)0xfb6c) #define TSTH14L (*(unsigned char volatile __XDATA *)0xfb6d) -#define TSTH15 (*(unsigned int volatile __XDATA *)0xfb6e) + #define TSTH15H (*(unsigned char volatile __XDATA *)0xfb6e) #define TSTH15L (*(unsigned char volatile __XDATA *)0xfb6f) @@ -929,6 +929,134 @@ SFR(RSTCFG, 0xFF); ///////////////////////////////////////////////// +#if defined __CX51__ + +#define PWM0C (*(unsigned int volatile __XDATA *)0xff00) +#define PWM0TADC (*(unsigned int volatile __XDATA *)0xff03) +#define PWM00T1 (*(unsigned int volatile __XDATA *)0xff10) +#define PWM00T2 (*(unsigned int volatile __XDATA *)0xff12) +#define PWM01T1 (*(unsigned int volatile __XDATA *)0xff18) +#define PWM01T2 (*(unsigned int volatile __XDATA *)0xff1a) +#define PWM02T1 (*(unsigned int volatile __XDATA *)0xff20) +#define PWM02T2 (*(unsigned int volatile __XDATA *)0xff22) +#define PWM03T1 (*(unsigned int volatile __XDATA *)0xff28) +#define PWM03T2 (*(unsigned int volatile __XDATA *)0xff2a) +#define PWM04T1 (*(unsigned int volatile __XDATA *)0xff30) +#define PWM04T2 (*(unsigned int volatile __XDATA *)0xff32) +#define PWM05T1 (*(unsigned int volatile __XDATA *)0xff38) +#define PWM05T2 (*(unsigned int volatile __XDATA *)0xff3a) +#define PWM06T1 (*(unsigned int volatile __XDATA *)0xff40) +#define PWM06T2 (*(unsigned int volatile __XDATA *)0xff42) +#define PWM07T1 (*(unsigned int volatile __XDATA *)0xff48) +#define PWM07T2 (*(unsigned int volatile __XDATA *)0xff4a) +#define PWM1C (*(unsigned int volatile __XDATA *)0xff50) +#define PWM10T1 (*(unsigned int volatile __XDATA *)0xff60) +#define PWM10T2 (*(unsigned int volatile __XDATA *)0xff62) +#define PWM11T1 (*(unsigned int volatile __XDATA *)0xff68) +#define PWM11T2 (*(unsigned int volatile __XDATA *)0xff6a) +#define PWM12T1 (*(unsigned int volatile __XDATA *)0xff70) +#define PWM12T2 (*(unsigned int volatile __XDATA *)0xff72) +#define PWM13T1 (*(unsigned int volatile __XDATA *)0xff78) +#define PWM13T2 (*(unsigned int volatile __XDATA *)0xff7a) +#define PWM14T1 (*(unsigned int volatile __XDATA *)0xff80) +#define PWM14T2 (*(unsigned int volatile __XDATA *)0xff82) +#define PWM15T1 (*(unsigned int volatile __XDATA *)0xff88) +#define PWM15T2 (*(unsigned int volatile __XDATA *)0xff8a) +#define PWM16T1 (*(unsigned int volatile __XDATA *)0xff90) +#define PWM16T2 (*(unsigned int volatile __XDATA *)0xff92) +#define PWM17T1 (*(unsigned int volatile __XDATA *)0xff98) +#define PWM17T2 (*(unsigned int volatile __XDATA *)0xff9a) +#define PWM2C (*(unsigned int volatile __XDATA *)0xffa0) +#define PWM2TADC (*(unsigned int volatile __XDATA *)0xffa3) +#define PWM20T1 (*(unsigned int volatile __XDATA *)0xffb0) +#define PWM20T2 (*(unsigned int volatile __XDATA *)0xffb2) +#define PWM21T1 (*(unsigned int volatile __XDATA *)0xffb8) +#define PWM21T2 (*(unsigned int volatile __XDATA *)0xffba) +#define PWM22T1 (*(unsigned int volatile __XDATA *)0xffc0) +#define PWM22T2 (*(unsigned int volatile __XDATA *)0xffc2) +#define PWM23T1 (*(unsigned int volatile __XDATA *)0xffc8) +#define PWM23T2 (*(unsigned int volatile __XDATA *)0xffca) +#define PWM24T1 (*(unsigned int volatile __XDATA *)0xffd0) +#define PWM24T2 (*(unsigned int volatile __XDATA *)0xffd2) +#define PWM25T1 (*(unsigned int volatile __XDATA *)0xffd8) +#define PWM25T2 (*(unsigned int volatile __XDATA *)0xffda) +#define PWM26T1 (*(unsigned int volatile __XDATA *)0xffe0) +#define PWM26T2 (*(unsigned int volatile __XDATA *)0xffe2) +#define PWM27T1 (*(unsigned int volatile __XDATA *)0xffe8) +#define PWM27T2 (*(unsigned int volatile __XDATA *)0xffea) +#define PWM3C (*(unsigned int volatile __XDATA *)0xfc00) +#define PWM30T1 (*(unsigned int volatile __XDATA *)0xfc10) +#define PWM30T2 (*(unsigned int volatile __XDATA *)0xfc12) +#define PWM31T1 (*(unsigned int volatile __XDATA *)0xfc18) +#define PWM31T2 (*(unsigned int volatile __XDATA *)0xfc1a) +#define PWM32T1 (*(unsigned int volatile __XDATA *)0xfc20) +#define PWM32T2 (*(unsigned int volatile __XDATA *)0xfc22) +#define PWM33T1 (*(unsigned int volatile __XDATA *)0xfc28) +#define PWM33T2 (*(unsigned int volatile __XDATA *)0xfc2a) +#define PWM34T1 (*(unsigned int volatile __XDATA *)0xfc30) +#define PWM34T2 (*(unsigned int volatile __XDATA *)0xfc32) +#define PWM35T1 (*(unsigned int volatile __XDATA *)0xfc38) +#define PWM35T2 (*(unsigned int volatile __XDATA *)0xfc3a) +#define PWM36T1 (*(unsigned int volatile __XDATA *)0xfc40) +#define PWM36T2 (*(unsigned int volatile __XDATA *)0xfc42) +#define PWM37T1 (*(unsigned int volatile __XDATA *)0xfc48) +#define PWM37T2 (*(unsigned int volatile __XDATA *)0xfc4a) +#define PWM4C (*(unsigned int volatile __XDATA *)0xfc50) +#define PWM4TADC (*(unsigned int volatile __XDATA *)0xfc53) +#define PWM40T1 (*(unsigned int volatile __XDATA *)0xfc60) +#define PWM40T2 (*(unsigned int volatile __XDATA *)0xfc62) +#define PWM41T1 (*(unsigned int volatile __XDATA *)0xfc68) +#define PWM41T2 (*(unsigned int volatile __XDATA *)0xfc6a) +#define PWM42T1 (*(unsigned int volatile __XDATA *)0xfc70) +#define PWM42T2 (*(unsigned int volatile __XDATA *)0xfc72) +#define PWM43T1 (*(unsigned int volatile __XDATA *)0xfc78) +#define PWM43T2 (*(unsigned int volatile __XDATA *)0xfc7a) +#define PWM44T1 (*(unsigned int volatile __XDATA *)0xfc80) +#define PWM44T2 (*(unsigned int volatile __XDATA *)0xfc82) +#define PWM45T1 (*(unsigned int volatile __XDATA *)0xfc88) +#define PWM45T2 (*(unsigned int volatile __XDATA *)0xfc8a) +#define PWM46T1 (*(unsigned int volatile __XDATA *)0xfc90) +#define PWM46T2 (*(unsigned int volatile __XDATA *)0xfc92) +#define PWM47T1 (*(unsigned int volatile __XDATA *)0xfc98) +#define PWM47T2 (*(unsigned int volatile __XDATA *)0xfc9a) +#define PWM5C (*(unsigned int volatile __XDATA *)0xfca0) +#define PWM50T1 (*(unsigned int volatile __XDATA *)0xfcb0) +#define PWM50T2 (*(unsigned int volatile __XDATA *)0xfcb2) +#define PWM51T1 (*(unsigned int volatile __XDATA *)0xfcb8) +#define PWM51T2 (*(unsigned int volatile __XDATA *)0xfcba) +#define PWM52T1 (*(unsigned int volatile __XDATA *)0xfcc0) +#define PWM52T2 (*(unsigned int volatile __XDATA *)0xfcc2) +#define PWM53T1 (*(unsigned int volatile __XDATA *)0xfcc8) +#define PWM53T2 (*(unsigned int volatile __XDATA *)0xfcca) +#define PWM54T1 (*(unsigned int volatile __XDATA *)0xfcd0) +#define PWM54T2 (*(unsigned int volatile __XDATA *)0xfcd2) +#define PWM55T1 (*(unsigned int volatile __XDATA *)0xfcd8) +#define PWM55T2 (*(unsigned int volatile __XDATA *)0xfcda) +#define PWM56T1 (*(unsigned int volatile __XDATA *)0xfce0) +#define PWM56T2 (*(unsigned int volatile __XDATA *)0xfce2) +#define PWM57T1 (*(unsigned int volatile __XDATA *)0xfce8) +#define PWM57T2 (*(unsigned int volatile __XDATA *)0xfcea) +#define TSDAT (*(unsigned int volatile __XDATA *)0xfb49) +#define TSTH00 (*(unsigned int volatile __XDATA *)0xfb50) +#define TSTH01 (*(unsigned int volatile __XDATA *)0xfb52) +#define TSTH02 (*(unsigned int volatile __XDATA *)0xfb54) +#define TSTH03 (*(unsigned int volatile __XDATA *)0xfb56) +#define TSTH04 (*(unsigned int volatile __XDATA *)0xfb58) +#define TSTH05 (*(unsigned int volatile __XDATA *)0xfb5a) +#define TSTH06 (*(unsigned int volatile __XDATA *)0xfb5c) +#define TSTH07 (*(unsigned int volatile __XDATA *)0xfb5e) +#define TSTH08 (*(unsigned int volatile __XDATA *)0xfb60) +#define TSTH09 (*(unsigned int volatile __XDATA *)0xfb62) +#define TSTH10 (*(unsigned int volatile __XDATA *)0xfb64) +#define TSTH11 (*(unsigned int volatile __XDATA *)0xfb66) +#define TSTH12 (*(unsigned int volatile __XDATA *)0xfb68) +#define TSTH13 (*(unsigned int volatile __XDATA *)0xfb6a) +#define TSTH14 (*(unsigned int volatile __XDATA *)0xfb6c) +#define TSTH15 (*(unsigned int volatile __XDATA *)0xfb6e) + +#endif + + ///////////////////////////////////////////////// #endif diff --git a/include/fw_reg_stc8h.h b/include/fw_reg_stc8h.h index 5404e84..e081366 100644 --- a/include/fw_reg_stc8h.h +++ b/include/fw_reg_stc8h.h @@ -165,26 +165,26 @@ SFR(RSTCFG, 0xFF); #define PWM1_CCMR4 (*(unsigned char volatile __XDATA *)0xfecb) #define PWM1_CCER1 (*(unsigned char volatile __XDATA *)0xfecc) #define PWM1_CCER2 (*(unsigned char volatile __XDATA *)0xfecd) -#define PWM1_CNTR (*(unsigned int volatile __XDATA *)0xfece) + #define PWM1_CNTRH (*(unsigned char volatile __XDATA *)0xfece) #define PWM1_CNTRL (*(unsigned char volatile __XDATA *)0xfecf) -#define PWM1_PSCR (*(unsigned int volatile __XDATA *)0xfed0) + #define PWM1_PSCRH (*(unsigned char volatile __XDATA *)0xfed0) #define PWM1_PSCRL (*(unsigned char volatile __XDATA *)0xfed1) -#define PWM1_ARR (*(unsigned int volatile __XDATA *)0xfed2) + #define PWM1_ARRH (*(unsigned char volatile __XDATA *)0xfed2) #define PWM1_ARRL (*(unsigned char volatile __XDATA *)0xfed3) #define PWM1_RCR (*(unsigned char volatile __XDATA *)0xfed4) -#define PWM1_CCR1 (*(unsigned int volatile __XDATA *)0xfed5) + #define PWM1_CCR1H (*(unsigned char volatile __XDATA *)0xfed5) #define PWM1_CCR1L (*(unsigned char volatile __XDATA *)0xfed6) -#define PWM1_CCR2 (*(unsigned int volatile __XDATA *)0xfed7) + #define PWM1_CCR2H (*(unsigned char volatile __XDATA *)0xfed7) #define PWM1_CCR2L (*(unsigned char volatile __XDATA *)0xfed8) -#define PWM1_CCR3 (*(unsigned int volatile __XDATA *)0xfed9) + #define PWM1_CCR3H (*(unsigned char volatile __XDATA *)0xfed9) #define PWM1_CCR3L (*(unsigned char volatile __XDATA *)0xfeda) -#define PWM1_CCR4 (*(unsigned int volatile __XDATA *)0xfedb) + #define PWM1_CCR4H (*(unsigned char volatile __XDATA *)0xfedb) #define PWM1_CCR4L (*(unsigned char volatile __XDATA *)0xfedc) #define PWM1_BKR (*(unsigned char volatile __XDATA *)0xfedd) @@ -204,31 +204,49 @@ SFR(RSTCFG, 0xFF); #define PWM2_CCMR4 (*(unsigned char volatile __XDATA *)0xfeeb) #define PWM2_CCER1 (*(unsigned char volatile __XDATA *)0xfeec) #define PWM2_CCER2 (*(unsigned char volatile __XDATA *)0xfeed) -#define PWM2_CNTR (*(unsigned int volatile __XDATA *)0xfeee) + #define PWM2_CNTRH (*(unsigned char volatile __XDATA *)0xfeee) #define PWM2_CNTRL (*(unsigned char volatile __XDATA *)0xfeef) -#define PWM2_PSCR (*(unsigned int volatile __XDATA *)0xfef0) + #define PWM2_PSCRH (*(unsigned char volatile __XDATA *)0xfef0) #define PWM2_PSCRL (*(unsigned char volatile __XDATA *)0xfef1) -#define PWM2_ARR (*(unsigned int volatile __XDATA *)0xfef2) + #define PWM2_ARRH (*(unsigned char volatile __XDATA *)0xfef2) #define PWM2_ARRL (*(unsigned char volatile __XDATA *)0xfef3) #define PWM2_RCR (*(unsigned char volatile __XDATA *)0xfef4) -#define PWM2_CCR1 (*(unsigned int volatile __XDATA *)0xfef5) + #define PWM2_CCR1H (*(unsigned char volatile __XDATA *)0xfef5) #define PWM2_CCR1L (*(unsigned char volatile __XDATA *)0xfef6) -#define PWM2_CCR2 (*(unsigned int volatile __XDATA *)0xfef7) + #define PWM2_CCR2H (*(unsigned char volatile __XDATA *)0xfef7) #define PWM2_CCR2L (*(unsigned char volatile __XDATA *)0xfef8) -#define PWM2_CCR3 (*(unsigned int volatile __XDATA *)0xfef9) + #define PWM2_CCR3H (*(unsigned char volatile __XDATA *)0xfef9) #define PWM2_CCR3L (*(unsigned char volatile __XDATA *)0xfefa) -#define PWM2_CCR4 (*(unsigned int volatile __XDATA *)0xfefb) + #define PWM2_CCR4H (*(unsigned char volatile __XDATA *)0xfefb) #define PWM2_CCR4L (*(unsigned char volatile __XDATA *)0xfefc) #define PWM2_BKR (*(unsigned char volatile __XDATA *)0xfefd) #define PWM2_DTR (*(unsigned char volatile __XDATA *)0xfefe) #define PWM2_OISR (*(unsigned char volatile __XDATA *)0xfeff) + +#if defined __CX51__ +#define PWM1_CNTR (*(unsigned int volatile __XDATA *)0xfece) +#define PWM1_PSCR (*(unsigned int volatile __XDATA *)0xfed0) +#define PWM1_ARR (*(unsigned int volatile __XDATA *)0xfed2) +#define PWM1_CCR1 (*(unsigned int volatile __XDATA *)0xfed5) +#define PWM1_CCR2 (*(unsigned int volatile __XDATA *)0xfed7) +#define PWM1_CCR3 (*(unsigned int volatile __XDATA *)0xfed9) +#define PWM1_CCR4 (*(unsigned int volatile __XDATA *)0xfedb) +#define PWM2_CNTR (*(unsigned int volatile __XDATA *)0xfeee) +#define PWM2_PSCR (*(unsigned int volatile __XDATA *)0xfef0) +#define PWM2_ARR (*(unsigned int volatile __XDATA *)0xfef2) +#define PWM2_CCR1 (*(unsigned int volatile __XDATA *)0xfef5) +#define PWM2_CCR2 (*(unsigned int volatile __XDATA *)0xfef7) +#define PWM2_CCR3 (*(unsigned int volatile __XDATA *)0xfef9) +#define PWM2_CCR4 (*(unsigned int volatile __XDATA *)0xfefb) +#endif + */ #define PWMA_ETRPS (*(unsigned char volatile __XDATA *)0xfeb0) @@ -254,26 +272,26 @@ SFR(RSTCFG, 0xFF); #define PWMA_CCMR4 (*(unsigned char volatile __XDATA *)0xfecb) #define PWMA_CCER1 (*(unsigned char volatile __XDATA *)0xfecc) #define PWMA_CCER2 (*(unsigned char volatile __XDATA *)0xfecd) -#define PWMA_CNTR (*(unsigned int volatile __XDATA *)0xfece) + #define PWMA_CNTRH (*(unsigned char volatile __XDATA *)0xfece) #define PWMA_CNTRL (*(unsigned char volatile __XDATA *)0xfecf) -#define PWMA_PSCR (*(unsigned int volatile __XDATA *)0xfed0) + #define PWMA_PSCRH (*(unsigned char volatile __XDATA *)0xfed0) #define PWMA_PSCRL (*(unsigned char volatile __XDATA *)0xfed1) -#define PWMA_ARR (*(unsigned int volatile __XDATA *)0xfed2) + #define PWMA_ARRH (*(unsigned char volatile __XDATA *)0xfed2) #define PWMA_ARRL (*(unsigned char volatile __XDATA *)0xfed3) #define PWMA_RCR (*(unsigned char volatile __XDATA *)0xfed4) -#define PWMA_CCR1 (*(unsigned int volatile __XDATA *)0xfed5) + #define PWMA_CCR1H (*(unsigned char volatile __XDATA *)0xfed5) #define PWMA_CCR1L (*(unsigned char volatile __XDATA *)0xfed6) -#define PWMA_CCR2 (*(unsigned int volatile __XDATA *)0xfed7) + #define PWMA_CCR2H (*(unsigned char volatile __XDATA *)0xfed7) #define PWMA_CCR2L (*(unsigned char volatile __XDATA *)0xfed8) -#define PWMA_CCR3 (*(unsigned int volatile __XDATA *)0xfed9) + #define PWMA_CCR3H (*(unsigned char volatile __XDATA *)0xfed9) #define PWMA_CCR3L (*(unsigned char volatile __XDATA *)0xfeda) -#define PWMA_CCR4 (*(unsigned int volatile __XDATA *)0xfedb) + #define PWMA_CCR4H (*(unsigned char volatile __XDATA *)0xfedb) #define PWMA_CCR4L (*(unsigned char volatile __XDATA *)0xfedc) #define PWMA_BKR (*(unsigned char volatile __XDATA *)0xfedd) @@ -294,26 +312,26 @@ SFR(RSTCFG, 0xFF); #define PWMB_CCMR4 (*(unsigned char volatile __XDATA *)0xfeeb) #define PWMB_CCER1 (*(unsigned char volatile __XDATA *)0xfeec) #define PWMB_CCER2 (*(unsigned char volatile __XDATA *)0xfeed) -#define PWMB_CNTR (*(unsigned int volatile __XDATA *)0xfeee) + #define PWMB_CNTRH (*(unsigned char volatile __XDATA *)0xfeee) #define PWMB_CNTRL (*(unsigned char volatile __XDATA *)0xfeef) -#define PWMB_PSCR (*(unsigned int volatile __XDATA *)0xfef0) + #define PWMB_PSCRH (*(unsigned char volatile __XDATA *)0xfef0) #define PWMB_PSCRL (*(unsigned char volatile __XDATA *)0xfef1) -#define PWMB_ARR (*(unsigned int volatile __XDATA *)0xfef2) + #define PWMB_ARRH (*(unsigned char volatile __XDATA *)0xfef2) #define PWMB_ARRL (*(unsigned char volatile __XDATA *)0xfef3) #define PWMB_RCR (*(unsigned char volatile __XDATA *)0xfef4) -#define PWMB_CCR5 (*(unsigned int volatile __XDATA *)0xfef5) + #define PWMB_CCR5H (*(unsigned char volatile __XDATA *)0xfef5) #define PWMB_CCR5L (*(unsigned char volatile __XDATA *)0xfef6) -#define PWMB_CCR6 (*(unsigned int volatile __XDATA *)0xfef7) + #define PWMB_CCR6H (*(unsigned char volatile __XDATA *)0xfef7) #define PWMB_CCR6L (*(unsigned char volatile __XDATA *)0xfef8) -#define PWMB_CCR7 (*(unsigned int volatile __XDATA *)0xfef9) + #define PWMB_CCR7H (*(unsigned char volatile __XDATA *)0xfef9) #define PWMB_CCR7L (*(unsigned char volatile __XDATA *)0xfefa) -#define PWMB_CCR8 (*(unsigned int volatile __XDATA *)0xfefb) + #define PWMB_CCR8H (*(unsigned char volatile __XDATA *)0xfefb) #define PWMB_CCR8L (*(unsigned char volatile __XDATA *)0xfefc) #define PWMB_BKR (*(unsigned char volatile __XDATA *)0xfefd) @@ -437,55 +455,55 @@ SFR(RSTCFG, 0xFF); #define TSSTA1 (*(unsigned char volatile __XDATA *)0xfb46) #define TSSTA2 (*(unsigned char volatile __XDATA *)0xfb47) #define TSRT (*(unsigned char volatile __XDATA *)0xfb48) -#define TSDAT (*(unsigned int volatile __XDATA *)0xfb49) + #define TSDATH (*(unsigned char volatile __XDATA *)0xfb49) #define TSDATL (*(unsigned char volatile __XDATA *)0xfb4A) -#define TSTH00 (*(unsigned int volatile __XDATA *)0xfb50) + #define TSTH00H (*(unsigned char volatile __XDATA *)0xfb50) #define TSTH00L (*(unsigned char volatile __XDATA *)0xfb51) -#define TSTH01 (*(unsigned int volatile __XDATA *)0xfb52) + #define TSTH01H (*(unsigned char volatile __XDATA *)0xfb52) #define TSTH01L (*(unsigned char volatile __XDATA *)0xfb53) -#define TSTH02 (*(unsigned int volatile __XDATA *)0xfb54) + #define TSTH02H (*(unsigned char volatile __XDATA *)0xfb54) #define TSTH02L (*(unsigned char volatile __XDATA *)0xfb55) -#define TSTH03 (*(unsigned int volatile __XDATA *)0xfb56) + #define TSTH03H (*(unsigned char volatile __XDATA *)0xfb56) #define TSTH03L (*(unsigned char volatile __XDATA *)0xfb57) -#define TSTH04 (*(unsigned int volatile __XDATA *)0xfb58) + #define TSTH04H (*(unsigned char volatile __XDATA *)0xfb58) #define TSTH04L (*(unsigned char volatile __XDATA *)0xfb59) -#define TSTH05 (*(unsigned int volatile __XDATA *)0xfb5a) + #define TSTH05H (*(unsigned char volatile __XDATA *)0xfb5a) #define TSTH05L (*(unsigned char volatile __XDATA *)0xfb5b) -#define TSTH06 (*(unsigned int volatile __XDATA *)0xfb5c) + #define TSTH06H (*(unsigned char volatile __XDATA *)0xfb5c) #define TSTH06L (*(unsigned char volatile __XDATA *)0xfb5d) -#define TSTH07 (*(unsigned int volatile __XDATA *)0xfb5e) + #define TSTH07H (*(unsigned char volatile __XDATA *)0xfb5e) #define TSTH07L (*(unsigned char volatile __XDATA *)0xfb5f) -#define TSTH08 (*(unsigned int volatile __XDATA *)0xfb60) + #define TSTH08H (*(unsigned char volatile __XDATA *)0xfb60) #define TSTH08L (*(unsigned char volatile __XDATA *)0xfb61) -#define TSTH09 (*(unsigned int volatile __XDATA *)0xfb62) + #define TSTH09H (*(unsigned char volatile __XDATA *)0xfb62) #define TSTH09L (*(unsigned char volatile __XDATA *)0xfb63) -#define TSTH10 (*(unsigned int volatile __XDATA *)0xfb64) + #define TSTH10H (*(unsigned char volatile __XDATA *)0xfb64) #define TSTH10L (*(unsigned char volatile __XDATA *)0xfb65) -#define TSTH11 (*(unsigned int volatile __XDATA *)0xfb66) + #define TSTH11H (*(unsigned char volatile __XDATA *)0xfb66) #define TSTH11L (*(unsigned char volatile __XDATA *)0xfb67) -#define TSTH12 (*(unsigned int volatile __XDATA *)0xfb68) + #define TSTH12H (*(unsigned char volatile __XDATA *)0xfb68) #define TSTH12L (*(unsigned char volatile __XDATA *)0xfb69) -#define TSTH13 (*(unsigned int volatile __XDATA *)0xfb6a) + #define TSTH13H (*(unsigned char volatile __XDATA *)0xfb6a) #define TSTH13L (*(unsigned char volatile __XDATA *)0xfb6b) -#define TSTH14 (*(unsigned int volatile __XDATA *)0xfb6c) + #define TSTH14H (*(unsigned char volatile __XDATA *)0xfb6c) #define TSTH14L (*(unsigned char volatile __XDATA *)0xfb6d) -#define TSTH15 (*(unsigned int volatile __XDATA *)0xfb6e) + #define TSTH15H (*(unsigned char volatile __XDATA *)0xfb6e) #define TSTH15L (*(unsigned char volatile __XDATA *)0xfb6f) @@ -593,6 +611,41 @@ SFR(RSTCFG, 0xFF); #define DMA_LCM_RXAH (*(unsigned char volatile __XDATA *)0xfa77) #define DMA_LCM_RXAL (*(unsigned char volatile __XDATA *)0xfa78) +#if defined __CX51__ + +#define PWMA_CNTR (*(unsigned int volatile __XDATA *)0xfece) +#define PWMA_PSCR (*(unsigned int volatile __XDATA *)0xfed0) +#define PWMA_ARR (*(unsigned int volatile __XDATA *)0xfed2) +#define PWMA_CCR1 (*(unsigned int volatile __XDATA *)0xfed5) +#define PWMA_CCR2 (*(unsigned int volatile __XDATA *)0xfed7) +#define PWMA_CCR3 (*(unsigned int volatile __XDATA *)0xfed9) +#define PWMA_CCR4 (*(unsigned int volatile __XDATA *)0xfedb) +#define PWMB_CNTR (*(unsigned int volatile __XDATA *)0xfeee) +#define PWMB_PSCR (*(unsigned int volatile __XDATA *)0xfef0) +#define PWMB_ARR (*(unsigned int volatile __XDATA *)0xfef2) +#define PWMB_CCR5 (*(unsigned int volatile __XDATA *)0xfef5) +#define PWMB_CCR6 (*(unsigned int volatile __XDATA *)0xfef7) +#define PWMB_CCR7 (*(unsigned int volatile __XDATA *)0xfef9) +#define PWMB_CCR8 (*(unsigned int volatile __XDATA *)0xfefb) +#define TSDAT (*(unsigned int volatile __XDATA *)0xfb49) +#define TSTH00 (*(unsigned int volatile __XDATA *)0xfb50) +#define TSTH01 (*(unsigned int volatile __XDATA *)0xfb52) +#define TSTH02 (*(unsigned int volatile __XDATA *)0xfb54) +#define TSTH03 (*(unsigned int volatile __XDATA *)0xfb56) +#define TSTH04 (*(unsigned int volatile __XDATA *)0xfb58) +#define TSTH05 (*(unsigned int volatile __XDATA *)0xfb5a) +#define TSTH06 (*(unsigned int volatile __XDATA *)0xfb5c) +#define TSTH07 (*(unsigned int volatile __XDATA *)0xfb5e) +#define TSTH08 (*(unsigned int volatile __XDATA *)0xfb60) +#define TSTH09 (*(unsigned int volatile __XDATA *)0xfb62) +#define TSTH10 (*(unsigned int volatile __XDATA *)0xfb64) +#define TSTH11 (*(unsigned int volatile __XDATA *)0xfb66) +#define TSTH12 (*(unsigned int volatile __XDATA *)0xfb68) +#define TSTH13 (*(unsigned int volatile __XDATA *)0xfb6a) +#define TSTH14 (*(unsigned int volatile __XDATA *)0xfb6c) +#define TSTH15 (*(unsigned int volatile __XDATA *)0xfb6e) + +#endif ///////////////////////////////////////////////// #endif