8051-ELL库  beta 1.1.6
8051-ELL library API Document Center
STC8Fx_REG.h
浏览该文件的文档.
1 /*-----------------------------------------------------------------------
2 | FILE DESCRIPTION |
3 -----------------------------------------------------------------------*/
4 /*-----------------------------------------------------------------------
5  - File name : STC8Fx_REG.h
6  - Author : Quark Team
7  - Update date : 2020-12-20
8  - Copyright : Gevico Electronic studio
9  - Module comments: Header file of STC8Ax MCU model.
10 -----------------------------------------------------------------------*/
11 /*------------------------------------------------------------------------
12 | COPYRIGHT NOTICE |
13 ------------------------------------------------------------------------*/
14 /*
15  * Copyright (C) 2021, zeweni (17870070675@163.com)
16 
17  * This file is part of 8051 ELL low-layer libraries.
18 
19  * 8051 ELL low-layer libraries is free software: you can redistribute
20  * it and/or modify it under the terms of the Apache-2.0 License.
21 
22  * 8051 ELL low-layer libraries is distributed in the hope that it will
23  * be useful,but WITHOUT ANY WARRANTY; without even the implied warranty
24  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * Apache-2.0 License License for more details.
26 
27  * You should have received a copy of the Apache-2.0 License.8051 ELL
28  * low-layer libraries. If not, see <http://www.apache.org/licenses/>.
29 **/
30 /*-----------------------------------------------------------------------
31 | INCLUDES |
32 -----------------------------------------------------------------------*/
33 #ifndef __STC8Fx_REG_H_
34 #define __STC8Fx_REG_H_
35 
36 
37 #include "ELL_TYPE.h"
38 
39 /*-----------------------------------------------------------------------
40 | REGISTER |
41 -----------------------------------------------------------------------*/
42 
43 /*--------------------------------------------------------
44 | @Description: kernel management |
45 --------------------------------------------------------*/
46 
47 //内核特殊功能寄存器
48 sfr ACC = 0xe0;
49 sfr B = 0xf0;
50 sfr PSW = 0xd0;
51 sbit CY = PSW^7;
52 sbit AC = PSW^6;
53 sbit F0 = PSW^5;
54 sbit RS1 = PSW^4;
55 sbit RS0 = PSW^3;
56 sbit OV = PSW^2;
57 sbit F1 = PSW^1;
58 sbit P = PSW^0;
59 sfr SP = 0x81;
60 sfr DPL = 0x82;
61 sfr DPH = 0x83;
62 sfr TA = 0xae;
63 sfr DPS = 0xe3;
64 sfr DPL1 = 0xe4;
65 sfr DPH1 = 0xe5;
66 /*--------------------------------------------------------
67 | @Description: system management |
68 --------------------------------------------------------*/
69 
70 /* Base address define */
71 #define AUXR_ADDRESS 0x8EU
72 #define AUXR2_ADDRESS 0x97U
73 #define PER_SW1_ADDRESS 0xA2U
74 #define PER_SW2_ADDRESS 0xBAU
75 
76 /* register */
81 
82 #define EAXFR_ENABLE() P_SW2 |= 0x80
83 #define EAXFR_DISABLE() P_SW2 &= 0x7F
84 
85 /*--------------------------------------------------------
86 | @Description: System clock IO register structure |
87 --------------------------------------------------------*/
88 
89 typedef struct
90 {
91  __IO uint8_t CKSEL_REG ; /*----Clock selection */
92 
93  __IO uint8_t CLKDIV_REG ; /*----Clock frequency division */
94 
95  __IO uint8_t IRC24MCR_REG ; /*----High internal 24MHz oscillator control */
96 
97  __IO uint8_t XOSCCR_REG ; /*----External oscillator control */
98 
99  __IO uint8_t IRC32KCR_REG; /*----Internal 32KHz oscillator control */
100 
102 
103 
104 /*--------------------------------------------------------
105 | @Description: System clock peripherals |
106 --------------------------------------------------------*/
107 
108 #define IRTRIM_ADDRESS 0x9FU
109 #define LIRTRIM_ADDRESS 0x9EU
110 
111 /* System clock base address in the
112 internal expansion RAM area */
113 #define SYSCLK_BASE 0xFE00U
114 
115 #define CKSEL_ADDRESS (SYSCLK_BASE + 0x0000U)
116 #define CLKDIV_ADDRESS (SYSCLK_BASE + 0x0001U)
117 #define IRC24MCR_ADDRESS (SYSCLK_BASE + 0x0002U)
118 #define XOSCCR_ADDRESS (SYSCLK_BASE + 0x0003U)
119 #define IRC32KCR_ADDRESS (SYSCLK_BASE + 0x0004U)
120 
121 /* Define type of SYSCLK */
122 
123 #define SYSCLK (* (SYSCLK_TypeDef xdata *) SYSCLK_BASE)
124 
125 /* SYSCLIL register */
126 
127 #define CKSEL ( *(__IO uint8_t xdata *) CKSEL_ADDRESS)
128 #define CLKDIV ( *(__IO uint8_t xdata *) CLKDIV_ADDRESS)
129 #define IRC24MCR ( *(__IO uint8_t xdata *) HIRCCR_ADDRESS)
130 #define XOSCCR ( *(__IO uint8_t xdata *) XOSCCR_ADDRESS)
131 #define IRC32KCR ( *(__IO uint8_t xdata *)IRC32KCR_ADDRESS)
132 
133 /* IRC frequency adjustment register */
134 
137 
138 #define IRC_24M (*(__I uint8_t idata *)0xFB)
139 
140 /*--------------------------------------------------------
141 | @Description: Power peripherals |
142 --------------------------------------------------------*/
143 
144 /* Power base address */
145 #define PCON_ADDRESS 0x87U
146 #define VOCTRL_ADDRESS 0xBBU
147 
148 /* Power register */
151 
152 /*--------------------------------------------------------
153 | @Description: ISR peripherals |
154 --------------------------------------------------------*/
155 
156 /* ISR base address */
157 #define IE_ADDRESS 0xA8U
158 #define IE2_ADDRESS 0xAFU
159 #define IP_ADDRESS 0xB8U
160 #define IP2_ADDRESS 0xB5U
161 #define IPH_ADDRESS 0xB7U
162 #define IP2H_ADDRESS 0xB6U
163 #define INTCLKO_ADDRESS 0x8FU
164 #define AUXINTIF_ADDRESS 0xEFU
165 
166 /* IE2 */
167 #define ET4 0x40
168 #define ET3 0x20
169 #define ES4 0x10
170 #define ES3 0x08
171 #define ET2 0x04
172 #define ESPI 0x02
173 #define ES2 0x01
174 
175 /* IP2 */
176 #define PI2C 0x40
177 #define PCMP 0x20
178 #define PX4 0x10
179 #define PPWMFD 0x08
180 #define PPWM 0x04
181 #define PSPI 0x02
182 #define PS2 0x01
183 
184 /* IPH */
185 #define PPCAH 0x80
186 #define PLVDH 0x40
187 #define PADCH 0x20
188 #define PSH 0x10
189 #define PT1H 0x08
190 #define PX1H 0x04
191 #define PT0H 0x02
192 #define PX0H 0x01
193 
194 /* IP2H */
195 #define PI2CH 0x40
196 #define PCMPH 0x20
197 #define PX4H 0x10
198 #define PPWMFDH 0x08
199 #define PPWMH 0x04
200 #define PSPIH 0x02
201 #define PS2H 0x01
202 
203 /* INTCLKO */
204 #define EX4 0x40
205 #define EX3 0x20
206 #define EX2 0x10
207 #define T2CLKO 0x04
208 #define T1CLKO 0x02
209 #define T0CLKO 0x01
210 
211 /* AUXINTIF */
212 #define INT4IF 0x40
213 #define INT3IF 0x20
214 #define INT2IF 0x10
215 #define T4IF 0x04
216 #define T3IF 0x02
217 #define T2IF 0x01
218 
219 /* ISR register */
228 
229 sbit EA = IE^7;
230 sbit ELVD = IE^6;
231 sbit EADC = IE^5;
232 sbit ES = IE^4;
233 sbit ET1 = IE^3;
234 sbit EX1 = IE^2;
235 sbit ET0 = IE^1;
236 sbit EX0 = IE^0;
237 
238 sbit PPCA = IP^7;
239 sbit PLVD = IP^6;
240 sbit PADC = IP^5;
241 sbit PS = IP^4;
242 sbit PT1 = IP^3;
243 sbit PX1 = IP^2;
244 sbit PT0 = IP^1;
245 sbit PX0 = IP^0;
246 
247 /*--------------------------------------------------------
248 | @Description: GPIO peripherals |
249 --------------------------------------------------------*/
250 
251 
252 /* Base address define */
253 #define GPIO_BASE 0x80U
254 #define PxM1_BASE 0x93U
255 #define PxM0_BASE 0x94U
256 #define BUS_SPEED_ADDRESS 0xA1U
257 
258 /* There are internal extended
259 ram areas below */
260 #define PxPU_BASE 0xFE10U
261 #define PxNCS_BASE 0xFE18U
262 #define PxSR_BASE 0xFE20U
263 #define PxDR_BASE 0xFE28U
264 #define PxIE_BASE 0xFE30U
265 
266 /* GPIO address define */
267 #define P0_ADDRESS GPIO_BASE
268 #define P1_ADDRESS 0x90U
269 #define P2_ADDRESS 0xA0U
270 #define P3_ADDRESS 0xB0U
271 #define P4_ADDRESS 0xC0U
272 #define P5_ADDRESS 0xC8U
273 #define P6_ADDRESS 0xE8U
274 #define P7_ADDRESS 0xF8U
275 
276 /*PxMx address define*/
277 #define P0M1_ADDRESS PxM1_BASE
278 #define P1M1_ADDRESS 0x91U
279 #define P2M1_ADDRESS 0x95U
280 #define P3M1_ADDRESS 0xB1U
281 #define P4M1_ADDRESS 0xB3U
282 #define P5M1_ADDRESS 0xC9U
283 #define P6M1_ADDRESS 0xCBU
284 #define P7M1_ADDRESS 0xE1U
285 
286 #define P0M0_ADDRESS PxM0_BASE
287 #define P1M0_ADDRESS 0x92U
288 #define P2M0_ADDRESS 0x96U
289 #define P3M0_ADDRESS 0xB2U
290 #define P4M0_ADDRESS 0xB4U
291 #define P5M0_ADDRESS 0xCAU
292 #define P6M0_ADDRESS 0xCCU
293 #define P7M0_ADDRESS 0xE2U
294 
295 /*GPIO pull up address */
296 #define P0PU_ADDRESS (PxPU_BASE + 0x00U)
297 #define P1PU_ADDRESS (PxPU_BASE + 0x01U)
298 #define P2PU_ADDRESS (PxPU_BASE + 0x02U)
299 #define P3PU_ADDRESS (PxPU_BASE + 0x03U)
300 #define P4PU_ADDRESS (PxPU_BASE + 0x04U)
301 #define P5PU_ADDRESS (PxPU_BASE + 0x05U)
302 #define P6PU_ADDRESS (PxPU_BASE + 0x06U)
303 #define P7PU_ADDRESS (PxPU_BASE + 0x07U)
304 
305 /*GPIO schmidt trigger address */
306 
307 #define P0NCS_ADDRESS (PxNCS_BASE + 0x00U)
308 #define P1NCS_ADDRESS (PxNCS_BASE + 0x01U)
309 #define P2NCS_ADDRESS (PxNCS_BASE + 0x02U)
310 #define P3NCS_ADDRESS (PxNCS_BASE + 0x03U)
311 #define P4NCS_ADDRESS (PxNCS_BASE + 0x04U)
312 #define P5NCS_ADDRESS (PxNCS_BASE + 0x05U)
313 #define P6NCS_ADDRESS (PxNCS_BASE + 0x06U)
314 #define P7NCS_ADDRESS (PxNCS_BASE + 0x07U)
315 
316 /* GPIO level conversion address */
317 
318 #define P0SR_ADDRESS (PxSR_BASE + 0x00U)
319 #define P1SR_ADDRESS (PxSR_BASE + 0x01U)
320 #define P2SR_ADDRESS (PxSR_BASE + 0x02U)
321 #define P3SR_ADDRESS (PxSR_BASE + 0x03U)
322 #define P4SR_ADDRESS (PxSR_BASE + 0x04U)
323 #define P5SR_ADDRESS (PxSR_BASE + 0x05U)
324 #define P6SR_ADDRESS (PxSR_BASE + 0x06U)
325 #define P7SR_ADDRESS (PxSR_BASE + 0x07U)
326 
327 /* GPIO drive current address */
328 
329 #define P0DR_ADDRESS (PxDR_BASE + 0x00U)
330 #define P1DR_ADDRESS (PxDR_BASE + 0x01U)
331 #define P2DR_ADDRESS (PxDR_BASE + 0x02U)
332 #define P3DR_ADDRESS (PxDR_BASE + 0x03U)
333 #define P4DR_ADDRESS (PxDR_BASE + 0x04U)
334 #define P5DR_ADDRESS (PxDR_BASE + 0x05U)
335 #define P6DR_ADDRESS (PxDR_BASE + 0x06U)
336 #define P7DR_ADDRESS (PxDR_BASE + 0x07U)
337 
338 /* GPIO intput enable address*/
339 #define P0IE_ADDRESS (PxIE_BASE + 0x00U)
340 #define P1IE_ADDRESS (PxIE_BASE + 0x01U)
341 #define P3IE_ADDRESS (PxIE_BASE + 0x03U)
342 
343 /* GPIO register */
352 
353 /* GPIO register */
354 sbit P00 = P0^0;
355 sbit P01 = P0^1;
356 sbit P02 = P0^2;
357 sbit P03 = P0^3;
358 sbit P04 = P0^4;
359 sbit P05 = P0^5;
360 sbit P06 = P0^6;
361 sbit P07 = P0^7;
362 
363 /* Pin register */
364 sbit P10 = P1^0;
365 sbit P11 = P1^1;
366 sbit P12 = P1^2;
367 sbit P13 = P1^3;
368 sbit P14 = P1^4;
369 sbit P15 = P1^5;
370 sbit P16 = P1^6;
371 sbit P17 = P1^7;
372 
373 sbit P20 = P2^0;
374 sbit P21 = P2^1;
375 sbit P22 = P2^2;
376 sbit P23 = P2^3;
377 sbit P24 = P2^4;
378 sbit P25 = P2^5;
379 sbit P26 = P2^6;
380 sbit P27 = P2^7;
381 
382 sbit P30 = P3^0;
383 sbit P31 = P3^1;
384 sbit P32 = P3^2;
385 sbit P33 = P3^3;
386 sbit P34 = P3^4;
387 sbit P35 = P3^5;
388 sbit P36 = P3^6;
389 sbit P37 = P3^7;
390 
391 sbit P40 = P4^0;
392 sbit P41 = P4^1;
393 sbit P42 = P4^2;
394 sbit P43 = P4^3;
395 sbit P44 = P4^4;
396 
397 sbit P50 = P5^0;
398 sbit P51 = P5^1;
399 sbit P52 = P5^2;
400 sbit P53 = P5^3;
401 sbit P54 = P5^4;
402 sbit P55 = P5^5;
403 sbit P56 = P5^6;
404 sbit P57 = P5^7;
405 
406 sbit P60 = P6^0;
407 sbit P61 = P6^1;
408 sbit P62 = P6^2;
409 sbit P63 = P6^3;
410 sbit P64 = P6^4;
411 sbit P65 = P6^5;
412 sbit P66 = P6^6;
413 sbit P67 = P6^7;
414 
415 sbit P70 = P7^0;
416 sbit P71 = P7^1;
417 sbit P72 = P7^2;
418 sbit P73 = P7^3;
419 sbit P74 = P7^4;
420 sbit P75 = P7^5;
421 sbit P76 = P7^6;
422 sbit P77 = P7^7;
423 
424 /* GPIO mode register */
433 
434 /* GPIO mode register */
443 
444 /* Bus speed control register */
446 
447 /* GPIO Driver register */
448 
449 #define P0PU ( *(__IO uint8_t xdata *) P0PU_ADDRESS)
450 #define P1PU ( *(__IO uint8_t xdata *) P1PU_ADDRESS)
451 #define P2PU ( *(__IO uint8_t xdata *) P2PU_ADDRESS)
452 #define P3PU ( *(__IO uint8_t xdata *) P3PU_ADDRESS)
453 #define P4PU ( *(__IO uint8_t xdata *) P4PU_ADDRESS)
454 #define P5PU ( *(__IO uint8_t xdata *) P5PU_ADDRESS)
455 #define P6PU ( *(__IO uint8_t xdata *) P6PU_ADDRESS)
456 #define P7PU ( *(__IO uint8_t xdata *) P7PU_ADDRESS)
457 
458 #define P0SR ( *(__IO uint8_t xdata *) P0SR_ADDRESS)
459 #define P1SR ( *(__IO uint8_t xdata *) P1SR_ADDRESS)
460 #define P2SR ( *(__IO uint8_t xdata *) P2SR_ADDRESS)
461 #define P3SR ( *(__IO uint8_t xdata *) P3SR_ADDRESS)
462 #define P4SR ( *(__IO uint8_t xdata *) P4SR_ADDRESS)
463 #define P5SR ( *(__IO uint8_t xdata *) P5SR_ADDRESS)
464 #define P6SR ( *(__IO uint8_t xdata *) P6SR_ADDRESS)
465 #define P7SR ( *(__IO uint8_t xdata *) P7SR_ADDRESS)
466 
467 #define P0DR ( *(__IO uint8_t xdata *) P0DR_ADDRESS)
468 #define P1DR ( *(__IO uint8_t xdata *) P1DR_ADDRESS)
469 #define P2DR ( *(__IO uint8_t xdata *) P2DR_ADDRESS)
470 #define P3DR ( *(__IO uint8_t xdata *) P3DR_ADDRESS)
471 #define P4DR ( *(__IO uint8_t xdata *) P4DR_ADDRESS)
472 #define P5DR ( *(__IO uint8_t xdata *) P5DR_ADDRESS)
473 #define P6DR ( *(__IO uint8_t xdata *) P6DR_ADDRESS)
474 #define P7DR ( *(__IO uint8_t xdata *) P7DR_ADDRESS)
475 
476 #define P0IE ( *(__IO uint8_t xdata *) P0IE_ADDRESS)
477 #define P1IE ( *(__IO uint8_t xdata *) P1IE_ADDRESS)
478 #define P3IE ( *(__IO uint8_t xdata *) P3IE_ADDRESS)
479 //#define P2IE ( *(__IO uint8_t xdata *) P2IE_ADDRESS)
480 //#define P4IE ( *(__IO uint8_t xdata *) P4IE_ADDRESS)
481 //#define P5IE ( *(__IO uint8_t xdata *) P5IE_ADDRESS)
482 //#define P6IE ( *(__IO uint8_t xdata *) P6IE_ADDRESS)
483 //#define P7IE ( *(__IO uint8_t xdata *) P7IE_ADDRESS)
484 
485 #define P0NCS ( *(__IO uint8_t xdata *) P0NCS_ADDRESS)
486 #define P1NCS ( *(__IO uint8_t xdata *) P1NCS_ADDRESS)
487 #define P2NCS ( *(__IO uint8_t xdata *) P2NCS_ADDRESS)
488 #define P3NCS ( *(__IO uint8_t xdata *) P3NCS_ADDRESS)
489 #define P4NCS ( *(__IO uint8_t xdata *) P4NCS_ADDRESS)
490 #define P5NCS ( *(__IO uint8_t xdata *) P5NCS_ADDRESS)
491 #define P6NCS ( *(__IO uint8_t xdata *) P6NCS_ADDRESS)
492 #define P7NCS ( *(__IO uint8_t xdata *) P7NCS_ADDRESS)
493 
494 #define GPIO_Px(x) (P##x)
495 #define Px_M1(x) (P##x##M1) // GPIO_P0M1 GPIO_P0M0
496 #define Px_M0(x) (P##x##M0) // P0M1 P0M0
497 #define Px_PU(x) (P##x##PU)
498 #define Px_SR(x) (P##x##SR)
499 #define Px_DR(x) (P##x##DR)
500 #define Px_IE(x) (P##x##IE)
501 #define Px_NCS(x) (P##x##NCS)
502 
503 /*--------------------------------------------------------
504 | @Description: WDT peripherals |
505 --------------------------------------------------------*/
506 
507 /* Base address define */
508 
509 #define WDT_ADDRESS 0xC1U
510 #define RSTCFG_ADDRESS 0xFFU
511 
512 /* WDT register */
514 //sfr IAP_CONTR = IAR_ADDRESS;
516 
517 /*--------------------------------------------------------
518 | @Description: TIMER peripherals |
519 --------------------------------------------------------*/
520 
521 /* Base address define */
522 #define TCON_ADDRESS 0x88U
523 #define TMOD_ADDRESS 0x89U
524 #define T0L_ADDRESS 0x8AU
525 #define T1L_ADDRESS 0x8BU
526 #define T0H_ADDRESS 0x8CU
527 #define T1H_ADDRESS 0x8DU
528 #define T4T3M_ADDRESS 0xD1U
529 #define T4H_ADDRESS 0xD2U
530 #define T4L_ADDRESS 0xD3U
531 #define T3H_ADDRESS 0xD4U
532 #define T3L_ADDRESS 0xD5U
533 #define T2H_ADDRESS 0xD6U
534 #define T2L_ADDRESS 0xD7U
535 #define WKTCL_ADDRESS 0xAAU
536 #define WKTCH_ADDRESS 0xABU
537 
538 /* TMOD */
539 #define T1_GATE 0x80
540 #define T1_CT 0x40
541 #define T1_M1 0x20
542 #define T1_M0 0x10
543 #define T0_GATE 0x08
544 #define T0_CT 0x04
545 #define T0_M1 0x02
546 #define T0_M0 0x01
547 
548 /* T4T3 */
549 #define T4R 0x80
550 #define T4_CT 0x40
551 #define T4x12 0x20
552 #define T4CLKO 0x10
553 #define T3R 0x08
554 #define T3_CT 0x04
555 #define T3x12 0x02
556 #define T3CLKO 0x01
557 
558 /* WKTCH */
559 #define WKTEN 0x80
560 
561 /* WDT_CONTR */
562 #define WDT_FLAG 0x80
563 #define EN_WDT 0x20
564 #define CLR_WDT 0x10
565 #define IDL_WDT 0x08
566 
567 /* TIMER register */
587 
588 sbit TF1 = TCON^7;
589 sbit TR1 = TCON^6;
590 sbit TF0 = TCON^5;
591 sbit TR0 = TCON^4;
592 sbit IE1 = TCON^3;
593 sbit IE0 = TCON^1;
594 
595 /* Clock frequency address of timer5 */
596 
597 #define FWTH (*(__I uint8_t idata *)0xF8)
598 #define FWTL (*(__I uint8_t idata *)0xF9)
599 
600 /*--------------------------------------------------------
601 | @Description: EXTI peripherals |
602 --------------------------------------------------------*/
603 
604 /* EXTI register */
605 sbit IT0 = TCON^0;
606 sbit IT1 = TCON^2;
607 
608 /*--------------------------------------------------------
609 | @Description: UART peripherals |
610 --------------------------------------------------------*/
611 
612 /* Base address define */
613 
614 #define SCON_ADDRESS 0x98U
615 #define SBUF_ADDRESS 0x99U
616 #define S2CON_ADDRESS 0x9AU
617 #define S2BUF_ADDRESS 0x9BU
618 #define S3CON_ADDRESS 0xACU
619 #define S3BUF_ADDRESS 0xADU
620 #define S4CON_ADDRESS 0x84U
621 #define S4BUF_ADDRESS 0x85U
622 #define SADDR_ADDRESS 0xA9U
623 #define SADEN_ADDRESS 0xB9U
624 
625 /* S2CON */
626 #define S2SM0 0x80
627 #define S2ST4 0x40
628 #define S2SM2 0x20
629 #define S2REN 0x10
630 #define S2TB8 0x08
631 #define S2RB8 0x04
632 #define S2TI 0x02
633 #define S2RI 0x01
634 
635 /* S3CON */
636 #define S3SM0 0x80
637 #define S3ST4 0x40
638 #define S3SM2 0x20
639 #define S3REN 0x10
640 #define S3TB8 0x08
641 #define S3RB8 0x04
642 #define S3TI 0x02
643 #define S3RI 0x01
644 
645 /* S4CON */
646 #define S4SM0 0x80
647 #define S4ST4 0x40
648 #define S4SM2 0x20
649 #define S4REN 0x10
650 #define S4TB8 0x08
651 #define S4RB8 0x04
652 #define S4TI 0x02
653 #define S4RI 0x01
654 
655 /* UART register */
656 
667 
668 sbit SM0 = SCON^7;
669 sbit SM1 = SCON^6;
670 sbit SM2 = SCON^5;
671 sbit REN = SCON^4;
672 sbit TB8 = SCON^3;
673 sbit RB8 = SCON^2;
674 sbit TI = SCON^1;
675 sbit RI = SCON^0;
676 
677 /*--------------------------------------------------------
678 | @Description: COMP peripherals |
679 --------------------------------------------------------*/
680 
681 /* Base address define */
682 #define CMPCR1_ADDRESS 0xE6U
683 #define CMPCR2_ADDRESS 0xE7U
684 
685 /* CMPCR1 */
686 #define CMPEN 0x80
687 #define CMPIF 0x40
688 #define PIE 0x20
689 #define NIE 0x10
690 #define PIS 0x08
691 #define NIS 0x04
692 #define CMPOE 0x02
693 #define CMPRES 0x01
694 
695 /* CMPAR2 */
696 #define INVCMPO 0x80
697 #define DISFLT 0x40
698 
699 /* COMP register */
702 
703 /* Base address define */
704 #define ADC_CONTR_ADDRESS 0xBCU
705 #define ADC_RES_ADDRESS 0xBDU
706 #define ADC_RESH_ADDRESS 0xBDU
707 #define ADC_RESL_ADDRESS 0xBEU
708 #define ADCCFG_ADDRESS 0xDEU
709 #define ADCTIM_ADDRESS 0xFEA8U
710 /* ADC_CONTR */
711 #define ADC_POWER 0x80
712 #define ADC_START 0x40
713 #define ADC_FLAG 0x20
714 
715 /* ADCCFG */
716 #define ADC_RESFMT 0x20
717 
718 
719 /* ADC register */
724 
725 #define ADCTIM (*(__IO uint8_t xdata *)ADCTIM_ADDRESS)
726 
727 /*--------------------------------------------------------
728 | @Description: EEPROM peripherals |
729 --------------------------------------------------------*/
730 
731 /* Base address define */
732 #define IAP_DATA_ADDRESS 0xC2U
733 #define IAP_ADDRH_ADDRESS 0xC3U
734 #define IAP_ADDRL_ADDRESS 0xC4U
735 #define IAP_CMD_ADDRESS 0xC5U
736 #define IAP_TRIG_ADDRESS 0xC6U
737 #define IAP_CONTR_ADDRESS 0xC7U
738 
739 #define ISP_DATA_ADDRESS 0xC2U
740 #define ISP_ADDRH_ADDRESS 0xC3U
741 #define ISP_ADDRL_ADDRESS 0xC4U
742 #define ISP_CMD_ADDRESS 0xC5U
743 #define ISP_TRIG_ADDRESS 0xC6U
744 #define ISP_CONTR_ADDRESS 0xC7U
745 
746 /* IAP_CMD */
747 #define IAP_IDL 0x00
748 #define IAP_READ 0x01
749 #define IAP_WRITE 0x02
750 #define IAP_ERASE 0x03
751 
752 /* IAP_CONTR */
753 #define IAPEN 0x80
754 #define SWBS 0x40
755 #define SWRST 0x20
756 #define CMD_FAIL 0x10
757 
758 /* EEPROM register */
765 
772 
773 /*--------------------------------------------------------
774 | @Description: SPI peripherals |
775 --------------------------------------------------------*/
776 
777 /* Base address */
778 #define SPSTAT_ADDRESS 0xCDU
779 #define SPCTL_ADDRESS 0xCEU
780 #define SPDAT_ADDRESS 0xCFU
781 
782 /* SPSTAT */
783 #define SPIF 0x80
784 #define WCOL 0x40
785 
786 /* SPCTL */
787 #define SSIG 0x80
788 #define SPEN 0x40
789 #define DORD 0x20
790 #define MSTR 0x10
791 #define CPOL 0x08
792 #define CPHA 0x04
793 
794 /* SPI register */
798 
799 /*--------------------------------------------------------
800 | @Description: I2C peripherals |
801 --------------------------------------------------------*/
802 
803 /* Base address */
804 #define I2C_BASE 0xFE80U
805 #define I2CCFG_ADDRESS (I2C_BASE + 0x00U)
806 #define I2CMSCR_ADDRESS (I2C_BASE + 0x01U)
807 #define I2CMSST_ADDRESS (I2C_BASE + 0x02U)
808 #define I2CSLCR_ADDRESS (I2C_BASE + 0x03U)
809 #define I2CSLST_ADDRESS (I2C_BASE + 0x04U)
810 #define I2CSLADR_ADDRESS (I2C_BASE + 0x05U)
811 #define I2CTXD_ADDRESS (I2C_BASE + 0x06U)
812 #define I2CRXD_ADDRESS (I2C_BASE + 0x07U)
813 
814 /* I2CCFG */
815 #define ENI2C 0x80
816 #define MSSL 0x40
817 
818 /* I2CMSCR */
819 #define EMSI 0x80
820 
821 /* I2CMSST */
822 #define MSBUSY 0x80
823 #define MSIF 0x40
824 #define MSACKI 0x02
825 #define MSACKO 0x01
826 
827 /* I2CSLCR */
828 #define ESTAI 0x40
829 #define ERXI 0x20
830 #define ETXI 0x10
831 #define ESTOI 0x08
832 #define SLRST 0x01
833 
834 /* I2CSLST */
835 #define SLBUSY 0x80
836 #define STAIF 0x40
837 #define RXIF 0x20
838 #define TXIF 0x10
839 #define STOIF 0x08
840 #define TXING 0x04
841 #define SLACKI 0x02
842 #define SLACKO 0x01
843 
844 /* SPI register */
845 
846 #define I2CCFG (*(__IO uint8_t xdata *) I2CCFG_ADDRESS)
847 #define I2CMSCR (*(__IO uint8_t xdata *) I2CMSCR_ADDRESS)
848 #define I2CMSST (*(__IO uint8_t xdata *) I2CMSST_ADDRESS)
849 #define I2CSLCR (*(__IO uint8_t xdata *) I2CSLCR_ADDRESS)
850 #define I2CSLST (*(__IO uint8_t xdata * )I2CSLST_ADDRESS)
851 #define I2CSLADR (*(__IO uint8_t xdata *)I2CSLADR_ADDRESS)
852 #define I2CTXD (*(__IO uint8_t xdata *) I2CTXD_ADDRESS)
853 #define I2CRXD (*(__IO uint8_t xdata *) I2CRXD_ADDRESS)
854 
855 
856 #endif
857 /*-----------------------------------------------------------------------
858 | END OF FLIE (C) COPYRIGHT Gevico Electronics |
859 -----------------------------------------------------------------------*/
unsigned char uint8_t
Definition: ELL_TYPE.h:72
#define __IO
Definition: ELL_TYPE.h:106
sfr P4M0
Definition: STC8Fx_REG.h:439
sbit P50
Definition: STC8Fx_REG.h:397
sbit P06
Definition: STC8Fx_REG.h:360
sfr P7M0
Definition: STC8Fx_REG.h:442
sbit CY
Definition: STC8Fx_REG.h:51
sfr T0L
Definition: STC8Fx_REG.h:570
#define PER_SW2_ADDRESS
Definition: STC8Fx_REG.h:74
sbit F1
Definition: STC8Fx_REG.h:57
#define P6M1_ADDRESS
Definition: STC8Fx_REG.h:283
sbit P76
Definition: STC8Fx_REG.h:421
sfr T4L
Definition: STC8Fx_REG.h:580
sfr ISP_ADDRH
Definition: STC8Fx_REG.h:767
sfr DPH
Definition: STC8Fx_REG.h:61
sfr P1
Definition: STC8Fx_REG.h:345
sbit P36
Definition: STC8Fx_REG.h:388
#define IAP_TRIG_ADDRESS
Definition: STC8Fx_REG.h:736
#define CMPCR1_ADDRESS
Definition: STC8Fx_REG.h:682
#define AUXR_ADDRESS
Definition: STC8Fx_REG.h:71
sfr TL1
Definition: STC8Fx_REG.h:575
sfr IPH
Definition: STC8Fx_REG.h:224
#define P0M0_ADDRESS
Definition: STC8Fx_REG.h:286
sfr P0
Definition: STC8Fx_REG.h:344
sbit P70
Definition: STC8Fx_REG.h:415
sbit PADC
Definition: STC8Fx_REG.h:240
#define P2_ADDRESS
Definition: STC8Fx_REG.h:269
sfr ACC
Definition: STC8Fx_REG.h:48
sfr WDT_CONTR
Definition: STC8Fx_REG.h:513
#define S4BUF_ADDRESS
Definition: STC8Fx_REG.h:621
sfr P5
Definition: STC8Fx_REG.h:349
sbit PX0
Definition: STC8Fx_REG.h:245
sbit P24
Definition: STC8Fx_REG.h:377
sbit P10
Definition: STC8Fx_REG.h:364
sfr SPCTL
Definition: STC8Fx_REG.h:796
sfr P_SW2
Definition: STC8Fx_REG.h:80
sfr WKTCL
Definition: STC8Fx_REG.h:585
sbit P13
Definition: STC8Fx_REG.h:367
sfr SPDAT
Definition: STC8Fx_REG.h:797
sfr P0M1
Definition: STC8Fx_REG.h:425
sbit P40
Definition: STC8Fx_REG.h:391
sbit EX1
Definition: STC8Fx_REG.h:234
sbit TR0
Definition: STC8Fx_REG.h:591
sfr P4
Definition: STC8Fx_REG.h:348
#define P6M0_ADDRESS
Definition: STC8Fx_REG.h:292
sbit P66
Definition: STC8Fx_REG.h:412
sfr ISP_DATA
Definition: STC8Fx_REG.h:766
#define IAP_ADDRH_ADDRESS
Definition: STC8Fx_REG.h:733
#define T1L_ADDRESS
Definition: STC8Fx_REG.h:525
sfr CMPCR1
Definition: STC8Fx_REG.h:700
sbit P77
Definition: STC8Fx_REG.h:422
sfr IAP_CONTR
Definition: STC8Fx_REG.h:764
sbit PT1
Definition: STC8Fx_REG.h:242
sfr BUS_SPEED
Definition: STC8Fx_REG.h:445
sbit SM0
Definition: STC8Fx_REG.h:668
sfr DPL1
Definition: STC8Fx_REG.h:64
sbit P14
Definition: STC8Fx_REG.h:368
#define ADCCFG_ADDRESS
Definition: STC8Fx_REG.h:708
sbit P34
Definition: STC8Fx_REG.h:386
sfr S3CON
Definition: STC8Fx_REG.h:661
sbit P51
Definition: STC8Fx_REG.h:398
sbit P31
Definition: STC8Fx_REG.h:383
sbit P67
Definition: STC8Fx_REG.h:413
sbit F0
Definition: STC8Fx_REG.h:53
sbit P33
Definition: STC8Fx_REG.h:385
sbit P73
Definition: STC8Fx_REG.h:418
#define ADC_RESL_ADDRESS
Definition: STC8Fx_REG.h:707
sbit P01
Definition: STC8Fx_REG.h:355
sfr ISP_TRIG
Definition: STC8Fx_REG.h:770
sbit PPCA
Definition: STC8Fx_REG.h:238
sbit P60
Definition: STC8Fx_REG.h:406
sbit P44
Definition: STC8Fx_REG.h:395
#define TCON_ADDRESS
Definition: STC8Fx_REG.h:522
sbit IT1
Definition: STC8Fx_REG.h:606
#define ADC_CONTR_ADDRESS
Definition: STC8Fx_REG.h:704
sfr SP
Definition: STC8Fx_REG.h:59
sbit P00
Definition: STC8Fx_REG.h:354
sbit TR1
Definition: STC8Fx_REG.h:589
#define RSTCFG_ADDRESS
Definition: STC8Fx_REG.h:510
#define P5M1_ADDRESS
Definition: STC8Fx_REG.h:282
sfr T4T3M
Definition: STC8Fx_REG.h:578
sfr CMPCR2
Definition: STC8Fx_REG.h:701
sbit P41
Definition: STC8Fx_REG.h:392
#define LIRTRIM_ADDRESS
Definition: STC8Fx_REG.h:109
sbit OV
Definition: STC8Fx_REG.h:56
sbit P15
Definition: STC8Fx_REG.h:369
sbit P32
Definition: STC8Fx_REG.h:384
sfr TL0
Definition: STC8Fx_REG.h:574
sbit P07
Definition: STC8Fx_REG.h:361
#define S2BUF_ADDRESS
Definition: STC8Fx_REG.h:617
sfr TH1
Definition: STC8Fx_REG.h:577
sfr IP2H
Definition: STC8Fx_REG.h:225
sfr S4CON
Definition: STC8Fx_REG.h:663
#define PER_SW1_ADDRESS
Definition: STC8Fx_REG.h:73
sfr INTCLKO
Definition: STC8Fx_REG.h:226
sfr T4H
Definition: STC8Fx_REG.h:579
sfr ISP_CMD
Definition: STC8Fx_REG.h:769
sfr P4M1
Definition: STC8Fx_REG.h:429
#define P0M1_ADDRESS
Definition: STC8Fx_REG.h:277
sbit RS1
Definition: STC8Fx_REG.h:54
sfr T2L
Definition: STC8Fx_REG.h:584
#define IAP_CMD_ADDRESS
Definition: STC8Fx_REG.h:735
sfr B
Definition: STC8Fx_REG.h:49
#define S2CON_ADDRESS
Definition: STC8Fx_REG.h:616
sfr LIRTRIM
Definition: STC8Fx_REG.h:136
#define CMPCR2_ADDRESS
Definition: STC8Fx_REG.h:683
sbit P72
Definition: STC8Fx_REG.h:417
#define P6_ADDRESS
Definition: STC8Fx_REG.h:273
#define T4H_ADDRESS
Definition: STC8Fx_REG.h:529
sbit IE1
Definition: STC8Fx_REG.h:592
sfr P2M0
Definition: STC8Fx_REG.h:437
sbit P65
Definition: STC8Fx_REG.h:411
sfr P5M0
Definition: STC8Fx_REG.h:440
sbit P23
Definition: STC8Fx_REG.h:376
#define WKTCH_ADDRESS
Definition: STC8Fx_REG.h:536
sfr P3M0
Definition: STC8Fx_REG.h:438
#define IAP_CONTR_ADDRESS
Definition: STC8Fx_REG.h:737
sfr IP2
Definition: STC8Fx_REG.h:223
#define IPH_ADDRESS
Definition: STC8Fx_REG.h:161
sfr P6
Definition: STC8Fx_REG.h:350
#define T3L_ADDRESS
Definition: STC8Fx_REG.h:532
sfr ADC_RES
Definition: STC8Fx_REG.h:721
sbit P20
Definition: STC8Fx_REG.h:373
sfr P6M1
Definition: STC8Fx_REG.h:431
sfr SPSTAT
Definition: STC8Fx_REG.h:795
#define IE_ADDRESS
Definition: STC8Fx_REG.h:157
sfr IE
Definition: STC8Fx_REG.h:220
#define BUS_SPEED_ADDRESS
Definition: STC8Fx_REG.h:256
sfr TA
Definition: STC8Fx_REG.h:62
sfr P_SW1
Definition: STC8Fx_REG.h:79
sfr P2
Definition: STC8Fx_REG.h:346
sbit P53
Definition: STC8Fx_REG.h:400
sbit SM1
Definition: STC8Fx_REG.h:669
sbit P71
Definition: STC8Fx_REG.h:416
#define ISP_ADDRH_ADDRESS
Definition: STC8Fx_REG.h:740
sbit PX1
Definition: STC8Fx_REG.h:243
sbit ET0
Definition: STC8Fx_REG.h:235
#define SADEN_ADDRESS
Definition: STC8Fx_REG.h:623
sfr IP
Definition: STC8Fx_REG.h:222
sfr ADCCFG
Definition: STC8Fx_REG.h:723
sfr DPS
Definition: STC8Fx_REG.h:63
#define ISP_CONTR_ADDRESS
Definition: STC8Fx_REG.h:744
#define S3BUF_ADDRESS
Definition: STC8Fx_REG.h:619
sbit P62
Definition: STC8Fx_REG.h:408
#define T1H_ADDRESS
Definition: STC8Fx_REG.h:527
sfr ISP_CONTR
Definition: STC8Fx_REG.h:771
#define P3_ADDRESS
Definition: STC8Fx_REG.h:270
sfr P7M1
Definition: STC8Fx_REG.h:432
sbit P37
Definition: STC8Fx_REG.h:389
sbit P42
Definition: STC8Fx_REG.h:393
sfr DPL
Definition: STC8Fx_REG.h:60
sbit TI
Definition: STC8Fx_REG.h:674
#define TMOD_ADDRESS
Definition: STC8Fx_REG.h:523
sbit IE0
Definition: STC8Fx_REG.h:593
#define T3H_ADDRESS
Definition: STC8Fx_REG.h:531
sbit P27
Definition: STC8Fx_REG.h:380
#define IE2_ADDRESS
Definition: STC8Fx_REG.h:158
sbit TF1
Definition: STC8Fx_REG.h:588
sbit P52
Definition: STC8Fx_REG.h:399
#define P4_ADDRESS
Definition: STC8Fx_REG.h:271
#define T4T3M_ADDRESS
Definition: STC8Fx_REG.h:528
sfr IAP_DATA
Definition: STC8Fx_REG.h:759
sbit P25
Definition: STC8Fx_REG.h:378
#define WDT_ADDRESS
Definition: STC8Fx_REG.h:509
#define VOCTRL_ADDRESS
Definition: STC8Fx_REG.h:146
sbit P26
Definition: STC8Fx_REG.h:379
sbit TF0
Definition: STC8Fx_REG.h:590
sbit P74
Definition: STC8Fx_REG.h:419
sbit ES
Definition: STC8Fx_REG.h:232
sfr PCON
Definition: STC8Fx_REG.h:149
sfr S2CON
Definition: STC8Fx_REG.h:659
#define ISP_DATA_ADDRESS
Definition: STC8Fx_REG.h:739
#define SCON_ADDRESS
Definition: STC8Fx_REG.h:614
sfr T3H
Definition: STC8Fx_REG.h:581
#define IAP_DATA_ADDRESS
Definition: STC8Fx_REG.h:732
#define P2M0_ADDRESS
Definition: STC8Fx_REG.h:288
sfr P2M1
Definition: STC8Fx_REG.h:427
#define ISP_CMD_ADDRESS
Definition: STC8Fx_REG.h:742
sbit P43
Definition: STC8Fx_REG.h:394
sbit P05
Definition: STC8Fx_REG.h:359
#define T4L_ADDRESS
Definition: STC8Fx_REG.h:530
sfr SADDR
Definition: STC8Fx_REG.h:665
sbit P55
Definition: STC8Fx_REG.h:402
#define P1_ADDRESS
Definition: STC8Fx_REG.h:268
sbit ET1
Definition: STC8Fx_REG.h:233
sfr AUXR
Definition: STC8Fx_REG.h:77
sbit PS
Definition: STC8Fx_REG.h:241
sfr S4BUF
Definition: STC8Fx_REG.h:664
#define ISP_ADDRL_ADDRESS
Definition: STC8Fx_REG.h:741
sfr IAP_ADDRL
Definition: STC8Fx_REG.h:761
sbit EADC
Definition: STC8Fx_REG.h:231
#define P5M0_ADDRESS
Definition: STC8Fx_REG.h:291
sfr P1M0
Definition: STC8Fx_REG.h:436
sbit P12
Definition: STC8Fx_REG.h:366
sbit P75
Definition: STC8Fx_REG.h:420
sbit P16
Definition: STC8Fx_REG.h:370
sbit PT0
Definition: STC8Fx_REG.h:244
sfr AUXINTIF
Definition: STC8Fx_REG.h:227
sbit P02
Definition: STC8Fx_REG.h:356
sbit IT0
Definition: STC8Fx_REG.h:605
sfr P5M1
Definition: STC8Fx_REG.h:430
#define P4M0_ADDRESS
Definition: STC8Fx_REG.h:290
sbit RB8
Definition: STC8Fx_REG.h:673
sbit P64
Definition: STC8Fx_REG.h:410
sfr P3M1
Definition: STC8Fx_REG.h:428
sfr S2BUF
Definition: STC8Fx_REG.h:660
#define WKTCL_ADDRESS
Definition: STC8Fx_REG.h:535
#define S3CON_ADDRESS
Definition: STC8Fx_REG.h:618
sfr RSTCFG
Definition: STC8Fx_REG.h:515
sfr P1M1
Definition: STC8Fx_REG.h:426
sbit ELVD
Definition: STC8Fx_REG.h:230
#define T0H_ADDRESS
Definition: STC8Fx_REG.h:526
sfr ADC_CONTR
Definition: STC8Fx_REG.h:720
#define ADC_RESH_ADDRESS
Definition: STC8Fx_REG.h:706
sfr IAP_ADDRH
Definition: STC8Fx_REG.h:760
#define IP2H_ADDRESS
Definition: STC8Fx_REG.h:162
#define ISP_TRIG_ADDRESS
Definition: STC8Fx_REG.h:743
#define P1M1_ADDRESS
Definition: STC8Fx_REG.h:278
sfr TMOD
Definition: STC8Fx_REG.h:569
sfr T3L
Definition: STC8Fx_REG.h:582
sbit P11
Definition: STC8Fx_REG.h:365
sbit TB8
Definition: STC8Fx_REG.h:672
#define P4M1_ADDRESS
Definition: STC8Fx_REG.h:281
sbit P63
Definition: STC8Fx_REG.h:409
sfr PSW
Definition: STC8Fx_REG.h:50
#define INTCLKO_ADDRESS
Definition: STC8Fx_REG.h:163
#define AUXINTIF_ADDRESS
Definition: STC8Fx_REG.h:164
sfr IE2
Definition: STC8Fx_REG.h:221
#define T0L_ADDRESS
Definition: STC8Fx_REG.h:524
sfr SBUF
Definition: STC8Fx_REG.h:658
sfr ADC_RESL
Definition: STC8Fx_REG.h:722
#define P7M0_ADDRESS
Definition: STC8Fx_REG.h:293
#define IRTRIM_ADDRESS
Definition: STC8Fx_REG.h:108
#define SPCTL_ADDRESS
Definition: STC8Fx_REG.h:779
sfr VOCTRL
Definition: STC8Fx_REG.h:150
sbit RS0
Definition: STC8Fx_REG.h:55
sfr T1L
Definition: STC8Fx_REG.h:571
sfr TH0
Definition: STC8Fx_REG.h:576
#define AUXR2_ADDRESS
Definition: STC8Fx_REG.h:72
sbit RI
Definition: STC8Fx_REG.h:675
sfr P0M0
Definition: STC8Fx_REG.h:435
sbit P04
Definition: STC8Fx_REG.h:358
sfr TCON
Definition: STC8Fx_REG.h:568
sbit AC
Definition: STC8Fx_REG.h:52
sbit P54
Definition: STC8Fx_REG.h:401
sbit REN
Definition: STC8Fx_REG.h:671
sbit P35
Definition: STC8Fx_REG.h:387
#define P3M1_ADDRESS
Definition: STC8Fx_REG.h:280
#define P1M0_ADDRESS
Definition: STC8Fx_REG.h:287
sfr T1H
Definition: STC8Fx_REG.h:573
#define P7_ADDRESS
Definition: STC8Fx_REG.h:274
#define SPSTAT_ADDRESS
Definition: STC8Fx_REG.h:778
#define P3M0_ADDRESS
Definition: STC8Fx_REG.h:289
#define IP_ADDRESS
Definition: STC8Fx_REG.h:159
#define SBUF_ADDRESS
Definition: STC8Fx_REG.h:615
sfr WKTCH
Definition: STC8Fx_REG.h:586
sfr P7
Definition: STC8Fx_REG.h:351
#define P5_ADDRESS
Definition: STC8Fx_REG.h:272
sbit P21
Definition: STC8Fx_REG.h:374
#define SPDAT_ADDRESS
Definition: STC8Fx_REG.h:780
sbit PLVD
Definition: STC8Fx_REG.h:239
#define P7M1_ADDRESS
Definition: STC8Fx_REG.h:284
sfr SCON
Definition: STC8Fx_REG.h:657
sbit P61
Definition: STC8Fx_REG.h:407
#define P2M1_ADDRESS
Definition: STC8Fx_REG.h:279
sbit EA
Definition: STC8Fx_REG.h:229
sfr IRTRIM
Definition: STC8Fx_REG.h:135
#define P0_ADDRESS
Definition: STC8Fx_REG.h:267
#define SADDR_ADDRESS
Definition: STC8Fx_REG.h:622
sfr DPH1
Definition: STC8Fx_REG.h:65
#define PCON_ADDRESS
Definition: STC8Fx_REG.h:145
sfr P3
Definition: STC8Fx_REG.h:347
sfr T2H
Definition: STC8Fx_REG.h:583
sfr P6M0
Definition: STC8Fx_REG.h:441
sbit SM2
Definition: STC8Fx_REG.h:670
sbit P
Definition: STC8Fx_REG.h:58
sbit P17
Definition: STC8Fx_REG.h:371
#define T2L_ADDRESS
Definition: STC8Fx_REG.h:534
#define T2H_ADDRESS
Definition: STC8Fx_REG.h:533
sfr IAP_CMD
Definition: STC8Fx_REG.h:762
sfr IAP_TRIG
Definition: STC8Fx_REG.h:763
sfr SADEN
Definition: STC8Fx_REG.h:666
sbit P56
Definition: STC8Fx_REG.h:403
sbit P22
Definition: STC8Fx_REG.h:375
sfr S3BUF
Definition: STC8Fx_REG.h:662
sbit P03
Definition: STC8Fx_REG.h:357
sbit P30
Definition: STC8Fx_REG.h:382
sfr T0H
Definition: STC8Fx_REG.h:572
sbit EX0
Definition: STC8Fx_REG.h:236
#define S4CON_ADDRESS
Definition: STC8Fx_REG.h:620
sbit P57
Definition: STC8Fx_REG.h:404
#define IAP_ADDRL_ADDRESS
Definition: STC8Fx_REG.h:734
sfr ISP_ADDRL
Definition: STC8Fx_REG.h:768
sfr AUXR2
Definition: STC8Fx_REG.h:78
Definition: STC15x_REG.h:78