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