16 __sfr __at (0x80) P0 ;
18 __sbit __at (0x87) P0_7 ;
19 __sbit __at (0x86) P0_6 ;
20 __sbit __at (0x85) P0_5 ;
21 __sbit __at (0x84) P0_4 ;
22 __sbit __at (0x83) P0_3 ;
23 __sbit __at (0x82) P0_2 ;
24 __sbit __at (0x81) P0_1 ;
25 __sbit __at (0x80) P0_0 ;
27 __sfr __at (0x81) SP ;
28 __sfr __at (0x82) DPL0 ;
29 __sfr __at (0x83) DPH0 ;
31 __sfr __at (0x84) DPL1;
32 __sfr __at (0x85) DPH1;
33 __sfr __at (0x86) U0CSR;
43 __sfr __at (0x87) PCON ;
47 __sfr __at (0x88) TCON ;
49 __sbit __at (0x8F) TCON_URX1IF;
51 __sbit __at (0x8D) TCON_ADCIF;
53 __sbit __at (0x8B) TCON_URX0IF;
54 __sbit __at (0x8A) TCON_IT1;
55 __sbit __at (0x89) TCON_RFERRIF;
56 __sbit __at (0x88) TCON_IT0;
59 __sfr __at (0x89) P0IFG;
60 __sfr __at (0x8A) P1IFG;
61 __sfr __at (0x8B) P2IFG;
62 __sfr __at (0x8C) PICTL;
72 __sfr __at (0x8D) P1IEN;
73 __sfr __at (0x8F) P0INP;
75 __sfr __at (0x90) P1 ;
77 __sbit __at (0x90) P1_0 ;
78 __sbit __at (0x91) P1_1 ;
79 __sbit __at (0x92) P1_2 ;
80 __sbit __at (0x93) P1_3 ;
81 __sbit __at (0x94) P1_4 ;
82 __sbit __at (0x95) P1_5 ;
83 __sbit __at (0x96) P1_6 ;
84 __sbit __at (0x97) P1_7 ;
86 __sfr __at (0x91) RFIM;
87 __sfr __at (0x92) DPS;
88 __sfr __at (0x93) _XPAGE;
89 __sfr __at (0x94) T2CMP;
90 __sfr __at (0x95) ST0;
91 __sfr __at (0x96) ST1;
92 __sfr __at (0x97) ST2;
93 __sfr __at (0x98) S0CON ;
95 __sbit __at (0x99) S0CON_ENCIF_1;
96 __sbit __at (0x98) S0CON_ENCIF_0;
98 __sfr __at (0x99) HSRC;
99 __sfr __at (0x9A) IEN2;
107 __sfr __at (0x9B) S1CON;
111 __sfr __at (0x9C) T2PEROF0;
112 __sfr __at (0x9D) T2PEROF1;
113 __sfr __at (0x9E) T2PEROF2;
124 __sfr __at (0x9F) FMAP;
125 __sfr __at (0x9F) PSBANK;
127 __sfr __at (0xA0) P2 ;
129 __sbit __at (0xA0) P2_0 ;
130 __sbit __at (0xA1) P2_1 ;
131 __sbit __at (0xA2) P2_2 ;
132 __sbit __at (0xA3) P2_3 ;
133 __sbit __at (0xA4) P2_4 ;
138 __sfr __at (0xA1) T2OF0;
139 __sfr __at (0xA2) T2OF1;
140 __sfr __at (0xA3) T2OF2;
141 __sfr __at (0xA4) T2CAPLPL;
142 __sfr __at (0xA5) T2CAPHPH;
143 __sfr __at (0xA6) T2TLD;
144 __sfr __at (0xA7) T2THD;
146 __sfr __at (0xA8) IE ;
147 __sfr __at (0xA8) IEN0;
149 #define IEN0_EA_MASK 0x80
157 __sbit __at (0xAF) EA;
158 __sbit __at (0xAF) IEN0_EA;
160 __sbit __at (0xAD) IEN0_STIE;
161 __sbit __at (0xAC) IEN0_ENCIE;
162 __sbit __at (0xAB) IEN0_URX1IE;
163 __sbit __at (0xAA) IEN0_URX0IE;
164 __sbit __at (0xA9) IEN0_ADCIE;
165 __sbit __at (0xA8) IEN0_RFERRIE;
167 __sfr __at (0xA9) IP0;
175 __sfr __at (0xAB) FWT;
176 __sfr __at (0xAC) FADDRL;
177 __sfr __at (0xAD) FADDRH;
179 __sfr __at (0xAE) FCTL;
182 #define F_CONTRD 0x10
185 __sfr __at (0xAF) FWDATA;
188 __sfr __at (0xB1) ENCDI;
189 __sfr __at (0xB2) ENCDO;
190 __sfr __at (0xB3) ENCCS;
191 #define CCS_MODE2 0x40
192 #define CCS_MODE1 0x20
193 #define CCS_MODE0 0x10
195 #define CCS_CMD1 0x04
196 #define CCS_CMD0 0x02
198 __sfr __at (0xB4) ADCCON1;
204 #define ADRCTRL1 0x08
205 #define ADRCTRL0 0x04
206 __sfr __at (0xB5) ADCCON2;
216 __sfr __at (0xB6) ADCCON3;
227 __sfr __at (0xB7) RCCTL;
230 __sfr __at (0xB8) IEN1;
241 __sbit __at (0xBD) IEN1_P0IE;
242 __sbit __at (0xBC) IEN1_T4IE;
243 __sbit __at (0xBB) IEN1_T3IE;
244 __sbit __at (0xBA) IEN1_T2IE;
245 __sbit __at (0xB9) IEN1_T1IE;
246 __sbit __at (0xB8) IEN1_DMAIE;
248 __sfr __at (0xB9) IP1;
257 __sfr __at (0xBA) ADCL;
258 __sfr __at (0xBB) ADCH;
259 __sfr __at (0xBC) RNDL;
260 __sfr __at (0xBD) RNDH;
262 __sfr __at (0xBE)
SLEEP;
263 #define XOSC_STB 0x40
264 #define HFRC_STB 0x20
268 #define SLEEP_MODE1 0x02
269 #define SLEEP_MODE0 0x01
271 __sfr __at (0xC0) IRCON;
281 __sbit __at (0xC7) IRCON_STIF ;
283 __sbit __at (0xC5) IRCON_P0IF;
284 __sbit __at (0xC4) IRCON_T4IF;
285 __sbit __at (0xC3) IRCON_T3IF;
286 __sbit __at (0xC2) IRCON_T2IF;
287 __sbit __at (0xC1) IRCON_T1IF;
288 __sbit __at (0xC0) IRCON_DMAIF;
290 __sfr __at (0xC1) U0BUF;
292 __sfr __at (0xC2) U0BAUD;
293 __sfr __at (0xC3) T2CNF;
304 __sfr __at (0xC4) U0UCR;
309 #define U_PARITY 0x08
314 __sfr __at (0xC5) U0GCR;
318 #define U_BAUD_E4 0x10
319 #define U_BAUD_E3 0x08
320 #define U_BAUD_E2 0x04
321 #define U_BAUD_E1 0x02
322 #define U_BAUD_E0 0x01
324 __sfr __at (0xC6) CLKCON;
327 #define TICKSPD2 0x20
328 #define TICKSPD1 0x10
329 #define TICKSPD0 0x08
332 __sfr __at (0xC7) MEMCTR;
334 __sfr __at (0xC8) T2CON;
336 __sfr __at (0xC9) WDCTL;
337 #define WDT_CLR3 0x80
338 #define WDT_CLR2 0x40
339 #define WDT_CLR1 0x20
340 #define WDT_CLR0 0x10
342 #define WDT_MODE 0x04
343 #define WDT_INT1 0x02
344 #define WDT_INT0 0x01
346 __sfr __at (0xCA) T3CNT;
348 __sfr __at (0xCB) T3CTL;
359 __sfr __at (0xCC) T3CCTL0;
369 __sfr __at (0xCD) T3CC0;
370 __sfr __at (0xCE) T3CCTL1;
372 __sfr __at (0xCF) T3CC1;
374 __sfr __at (0xD0) PSW ;
376 __sbit __at (0xD0) P ;
377 __sbit __at (0xD1) F1 ;
378 __sbit __at (0xD2) OV ;
379 __sbit __at (0xD3) RS0 ;
380 __sbit __at (0xD4) RS1 ;
381 __sbit __at (0xD5) F0 ;
382 __sbit __at (0xD6) AC ;
383 __sbit __at (0xD7) CY ;
385 __sfr __at (0xD1) DMAIRQ;
393 __sfr __at (0xD2) DMA1CFGL;
394 __sfr __at (0xD3) DMA1CFGH;
395 __sfr __at (0xD4) DMA0CFGL;
396 __sfr __at (0xD5) DMA0CFGH;
398 __sfr __at (0xD6) DMAARM;
407 __sfr __at (0xD7) DMAREQ;
415 __sfr __at (0xD8) TIMIF;
425 __sfr __at (0xD9) RFD;
426 __sfr __at (0xDA) T1CC0L;
427 __sfr __at (0xDB) T1CC0H;
428 __sfr __at (0xDC) T1CC1L;
429 __sfr __at (0xDD) T1CC1H;
430 __sfr __at (0xDE) T1CC2L;
431 __sfr __at (0xDF) T1CC2H;
433 __sfr __at (0xE0) ACC;
434 __sfr __at (0xE1) RFST;
435 __sfr __at (0xE2) T1CNTL;
436 __sfr __at (0xE3) T1CNTH;
438 __sfr __at (0xE4) T1CTL;
449 __sfr __at (0xE5) T1CCTL0;
460 __sfr __at (0xE6) T1CCTL1;
462 __sfr __at (0xE7) T1CCTL2;
464 __sfr __at (0xE8) IRCON2;
475 __sbit __at (0xEC) IRCON2_WDTIF ;
476 __sbit __at (0xEB) IRCON2_P1IF ;
477 __sbit __at (0xEA) IRCON2_UTX1IF ;
478 __sbit __at (0xE9) IRCON2_UTX0IF ;
479 __sbit __at (0xE8) IRCON2_P2IF;
482 __sfr __at (0xE9) RFIF;
484 #define IRQ_RREG_ON 0x80
485 #define IRQ_TXDONE 0x40
486 #define IRQ_FIFOP 0x20
489 #define IRQ_CSP_WT 0x04
490 #define IRQ_CSP_STOP 0x02
491 #define IRQ_CSP_INT 0x01
493 __sfr __at (0xEA) T4CNT;
494 __sfr __at (0xEB) T4CTL;
505 __sfr __at (0xEC) T4CCTL0;
515 __sfr __at (0xED) T4CC0;
516 __sfr __at (0xEE) T4CCTL1;
518 __sfr __at (0xEF) T4CC1;
520 __sfr __at (0xF0) B ;
521 __sfr __at (0xF1) PERCFG;
529 __sfr __at (0xF2) ADCCFG;
540 __sfr __at (0xF3) P0SEL;
541 __sfr __at (0xF4) P1SEL;
542 __sfr __at (0xF5) P2SEL;
552 __sfr __at (0xF6) P1INP;
554 __sfr __at (0xF7) P2INP;
565 __sfr __at (0xF8) U1CSR;
566 __sfr __at (0xF9) U1BUF;
567 __sfr __at (0xFA) U1BAUD;
568 __sfr __at (0xFB) U1UCR;
569 __sfr __at (0xFC) U1GCR;
570 __sfr __at (0xFD) P0DIR;
571 __sfr __at (0xFE) P1DIR;
573 __sfr __at (0xFF) P2DIR;
603 #define RFERR_VECTOR 0
605 #define URX0_VECTOR 2
606 #define URX1_VECTOR 3
609 #define P2INT_VECTOR 6
610 #define UTX0_VECTOR 7
616 #define P0INT_VECTOR 13
617 #define UTX1_VECTOR 14
618 #define P1INT_VECTOR 15
620 #define WDT_VECTOR 17
623 __xdata __at (0xDF02) unsigned
char MDMCTRL0H;
624 __xdata __at (0xDF03)
unsigned char MDMCTRL0L;
625 __xdata __at (0xDF04)
unsigned char MDMCTRL1H;
626 __xdata __at (0xDF05)
unsigned char MDMCTRL1L;
627 __xdata __at (0xDF06)
unsigned char RSSIH;
628 __xdata __at (0xDF07)
unsigned char RSSIL;
629 __xdata __at (0xDF08)
unsigned char SYNCWORDH;
630 __xdata __at (0xDF09)
unsigned char SYNCWORDL;
631 __xdata __at (0xDF0A)
unsigned char TXCTRLH;
632 __xdata __at (0xDF0B)
unsigned char TXCTRLL;
633 __xdata __at (0xDF0C)
unsigned char RXCTRL0H;
634 __xdata __at (0xDF0D)
unsigned char RXCTRL0L;
635 __xdata __at (0xDF0E)
unsigned char RXCTRL1H;
636 __xdata __at (0xDF0F)
unsigned char RXCTRL1L;
637 __xdata __at (0xDF10)
unsigned char FSCTRLH;
638 __xdata __at (0xDF11)
unsigned char FSCTRLL;
639 __xdata __at (0xDF12)
unsigned char CSPX;
640 __xdata __at (0xDF13)
unsigned char CSPY;
641 __xdata __at (0xDF14)
unsigned char CSPZ;
642 __xdata __at (0xDF15)
unsigned char CSPCTRL;
643 __xdata __at (0xDF16)
unsigned char CSPT;
644 __xdata __at (0xDF17)
unsigned char RFPWR;
645 #define ADI_RADIO_PD 0x10
646 #define RREG_RADIO_PD 0x08
647 #define RREG_DELAY_MASK 0x07
649 __xdata __at (0xDF20) unsigned
char FSMTCH;
650 __xdata __at (0xDF21)
unsigned char FSMTCL;
651 __xdata __at (0xDF22)
unsigned char MANANDH;
652 __xdata __at (0xDF23)
unsigned char MANANDL;
653 __xdata __at (0xDF24)
unsigned char MANORH;
654 __xdata __at (0xDF25)
unsigned char MANORL;
655 __xdata __at (0xDF26)
unsigned char AGCCTRLH;
656 __xdata __at (0xDF27)
unsigned char AGCCTRLL;
658 __xdata __at (0xDF39)
unsigned char FSMSTATE;
659 __xdata __at (0xDF3A)
unsigned char ADCTSTH;
660 __xdata __at (0xDF3B)
unsigned char ADCTSTL;
661 __xdata __at (0xDF3C)
unsigned char DACTSTH;
662 __xdata __at (0xDF3D)
unsigned char DACTSTL;
664 __xdata __at (0xDF43)
unsigned char IEEE_ADDR0;
665 __xdata __at (0xDF44)
unsigned char IEEE_ADDR1;
666 __xdata __at (0xDF45)
unsigned char IEEE_ADDR2;
667 __xdata __at (0xDF46)
unsigned char IEEE_ADDR3;
668 __xdata __at (0xDF47)
unsigned char IEEE_ADDR4;
669 __xdata __at (0xDF48)
unsigned char IEEE_ADDR5;
670 __xdata __at (0xDF49)
unsigned char IEEE_ADDR6;
671 __xdata __at (0xDF4A)
unsigned char IEEE_ADDR7;
672 __xdata __at (0xDF4B)
unsigned char PANIDH;
673 __xdata __at (0xDF4C)
unsigned char PANIDL;
674 __xdata __at (0xDF4D)
unsigned char SHORTADDRH;
675 __xdata __at (0xDF4E)
unsigned char SHORTADDRL;
676 __xdata __at (0xDF4F)
unsigned char IOCFG0;
677 __xdata __at (0xDF50)
unsigned char IOCFG1;
678 __xdata __at (0xDF51)
unsigned char IOCFG2;
679 __xdata __at (0xDF52)
unsigned char IOCFG3;
680 __xdata __at (0xDF53)
unsigned char RXFIFOCNT;
681 __xdata __at (0xDF54)
unsigned char FSMTC1;
682 #define ABORTRX_ON_SRXON 0x20
683 #define RX_INTERRUPTED 0x10
684 #define AUTO_TX2RX_OFF 0x08
685 #define RX2RX_TIME_OFF 0x04
686 #define PENDING_OR 0x02
687 #define ACCEPT_ACKPKT 0x01
689 __xdata __at (0xDF60) unsigned
char CHVER;
690 __xdata __at (0xDF61)
unsigned char CHIPID;
691 __xdata __at (0xDF62)
unsigned char RFSTATUS;
692 #define TX_ACTIVE 0x10
698 __xdata __at (0xDFC1) unsigned
char U0BUF_SHADOW;
700 __xdata __at (0xDFD9)
unsigned char RFD_SHADOW;
702 __xdata __at (0xDFF9)
unsigned char U1BUF_SHADOW;
704 __xdata __at (0xDFBA)
unsigned int ADC_SHADOW;