1 #ifndef __PIC32_H__ 2 #define __PIC32_H__ 3 4 /* See... 5 * TABLE 4-1: SFR MEMORYMAP 6 * TABLE 11-3: PORTA REGISTER MAP 7 * 11.2 CLR, SET and INV Registers 8 * PIC32MX1XX/2XX 28/36/44-pin Family Data Sheet 9 */ 10 11 #define OC1CON 0xBF803000 12 #define OC1R 0xBF803010 13 #define OC1RS 0xBF803020 14 #define OC2CON 0xBF803200 15 #define OC2R 0xBF803210 16 #define OC2RS 0xBF803220 17 #define OC3CON 0xBF803400 18 #define OC3R 0xBF803410 19 #define OC3RS 0xBF803420 20 21 #define T1CON 0xBF800600 22 #define TMR1 0xBF800610 23 #define PR1 0xBF800620 24 #define T2CON 0xBF800800 25 #define TMR2 0xBF800810 26 #define PR2 0xBF800820 27 28 #define PMCON 0xBF807000 29 #define PMMODE 0xBF807010 30 #define PMADDR 0xBF807020 31 #define PMDOUT 0xBF807030 32 #define PMDIN 0xBF807040 33 #define PMAEN 0xBF807050 34 #define PMSTAT 0xBF807060 35 36 #define OSCCON 0xBF80F000 37 #define CFGCON 0xBF80F200 38 #define SYSKEY 0xBF80F230 39 40 #define RPA0R 0xBF80FB00 41 #define RPA1R 0xBF80FB04 42 #define RPA2R 0xBF80FB08 43 #define RPA3R 0xBF80FB0C 44 #define RPA4R 0xBF80FB10 45 #define RPB0R 0xBF80FB2C 46 #define RPB1R 0xBF80FB30 47 #define RPB2R 0xBF80FB34 48 #define RPB3R 0xBF80FB38 49 #define RPB4R 0xBF80FB3C 50 #define RPB5R 0xBF80FB40 51 #define RPB10R 0xBF80FB54 52 53 #define INTCON 0xBF881000 54 #define IFS0 0xBF881030 55 #define IFS1 0xBF881040 56 #define IEC0 0xBF881060 57 #define IEC1 0xBF881070 58 #define IPC1 0xBF8810A0 59 #define IPC2 0xBF8810B0 60 #define IPC7 0xBF881100 61 #define IPC8 0xBF881110 62 #define IPC10 0xBF881130 63 64 #define BMXCON 0xBF882000 65 #define BMXDKPBA 0xBF882010 66 #define BMXDUDBA 0xBF882020 67 #define BMXDUPBA 0xBF882030 68 #define BMXDRMSZ 0xBF882040 69 70 #define DMACON 0xBF883000 71 #define DCH0CON 0xBF883060 72 #define DCH0ECON 0xBF883070 73 #define DCH0INT 0xBF883080 74 #define DCH0SSA 0xBF883090 75 #define DCH0DSA 0xBF8830A0 76 #define DCH0SSIZ 0xBF8830B0 77 #define DCH0DSIZ 0xBF8830C0 78 #define DCH0CSIZ 0xBF8830F0 79 #define DCH1CON 0xBF883120 80 #define DCH1ECON 0xBF883130 81 #define DCH1INT 0xBF883140 82 #define DCH1SSA 0xBF883150 83 #define DCH1DSA 0xBF883160 84 #define DCH1SSIZ 0xBF883170 85 #define DCH1DSIZ 0xBF883180 86 #define DCH1CSIZ 0xBF8831B0 87 #define DCH2CON 0xBF8831E0 88 #define DCH2ECON 0xBF8831F0 89 #define DCH2INT 0xBF883200 90 #define DCH2SSA 0xBF883210 91 #define DCH2DSA 0xBF883220 92 #define DCH2SSIZ 0xBF883130 93 #define DCH2DSIZ 0xBF883140 94 #define DCH2CSIZ 0xBF883170 95 96 #define ANSELA 0xBF886000 97 #define TRISA 0xBF886010 98 #define PORTA 0xBF886020 99 #define LATA 0xBF886030 100 #define ODCA 0xBF886040 101 #define ANSELB 0xBF886100 102 #define TRISB 0xBF886110 103 #define PORTB 0xBF886120 104 #define LATB 0xBF886130 105 #define ODCB 0xBF886140 106 107 #define CLR 0x4 108 #define SET 0x8 109 #define INV 0xC 110 111 #endif /* __PIC32_H__ */