PIC16F886 registers All 71 registers by peripheral, at their data-memory address as the register file map gives it (bank and offset), with their reset value and every bit.
CPU CPU core INDF
Address 0x00
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – PCL
Address 0x02
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 IRP 6 RP1 5 RP0 4 nTO 3 nPD 2 Z 1 DC 0 C 7 fields
Field Bits What it does IRP 7 RP 6:5 nTO 4 nPD 3 Z 2 DC 1 C 0
7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – PCLATH
Address 0x0A
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – TMR0 Timer0 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – OPTION_REG
Address 0x81
Reset 0xFF
Access read/write 7 nRBPU 6 INTEDG 5 T0CS 4 T0SE 3 PSA 2 PS2 1 PS1 0 PS0 6 fields
Field Bits What it does nRBPU 7 INTEDG 6 T0CS 5 T0SE 4 PSA 3 PS 2:0
PORTA I/O port A 7 RA7 6 RA6 5 RA5 4 RA4 3 RA3 2 RA2 1 RA1 0 RA0 8 fields
Field Bits What it does RA7 7 RA6 6 RA5 5 RA4 4 RA3 3 RA2 2 RA1 1 RA0 0
TRISA
Address 0x85
Reset 0xFF
Access read/write 7 TRISA7 6 TRISA6 5 TRISA5 4 TRISA4 3 TRISA3 2 TRISA2 1 TRISA1 0 TRISA0 8 fields
Field Bits What it does TRISA7 7 TRISA6 6 TRISA5 5 TRISA4 4 TRISA3 3 TRISA2 2 TRISA1 1 TRISA0 0
PORTB I/O port B 7 RB7 6 RB6 5 RB5 4 RB4 3 RB3 2 RB2 1 RB1 0 RB0 8 fields
Field Bits What it does RB7 7 RB6 6 RB5 5 RB4 4 RB3 3 RB2 2 RB1 1 RB0 0
TRISB
Address 0x86
Reset 0xFF
Access read/write 7 TRISB7 6 TRISB6 5 TRISB5 4 TRISB4 3 TRISB3 2 TRISB2 1 TRISB1 0 TRISB0 8 fields
Field Bits What it does TRISB7 7 TRISB6 6 TRISB5 5 TRISB4 4 TRISB3 3 TRISB2 2 TRISB1 1 TRISB0 0
WPUB
Address 0x95
Reset 0xFF
Access read/write 7 WPUB7 6 WPUB6 5 WPUB5 4 WPUB4 3 WPUB3 2 WPUB2 1 WPUB1 0 WPUB0 1 field
Field Bits What it does WPUB 7:0
IOCB
Address 0x96
Reset 0x00
Access read/write 7 IOCB7 6 IOCB6 5 IOCB5 4 IOCB4 3 IOCB3 2 IOCB2 1 IOCB1 0 IOCB0 1 field
Field Bits What it does IOCB 7:0
PORTC I/O port C 7 RC7 6 RC6 5 RC5 4 RC4 3 RC3 2 RC2 1 RC1 0 RC0 8 fields
Field Bits What it does RC7 7 RC6 6 RC5 5 RC4 4 RC3 3 RC2 2 RC1 1 RC0 0
TRISC
Address 0x87
Reset 0xFF
Access read/write 7 TRISC7 6 TRISC6 5 TRISC5 4 TRISC4 3 TRISC3 2 TRISC2 1 TRISC1 0 TRISC0 8 fields
Field Bits What it does TRISC7 7 TRISC6 6 TRISC5 5 TRISC4 4 TRISC3 3 TRISC2 2 TRISC1 1 TRISC0 0
PORTE I/O port E 7 – 6 – 5 – 4 – 3 RE3 2 – 1 – 0 – 1 field
Field Bits What it does RE3 3
TRISE
Address 0x89
Reset 0x08
Access read only 7 – 6 – 5 – 4 – 3 TRISE3 2 – 1 – 0 – 1 field
Field Bits What it does TRISE3 3
INTERRUPT Interrupts 7 GIE 6 PEIE 5 T0IE 4 INTE 3 RBIE 2 T0IF 1 INTF 0 RBIF 8 fields
Field Bits What it does GIE 7 PEIE 6 T0IE 5 INTE 4 RBIE 3 T0IF 2 INTF 1 RBIF 0
PIR1
Address 0x0C
Reset 0x00
Access read/write 7 – 6 ADIF 5 RCIF 4 TXIF 3 SSPIF 2 CCP1IF 1 TMR2IF 0 TMR1IF 7 fields
Field Bits What it does ADIF 6 RCIF 5 TXIF 4 SSPIF 3 CCP1IF 2 TMR2IF 1 TMR1IF 0
PIR2
Address 0x0D
Reset 0x00
Access read/write 7 OSFIF 6 C2IF 5 C1IF 4 EEIF 3 BCLIF 2 ULPWUIF 1 – 0 CCP2IF 7 fields
Field Bits What it does OSFIF 7 C2IF 6 C1IF 5 EEIF 4 BCLIF 3 ULPWUIF 2 CCP2IF 0
PIE1
Address 0x8C
Reset 0x00
Access read/write 7 – 6 ADIE 5 RCIE 4 TXIE 3 SSPIE 2 CCP1IE 1 TMR2IE 0 TMR1IE 7 fields
Field Bits What it does ADIE 6 RCIE 5 TXIE 4 SSPIE 3 CCP1IE 2 TMR2IE 1 TMR1IE 0
PIE2
Address 0x8D
Reset 0x00
Access read/write 7 OSFIE 6 C2IE 5 C1IE 4 EEIE 3 BCLIE 2 ULPWUIE 1 – 0 CCP2IE 7 fields
Field Bits What it does OSFIE 7 C2IE 6 C1IE 5 EEIE 4 BCLIE 3 ULPWUIE 2 CCP2IE 0
TMR1 Timer1 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – T1CON
Address 0x10
Reset 0x00
Access read/write 7 T1GINV 6 TMR1GE 5 T1CKPS1 4 T1CKPS0 3 T1OSCEN 2 nT1SYNC 1 TMR1CS 0 TMR1ON 7 fields
Field Bits What it does T1GINV 7 TMR1GE 6 T1CKPS 5:4 T1OSCEN 3 nT1SYNC 2 TMR1CS 1 TMR1ON 0
TMR2 Timer2 TMR2
Address 0x11
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – T2CON
Address 0x12
Reset 0x00
Access read/write 7 – 6 TOUTPS3 5 TOUTPS2 4 TOUTPS1 3 TOUTPS0 2 TMR2ON 1 T2CKPS1 0 T2CKPS0 3 fields
Field Bits What it does TOUTPS 6:3 TMR2ON 2 T2CKPS 1:0
PR2
Address 0x92
Reset 0xFF
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – MSSP Master synchronous serial port (SPI, I²C) 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – SSPCON
Address 0x14
Reset 0x00
Access read/write 7 WCOL 6 SSPOV 5 SSPEN 4 CKP 3 SSPM3 2 SSPM2 1 SSPM1 0 SSPM0 5 fields
Field Bits What it does WCOL 7 SSPOV 6 SSPEN 5 CKP 4 SSPM 3:0
SSPCON2
Address 0x91
Reset 0x00
Access read/write 7 GCEN 6 ACKSTAT 5 ACKDT 4 ACKEN 3 RCEN 2 PEN 1 RSEN 0 SEN 8 fields
Field Bits What it does GCEN 7 ACKSTAT 6 ACKDT 5 ACKEN 4 RCEN 3 PEN 2 RSEN 1 SEN 0
SSPADD
Address 0x93
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – SSPMSK
Address 0x93
Reset 0xFF
Access read/write 7 MSK7 6 MSK6 5 MSK5 4 MSK4 3 MSK3 2 MSK2 1 MSK1 0 MSK0 8 fields
Field Bits What it does MSK7 7 MSK6 6 MSK5 5 MSK4 4 MSK3 3 MSK2 2 MSK1 1 MSK0 0
SSPSTAT
Address 0x94
Reset 0x00
Access read/write 7 SMP 6 CKE 5 D/nA 4 P 3 S 2 R/nW 1 UA 0 BF 8 fields
Field Bits What it does SMP 7 CKE 6 D/nA 5 P 4 S 3 R/nW 2 UA 1 BF 0
CCP1 Capture/compare/PWM 1 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – CCP1CON
Address 0x17
Reset 0x00
Access read/write 7 P1M1 6 P1M0 5 DC1B1 4 DC1B0 3 CCP1M3 2 CCP1M2 1 CCP1M1 0 CCP1M0 3 fields
Field Bits What it does P1M 7:6 DC1B 5:4 CCP1M 3:0
EUSART USART 7 SPEN 6 RX9 5 SREN 4 CREN 3 ADDEN 2 FERR 1 OERR 0 RX9D 8 fields
Field Bits What it does SPEN 7 RX9 6 SREN 5 CREN 4 ADDEN 3 FERR 2 OERR 1 RX9D 0
TXREG
Address 0x19
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – RCREG
Address 0x1A
Reset 0x00
Access read only 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – TXSTA
Address 0x98
Reset 0x02
Access read/write 7 CSRC 6 TX9 5 TXEN 4 SYNC 3 SENDB 2 BRGH 1 TRMT 0 TX9D 8 fields
Field Bits What it does CSRC 7 TX9 6 TXEN 5 SYNC 4 SENDB 3 BRGH 2 TRMT 1 TX9D 0
SPBRG
Address 0x99
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – SPBRGH
Address 0x9A
Reset 0x00
Access read/write 7 SPBRGH7 6 SPBRGH6 5 SPBRGH5 4 SPBRGH4 3 SPBRGH3 2 SPBRGH2 1 SPBRGH1 0 SPBRGH0 1 field
Field Bits What it does SPBRGH 7:0
BAUDCTL
Address 0x187
Reset 0x40
Access read/write 7 ABDOVF 6 RCIDL 5 – 4 SCKP 3 BRG16 2 – 1 WUE 0 ABDEN 6 fields
Field Bits What it does ABDOVF 7 RCIDL 6 SCKP 4 BRG16 3 WUE 1 ABDEN 0
CCP2 Capture/compare/PWM 2 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – CCP2CON
Address 0x1D
Reset 0x00
Access read/write 7 – 6 – 5 DC2B1 4 DC2B0 3 CCP2M3 2 CCP2M2 1 CCP2M1 0 CCP2M0 3 fields
Field Bits What it does DC2B1 5 DC2B0 4 CCP2M 3:0
ADC Analog-to-digital converter 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – ADCON0
Address 0x1F
Reset 0x00
Access read/write 7 ADCS1 6 ADCS0 5 CHS3 4 CHS2 3 CHS1 2 CHS0 1 GO/nDONE 0 ADON 4 fields
Field Bits What it does ADCS 7:6 CHS 5:2 GO/nDONE 1 ADON 0
7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – ADCON1
Address 0x9F
Reset 0x00
Access read/write 7 ADFM 6 – 5 VCFG1 4 VCFG0 3 – 2 – 1 – 0 – 3 fields
Field Bits What it does ADFM 7 VCFG1 5 VCFG0 4
ANSEL
Address 0x188
Reset 0x1F
Access read/write 7 – 6 – 5 – 4 ANS4 3 ANS3 2 ANS2 1 ANS1 0 ANS0 5 fields
Field Bits What it does ANS4 4 ANS3 3 ANS2 2 ANS1 1 ANS0 0
OSCILLATOR Oscillator, power control and watchdog 7 – 6 – 5 ULPWUE 4 SBOREN 3 – 2 – 1 nPOR 0 nBOR 4 fields
Field Bits What it does ULPWUE 5 SBOREN 4 nPOR 1 nBOR 0
7 – 6 IRCF2 5 IRCF1 4 IRCF0 3 OSTS 2 HTS 1 LTS 0 SCS 5 fields
Field Bits What it does IRCF 6:4 OSTS 3 HTS 2 LTS 1 SCS 0
OSCTUNE
Address 0x90
Reset 0x00
Access read/write 7 – 6 – 5 – 4 TUN4 3 TUN3 2 TUN2 1 TUN1 0 TUN0 1 field
Field Bits What it does TUN 4:0
WDTCON
Address 0x105
Reset 0x08
Access read/write 7 – 6 – 5 – 4 WDTPS3 3 WDTPS2 2 WDTPS1 1 WDTPS0 0 SWDTEN 2 fields
Field Bits What it does WDTPS 4:1 SWDTEN 0
COMPARATOR Comparators and voltage reference VRCON
Address 0x97
Reset 0x00
Access read/write 7 VREN 6 VROE 5 VRR 4 VRSS 3 VR3 2 VR2 1 VR1 0 VR0 5 fields
Field Bits What it does VREN 7 VROE 6 VRR 5 VRSS 4 VR 3:0
CM1CON0
Address 0x107
Reset 0x00
Access read/write 7 C1ON 6 C1OUT 5 C1OE 4 C1POL 3 – 2 C1R 1 C1CH1 0 C1CH0 6 fields
Field Bits What it does C1ON 7 C1OUT 6 C1OE 5 C1POL 4 C1R 2 C1CH 1:0
CM2CON0
Address 0x108
Reset 0x00
Access read/write 7 C2ON 6 C2OUT 5 C2OE 4 C2POL 3 – 2 C2R 1 C2CH1 0 C2CH0 6 fields
Field Bits What it does C2ON 7 C2OUT 6 C2OE 5 C2POL 4 C2R 2 C2CH 1:0
CM2CON1
Address 0x109
Reset 0x02
Access read/write 7 MC1OUT 6 MC2OUT 5 C1RSEL 4 C2RSEL 3 – 2 – 1 T1GSS 0 C2SYNC 6 fields
Field Bits What it does MC1OUT 7 MC2OUT 6 C1RSEL 5 C2RSEL 4 T1GSS 1 C2SYNC 0
SRCON
Address 0x185
Reset 0x00
Access read/write 7 SR1 6 SR0 5 C1SEN 4 C2REN 3 PULSS 2 PULSR 1 – 0 FVREN 7 fields
Field Bits What it does SR1 7 SR0 6 C1SEN 5 C2REN 4 PULSS 3 PULSR 2 FVREN 0
ECCP1 Enhanced capture/compare/PWM 1 PWM1CON
Address 0x9B
Reset 0x00
Access read/write 7 PRSEN 6 PDC6 5 PDC5 4 PDC4 3 PDC3 2 PDC2 1 PDC1 0 PDC0 2 fields
Field Bits What it does PRSEN 7 PDC 6:0
ECCP Enhanced capture/compare/PWM ECCPAS
Address 0x9C
Reset 0x00
Access read/write 7 ECCPASE 6 ECCPAS2 5 ECCPAS1 4 ECCPAS0 3 PSSAC1 2 PSSAC0 1 PSSBD1 0 PSSBD0 4 fields
Field Bits What it does ECCPASE 7 ECCPAS 6:4 PSSAC 3:2 PSSBD 1:0
PSTRCON
Address 0x9D
Reset 0x01
Access read/write 7 – 6 – 5 – 4 STRSYNC 3 STRD 2 STRC 1 STRB 0 STRA 5 fields
Field Bits What it does STRSYNC 4 STRD 3 STRC 2 STRB 1 STRA 0
NVM Data EEPROM and flash program memory 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – 7 EEPGD 6 – 5 – 4 – 3 WRERR 2 WREN 1 WR 0 RD 5 fields
Field Bits What it does EEPGD 7 WRERR 3 WREN 2 WR 1 RD 0
EECON2
Address 0x18D
Reset 0x00
Access write only 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 – PORTH I/O port H ANSELH
Address 0x189
Reset 0x3F
Access read/write 7 – 6 – 5 ANS13 4 ANS12 3 ANS11 2 ANS10 1 ANS9 0 ANS8 6 fields
Field Bits What it does ANS13 5 ANS12 4 ANS11 3 ANS10 2 ANS9 1 ANS8 0