English
Language : 

PIC18F2331 Datasheet, PDF (70/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
TABLE 5-2: REGISTER FILE SUMMARY (PIC18F2331/2431/4331/4431) (CONTINUED)
File Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on Details on
POR, BOR page:
EEADR
EEDATA
EECON2
EECON1
IPR3
PIR3
PIE3
IPR2
PIR2
PIE2
IPR1
PIR1
PIE1
OSCTUNE
ADCON3
ADCHS
TRISE(5)
TRISD(5)
TRISC
TRISB
TRISA
EEPROM Address register
EEPROM Data register
EEPROM Control register2 (not a physical register)
EEPGD
CFGS
—
FREE
—
—
—
PTIP
—
—
—
PTIF
—
—
—
PTIE
OSFIP
—
—
EEIP
OSFIF
—
—
EEIF
OSFIE
—
—
EEIE
—
ADIP
RCIP
TXIP
—
ADIF
RCIF
TXIF
—
ADIE
RCIE
TXIE
—
—
TUN5
TUN4
WRERR
IC3DRIP
IC3DRIF
IC3DRIE
—
—
—
SSPIP
SSPIF
SSPIE
TUN3
WREN
IC2QEIP
IC2QEIF
IC2QEIE
LVDIP
LVDIF
LVDIE
CCP1IP
CCP1IF
CCP1IE
TUN2
WR
IC1IP
IC1IF
IC1IE
—
—
—
TMR2IP
TMR2IF
TMR2IE
TUN1
RD
TMR5IP
TMR5IF
TMR5IE
CCP2IP
CCP2IF
CCP2IE
TMR1IP
TMR1IF
TMR1IE
TUN0
ADRS1
ADRS0
—
SSRC4
SSRC3
SSRC2
SSRC1
SSRC0
GDSEL1
—
GDSEL0
—
GBSEL1
—
GBSEL0
—
GCSEL1 GCSEL0 GASEL1 GASEL0
—
Data Direction bits for PORTE(5)
Data Direction Control register for PORTD
Data Direction Control register for PORTC
Data Direction Control register for PORTB
TRISA7(2) TRISA6(1) Data Direction Control register for PORTA
0000 0000
0000 0000
0000 0000
xx-0 x000
---1 1111
---0 0000
---0 0000
1--1 -1-1
0--0 -0-0
0--0 -0-0
50, 85
50, 88
50, 76, 85
50, 77, 86
50
50
50
51, 103
51, 97
51, 100
-111 1111 51, 102
-000 0000 51, 96
-000 0000
--00 0000
00-0 0000
0000 0000
51, 99
25, 51
50
50
---- -111 51, 131
1111 1111
1111 1111
1111 1111
51, 128
51, 123
51, 117
1111 1111 51, 111
PR5H
Timer5 Period register High Byte
1111 1111
50
PR5L
LATE(5)
LATD(5)
LATC
LATB
LATA
Timer5 Period register Low Byte
—
—
—
—
—
Read/Write PORTD Data Latch
Read/Write PORTC Data Latch
Read/Write PORTB Data Latch
LATA<7>(2) LATA<6>(1) Read/Write PORTA Data Latch
Read/Write PORTE Data Latch
1111 1111
---- -xxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
50
51, 132
51, 128
51, 123
51, 117
51, 111
TMR5H
Timer5 Timer register High Byte
xxxx xxxx
146
TMR5L
PORTE
PORTD
PORTC
PORTB
PORTA
Timer5 Timer register Low Byte
—
—
—
—
RE3(6) Read PORTE pins,
Write PORTE Data Latch(5)
Read PORTD pins, Write PORTD Data Latch
Read PORTC pins, Write PORTC Data Latch
Read PORTB pins, Write PORTB Data Latch(4)
RA7(2)
RA6(1) Read PORTA pins, Write PORTA Data Latch
xxxx xxxx
---- xxxx
146
51, 132
xxxx xxxx
xxxx xxxx
xxxx xxxx
xx0x 0000
51, 128
51, 123
51, 117
51, 111
PTCON0
PTCON1
PTMRL
PTMRH
Legend:
Note 1:
2:
3:
4:
5:
6:
PTOPS3 PTOPS2 PTOPS1 PTOPS0 PTCKPS1 PTCKPS0 PTMOD1 PTMOD0 0000 0000 52, 186
PTEN
PTDIR
—
—
—
—
—
—
00-- ---- 52, 186
PWM Time Base register (lower 8 bits).
0000 0000
184
UNUSED
PWM Time Base register (Upper 4 bits)
---- 0000
184
x = unknown, u = unchanged, – = unimplemented, q = value depends on condition
RA6 and associated bits are configured as port pins in RCIO, ECIO and INTIO2 (with port function on RA6) Oscillator mode only, and read
‘0’ in all other oscillator modes.
RA7 and associated bits are configured as port pins in INTIO2 Oscillator mode only and read ‘0’ in all other modes.
Bit 21 of the PC is only available in Test mode and serial programming modes.
If PBADEN = 0, PORTB<4:0> are configured as digital input and read unknown, and if PBADEN = 1, PORTB<4:0> are configured as
analog input and read ‘0’ following a Reset.
These registers and/or bits are not implemented on the PIC18F2X31 devices, and read as ‘0’.
The RE3 port bit is only available when MCLRE fuse (CONFIG3H<7>) is programmed to ‘0’. Otherwise, RE3 reads ‘0’. This bit is read-only.
DS39616B-page 68
Preliminary
 2003 Microchip Technology Inc.