PIC16LF873A registers

All 53 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
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

PCL

Address
0x02
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

STATUS

Address
0x03
Reset
x (not fixed at power-on)
Access
read/write
  1. 7IRP
  2. 6RP1
  3. 5RP0
  4. 4nTO
  5. 3nPD
  6. 2Z
  7. 1DC
  8. 0C
7 fields
FieldBitsWhat it does
IRP7
RP6:5
nTO4
nPD3
Z2
DC1
C0

FSR

Address
0x04
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

PCLATH

Address
0x0A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4PCLATH4
  5. 3PCLATH3
  6. 2PCLATH2
  7. 1PCLATH1
  8. 0PCLATH0
1 field
FieldBitsWhat it does
PCLATH4:0

TMR0 Timer0

TMR0

Address
0x01
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

OPTION_REG

Address
0x81
Reset
0xFF
Access
read/write
  1. 7nRBPU
  2. 6INTEDG
  3. 5T0CS
  4. 4T0SE
  5. 3PSA
  6. 2PS2
  7. 1PS1
  8. 0PS0
6 fields
FieldBitsWhat it does
nRBPU7
INTEDG6
T0CS5
T0SE4
PSA3
PS2:0

PORTA I/O port A

PORTA

Address
0x05
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5RA5
  4. 4RA4
  5. 3RA3
  6. 2RA2
  7. 1RA1
  8. 0RA0
6 fields
FieldBitsWhat it does
RA55
RA44
RA33
RA22
RA11
RA00

TRISA

Address
0x85
Reset
0x3F
Access
read/write
  1. 7–
  2. 6–
  3. 5TRISA5
  4. 4TRISA4
  5. 3TRISA3
  6. 2TRISA2
  7. 1TRISA1
  8. 0TRISA0
6 fields
FieldBitsWhat it does
TRISA55
TRISA44
TRISA33
TRISA22
TRISA11
TRISA00

PORTB I/O port B

PORTB

Address
0x06
Reset
x (not fixed at power-on)
Access
read/write
  1. 7RB7
  2. 6RB6
  3. 5RB5
  4. 4RB4
  5. 3RB3
  6. 2RB2
  7. 1RB1
  8. 0RB0
8 fields
FieldBitsWhat it does
RB77
RB66
RB55
RB44
RB33
RB22
RB11
RB00

TRISB

Address
0x86
Reset
0xFF
Access
read/write
  1. 7TRISB7
  2. 6TRISB6
  3. 5TRISB5
  4. 4TRISB4
  5. 3TRISB3
  6. 2TRISB2
  7. 1TRISB1
  8. 0TRISB0
8 fields
FieldBitsWhat it does
TRISB77
TRISB66
TRISB55
TRISB44
TRISB33
TRISB22
TRISB11
TRISB00

PORTC I/O port C

PORTC

Address
0x07
Reset
x (not fixed at power-on)
Access
read/write
  1. 7RC7
  2. 6RC6
  3. 5RC5
  4. 4RC4
  5. 3RC3
  6. 2RC2
  7. 1RC1
  8. 0RC0
8 fields
FieldBitsWhat it does
RC77
RC66
RC55
RC44
RC33
RC22
RC11
RC00

TRISC

Address
0x87
Reset
0xFF
Access
read/write
  1. 7TRISC7
  2. 6TRISC6
  3. 5TRISC5
  4. 4TRISC4
  5. 3TRISC3
  6. 2TRISC2
  7. 1TRISC1
  8. 0TRISC0
8 fields
FieldBitsWhat it does
TRISC77
TRISC66
TRISC55
TRISC44
TRISC33
TRISC22
TRISC11
TRISC00

INTERRUPT Interrupts

INTCON

Address
0x0B
Reset
x (not fixed at power-on)
Access
read/write
  1. 7GIE
  2. 6PEIE
  3. 5TMR0IE
  4. 4INTE
  5. 3RBIE
  6. 2TMR0IF
  7. 1INTF
  8. 0RBIF
8 fields
FieldBitsWhat it does
GIE7
PEIE6
TMR0IE5
INTE4
RBIE3
TMR0IF2
INTF1
RBIF0

PIR1

Address
0x0C
Reset
0x00
Access
read/write
  1. 7–
  2. 6ADIF
  3. 5RCIF
  4. 4TXIF
  5. 3SSPIF
  6. 2CCP1IF
  7. 1TMR2IF
  8. 0TMR1IF
7 fields
FieldBitsWhat it does
ADIF6
RCIF5
TXIF4
SSPIF3
CCP1IF2
TMR2IF1
TMR1IF0

PIR2

Address
0x0D
Reset
0x00
Access
read/write
  1. 7–
  2. 6CMIF
  3. 5–
  4. 4EEIF
  5. 3BCLIF
  6. 2–
  7. 1–
  8. 0CCP2IF
4 fields
FieldBitsWhat it does
CMIF6
EEIF4
BCLIF3
CCP2IF0

PIE1

Address
0x8C
Reset
0x00
Access
read/write
  1. 7–
  2. 6ADIE
  3. 5RCIE
  4. 4TXIE
  5. 3SSPIE
  6. 2CCP1IE
  7. 1TMR2IE
  8. 0TMR1IE
7 fields
FieldBitsWhat it does
ADIE6
RCIE5
TXIE4
SSPIE3
CCP1IE2
TMR2IE1
TMR1IE0

PIE2

Address
0x8D
Reset
0x00
Access
read/write
  1. 7–
  2. 6CMIE
  3. 5–
  4. 4EEIE
  5. 3BCLIE
  6. 2–
  7. 1–
  8. 0CCP2IE
4 fields
FieldBitsWhat it does
CMIE6
EEIE4
BCLIE3
CCP2IE0

TMR1 Timer1

TMR1L

Address
0x0E
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

TMR1H

Address
0x0F
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

T1CON

Address
0x10
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5T1CKPS1
  4. 4T1CKPS0
  5. 3T1OSCEN
  6. 2nT1SYNC
  7. 1TMR1CS
  8. 0TMR1ON
5 fields
FieldBitsWhat it does
T1CKPS5:4
T1OSCEN3
nT1SYNC2
TMR1CS1
TMR1ON0

TMR2 Timer2

TMR2

Address
0x11
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

T2CON

Address
0x12
Reset
0x00
Access
read/write
  1. 7–
  2. 6TOUTPS3
  3. 5TOUTPS2
  4. 4TOUTPS1
  5. 3TOUTPS0
  6. 2TMR2ON
  7. 1T2CKPS1
  8. 0T2CKPS0
3 fields
FieldBitsWhat it does
TOUTPS6:3
TMR2ON2
T2CKPS1:0

PR2

Address
0x92
Reset
0xFF
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

MSSP Master synchronous serial port (SPI, I²C)

SSPBUF

Address
0x13
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

SSPCON

Address
0x14
Reset
0x00
Access
read/write
  1. 7WCOL
  2. 6SSPOV
  3. 5SSPEN
  4. 4CKP
  5. 3SSPM3
  6. 2SSPM2
  7. 1SSPM1
  8. 0SSPM0
5 fields
FieldBitsWhat it does
WCOL7
SSPOV6
SSPEN5
CKP4
SSPM3:0

SSPCON2

Address
0x91
Reset
0x00
Access
read/write
  1. 7GCEN
  2. 6ACKSTAT
  3. 5ACKDT
  4. 4ACKEN
  5. 3RCEN
  6. 2PEN
  7. 1RSEN
  8. 0SEN
8 fields
FieldBitsWhat it does
GCEN7
ACKSTAT6
ACKDT5
ACKEN4
RCEN3
PEN2
RSEN1
SEN0

SSPADD

Address
0x93
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

SSPSTAT

Address
0x94
Reset
0x00
Access
read/write
  1. 7SMP
  2. 6CKE
  3. 5D/nA
  4. 4P
  5. 3S
  6. 2R/nW
  7. 1UA
  8. 0BF
8 fields
FieldBitsWhat it does
SMP7
CKE6
D/nA5
P4
S3
R/nW2
UA1
BF0

CCP1 Capture/compare/PWM 1

CCPR1L

Address
0x15
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CCPR1H

Address
0x16
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CCP1CON

Address
0x17
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5CCP1X
  4. 4CCP1Y
  5. 3CCP1M3
  6. 2CCP1M2
  7. 1CCP1M1
  8. 0CCP1M0
3 fields
FieldBitsWhat it does
CCP1X5
CCP1Y4
CCP1M3:0

EUSART USART

RCSTA

Address
0x18
Reset
x (not fixed at power-on)
Access
read/write
  1. 7SPEN
  2. 6RX9
  3. 5SREN
  4. 4CREN
  5. 3ADDEN
  6. 2FERR
  7. 1OERR
  8. 0RX9D
8 fields
FieldBitsWhat it does
SPEN7
RX96
SREN5
CREN4
ADDEN3
FERR2
OERR1
RX9D0

TXREG

Address
0x19
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

RCREG

Address
0x1A
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

TXSTA

Address
0x98
Reset
0x02
Access
read/write
  1. 7CSRC
  2. 6TX9
  3. 5TXEN
  4. 4SYNC
  5. 3–
  6. 2BRGH
  7. 1TRMT
  8. 0TX9D
7 fields
FieldBitsWhat it does
CSRC7
TX96
TXEN5
SYNC4
BRGH2
TRMT1
TX9D0

SPBRG

Address
0x99
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CCP2 Capture/compare/PWM 2

CCPR2L

Address
0x1B
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CCPR2H

Address
0x1C
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

CCP2CON

Address
0x1D
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5CCP2X
  4. 4CCP2Y
  5. 3CCP2M3
  6. 2CCP2M2
  7. 1CCP2M1
  8. 0CCP2M0
3 fields
FieldBitsWhat it does
CCP2X5
CCP2Y4
CCP2M3:0

ADC Analog-to-digital converter

ADRESH

Address
0x1E
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

ADCON0

Address
0x1F
Reset
0x00
Access
read/write
  1. 7ADCS1
  2. 6ADCS0
  3. 5CHS2
  4. 4CHS1
  5. 3CHS0
  6. 2GO/nDONE
  7. 1–
  8. 0ADON
4 fields
FieldBitsWhat it does
ADCS7:6
CHS5:3
GO/nDONE2
ADON0

ADRESL

Address
0x9E
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

ADCON1

Address
0x9F
Reset
0x00
Access
read/write
  1. 7ADFM
  2. 6ADCS2
  3. 5–
  4. 4–
  5. 3PCFG3
  6. 2PCFG2
  7. 1PCFG1
  8. 0PCFG0
3 fields
FieldBitsWhat it does
ADFM7
ADCS26
PCFG3:0

OSCILLATOR Oscillator, power control and watchdog

PCON

Address
0x8E
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1nPOR
  8. 0nBOR
2 fields
FieldBitsWhat it does
nPOR1
nBOR0

COMPARATOR Comparators and voltage reference

CMCON

Address
0x9C
Reset
0x07
Access
read/write
  1. 7C2OUT
  2. 6C1OUT
  3. 5C2INV
  4. 4C1INV
  5. 3CIS
  6. 2CM2
  7. 1CM1
  8. 0CM0
6 fields
FieldBitsWhat it does
C2OUT7
C1OUT6
C2INV5
C1INV4
CIS3
CM2:0

CVRCON

Address
0x9D
Reset
0x00
Access
read/write
  1. 7CVREN
  2. 6CVROE
  3. 5CVRR
  4. 4–
  5. 3CVR3
  6. 2CVR2
  7. 1CVR1
  8. 0CVR0
4 fields
FieldBitsWhat it does
CVREN7
CVROE6
CVRR5
CVR3:0

NVM Data EEPROM and flash program memory

EEDATA

Address
0x10C
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

EEADR

Address
0x10D
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

EEDATH

Address
0x10E
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

EEADRH

Address
0x10F
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

EECON1

Address
0x18C
Reset
x (not fixed at power-on)
Access
read/write
  1. 7EEPGD
  2. 6–
  3. 5–
  4. 4–
  5. 3WRERR
  6. 2WREN
  7. 1WR
  8. 0RD
5 fields
FieldBitsWhat it does
EEPGD7
WRERR3
WREN2
WR1
RD0

EECON2

Address
0x18D
Reset
0x00
Access
write only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–