English
Language : 

PIC24F16KA102_11 Datasheet, PDF (37/278 Pages) Microchip Technology – 20/28-Pin General Purpose, 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
TABLE 4-12: PORTA REGISTER MAP
File
Name
Addr
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5(1)
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All
Resets
TRISA
PORTA
LATA
ODCA
Legend:
Note 1:
2:
3:
4:
5:
6:
02C0
—
—
—
—
—
—
—
—
TRISA7(4) TRISA6
—
TRISA4 TRISA3(5,6) TRISA2(5) TRISA1 TRISA0
02C2
—
—
—
—
—
—
—
—
RA7(4)
RA6
RA5
RA4(3)
RA3(5,6)
RA2(5)
RA1(2)
RA0(2)
02C4
—
—
—
—
—
—
—
—
LATA7(4) LATA6
—
LATA4 LATA3(5,6) LATA2(5) LATA1 LATA0
02C6
—
—
—
—
—
—
—
—
ODA7(4) ODA6
—
ODA4 ODA3(5,6) ODA2(5) ODA1
ODA0
— = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
This bit is available only when MCLRE = 0.
A read of RA1 and RA0 results in ‘0’ when debug is active on the PGC2/PGD2 pin.
A read of RA4 results in ‘0’ when debug is active on the PGC3/PGD3 pin.
These bits are not implemented in 20-pin devices.
These bits are available only when the primary oscillator is disabled (POSCMD<1:0> = 00); otherwise read as ‘0’.
These bits are available only when the primary oscillator is disabled or EC mode is selected (POSCMD<1:0> = 00 or 11) and CLKO is disabled (OSCIOFNC = 0); otherwise read as ‘0’.
00DF
xxxx
xxxx
0000
TABLE 4-13: PORTB REGISTER MAP
File
Name
Addr
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
TRISB 02C8 TRISB15 TRISB14 TRISB13 TRISB12 TRISB11(3) TRISB10(3) TRISB9
PORTB 02CA RB15
RB14
RB13
RB12
RB11(3) RB10(3)
RB9
LATB 02CC LATB15 LATB14 LATB13 LATB12 LATB11(3) LATB10(3) LATB9
ODCB 02CE ODB15
ODB14
ODB13 ODB12 ODB11 ODB10 ODB9
Legend:
Note 1:
2:
3:
— = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
A read of RB1 and RB0 results in ‘0’ when debug is active on the PGEC1/PGED1 pins.
A read of RB4 results in ‘0’ when debug is active on the PGEC3/PGED3 pins.
PORTB bits, 11, 10, 6, 5 and 3, are not implemented in 20-pin devices.
Bit 8
TRISB8
RB8
LATB8
ODB8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
TRISB7
RB7
LATB7
ODB7
TRISB6(3) TRISB5(3)
RB6(3)
RB5(3)
LATB6(3) LATB5(3)
ODB6 ODB5
TRISB4
RB4(2)
LATB4
ODB4
TRISB3(3)
RB3(3)
LATB3(3)
ODB3
TRISB2
RB2
LATB2
ODB2
Bit 1
TRISB1
RB1(1)
LATB1
ODB1
Bit 0
All
Resets
TRISB0
RB0(1)
LATB0
ODB0
FFFF
xxxx
xxxx
0000
TABLE 4-14: PAD CONFIGURATION REGISTER MAP
File
Name
Addr Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9
PADCFG1 02FC
—
—
—
—
—
—
—
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Bit 8
—
Bit 7
—
Bit 6
—
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0 All Resets
— SMBUSDEL OC1TRIS RTSECSEL1 RTSECSEL0 —
0000