p13
22-Nov-10
expandIO-USB
HW148-18
www.firmwarefactory.com
Appendix A: Register Maps
This table is provided as a quick reference. Directly accessing registers requires in-depth knowledge of the base
microcontroller. Refer to the base microcontroller data sheet for details.
The following registers are not accessible: TOSU, TOSH, TOSL, STKPTR, PCLATU, PCLATH, PCLATL, TBLPTRU,
TBLPTRH, TBLPTRL, TABLAT, PRODH, PRODL, INDF0, POSTINC0, POSTDEC0, PREINC0, PLUSW0, FSR0H,
FSR0L, WREG, INDF1, POSTINC1, POSTDEC1, PREINC1, PLUSW1, FSR1H, FSR1L, INDF2, POSTINC2, POSTDEC2,
PREINC2, PLUSW2, FSR2H, FSR2L, BSR, OSCCON, OSCCON2, OSCTUNE, WDTCON, EECON1, EECON2, EEADR,
EEDATA, OSCTUNE, USB registers and general-purpose file registers.
ECCP registers are listed as CCP.
PIC18F14K50
Description / Bitmap**
Register
Command
Byte1
7
6
5
4
3
2
1
0
ADCON0
0xC2
–
CHS3
CHS2
CHS1
CHS0
GO/DONE#
ADON
ADCON1
0xC1
–
PVCFG1
PVCFG0
NVCFG1
NVCFG0
ADCON2
0XC0
ADFM
–
ACQT2
ACQT1
ACQT0
ADCS2
ADCS1
ADCS0
ADRESH
0xC4
ADRESL
0xC3
A/D result
ANSEL
0x7E
ANS11
ANS10
ANS9
ANS8
ANSELH
0x7F
ANS7
ANS6
ANS5
ANS4
ANS3
BAUDCON
0xB8
ABDOVF
RCIDL
DTRXP
SCKP
BRG16
–
WUE
ABDEN
CCP1CON
0xBD
P1M1
P1M0
DC1B1
DC1B0
CCP1M3
CCP1M2
CCP1M1
CCP1M0
CCPR1H
0xBF
CCPR1L
0xBE
Capture / compare PWM 1 registers
CM1CON0
0x6D
C1ON
C1OUT
C1OE
C1POL
C1SP
C1R
C1CH1
C1CH0
CM2CON1
0x6B
MC1OUT
MC2OUT
C1RSEL
C2RSEL
C1HYS
C2HYS
C1SYNC
C2CYNC
CM2CON0
0x6C
C2ON
C2OUT
C2OE
C2POL
C2SP
C2R
C2CH1
C2CH0
ECCP1AS
0xB6
ECCPASE ECCPAS2 ECCPAS1 ECCPAS0
PSSAC1
PSSAC0
PSSBD1
PSSBD0
INTCON
0xF2
GIE(H)
PEIE
TMR0IE
INT0IE
RABIE
TMR0F
INT0IF
RABIF
INTCON2
0xF1
RABPU#
INTEDG0
INTEDG1
INTEDG2
–
TMR0IP
–
RABIP
INTCON3
0xF0
INT2IP
INT1IP
–
INT2IE
INT1IE
–
INT2IF
INT1IF
IOCA
0x79
IOCB7
IOCB6
IOCB5
IOCB4
IOCB
0x7A
IOCA5
IOCA4
IOCA3
IOCA1
IOCA0
IPR1
0x9F
ADIP
RCIP
TXIP
SSPIP
CCP1IP
TMR2IP
TMR1IP
IPR2
0xA2
OSCFIP
C1IP
C2IP
EEIP
BCLIP
USBIP
TMR3IP
LATA
0x89
–
LATA5
LATA4
–
LATB
0x8A
LATB7
LATB6
LATB5
LATB4
–
LATC
0x8B
LATC7
LATC6
LATC5
LATC4
LATC3
LATC2
LATC1
LATC0
PIE1
0x9D
ADIE
RCIE
TXIE
SSPIE
CCP1IE
TMR2IE
TMR1IE
PIE2
0xA0
OSCFIE
C1IE
C2IE
EEIE
BCLIE
USBIE
TMR3IE
PIR1
0x9E
ADIF
RCIF
TXIF
SSPIF
CCP1IF
TMR2IF
TMR1IF
PIR2
0xA1
OSCFIF
C1IF
C2IF
EEIF
BCLIF
USBIF
TMR3IF
PORTA
0x80
–
PORTA5
PORTA4
–
PORTB
0x81
PORTB7
PORTB6
PORTB5
PORTB4
–
PORTC
0x82
PORTC7
PORTC6
PORTC5
PORTC4
PORTC3
PORTC2
PORTC1
PORTC0
PR2
0xCB
Timer2 period
PSTRCON
0xB9
STRSYNC
STRD
STRC
STRB
STRA
PWM1CON
0xB7
PRSEN
PDC6
PDC5
PDC4
PDC3
PDC2
PDC1
PDC0
RCON
0xD0
IPEN
SBOREN–
RI#
TO#
PD#
POR#
BOR#
RCREG
0xAE
UART receive register
REFCON0
0xBA
FVR1EN
FVR1ST
FVR1S1
FVR1S0
TSEN
TSRS
REFCON1
0xBB
D1EN
D1LPS
DAC1OE
D1PSS1
D1PSS0
D1NSS
REFCON2
0xBC
DAC1R4
DAC1R3
DAC1R2
DAC1R1
DAC1R0
RCSTA
0xAB
SPEN
RX9
SREN
CREN
ADDEN
FERR
OERR
RX9D
SLRCON
0x76
SLRC
SLRB
SLRA
SPBRG
0xAF
UART baud rate generator low byte
SPBRGH
0xB0
UART baud rate generator high byte
SRCON0
0x68
SREN
SRCLK2
SRCLK1
SRCLK0
SRQEN
SRNQEN
SRPS
SRPR
SRCON1
0x69
SRSPE
SRSCKE
SRSC2E
SRSC1E
SRRCKE
SRRC2E
SRRC1E
SSPADD
0xC8
Synchronous serial port address / baud / mask
SSPBUF
0xC9
Synchronous serial port receive / transmit buffer
SSPCON1
0xC6
WCOL
SSPOV
SSPEN
CKP
SSPM3
SSPM2
SSPM1
SSPM0