3 * pic18f242.h - 18F242 Device Library Header
5 * This file is part of the GNU PIC Library.
8 * The GNU PIC Library is maintained by,
9 * Vangelis Rokas <vrokas@otenet.gr>
15 #ifndef __PIC18F242_H__
16 #define __PIC18F242_H__
18 extern sfr at 0xf80 PORTA;
65 extern volatile PORTAbits_t at 0xf80 PORTAbits;
67 extern sfr at 0xf81 PORTB;
92 extern volatile PORTBbits_t at 0xf81 PORTBbits;
94 extern sfr at 0xf82 PORTC;
130 extern volatile PORTCbits_t at 0xf82 PORTCbits;
132 extern sfr at 0xf89 LATA;
146 extern volatile LATAbits_t at 0xf89 LATAbits;
148 extern sfr at 0xf8a LATB;
162 extern volatile LATBbits_t at 0xf8a LATBbits;
164 extern sfr at 0xf8b LATC;
178 extern volatile LATCbits_t at 0xf8b LATCbits;
180 extern sfr at 0xf92 TRISA;
194 extern volatile TRISAbits_t at 0xf92 TRISAbits;
196 extern sfr at 0xf93 TRISB;
210 extern volatile TRISBbits_t at 0xf93 TRISBbits;
212 extern sfr at 0xf94 TRISC;
226 extern volatile TRISCbits_t at 0xf94 TRISCbits;
228 extern sfr at 0xf9d PIE1;
242 extern volatile PIE1bits_t at 0xf9d PIE1bits;
244 extern sfr at 0xf9e PIR1;
258 extern volatile PIR1bits_t at 0xf9e PIR1bits;
260 extern sfr at 0xf9f IPR1;
274 extern volatile IPR1bits_t at 0xf9f IPR1bits;
276 extern sfr at 0xfa0 PIE2;
290 extern volatile PIE2bits_t at 0xfa0 PIE2bits;
292 extern sfr at 0xfa1 PIR2;
306 extern volatile PIR2bits_t at 0xfa1 PIR2bits;
308 extern sfr at 0xfa2 IPR2;
322 extern volatile IPR2bits_t at 0xfa2 IPR2bits;
324 extern sfr at 0xfa6 EECON1;
338 extern volatile EECON1bits_t at 0xfa6 EECON1bits;
340 extern sfr at 0xfa7 EECON2;
341 extern sfr at 0xfa8 EEDATA;
342 extern sfr at 0xfa9 EEADR;
343 extern sfr at 0xfab RCSTA;
357 extern volatile RCSTAbits_t at 0xfab RCSTAbits;
359 extern sfr at 0xfac TXSTA;
373 extern volatile TXSTAbits_t at 0xfac TXSTAbits;
375 extern sfr at 0xfad TXREG;
376 extern sfr at 0xfae RCREG;
377 extern sfr at 0xfaf SPBRG;
378 extern sfr at 0xfb1 T3CON;
392 extern volatile T3CONbits_t at 0xfb1 T3CONbits;
394 extern sfr at 0xfb2 TMR3L;
395 extern sfr at 0xfb3 TMR3H;
396 extern sfr at 0xfba CCP2CON;
410 extern volatile CCP2CONbits_t at 0xfba CCP2CONbits;
412 extern sfr at 0xfbb CCPR2L;
413 extern sfr at 0xfbc CCPR2H;
414 extern sfr at 0xfbd CCP1CON;
428 extern volatile CCP1CONbits_t at 0xfbd CCP1CONbits;
430 extern sfr at 0xfbe CCPR1L;
431 extern sfr at 0xfbf CCPR1H;
432 extern sfr at 0xfc1 ADCON1;
446 extern volatile ADCON1bits_t at 0xfc1 ADCON1bits;
448 extern sfr at 0xfc2 ADCON0;
462 extern volatile ADCON0bits_t at 0xfc2 ADCON0bits;
464 extern sfr at 0xfc3 ADRESL;
465 extern sfr at 0xfc4 ADRESH;
466 extern sfr at 0xfc5 SSPCON2;
480 extern volatile SSPCON2bits_t at 0xfc5 SSPCON2bits;
482 extern sfr at 0xfc6 SSPCON1;
496 extern volatile SSPCON1bits_t at 0xfc6 SSPCON1bits;
498 extern sfr at 0xfc7 SSPSTAT;
512 extern volatile SSPSTATbits_t at 0xfc7 SSPSTATbits;
514 extern sfr at 0xfc8 SSPADD;
515 extern sfr at 0xfc9 SSPBUF;
516 extern sfr at 0xfca T2CON;
530 extern volatile T2CONbits_t at 0xfca T2CONbits;
532 extern sfr at 0xfcb PR2;
533 extern sfr at 0xfcc TMR2;
534 extern sfr at 0xfcd T1CON;
539 unsigned NOT_T1SYNC:1;
548 extern volatile T1CONbits_t at 0xfcd T1CONbits;
550 extern sfr at 0xfce TMR1L;
551 extern sfr at 0xfcf TMR1H;
552 extern sfr at 0xfd0 RCON;
566 extern volatile RCONbits_t at 0xfd0 RCONbits;
568 extern sfr at 0xfd1 WDTCON;
593 extern volatile WDTCONbits_t at 0xfd1 WDTCONbits;
595 extern sfr at 0xfd2 LVDCON;
620 extern volatile LVDCONbits_t at 0xfd2 LVDCONbits;
622 extern sfr at 0xfd3 OSCCON;
636 extern volatile OSCCONbits_t at 0xfd3 OSCCONbits;
638 extern sfr at 0xfd5 T0CON;
639 extern sfr at 0xfd6 TMR0L;
640 extern sfr at 0xfd7 TMR0H;
641 extern sfr at 0xfd8 STATUS;
655 extern volatile STATUSbits_t at 0xfd8 STATUSbits;
657 extern sfr at 0xfd9 FSR2L;
658 extern sfr at 0xfda FSR2H;
659 extern sfr at 0xfdb PLUSW2;
660 extern sfr at 0xfdc PREINC2;
661 extern sfr at 0xfdd POSTDEC2;
662 extern sfr at 0xfde POSTINC2;
663 extern sfr at 0xfdf INDF2;
664 extern sfr at 0xfe0 BSR;
665 extern sfr at 0xfe1 FSR1L;
666 extern sfr at 0xfe2 FSR1H;
667 extern sfr at 0xfe3 PLUSW1;
668 extern sfr at 0xfe4 PREINC1;
669 extern sfr at 0xfe5 POSTDEC1;
670 extern sfr at 0xfe6 POSTINC1;
671 extern sfr at 0xfe7 INDF1;
672 extern sfr at 0xfe8 WREG;
673 extern sfr at 0xfe9 FSR0L;
674 extern sfr at 0xfea FSR0H;
675 extern sfr at 0xfeb PLUSW0;
676 extern sfr at 0xfec PREINC0;
677 extern sfr at 0xfed POSTDEC0;
678 extern sfr at 0xfee POSTINC0;
679 extern sfr at 0xfef INDF0;
680 extern sfr at 0xff0 INTCON3;
705 extern volatile INTCON3bits_t at 0xff0 INTCON3bits;
707 extern sfr at 0xff1 INTCON2;
721 extern volatile INTCON2bits_t at 0xff1 INTCON2bits;
723 extern sfr at 0xff2 INTCON;
737 extern volatile INTCONbits_t at 0xff2 INTCONbits;
739 extern sfr at 0xff3 PRODL;
740 extern sfr at 0xff4 PRODH;
741 extern sfr at 0xff5 TABLAT;
742 extern sfr at 0xff6 TBLPTRL;
743 extern sfr at 0xff7 TBLPTRH;
744 extern sfr at 0xff8 TBLPTRU;
745 extern sfr at 0xff9 PCL;
746 extern sfr at 0xffa PCLATH;
747 extern sfr at 0xffb PCLATU;
748 extern sfr at 0xffc STKPTR;
762 extern volatile STKPTRbits_t at 0xffc STKPTRbits;
764 extern sfr at 0xffd TOSL;
765 extern sfr at 0xffe TOSH;
766 extern sfr at 0xfff TOSU;