33 #ifndef __STC8Hx_REG_H_
34 #define __STC8Hx_REG_H_
71 #define AUXR_ADDRESS 0x8EU
72 #define AUXR2_ADDRESS 0x8FU
73 #define PER_SW1_ADDRESS 0xA2U
74 #define PER_SW2_ADDRESS 0xBAU
82 #define EAXFR_ENABLE() P_SW2 |= 0x80
83 #define EAXFR_DISABLE() P_SW2 &= 0x7F
112 #define IRCBAND_ADDRESS 0x9DU
113 #define LIRTRIM_ADDRESS 0x9EU
114 #define IRTRIM_ADDRESS 0x9FU
119 #define SYSCLK_BASE 0xFE00U
121 #define CKSEL_ADDRESS (SYSCLK_BASE + 0x0000U)
122 #define CLKDIV_ADDRESS (SYSCLK_BASE + 0x0001U)
123 #define HIRCCR_ADDRESS (SYSCLK_BASE + 0x0002U)
124 #define XOSCCR_ADDRESS (SYSCLK_BASE + 0x0003U)
125 #define IRC32KCR_ADDRESS (SYSCLK_BASE + 0x0004U)
126 #define MCLKOCR_ADDRESS (SYSCLK_BASE + 0x0005U)
127 #define X32KCR_ADDRESS (SYSCLK_BASE + 0x0006U)
130 #define SYSCLK (* (SYSCLK_TypeDef xdata *) SYSCLK_BASE)
134 #define CKSEL ( *(__IO uint8_t xdata *) CKSEL_ADDRESS)
135 #define CLKDIV ( *(__IO uint8_t xdata *) CLKDIV_ADDRESS)
136 #define IRC24MCR ( *(__IO uint8_t xdata *) HIRCCR_ADDRESS)
137 #define XOSCCR ( *(__IO uint8_t xdata *) XOSCCR_ADDRESS)
138 #define IRC32KCR ( *(__IO uint8_t xdata *) IRC32KCR_ADDRESS)
139 #define MCLKOCR ( *(__IO uint8_t xdata *) MCLKOCR_ADDRESS)
140 #define X32KCR ( *(__IO uint8_t xdata *) X32KCR_ADDRESS)
148 #define IRC_22_1184M (*(__I uint8_t idata *)0xFA)
149 #define IRC_24M (*(__I uint8_t idata *)0xFB)
156 #define PCON_ADDRESS 0x87U
157 #define VOCTRL_ADDRESS 0xBBU
168 #define IE_ADDRESS 0xA8U
169 #define IE2_ADDRESS 0xAFU
170 #define IP_ADDRESS 0xB8U
171 #define IPH_ADDRESS 0xB7U
172 #define IP2_ADDRESS 0xB5U
173 #define IP2H_ADDRESS 0xB6U
174 #define IP3_ADDRESS 0xDFU
175 #define IP3H_ADDRESS 0xEEU
176 #define INTCLKO_ADDRESS 0x8FU
177 #define AUXINTIF_ADDRESS 0xEFU
178 #define INTE_GPIO_ADDRESS 0xFD00U
179 #define INTF_GPIO_ADDRESS 0xFD10U
183 #define P0INTE_ADDRESS INTE_GPIO_ADDRESS
184 #define P1INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0001U)
185 #define P2INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0002U)
186 #define P3INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0003U)
187 #define P4INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0004U)
188 #define P5INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0005U)
189 #define P6INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0006U)
190 #define P7INTE_ADDRESS (INTE_GPIO_ADDRESS + 0x0007U)
192 #define P0INTF_ADDRESS INTF_GPIO_ADDRESS
193 #define P1INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0001U)
194 #define P2INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0002U)
195 #define P3INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0003U)
196 #define P4INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0004U)
197 #define P5INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0005U)
198 #define P6INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0006U)
199 #define P7INTF_ADDRESS (INTF_GPIO_ADDRESS + 0x0007U)
231 #define P0INTE ( *(__IO uint8_t xdata *) P0INTE_ADDRESS)
232 #define P1INTE ( *(__IO uint8_t xdata *) P1INTE_ADDRESS)
233 #define P2INTE ( *(__IO uint8_t xdata *) P2INTE_ADDRESS)
234 #define P3INTE ( *(__IO uint8_t xdata *) P3INTE_ADDRESS)
235 #define P4INTE ( *(__IO uint8_t xdata *) P4INTE_ADDRESS)
236 #define P5INTE ( *(__IO uint8_t xdata *) P5INTE_ADDRESS)
238 #define P0INTF ( *(__IO uint8_t xdata *) P0INTF_ADDRESS)
239 #define P1INTF ( *(__IO uint8_t xdata *) P1INTF_ADDRESS)
240 #define P2INTF ( *(__IO uint8_t xdata *) P2INTF_ADDRESS)
241 #define P3INTF ( *(__IO uint8_t xdata *) P3INTF_ADDRESS)
242 #define P4INTF ( *(__IO uint8_t xdata *) P4INTF_ADDRESS)
243 #define P5INTF ( *(__IO uint8_t xdata *) P5INTF_ADDRESS)
250 #define GPIO_BASE 0x80U
251 #define PxM1_BASE 0x93U
252 #define PxM0_BASE 0x94U
253 #define BUS_SPEED_ADDRESS 0xA1U
257 #define PxPU_BASE 0xFE10U
258 #define PxNCS_BASE 0xFE18U
259 #define PxSR_BASE 0xFE20U
260 #define PxDR_BASE 0xFE28U
261 #define PxIE_BASE 0xFE30U
264 #define P0_ADDRESS GPIO_BASE
265 #define P1_ADDRESS 0x90U
266 #define P2_ADDRESS 0xA0U
267 #define P3_ADDRESS 0xB0U
268 #define P4_ADDRESS 0xC0U
269 #define P5_ADDRESS 0xC8U
270 #define P6_ADDRESS 0xE8U
271 #define P7_ADDRESS 0xF8U
274 #define P0M1_ADDRESS PxM1_BASE
275 #define P1M1_ADDRESS 0x91U
276 #define P2M1_ADDRESS 0x95U
277 #define P3M1_ADDRESS 0xB1U
278 #define P4M1_ADDRESS 0xB3U
279 #define P5M1_ADDRESS 0xC9U
280 #define P6M1_ADDRESS 0xCBU
281 #define P7M1_ADDRESS 0xE1U
283 #define P0M0_ADDRESS PxM0_BASE
284 #define P1M0_ADDRESS 0x92U
285 #define P2M0_ADDRESS 0x96U
286 #define P3M0_ADDRESS 0xB2U
287 #define P4M0_ADDRESS 0xB4U
288 #define P5M0_ADDRESS 0xCAU
289 #define P6M0_ADDRESS 0xCCU
290 #define P7M0_ADDRESS 0xE2U
293 #define P0PU_ADDRESS (PxPU_BASE + 0x00U)
294 #define P1PU_ADDRESS (PxPU_BASE + 0x01U)
295 #define P2PU_ADDRESS (PxPU_BASE + 0x02U)
296 #define P3PU_ADDRESS (PxPU_BASE + 0x03U)
297 #define P4PU_ADDRESS (PxPU_BASE + 0x04U)
298 #define P5PU_ADDRESS (PxPU_BASE + 0x05U)
299 #define P6PU_ADDRESS (PxPU_BASE + 0x06U)
300 #define P7PU_ADDRESS (PxPU_BASE + 0x07U)
304 #define P0NCS_ADDRESS (PxNCS_BASE + 0x00U)
305 #define P1NCS_ADDRESS (PxNCS_BASE + 0x01U)
306 #define P2NCS_ADDRESS (PxNCS_BASE + 0x02U)
307 #define P3NCS_ADDRESS (PxNCS_BASE + 0x03U)
308 #define P4NCS_ADDRESS (PxNCS_BASE + 0x04U)
309 #define P5NCS_ADDRESS (PxNCS_BASE + 0x05U)
310 #define P6NCS_ADDRESS (PxNCS_BASE + 0x06U)
311 #define P7NCS_ADDRESS (PxNCS_BASE + 0x07U)
315 #define P0SR_ADDRESS (PxSR_BASE + 0x00U)
316 #define P1SR_ADDRESS (PxSR_BASE + 0x01U)
317 #define P2SR_ADDRESS (PxSR_BASE + 0x02U)
318 #define P3SR_ADDRESS (PxSR_BASE + 0x03U)
319 #define P4SR_ADDRESS (PxSR_BASE + 0x04U)
320 #define P5SR_ADDRESS (PxSR_BASE + 0x05U)
321 #define P6SR_ADDRESS (PxSR_BASE + 0x06U)
322 #define P7SR_ADDRESS (PxSR_BASE + 0x07U)
326 #define P0DR_ADDRESS (PxDR_BASE + 0x00U)
327 #define P1DR_ADDRESS (PxDR_BASE + 0x01U)
328 #define P2DR_ADDRESS (PxDR_BASE + 0x02U)
329 #define P3DR_ADDRESS (PxDR_BASE + 0x03U)
330 #define P4DR_ADDRESS (PxDR_BASE + 0x04U)
331 #define P5DR_ADDRESS (PxDR_BASE + 0x05U)
332 #define P6DR_ADDRESS (PxDR_BASE + 0x06U)
333 #define P7DR_ADDRESS (PxDR_BASE + 0x07U)
336 #define P0IE_ADDRESS (PxIE_BASE + 0x00U)
337 #define P1IE_ADDRESS (PxIE_BASE + 0x01U)
338 #define P3IE_ADDRESS (PxIE_BASE + 0x03U)
446 #define P0PU ( *(__IO uint8_t xdata *) P0PU_ADDRESS)
447 #define P1PU ( *(__IO uint8_t xdata *) P1PU_ADDRESS)
448 #define P2PU ( *(__IO uint8_t xdata *) P2PU_ADDRESS)
449 #define P3PU ( *(__IO uint8_t xdata *) P3PU_ADDRESS)
450 #define P4PU ( *(__IO uint8_t xdata *) P4PU_ADDRESS)
451 #define P5PU ( *(__IO uint8_t xdata *) P5PU_ADDRESS)
452 #define P6PU ( *(__IO uint8_t xdata *) P6PU_ADDRESS)
453 #define P7PU ( *(__IO uint8_t xdata *) P7PU_ADDRESS)
455 #define P0SR ( *(__IO uint8_t xdata *) P0SR_ADDRESS)
456 #define P1SR ( *(__IO uint8_t xdata *) P1SR_ADDRESS)
457 #define P2SR ( *(__IO uint8_t xdata *) P2SR_ADDRESS)
458 #define P3SR ( *(__IO uint8_t xdata *) P3SR_ADDRESS)
459 #define P4SR ( *(__IO uint8_t xdata *) P4SR_ADDRESS)
460 #define P5SR ( *(__IO uint8_t xdata *) P5SR_ADDRESS)
461 #define P6SR ( *(__IO uint8_t xdata *) P6SR_ADDRESS)
462 #define P7SR ( *(__IO uint8_t xdata *) P7SR_ADDRESS)
464 #define P0DR ( *(__IO uint8_t xdata *) P0DR_ADDRESS)
465 #define P1DR ( *(__IO uint8_t xdata *) P1DR_ADDRESS)
466 #define P2DR ( *(__IO uint8_t xdata *) P2DR_ADDRESS)
467 #define P3DR ( *(__IO uint8_t xdata *) P3DR_ADDRESS)
468 #define P4DR ( *(__IO uint8_t xdata *) P4DR_ADDRESS)
469 #define P5DR ( *(__IO uint8_t xdata *) P5DR_ADDRESS)
470 #define P6DR ( *(__IO uint8_t xdata *) P6DR_ADDRESS)
471 #define P7DR ( *(__IO uint8_t xdata *) P7DR_ADDRESS)
473 #define P0IE ( *(__IO uint8_t xdata *) P0IE_ADDRESS)
474 #define P1IE ( *(__IO uint8_t xdata *) P1IE_ADDRESS)
475 #define P3IE ( *(__IO uint8_t xdata *) P3IE_ADDRESS)
482 #define P0NCS ( *(__IO uint8_t xdata *) P0NCS_ADDRESS)
483 #define P1NCS ( *(__IO uint8_t xdata *) P1NCS_ADDRESS)
484 #define P2NCS ( *(__IO uint8_t xdata *) P2NCS_ADDRESS)
485 #define P3NCS ( *(__IO uint8_t xdata *) P3NCS_ADDRESS)
486 #define P4NCS ( *(__IO uint8_t xdata *) P4NCS_ADDRESS)
487 #define P5NCS ( *(__IO uint8_t xdata *) P5NCS_ADDRESS)
488 #define P6NCS ( *(__IO uint8_t xdata *) P6NCS_ADDRESS)
489 #define P7NCS ( *(__IO uint8_t xdata *) P7NCS_ADDRESS)
491 #define GPIO_Px(x) (P##x)
492 #define Px_M1(x) (P##x##M1)
493 #define Px_M0(x) (P##x##M0)
494 #define Px_PU(x) (P##x##PU)
495 #define Px_SR(x) (P##x##SR)
496 #define Px_DR(x) (P##x##DR)
497 #define Px_IE(x) (P##x##IE)
498 #define Px_NCS(x) (P##x##NCS)
506 #define WDT_ADDRESS 0xC1U
507 #define RSTCFG_ADDRESS 0xFFU
519 #define TCON_ADDRESS 0x88U
520 #define TMOD_ADDRESS 0x89U
521 #define T0L_ADDRESS 0x8AU
522 #define T1L_ADDRESS 0x8BU
523 #define T0H_ADDRESS 0x8CU
524 #define T1H_ADDRESS 0x8DU
525 #define T4T3M_ADDRESS 0xD1U
526 #define T4H_ADDRESS 0xD2U
527 #define T4L_ADDRESS 0xD3U
528 #define T3H_ADDRESS 0xD4U
529 #define T3L_ADDRESS 0xD5U
530 #define T2H_ADDRESS 0xD6U
531 #define T2L_ADDRESS 0xD7U
532 #define WKTCL_ADDRESS 0xAAU
533 #define WKTCH_ADDRESS 0xABU
535 #define TM2PS_ADDRESS 0xFEA2U
536 #define TM3PS_ADDRESS 0xFEA3U
537 #define TM4PS_ADDRESS 0xFEA4U
563 #define WDT_FLAG 0x80
596 #define TM2PS (*(__IO uint8_t xdata *)TM2PS_ADDRESS)
597 #define TM3PS (*(__IO uint8_t xdata *)TM3PS_ADDRESS)
598 #define TM4PS (*(__IO uint8_t xdata *)TM4PS_ADDRESS)
602 #define FWTH (*(__I uint8_t idata *)0xF8)
603 #define FWTL (*(__I uint8_t idata *)0xF9)
619 #define SCON_ADDRESS 0x98U
620 #define SBUF_ADDRESS 0x99U
621 #define S2CON_ADDRESS 0x9AU
622 #define S2BUF_ADDRESS 0x9BU
623 #define S3CON_ADDRESS 0xACU
624 #define S3BUF_ADDRESS 0xADU
625 #define S4CON_ADDRESS 0x84U
626 #define S4BUF_ADDRESS 0x85U
627 #define SADDR_ADDRESS 0xA9U
628 #define SADEN_ADDRESS 0xB9U
687 #define CMPCR1_ADDRESS 0xE6U
688 #define CMPCR2_ADDRESS 0xE7U
713 #define ADC_CONTR_ADDRESS 0xBCU
714 #define ADC_RES_ADDRESS 0xBDU
715 #define ADC_RESH_ADDRESS 0xBDU
716 #define ADC_RESL_ADDRESS 0xBEU
717 #define ADCCFG_ADDRESS 0xDEU
718 #define ADCTIM_ADDRESS 0xFEA8U
720 #define ADC_POWER 0x80
721 #define ADC_START 0x40
722 #define ADC_FLAG 0x20
725 #define ADC_RESFMT 0x20
734 #define ADCTIM (*(__IO uint8_t xdata *)ADCTIM_ADDRESS)
741 #define IAP_DATA_ADDRESS 0xC2U
742 #define IAP_ADDRH_ADDRESS 0xC3U
743 #define IAP_ADDRL_ADDRESS 0xC4U
744 #define IAP_CMD_ADDRESS 0xC5U
745 #define IAP_TRIG_ADDRESS 0xC6U
746 #define IAP_CONTR_ADDRESS 0xC7U
747 #define IAP_TPS_ADDRESS 0xF5U
749 #define ISP_DATA_ADDRESS 0xC2U
750 #define ISP_ADDRH_ADDRESS 0xC3U
751 #define ISP_ADDRL_ADDRESS 0xC4U
752 #define ISP_CMD_ADDRESS 0xC5U
753 #define ISP_TRIG_ADDRESS 0xC6U
754 #define ISP_CONTR_ADDRESS 0xC7U
758 #define IAP_READ 0x01
759 #define IAP_WRITE 0x02
760 #define IAP_ERASE 0x03
766 #define CMD_FAIL 0x10
789 #define PWMCFG_ADDRESS 0xF1U
790 #define PWMIF_ADDRESS 0xF6U
791 #define PWMFDCR_ADDRESS 0xF7U
792 #define PWMCR_ADDRESS 0xFEU
794 #define PWM_BASE1 0xFFF0U
795 #define PWM0_BASE 0xFF00U
796 #define PWM1_BASE 0xFF10U
797 #define PWM2_BASE 0xFF20U
798 #define PWM3_BASE 0xFF30U
799 #define PWM4_BASE 0xFF40U
800 #define PWM5_BASE 0xFF50U
801 #define PWM6_BASE 0xFF60U
802 #define PWM7_BASE 0xFF70U
804 #define PWMC_ADDRESS (PWM_BASE1 + 0x00U)
805 #define PWMCH_ADDRESS (PWMC_ADDRESS + 0x00U)
806 #define PWMCL_ADDRESS (PWMCH_ADDRESS + 0x01U)
807 #define PWMCKS_ADDRESS (PWMCL_ADDRESS + 0x01U)
809 #define TADCP_ADDRESS (PWMCKS_ADDRESS + 0x01U)
810 #define TADCPH_ADDRESS (TADCP_ADDRESS + 0x00U)
811 #define TADCPL_ADDRESS (PWMCL_ADDRESS + 0x01U)
813 #define PWM0T1_ADDRESS (PWM0_BASE + 0x00U)
814 #define PWM0T1H_ADDRESS (PWM0T1_ADDRESS + 0x00U)
815 #define PWM0T1L_ADDRESS (PWM0T1H_ADDRESS + 0x01U)
816 #define PWM0T2_ADDRESS (PWM0T1L_ADDRESS + 0x01U)
817 #define PWM0T2H_ADDRESS (PWM0T2_ADDRESS + 0x00U)
818 #define PWM0T2L_ADDRESS (PWM0T2H_ADDRESS + 0x01U)
819 #define PWM0CR_ADDRESS (PWM0T2L_ADDRESS + 0x01U)
820 #define PWM0HLD_ADDRESS (PWM0CR_ADDRESS + 0x01U)
822 #define PWM1T1_ADDRESS (PWM1_BASE + 0x00U)
823 #define PWM1T1H_ADDRESS (PWM1T1_ADDRESS + 0x00U)
824 #define PWM1T1L_ADDRESS (PWM1T1H_ADDRESS + 0x01U)
825 #define PWM1T2_ADDRESS (PWM1T1L_ADDRESS + 0x01U)
826 #define PWM1T2H_ADDRESS (PWM1T2_ADDRESS + 0x00U)
827 #define PWM1T2L_ADDRESS (PWM1T2H_ADDRESS + 0x01U)
828 #define PWM1CR_ADDRESS (PWM1T2L_ADDRESS + 0x01U)
829 #define PWM1HLD_ADDRESS (PWM1CR_ADDRESS + 0x01U)
831 #define PWM2T1_ADDRESS (PWM2_BASE + 0x00U)
832 #define PWM2T1H_ADDRESS (PWM2T1_ADDRESS + 0x00U)
833 #define PWM2T1L_ADDRESS (PWM2T1H_ADDRESS + 0x01U)
834 #define PWM2T2_ADDRESS (PWM2T1L_ADDRESS + 0x01U)
835 #define PWM2T2H_ADDRESS (PWM2T2_ADDRESS + 0x00U)
836 #define PWM2T2L_ADDRESS (PWM2T2H_ADDRESS + 0x01U)
837 #define PWM2CR_ADDRESS (PWM2T2L_ADDRESS + 0x01U)
838 #define PWM2HLD_ADDRESS (PWM2CR_ADDRESS + 0x01U)
840 #define PWM3T1_ADDRESS (PWM3_BASE + 0x00U)
841 #define PWM3T1H_ADDRESS (PWM3T1_ADDRESS + 0x00U)
842 #define PWM3T1L_ADDRESS (PWM3T1H_ADDRESS + 0x01U)
843 #define PWM3T2_ADDRESS (PWM3T1L_ADDRESS + 0x01U)
844 #define PWM3T2H_ADDRESS (PWM3T2_ADDRESS + 0x00U)
845 #define PWM3T2L_ADDRESS (PWM3T2H_ADDRESS + 0x01U)
846 #define PWM3CR_ADDRESS (PWM3T2L_ADDRESS + 0x01U)
847 #define PWM3HLD_ADDRESS (PWM3CR_ADDRESS + 0x01U)
849 #define PWM4T1_ADDRESS (PWM4_BASE + 0x00U)
850 #define PWM4T1H_ADDRESS (PWM4T1_ADDRESS + 0x00U)
851 #define PWM4T1L_ADDRESS (PWM4T1H_ADDRESS + 0x01U)
852 #define PWM4T2_ADDRESS (PWM4T1L_ADDRESS + 0x01U)
853 #define PWM4T2H_ADDRESS (PWM4T2_ADDRESS + 0x00U)
854 #define PWM4T2L_ADDRESS (PWM4T2H_ADDRESS + 0x01U)
855 #define PWM4CR_ADDRESS (PWM4T2L_ADDRESS + 0x01U)
856 #define PWM4HLD_ADDRESS (PWM4CR_ADDRESS + 0x01U)
858 #define PWM5T1_ADDRESS (PWM5_BASE + 0x00U)
859 #define PWM5T1H_ADDRESS (PWM5T1_ADDRESS + 0x00U)
860 #define PWM5T1L_ADDRESS (PWM5T1H_ADDRESS + 0x01U)
861 #define PWM5T2_ADDRESS (PWM5T1L_ADDRESS + 0x01U)
862 #define PWM5T2H_ADDRESS (PWM5T2_ADDRESS + 0x00U)
863 #define PWM5T2L_ADDRESS (PWM5T2H_ADDRESS + 0x01U)
864 #define PWM5CR_ADDRESS (PWM5T2L_ADDRESS + 0x01U)
865 #define PWM5HLD_ADDRESS (PWM5CR_ADDRESS + 0x01U)
867 #define PWM6T1_ADDRESS (PWM6_BASE + 0x00U)
868 #define PWM6T1H_ADDRESS (PWM6T1_ADDRESS + 0x00U)
869 #define PWM6T1L_ADDRESS (PWM6T1H_ADDRESS + 0x01U)
870 #define PWM6T2_ADDRESS (PWM6T1L_ADDRESS + 0x01U)
871 #define PWM6T2H_ADDRESS (PWM6T2_ADDRESS + 0x00U)
872 #define PWM6T2L_ADDRESS (PWM6T2H_ADDRESS + 0x01U)
873 #define PWM6CR_ADDRESS (PWM6T2L_ADDRESS + 0x01U)
874 #define PWM6HLD_ADDRESS (PWM6CR_ADDRESS + 0x01U)
876 #define PWM7T1_ADDRESS (PWM7_BASE + 0x00U)
877 #define PWM7T1H_ADDRESS (PWM7T1_ADDRESS + 0x00U)
878 #define PWM7T1L_ADDRESS (PWM7T1H_ADDRESS + 0x01U)
879 #define PWM7T2_ADDRESS (PWM7T1L_ADDRESS + 0x01U)
880 #define PWM7T2H_ADDRESS (PWM7T2_ADDRESS + 0x00U)
881 #define PWM7T2L_ADDRESS (PWM7T2H_ADDRESS + 0x01U)
882 #define PWM7CR_ADDRESS (PWM7T2L_ADDRESS + 0x01U)
883 #define PWM7HLD_ADDRESS (PWM7CR_ADDRESS + 0x01U)
887 #define PWM1_ETRPS (*(unsigned char volatile xdata *)0xfeb0)
888 #define PWM1_ENO (*(unsigned char volatile xdata *)0xfeb1)
889 #define PWM1_PS (*(unsigned char volatile xdata *)0xfeb2)
890 #define PWM1_IOAUX (*(unsigned char volatile xdata *)0xfeb3)
891 #define PWM2_ETRPS (*(unsigned char volatile xdata *)0xfeb4)
892 #define PWM2_ENO (*(unsigned char volatile xdata *)0xfeb5)
893 #define PWM2_PS (*(unsigned char volatile xdata *)0xfeb6)
894 #define PWM2_IOAUX (*(unsigned char volatile xdata *)0xfeb7)
895 #define PWM1_CR1 (*(unsigned char volatile xdata *)0xfec0)
896 #define PWM1_CR2 (*(unsigned char volatile xdata *)0xfec1)
897 #define PWM1_SMCR (*(unsigned char volatile xdata *)0xfec2)
898 #define PWM1_ETR (*(unsigned char volatile xdata *)0xfec3)
899 #define PWM1_IER (*(unsigned char volatile xdata *)0xfec4)
900 #define PWM1_SR1 (*(unsigned char volatile xdata *)0xfec5)
901 #define PWM1_SR2 (*(unsigned char volatile xdata *)0xfec6)
902 #define PWM1_EGR (*(unsigned char volatile xdata *)0xfec7)
903 #define PWM1_CCMR1 (*(unsigned char volatile xdata *)0xfec8)
904 #define PWM1_CCMR2 (*(unsigned char volatile xdata *)0xfec9)
905 #define PWM1_CCMR3 (*(unsigned char volatile xdata *)0xfeca)
906 #define PWM1_CCMR4 (*(unsigned char volatile xdata *)0xfecb)
907 #define PWM1_CCER1 (*(unsigned char volatile xdata *)0xfecc)
908 #define PWM1_CCER2 (*(unsigned char volatile xdata *)0xfecd)
909 #define PWM1_CNTR (*(unsigned int volatile xdata *)0xfece)
910 #define PWM1_CNTRH (*(unsigned char volatile xdata *)0xfece)
911 #define PWM1_CNTRL (*(unsigned char volatile xdata *)0xfecf)
912 #define PWM1_PSCR (*(unsigned int volatile xdata *)0xfed0)
913 #define PWM1_PSCRH (*(unsigned char volatile xdata *)0xfed0)
914 #define PWM1_PSCRL (*(unsigned char volatile xdata *)0xfed1)
915 #define PWM1_ARR (*(unsigned int volatile xdata *)0xfed2)
916 #define PWM1_ARRH (*(unsigned char volatile xdata *)0xfed2)
917 #define PWM1_ARRL (*(unsigned char volatile xdata *)0xfed3)
918 #define PWM1_RCR (*(unsigned char volatile xdata *)0xfed4)
919 #define PWM1_CCR1 (*(unsigned int volatile xdata *)0xfed5)
920 #define PWM1_CCR1H (*(unsigned char volatile xdata *)0xfed5)
921 #define PWM1_CCR1L (*(unsigned char volatile xdata *)0xfed6)
922 #define PWM1_CCR2 (*(unsigned int volatile xdata *)0xfed7)
923 #define PWM1_CCR2H (*(unsigned char volatile xdata *)0xfed7)
924 #define PWM1_CCR2L (*(unsigned char volatile xdata *)0xfed8)
925 #define PWM1_CCR3 (*(unsigned int volatile xdata *)0xfed9)
926 #define PWM1_CCR3H (*(unsigned char volatile xdata *)0xfed9)
927 #define PWM1_CCR3L (*(unsigned char volatile xdata *)0xfeda)
928 #define PWM1_CCR4 (*(unsigned int volatile xdata *)0xfedb)
929 #define PWM1_CCR4H (*(unsigned char volatile xdata *)0xfedb)
930 #define PWM1_CCR4L (*(unsigned char volatile xdata *)0xfedc)
931 #define PWM1_BKR (*(unsigned char volatile xdata *)0xfedd)
932 #define PWM1_DTR (*(unsigned char volatile xdata *)0xfede)
933 #define PWM1_OISR (*(unsigned char volatile xdata *)0xfedf)
934 #define PWM2_CR1 (*(unsigned char volatile xdata *)0xfee0)
935 #define PWM2_CR2 (*(unsigned char volatile xdata *)0xfee1)
936 #define PWM2_SMCR (*(unsigned char volatile xdata *)0xfee2)
937 #define PWM2_ETR (*(unsigned char volatile xdata *)0xfee3)
938 #define PWM2_IER (*(unsigned char volatile xdata *)0xfee4)
939 #define PWM2_SR1 (*(unsigned char volatile xdata *)0xfee5)
940 #define PWM2_SR2 (*(unsigned char volatile xdata *)0xfee6)
941 #define PWM2_EGR (*(unsigned char volatile xdata *)0xfee7)
942 #define PWM2_CCMR1 (*(unsigned char volatile xdata *)0xfee8)
943 #define PWM2_CCMR2 (*(unsigned char volatile xdata *)0xfee9)
944 #define PWM2_CCMR3 (*(unsigned char volatile xdata *)0xfeea)
945 #define PWM2_CCMR4 (*(unsigned char volatile xdata *)0xfeeb)
946 #define PWM2_CCER1 (*(unsigned char volatile xdata *)0xfeec)
947 #define PWM2_CCER2 (*(unsigned char volatile xdata *)0xfeed)
948 #define PWM2_CNTR (*(unsigned int volatile xdata *)0xfeee)
949 #define PWM2_CNTRH (*(unsigned char volatile xdata *)0xfeee)
950 #define PWM2_CNTRL (*(unsigned char volatile xdata *)0xfeef)
951 #define PWM2_PSCR (*(unsigned int volatile xdata *)0xfef0)
952 #define PWM2_PSCRH (*(unsigned char volatile xdata *)0xfef0)
953 #define PWM2_PSCRL (*(unsigned char volatile xdata *)0xfef1)
954 #define PWM2_ARR (*(unsigned int volatile xdata *)0xfef2)
955 #define PWM2_ARRH (*(unsigned char volatile xdata *)0xfef2)
956 #define PWM2_ARRL (*(unsigned char volatile xdata *)0xfef3)
957 #define PWM2_RCR (*(unsigned char volatile xdata *)0xfef4)
958 #define PWM2_CCR1 (*(unsigned int volatile xdata *)0xfef5)
959 #define PWM2_CCR1H (*(unsigned char volatile xdata *)0xfef5)
960 #define PWM2_CCR1L (*(unsigned char volatile xdata *)0xfef6)
961 #define PWM2_CCR2 (*(unsigned int volatile xdata *)0xfef7)
962 #define PWM2_CCR2H (*(unsigned char volatile xdata *)0xfef7)
963 #define PWM2_CCR2L (*(unsigned char volatile xdata *)0xfef8)
964 #define PWM2_CCR3 (*(unsigned int volatile xdata *)0xfef9)
965 #define PWM2_CCR3H (*(unsigned char volatile xdata *)0xfef9)
966 #define PWM2_CCR3L (*(unsigned char volatile xdata *)0xfefa)
967 #define PWM2_CCR4 (*(unsigned int volatile xdata *)0xfefb)
968 #define PWM2_CCR4H (*(unsigned char volatile xdata *)0xfefb)
969 #define PWM2_CCR4L (*(unsigned char volatile xdata *)0xfefc)
970 #define PWM2_BKR (*(unsigned char volatile xdata *)0xfefd)
971 #define PWM2_DTR (*(unsigned char volatile xdata *)0xfefe)
972 #define PWM2_OISR (*(unsigned char volatile xdata *)0xfeff)
974 #define PWMA_ETRPS (*(unsigned char volatile xdata *)0xfeb0)
975 #define PWMA_ENO (*(unsigned char volatile xdata *)0xfeb1)
976 #define PWMA_PS (*(unsigned char volatile xdata *)0xfeb2)
977 #define PWMA_IOAUX (*(unsigned char volatile xdata *)0xfeb3)
978 #define PWMB_ETRPS (*(unsigned char volatile xdata *)0xfeb4)
979 #define PWMB_ENO (*(unsigned char volatile xdata *)0xfeb5)
980 #define PWMB_PS (*(unsigned char volatile xdata *)0xfeb6)
981 #define PWMB_IOAUX (*(unsigned char volatile xdata *)0xfeb7)
982 #define PWMA_CR1 (*(unsigned char volatile xdata *)0xfec0)
983 #define PWMA_CR2 (*(unsigned char volatile xdata *)0xfec1)
984 #define PWMA_SMCR (*(unsigned char volatile xdata *)0xfec2)
985 #define PWMA_ETR (*(unsigned char volatile xdata *)0xfec3)
986 #define PWMA_IER (*(unsigned char volatile xdata *)0xfec4)
987 #define PWMA_SR1 (*(unsigned char volatile xdata *)0xfec5)
988 #define PWMA_SR2 (*(unsigned char volatile xdata *)0xfec6)
989 #define PWMA_EGR (*(unsigned char volatile xdata *)0xfec7)
990 #define PWMA_CCMR1 (*(unsigned char volatile xdata *)0xfec8)
991 #define PWMA_CCMR2 (*(unsigned char volatile xdata *)0xfec9)
992 #define PWMA_CCMR3 (*(unsigned char volatile xdata *)0xfeca)
993 #define PWMA_CCMR4 (*(unsigned char volatile xdata *)0xfecb)
994 #define PWMA_CCER1 (*(unsigned char volatile xdata *)0xfecc)
995 #define PWMA_CCER2 (*(unsigned char volatile xdata *)0xfecd)
996 #define PWMA_CNTR (*(unsigned int volatile xdata *)0xfece)
997 #define PWMA_CNTRH (*(unsigned char volatile xdata *)0xfece)
998 #define PWMA_CNTRL (*(unsigned char volatile xdata *)0xfecf)
999 #define PWMA_PSCR (*(unsigned int volatile xdata *)0xfed0)
1000 #define PWMA_PSCRH (*(unsigned char volatile xdata *)0xfed0)
1001 #define PWMA_PSCRL (*(unsigned char volatile xdata *)0xfed1)
1002 #define PWMA_ARR (*(unsigned int volatile xdata *)0xfed2)
1003 #define PWMA_ARRH (*(unsigned char volatile xdata *)0xfed2)
1004 #define PWMA_ARRL (*(unsigned char volatile xdata *)0xfed3)
1005 #define PWMA_RCR (*(unsigned char volatile xdata *)0xfed4)
1006 #define PWMA_CCR1 (*(unsigned int volatile xdata *)0xfed5)
1007 #define PWMA_CCR1H (*(unsigned char volatile xdata *)0xfed5)
1008 #define PWMA_CCR1L (*(unsigned char volatile xdata *)0xfed6)
1009 #define PWMA_CCR2 (*(unsigned int volatile xdata *)0xfed7)
1010 #define PWMA_CCR2H (*(unsigned char volatile xdata *)0xfed7)
1011 #define PWMA_CCR2L (*(unsigned char volatile xdata *)0xfed8)
1012 #define PWMA_CCR3 (*(unsigned int volatile xdata *)0xfed9)
1013 #define PWMA_CCR3H (*(unsigned char volatile xdata *)0xfed9)
1014 #define PWMA_CCR3L (*(unsigned char volatile xdata *)0xfeda)
1015 #define PWMA_CCR4 (*(unsigned int volatile xdata *)0xfedb)
1016 #define PWMA_CCR4H (*(unsigned char volatile xdata *)0xfedb)
1017 #define PWMA_CCR4L (*(unsigned char volatile xdata *)0xfedc)
1018 #define PWMA_BKR (*(unsigned char volatile xdata *)0xfedd)
1019 #define PWMA_DTR (*(unsigned char volatile xdata *)0xfede)
1020 #define PWMA_OISR (*(unsigned char volatile xdata *)0xfedf)
1021 #define PWMB_CR1 (*(unsigned char volatile xdata *)0xfee0)
1022 #define PWMB_CR2 (*(unsigned char volatile xdata *)0xfee1)
1023 #define PWMB_SMCR (*(unsigned char volatile xdata *)0xfee2)
1024 #define PWMB_ETR (*(unsigned char volatile xdata *)0xfee3)
1025 #define PWMB_IER (*(unsigned char volatile xdata *)0xfee4)
1026 #define PWMB_SR1 (*(unsigned char volatile xdata *)0xfee5)
1027 #define PWMB_SR2 (*(unsigned char volatile xdata *)0xfee6)
1028 #define PWMB_EGR (*(unsigned char volatile xdata *)0xfee7)
1029 #define PWMB_CCMR1 (*(unsigned char volatile xdata *)0xfee8)
1030 #define PWMB_CCMR2 (*(unsigned char volatile xdata *)0xfee9)
1031 #define PWMB_CCMR3 (*(unsigned char volatile xdata *)0xfeea)
1032 #define PWMB_CCMR4 (*(unsigned char volatile xdata *)0xfeeb)
1033 #define PWMB_CCER1 (*(unsigned char volatile xdata *)0xfeec)
1034 #define PWMB_CCER2 (*(unsigned char volatile xdata *)0xfeed)
1035 #define PWMB_CNTR (*(unsigned int volatile xdata *)0xfeee)
1036 #define PWMB_CNTRH (*(unsigned char volatile xdata *)0xfeee)
1037 #define PWMB_CNTRL (*(unsigned char volatile xdata *)0xfeef)
1038 #define PWMB_PSCR (*(unsigned int volatile xdata *)0xfef0)
1039 #define PWMB_PSCRH (*(unsigned char volatile xdata *)0xfef0)
1040 #define PWMB_PSCRL (*(unsigned char volatile xdata *)0xfef1)
1041 #define PWMB_ARR (*(unsigned int volatile xdata *)0xfef2)
1042 #define PWMB_ARRH (*(unsigned char volatile xdata *)0xfef2)
1043 #define PWMB_ARRL (*(unsigned char volatile xdata *)0xfef3)
1044 #define PWMB_RCR (*(unsigned char volatile xdata *)0xfef4)
1045 #define PWMB_CCR5 (*(unsigned int volatile xdata *)0xfef5)
1046 #define PWMB_CCR5H (*(unsigned char volatile xdata *)0xfef5)
1047 #define PWMB_CCR5L (*(unsigned char volatile xdata *)0xfef6)
1048 #define PWMB_CCR6 (*(unsigned int volatile xdata *)0xfef7)
1049 #define PWMB_CCR6H (*(unsigned char volatile xdata *)0xfef7)
1050 #define PWMB_CCR6L (*(unsigned char volatile xdata *)0xfef8)
1051 #define PWMB_CCR7 (*(unsigned int volatile xdata *)0xfef9)
1052 #define PWMB_CCR7H (*(unsigned char volatile xdata *)0xfef9)
1053 #define PWMB_CCR7L (*(unsigned char volatile xdata *)0xfefa)
1054 #define PWMB_CCR8 (*(unsigned int volatile xdata *)0xfefb)
1055 #define PWMB_CCR8H (*(unsigned char volatile xdata *)0xfefb)
1056 #define PWMB_CCR8L (*(unsigned char volatile xdata *)0xfefc)
1057 #define PWMB_BKR (*(unsigned char volatile xdata *)0xfefd)
1058 #define PWMB_DTR (*(unsigned char volatile xdata *)0xfefe)
1059 #define PWMB_OISR (*(unsigned char volatile xdata *)0xfeff)
1067 #define PWMC (*(__IO uint16_t xdata *) PWMC_ADDRESS)
1068 #define PWMCH (*(__IO uint8_t xdata *) PWMCH_ADDRESS)
1069 #define PWMCL (*(__IO uint8_t xdata *) PWMCL_ADDRESS)
1070 #define PWMCKS (*(__IO uint8_t xdata *) PWMCKS_ADDRESS)
1071 #define TADCP (*(__IO uint8_t xdata *) TADCP_ADDRESS)
1072 #define TADCPH (*(__IO uint8_t xdata *) TADCPH_ADDRESS)
1073 #define TADCPL (*(__IO uint8_t xdata *) TADCPL_ADDRESS)
1075 #define PWMxT1(PWMxT1_ADDRESS) ( *(__IO uint16_t xdata *) PWMxT1_ADDRESS)
1076 #define PWMxT2(PWMxT2_ADDRESS) ( *(__IO uint16_t xdata *) PWMxT2_ADDRESS)
1077 #define PWMxCR(PWMxCR_ADDRESS) ( *(__IO uint8_t xdata *) PWMxCR_ADDRESS)
1078 #define PWMxHLD(PWMxHLD_ADDRESS) ( *(__IO uint8_t xdata *)PWMxHLD_ADDRESS)
1080 #define PWM0T1 (*(__IO uint16_t xdata *) PWM0T1_ADDRESS)
1081 #define PWM0T1H (*(__IO uint8_t xdata *)PWM0T1H_ADDRESS)
1082 #define PWM0T1L (*(__IO uint8_t xdata *)PWM0T1L_ADDRESS)
1083 #define PWM0T2 (*(__IO uint16_t xdata *) PWM0T2_ADDRESS)
1084 #define PWM0T2H (*(__IO uint8_t xdata *)PWM0T2H_ADDRESS)
1085 #define PWM0T2L (*(__IO uint8_t xdata *)PWM0T2L_ADDRESS)
1086 #define PWM0CR (*(__IO uint8_t xdata *) PWM0CR_ADDRESS)
1087 #define PWM0HLD (*(__IO uint8_t xdata *)PWM0HLD_ADDRESS)
1089 #define PWM1T1 (*(__IO uint16_t xdata *) PWM1T1_ADDRESS)
1090 #define PWM1T1H (*(__IO uint8_t xdata *)PWM1T1H_ADDRESS)
1091 #define PWM1T1L (*(__IO uint8_t xdata *)PWM1T1L_ADDRESS)
1092 #define PWM1T2 (*(__IO uint16_t xdata *) PWM1T2_ADDRESS)
1093 #define PWM1T2H (*(__IO uint8_t xdata *)PWM1T2H_ADDRESS)
1094 #define PWM1T2L (*(__IO uint8_t xdata *)PWM1T2L_ADDRESS)
1095 #define PWM1CR (*(__IO uint8_t xdata *) PWM1CR_ADDRESS)
1096 #define PWM1HLD (*(__IO uint8_t xdata *)PWM1HLD_ADDRESS)
1098 #define PWM2T1 (*(__IO uint16_t xdata *) PWM2T1_ADDRESS)
1099 #define PWM2T1H (*(__IO uint8_t xdata *)PWM2T1H_ADDRESS)
1100 #define PWM2T1L (*(__IO uint8_t xdata *)PWM2T1L_ADDRESS)
1101 #define PWM2T2 (*(__IO uint16_t xdata *) PWM2T2_ADDRESS)
1102 #define PWM2T2H (*(__IO uint8_t xdata *)PWM2T2H_ADDRESS)
1103 #define PWM2T2L (*(__IO uint8_t xdata *)PWM2T2L_ADDRESS)
1104 #define PWM2CR (*(__IO uint8_t xdata *) PWM2CR_ADDRESS)
1105 #define PWM2HLD (*(__IO uint8_t xdata *)PWM2HLD_ADDRESS)
1107 #define PWM3T1 (*(__IO uint16_t xdata *) PWM3T1_ADDRESS)
1108 #define PWM3T1H (*(__IO uint8_t xdata *)PWM3T1H_ADDRESS)
1109 #define PWM3T1L (*(__IO uint8_t xdata *)PWM3T1L_ADDRESS)
1110 #define PWM3T2 (*(__IO uint16_t xdata *) PWM3T2_ADDRESS)
1111 #define PWM3T2H (*(__IO uint8_t xdata *)PWM3T2H_ADDRESS)
1112 #define PWM3T2L (*(__IO uint8_t xdata *)PWM3T2L_ADDRESS)
1113 #define PWM3CR (*(__IO uint8_t xdata *) PWM3CR_ADDRESS)
1114 #define PWM3HLD (*(__IO uint8_t xdata *)PWM3HLD_ADDRESS)
1116 #define PWM4T1 (*(__IO uint16_t xdata *) PWM4T1_ADDRESS)
1117 #define PWM4T1H (*(__IO uint8_t xdata *)PWM4T1H_ADDRESS)
1118 #define PWM4T1L (*(__IO uint8_t xdata *)PWM4T1L_ADDRESS)
1119 #define PWM4T2 (*(__IO uint16_t xdata *) PWM4T2_ADDRESS)
1120 #define PWM4T2H (*(__IO uint8_t xdata *)PWM4T2H_ADDRESS)
1121 #define PWM4T2L (*(__IO uint8_t xdata *)PWM4T2L_ADDRESS)
1122 #define PWM4CR (*(__IO uint8_t xdata *) PWM4CR_ADDRESS)
1123 #define PWM4HLD (*(__IO uint8_t xdata *)PWM4HLD_ADDRESS)
1125 #define PWM5T1 (*(__IO uint16_t xdata *) PWM5T1_ADDRESS)
1126 #define PWM5T1H (*(__IO uint8_t xdata *)PWM5T1H_ADDRESS)
1127 #define PWM5T1L (*(__IO uint8_t xdata *)PWM5T1L_ADDRESS)
1128 #define PWM5T2 (*(__IO uint16_t xdata *) PWM5T2_ADDRESS)
1129 #define PWM5T2H (*(__IO uint8_t xdata *)PWM5T2H_ADDRESS)
1130 #define PWM5T2L (*(__IO uint8_t xdata *)PWM5T2L_ADDRESS)
1131 #define PWM5CR (*(__IO uint8_t xdata *) PWM5CR_ADDRESS)
1132 #define PWM5HLD (*(__IO uint8_t xdata *)PWM5HLD_ADDRESS)
1134 #define PWM6T1 (*(__IO uint16_t xdata *) PWM6T1_ADDRESS)
1135 #define PWM6T1H (*(__IO uint8_t xdata *)PWM6T1H_ADDRESS)
1136 #define PWM6T1L (*(__IO uint8_t xdata *)PWM6T1L_ADDRESS)
1137 #define PWM6T2 (*(__IO uint16_t xdata *) PWM6T2_ADDRESS)
1138 #define PWM6T2H (*(__IO uint8_t xdata *)PWM6T2H_ADDRESS)
1139 #define PWM6T2L (*(__IO uint8_t xdata *)PWM6T2L_ADDRESS)
1140 #define PWM6CR (*(__IO uint8_t xdata *) PWM6CR_ADDRESS)
1141 #define PWM6HLD (*(__IO uint8_t xdata *)PWM6HLD_ADDRESS)
1143 #define PWM7T1 (*(__IO uint16_t xdata *) PWM7T1_ADDRESS)
1144 #define PWM7T1H (*(__IO uint8_t xdata *)PWM7T1H_ADDRESS)
1145 #define PWM7T1L (*(__IO uint8_t xdata *)PWM7T1L_ADDRESS)
1146 #define PWM7T2 (*(__IO uint16_t xdata *) PWM7T2_ADDRESS)
1147 #define PWM7T2H (*(__IO uint8_t xdata *)PWM7T2H_ADDRESS)
1148 #define PWM7T2L (*(__IO uint8_t xdata *)PWM7T2L_ADDRESS)
1149 #define PWM7CR (*(__IO uint8_t xdata *) PWM7CR_ADDRESS)
1150 #define PWM7HLD (*(__IO uint8_t xdata *)PWM7HLD_ADDRESS)
1157 #define SPSTAT_ADDRESS 0xCDU
1158 #define SPCTL_ADDRESS 0xCEU
1159 #define SPDAT_ADDRESS 0xCFU
1183 #define I2C_BASE 0xFE80U
1184 #define I2CCFG_ADDRESS (I2C_BASE + 0x00U)
1185 #define I2CMSCR_ADDRESS (I2C_BASE + 0x01U)
1186 #define I2CMSST_ADDRESS (I2C_BASE + 0x02U)
1187 #define I2CSLCR_ADDRESS (I2C_BASE + 0x03U)
1188 #define I2CSLST_ADDRESS (I2C_BASE + 0x04U)
1189 #define I2CSLADR_ADDRESS (I2C_BASE + 0x05U)
1190 #define I2CTXD_ADDRESS (I2C_BASE + 0x06U)
1191 #define I2CRXD_ADDRESS (I2C_BASE + 0x07U)
1225 #define I2CCFG (*(__IO uint8_t xdata *) I2CCFG_ADDRESS)
1226 #define I2CMSCR (*(__IO uint8_t xdata *) I2CMSCR_ADDRESS)
1227 #define I2CMSST (*(__IO uint8_t xdata *) I2CMSST_ADDRESS)
1228 #define I2CSLCR (*(__IO uint8_t xdata *) I2CSLCR_ADDRESS)
1229 #define I2CSLST (*(__IO uint8_t xdata * )I2CSLST_ADDRESS)
1230 #define I2CSLADR (*(__IO uint8_t xdata *)I2CSLADR_ADDRESS)
1231 #define I2CTXD (*(__IO uint8_t xdata *) I2CTXD_ADDRESS)
1232 #define I2CRXD (*(__IO uint8_t xdata *) I2CRXD_ADDRESS)
1258 #define MDU16_BASE 0xFCF0U
1260 #define MD3_ADDRESS (MDU16_BASE)
1261 #define MD2_ADDRESS (MDU16_BASE + 0x0001U)
1262 #define MD1_ADDRESS (MDU16_BASE + 0x0002U)
1263 #define MD0_ADDRESS (MDU16_BASE + 0x0003U)
1264 #define MD5_ADDRESS (MDU16_BASE + 0x0004U)
1265 #define MD4_ADDRESS (MDU16_BASE + 0x0005U)
1266 #define ARCON_ADDRESS (MDU16_BASE + 0x0006U)
1267 #define OPCON_ADDRESS (MDU16_BASE + 0x0007U)
1271 #define MDU16 (* (MDU16_TypeDef xdata *) MDU16_BASE)
1273 #define MD3U32 (*(__IO uint32_t xdata *) MD3_ADDRESS)
1274 #define MD3U16 (*(__IO uint16_t xdata *) MD3_ADDRESS)
1275 #define MD1U16 (*(__IO uint16_t xdata *) MD1_ADDRESS)
1276 #define MD5U16 (*(__IO uint16_t xdata *) MD5_ADDRESS)
1278 #define MD3 (*(__IO uint8_t xdata *) MD3_ADDRESS)
1279 #define MD2 (*(__IO uint8_t xdata *) MD2_ADDRESS)
1280 #define MD1 (*(__IO uint8_t xdata *) MD1_ADDRESS)
1281 #define MD0 (*(__IO uint8_t xdata *) MD0_ADDRESS)
1282 #define MD5 (*(__IO uint8_t xdata *) MD5_ADDRESS)
1283 #define MD4 (*(__IO uint8_t xdata *) MD4_ADDRESS)
1285 #define ARCON (*(__IO uint8_t xdata *) ARCON_ADDRESS)
1286 #define OPCON (*(__IO uint8_t xdata *) OPCON_ADDRESS)
unsigned char uint8_t
Definition: ELL_TYPE.h:72
#define __IO
Definition: ELL_TYPE.h:106
sfr P4M0
Definition: STC8Hx_REG.h:436
sbit P50
Definition: STC8Hx_REG.h:394
sbit P06
Definition: STC8Hx_REG.h:357
sfr P7M0
Definition: STC8Hx_REG.h:439
sbit CY
Definition: STC8Hx_REG.h:50
sfr T0L
Definition: STC8Hx_REG.h:571
#define PER_SW2_ADDRESS
Definition: STC8Hx_REG.h:74
sbit F1
Definition: STC8Hx_REG.h:56
#define P6M1_ADDRESS
Definition: STC8Hx_REG.h:280
sbit P76
Definition: STC8Hx_REG.h:418
sfr T4L
Definition: STC8Hx_REG.h:581
sfr ISP_ADDRH
Definition: STC8Hx_REG.h:778
sfr DPH
Definition: STC8Hx_REG.h:60
sfr P1
Definition: STC8Hx_REG.h:342
sbit P36
Definition: STC8Hx_REG.h:385
#define IAP_TRIG_ADDRESS
Definition: STC8Hx_REG.h:745
#define CMPCR1_ADDRESS
Definition: STC8Hx_REG.h:687
#define AUXR_ADDRESS
Definition: STC8Hx_REG.h:71
sfr TL1
Definition: STC8Hx_REG.h:576
sfr IPH
Definition: STC8Hx_REG.h:205
#define P0M0_ADDRESS
Definition: STC8Hx_REG.h:283
sfr P0
Definition: STC8Hx_REG.h:341
sbit P70
Definition: STC8Hx_REG.h:412
sbit PADC
Definition: STC8Hx_REG.h:224
#define IP3_ADDRESS
Definition: STC8Hx_REG.h:174
#define P2_ADDRESS
Definition: STC8Hx_REG.h:266
sfr ACC
Definition: STC8Hx_REG.h:47
sfr WDT_CONTR
Definition: STC8Hx_REG.h:510
#define S4BUF_ADDRESS
Definition: STC8Hx_REG.h:626
sfr P5
Definition: STC8Hx_REG.h:346
sfr IP3H
Definition: STC8Hx_REG.h:209
sbit PX0
Definition: STC8Hx_REG.h:229
sbit P24
Definition: STC8Hx_REG.h:374
sbit P10
Definition: STC8Hx_REG.h:361
sfr SPCTL
Definition: STC8Hx_REG.h:1175
sfr P_SW2
Definition: STC8Hx_REG.h:80
sfr WKTCL
Definition: STC8Hx_REG.h:586
sbit P13
Definition: STC8Hx_REG.h:364
sfr SPDAT
Definition: STC8Hx_REG.h:1176
sfr P0M1
Definition: STC8Hx_REG.h:422
sbit P40
Definition: STC8Hx_REG.h:388
sbit EX1
Definition: STC8Hx_REG.h:218
sbit TR0
Definition: STC8Hx_REG.h:592
sfr IRCBAND
Definition: STC8Hx_REG.h:144
sfr P4
Definition: STC8Hx_REG.h:345
#define P6M0_ADDRESS
Definition: STC8Hx_REG.h:289
sbit P66
Definition: STC8Hx_REG.h:409
sfr ISP_DATA
Definition: STC8Hx_REG.h:777
#define IAP_ADDRH_ADDRESS
Definition: STC8Hx_REG.h:742
#define T1L_ADDRESS
Definition: STC8Hx_REG.h:522
sfr CMPCR1
Definition: STC8Hx_REG.h:705
sbit P77
Definition: STC8Hx_REG.h:419
sfr IAP_CONTR
Definition: STC8Hx_REG.h:774
sfr PWMIF
Definition: STC8Hx_REG.h:1063
sbit PT1
Definition: STC8Hx_REG.h:226
sfr BUS_SPEED
Definition: STC8Hx_REG.h:442
sbit SM0
Definition: STC8Hx_REG.h:673
sfr DPL1
Definition: STC8Hx_REG.h:63
sbit P14
Definition: STC8Hx_REG.h:365
#define ADCCFG_ADDRESS
Definition: STC8Hx_REG.h:717
sbit P34
Definition: STC8Hx_REG.h:383
sfr S3CON
Definition: STC8Hx_REG.h:666
sbit P51
Definition: STC8Hx_REG.h:395
sbit P31
Definition: STC8Hx_REG.h:380
sbit P67
Definition: STC8Hx_REG.h:410
sbit F0
Definition: STC8Hx_REG.h:52
sbit P33
Definition: STC8Hx_REG.h:382
sbit P73
Definition: STC8Hx_REG.h:415
#define ADC_RESL_ADDRESS
Definition: STC8Hx_REG.h:716
sbit P01
Definition: STC8Hx_REG.h:352
sfr ISP_TRIG
Definition: STC8Hx_REG.h:781
sbit PPCA
Definition: STC8Hx_REG.h:222
#define PWMCR_ADDRESS
Definition: STC8Hx_REG.h:792
sbit P60
Definition: STC8Hx_REG.h:403
sbit P44
Definition: STC8Hx_REG.h:392
#define TCON_ADDRESS
Definition: STC8Hx_REG.h:519
sbit IT1
Definition: STC8Hx_REG.h:611
#define ADC_CONTR_ADDRESS
Definition: STC8Hx_REG.h:713
sfr SP
Definition: STC8Hx_REG.h:58
sbit P00
Definition: STC8Hx_REG.h:351
sbit TR1
Definition: STC8Hx_REG.h:590
#define RSTCFG_ADDRESS
Definition: STC8Hx_REG.h:507
#define P5M1_ADDRESS
Definition: STC8Hx_REG.h:279
sfr T4T3M
Definition: STC8Hx_REG.h:579
sfr CMPCR2
Definition: STC8Hx_REG.h:706
sbit P41
Definition: STC8Hx_REG.h:389
#define LIRTRIM_ADDRESS
Definition: STC8Hx_REG.h:113
sbit OV
Definition: STC8Hx_REG.h:55
sbit P15
Definition: STC8Hx_REG.h:366
sbit P32
Definition: STC8Hx_REG.h:381
sfr TL0
Definition: STC8Hx_REG.h:575
sbit P07
Definition: STC8Hx_REG.h:358
#define S2BUF_ADDRESS
Definition: STC8Hx_REG.h:622
sfr TH1
Definition: STC8Hx_REG.h:578
sfr IP2H
Definition: STC8Hx_REG.h:207
sfr S4CON
Definition: STC8Hx_REG.h:668
#define PER_SW1_ADDRESS
Definition: STC8Hx_REG.h:73
sfr INTCLKO
Definition: STC8Hx_REG.h:210
sfr T4H
Definition: STC8Hx_REG.h:580
sfr ISP_CMD
Definition: STC8Hx_REG.h:780
sfr P4M1
Definition: STC8Hx_REG.h:426
#define P0M1_ADDRESS
Definition: STC8Hx_REG.h:274
sbit RS1
Definition: STC8Hx_REG.h:53
sfr T2L
Definition: STC8Hx_REG.h:585
#define IAP_CMD_ADDRESS
Definition: STC8Hx_REG.h:744
sfr B
Definition: STC8Hx_REG.h:48
#define S2CON_ADDRESS
Definition: STC8Hx_REG.h:621
sfr LIRTRIM
Definition: STC8Hx_REG.h:146
#define CMPCR2_ADDRESS
Definition: STC8Hx_REG.h:688
sbit P72
Definition: STC8Hx_REG.h:414
#define P6_ADDRESS
Definition: STC8Hx_REG.h:270
#define T4H_ADDRESS
Definition: STC8Hx_REG.h:526
sbit IE1
Definition: STC8Hx_REG.h:593
sfr P2M0
Definition: STC8Hx_REG.h:434
sbit P65
Definition: STC8Hx_REG.h:408
sfr P5M0
Definition: STC8Hx_REG.h:437
sbit P23
Definition: STC8Hx_REG.h:373
#define WKTCH_ADDRESS
Definition: STC8Hx_REG.h:533
sfr P3M0
Definition: STC8Hx_REG.h:435
#define IAP_CONTR_ADDRESS
Definition: STC8Hx_REG.h:746
sfr IP2
Definition: STC8Hx_REG.h:206
#define IPH_ADDRESS
Definition: STC8Hx_REG.h:171
sfr P6
Definition: STC8Hx_REG.h:347
#define T3L_ADDRESS
Definition: STC8Hx_REG.h:529
sfr ADC_RES
Definition: STC8Hx_REG.h:730
sbit P20
Definition: STC8Hx_REG.h:370
sfr P6M1
Definition: STC8Hx_REG.h:428
sfr SPSTAT
Definition: STC8Hx_REG.h:1174
#define IE_ADDRESS
Definition: STC8Hx_REG.h:168
sfr IE
Definition: STC8Hx_REG.h:202
#define BUS_SPEED_ADDRESS
Definition: STC8Hx_REG.h:253
sfr TA
Definition: STC8Hx_REG.h:61
sfr P_SW1
Definition: STC8Hx_REG.h:79
sfr P2
Definition: STC8Hx_REG.h:343
sbit P53
Definition: STC8Hx_REG.h:397
sbit SM1
Definition: STC8Hx_REG.h:674
sbit P71
Definition: STC8Hx_REG.h:413
#define ISP_ADDRH_ADDRESS
Definition: STC8Hx_REG.h:750
sbit PX1
Definition: STC8Hx_REG.h:227
sbit ET0
Definition: STC8Hx_REG.h:219
#define SADEN_ADDRESS
Definition: STC8Hx_REG.h:628
sfr IP
Definition: STC8Hx_REG.h:204
sfr ADCCFG
Definition: STC8Hx_REG.h:732
sfr DPS
Definition: STC8Hx_REG.h:62
#define ISP_CONTR_ADDRESS
Definition: STC8Hx_REG.h:754
#define S3BUF_ADDRESS
Definition: STC8Hx_REG.h:624
sbit P62
Definition: STC8Hx_REG.h:405
#define T1H_ADDRESS
Definition: STC8Hx_REG.h:524
sfr ISP_CONTR
Definition: STC8Hx_REG.h:782
#define P3_ADDRESS
Definition: STC8Hx_REG.h:267
sfr P7M1
Definition: STC8Hx_REG.h:429
sbit P37
Definition: STC8Hx_REG.h:386
sbit P42
Definition: STC8Hx_REG.h:390
sfr DPL
Definition: STC8Hx_REG.h:59
sbit TI
Definition: STC8Hx_REG.h:679
#define TMOD_ADDRESS
Definition: STC8Hx_REG.h:520
sbit IE0
Definition: STC8Hx_REG.h:594
#define PWMIF_ADDRESS
Definition: STC8Hx_REG.h:790
#define T3H_ADDRESS
Definition: STC8Hx_REG.h:528
sbit P27
Definition: STC8Hx_REG.h:377
#define IE2_ADDRESS
Definition: STC8Hx_REG.h:169
sbit TF1
Definition: STC8Hx_REG.h:589
sbit P52
Definition: STC8Hx_REG.h:396
#define P4_ADDRESS
Definition: STC8Hx_REG.h:268
#define T4T3M_ADDRESS
Definition: STC8Hx_REG.h:525
sfr IAP_DATA
Definition: STC8Hx_REG.h:769
sbit P25
Definition: STC8Hx_REG.h:375
#define WDT_ADDRESS
Definition: STC8Hx_REG.h:506
#define VOCTRL_ADDRESS
Definition: STC8Hx_REG.h:157
sbit P26
Definition: STC8Hx_REG.h:376
sbit TF0
Definition: STC8Hx_REG.h:591
#define PWMFDCR_ADDRESS
Definition: STC8Hx_REG.h:791
sbit P74
Definition: STC8Hx_REG.h:416
sbit ES
Definition: STC8Hx_REG.h:216
sfr PCON
Definition: STC8Hx_REG.h:160
sfr S2CON
Definition: STC8Hx_REG.h:664
#define ISP_DATA_ADDRESS
Definition: STC8Hx_REG.h:749
#define SCON_ADDRESS
Definition: STC8Hx_REG.h:619
sfr T3H
Definition: STC8Hx_REG.h:582
#define IAP_DATA_ADDRESS
Definition: STC8Hx_REG.h:741
#define P2M0_ADDRESS
Definition: STC8Hx_REG.h:285
sfr P2M1
Definition: STC8Hx_REG.h:424
#define ISP_CMD_ADDRESS
Definition: STC8Hx_REG.h:752
sbit P43
Definition: STC8Hx_REG.h:391
sbit P05
Definition: STC8Hx_REG.h:356
#define T4L_ADDRESS
Definition: STC8Hx_REG.h:527
sfr SADDR
Definition: STC8Hx_REG.h:670
sbit P55
Definition: STC8Hx_REG.h:399
#define P1_ADDRESS
Definition: STC8Hx_REG.h:265
sbit ET1
Definition: STC8Hx_REG.h:217
sfr PWMFDCR
Definition: STC8Hx_REG.h:1064
sfr AUXR
Definition: STC8Hx_REG.h:77
sbit PS
Definition: STC8Hx_REG.h:225
sfr S4BUF
Definition: STC8Hx_REG.h:669
#define ISP_ADDRL_ADDRESS
Definition: STC8Hx_REG.h:751
sfr IAP_ADDRL
Definition: STC8Hx_REG.h:771
sbit EADC
Definition: STC8Hx_REG.h:215
#define P5M0_ADDRESS
Definition: STC8Hx_REG.h:288
sfr P1M0
Definition: STC8Hx_REG.h:433
sbit P12
Definition: STC8Hx_REG.h:363
sbit P75
Definition: STC8Hx_REG.h:417
sbit P16
Definition: STC8Hx_REG.h:367
sbit PT0
Definition: STC8Hx_REG.h:228
sfr AUXINTIF
Definition: STC8Hx_REG.h:211
sbit P02
Definition: STC8Hx_REG.h:353
sbit IT0
Definition: STC8Hx_REG.h:610
sfr P5M1
Definition: STC8Hx_REG.h:427
#define P4M0_ADDRESS
Definition: STC8Hx_REG.h:287
sbit RB8
Definition: STC8Hx_REG.h:678
sbit P64
Definition: STC8Hx_REG.h:407
sfr P3M1
Definition: STC8Hx_REG.h:425
sfr S2BUF
Definition: STC8Hx_REG.h:665
#define WKTCL_ADDRESS
Definition: STC8Hx_REG.h:532
#define S3CON_ADDRESS
Definition: STC8Hx_REG.h:623
sfr RSTCFG
Definition: STC8Hx_REG.h:512
sfr P1M1
Definition: STC8Hx_REG.h:423
sbit ELVD
Definition: STC8Hx_REG.h:214
#define T0H_ADDRESS
Definition: STC8Hx_REG.h:523
sfr ADC_CONTR
Definition: STC8Hx_REG.h:729
#define ADC_RESH_ADDRESS
Definition: STC8Hx_REG.h:715
sfr IAP_ADDRH
Definition: STC8Hx_REG.h:770
sfr PWMCR
Definition: STC8Hx_REG.h:1065
#define IP2H_ADDRESS
Definition: STC8Hx_REG.h:173
#define ISP_TRIG_ADDRESS
Definition: STC8Hx_REG.h:753
#define P1M1_ADDRESS
Definition: STC8Hx_REG.h:275
sfr TMOD
Definition: STC8Hx_REG.h:570
sfr T3L
Definition: STC8Hx_REG.h:583
sbit P11
Definition: STC8Hx_REG.h:362
sbit TB8
Definition: STC8Hx_REG.h:677
#define P4M1_ADDRESS
Definition: STC8Hx_REG.h:278
sbit P63
Definition: STC8Hx_REG.h:406
sfr PSW
Definition: STC8Hx_REG.h:49
#define INTCLKO_ADDRESS
Definition: STC8Hx_REG.h:176
#define AUXINTIF_ADDRESS
Definition: STC8Hx_REG.h:177
sfr IE2
Definition: STC8Hx_REG.h:203
#define T0L_ADDRESS
Definition: STC8Hx_REG.h:521
sfr SBUF
Definition: STC8Hx_REG.h:663
sfr ADC_RESL
Definition: STC8Hx_REG.h:731
#define P7M0_ADDRESS
Definition: STC8Hx_REG.h:290
#define IRTRIM_ADDRESS
Definition: STC8Hx_REG.h:114
sfr PWMCFG
Definition: STC8Hx_REG.h:1062
#define IAP_TPS_ADDRESS
Definition: STC8Hx_REG.h:747
#define IRCBAND_ADDRESS
Definition: STC8Hx_REG.h:112
#define SPCTL_ADDRESS
Definition: STC8Hx_REG.h:1158
sfr VOCTRL
Definition: STC8Hx_REG.h:161
sbit RS0
Definition: STC8Hx_REG.h:54
sfr T1L
Definition: STC8Hx_REG.h:572
sfr TH0
Definition: STC8Hx_REG.h:577
#define AUXR2_ADDRESS
Definition: STC8Hx_REG.h:72
sbit RI
Definition: STC8Hx_REG.h:680
sfr P0M0
Definition: STC8Hx_REG.h:432
sbit P04
Definition: STC8Hx_REG.h:355
sfr TCON
Definition: STC8Hx_REG.h:569
sbit AC
Definition: STC8Hx_REG.h:51
sbit P54
Definition: STC8Hx_REG.h:398
sbit REN
Definition: STC8Hx_REG.h:676
sbit P35
Definition: STC8Hx_REG.h:384
#define P3M1_ADDRESS
Definition: STC8Hx_REG.h:277
#define P1M0_ADDRESS
Definition: STC8Hx_REG.h:284
sfr T1H
Definition: STC8Hx_REG.h:574
#define P7_ADDRESS
Definition: STC8Hx_REG.h:271
#define SPSTAT_ADDRESS
Definition: STC8Hx_REG.h:1157
#define P3M0_ADDRESS
Definition: STC8Hx_REG.h:286
#define IP_ADDRESS
Definition: STC8Hx_REG.h:170
sfr IAP_TPS
Definition: STC8Hx_REG.h:775
#define SBUF_ADDRESS
Definition: STC8Hx_REG.h:620
#define PWMCFG_ADDRESS
Definition: STC8Hx_REG.h:789
sfr WKTCH
Definition: STC8Hx_REG.h:587
sfr P7
Definition: STC8Hx_REG.h:348
#define P5_ADDRESS
Definition: STC8Hx_REG.h:269
sbit P21
Definition: STC8Hx_REG.h:371
#define SPDAT_ADDRESS
Definition: STC8Hx_REG.h:1159
sbit PLVD
Definition: STC8Hx_REG.h:223
#define P7M1_ADDRESS
Definition: STC8Hx_REG.h:281
sfr SCON
Definition: STC8Hx_REG.h:662
sbit P61
Definition: STC8Hx_REG.h:404
#define P2M1_ADDRESS
Definition: STC8Hx_REG.h:276
sbit EA
Definition: STC8Hx_REG.h:213
sfr IRTRIM
Definition: STC8Hx_REG.h:145
#define P0_ADDRESS
Definition: STC8Hx_REG.h:264
#define SADDR_ADDRESS
Definition: STC8Hx_REG.h:627
sfr DPH1
Definition: STC8Hx_REG.h:64
#define PCON_ADDRESS
Definition: STC8Hx_REG.h:156
sfr IP3
Definition: STC8Hx_REG.h:208
sfr P3
Definition: STC8Hx_REG.h:344
sfr T2H
Definition: STC8Hx_REG.h:584
sfr P6M0
Definition: STC8Hx_REG.h:438
sbit SM2
Definition: STC8Hx_REG.h:675
sbit P
Definition: STC8Hx_REG.h:57
sbit P17
Definition: STC8Hx_REG.h:368
#define T2L_ADDRESS
Definition: STC8Hx_REG.h:531
#define T2H_ADDRESS
Definition: STC8Hx_REG.h:530
sfr IAP_CMD
Definition: STC8Hx_REG.h:772
sfr IAP_TRIG
Definition: STC8Hx_REG.h:773
sfr SADEN
Definition: STC8Hx_REG.h:671
sbit P56
Definition: STC8Hx_REG.h:400
sbit P22
Definition: STC8Hx_REG.h:372
sfr S3BUF
Definition: STC8Hx_REG.h:667
sbit P03
Definition: STC8Hx_REG.h:354
sbit P30
Definition: STC8Hx_REG.h:379
sfr T0H
Definition: STC8Hx_REG.h:573
sbit EX0
Definition: STC8Hx_REG.h:220
#define S4CON_ADDRESS
Definition: STC8Hx_REG.h:625
sbit P57
Definition: STC8Hx_REG.h:401
#define IAP_ADDRL_ADDRESS
Definition: STC8Hx_REG.h:743
#define IP3H_ADDRESS
Definition: STC8Hx_REG.h:175
sfr ISP_ADDRL
Definition: STC8Hx_REG.h:779
sfr AUXR2
Definition: STC8Hx_REG.h:78
Definition: STC8Cx_REG.h:931
Definition: STC15x_REG.h:78
__IO uint8_t X32KCR_REG
Definition: STC8Hx_REG.h:103