Datasheet

© 2009 Microchip Technology Inc. Preliminary DS39937B-page 33
PIC24F04KA201 FAMILY
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 02C0
TRISA6 TRISA4 TRISA3
(2,3)
TRISA2
(2)
TRISA1 TRISA0 00DF
PORTA 02C2
RA6 RA5 RA4 RA3
(2,3)
RA2
(2)
RA1 RA0 xxxx
LATA 02C4
LATA6
—LATA4LATA3
(2,3)
LATA2
(2)
LATA1 LATA0 xxxx
ODCA 02C6
ODA6
ODA4 ODA3
(2,3)
ODA2
(2)
ODA1 ODA0 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Note 1: Bit available only when MCLRE = 0.
2: Bits are available only when the primary oscillator is disabled (POSCMD1:POSCMD0 = 00); otherwise read as0’.
3: Bits are available only when the primary oscillator is disabled or EC mode is selected (POSCMD1:POSCMD0 = 00 or 11) and CLKO is disabled (OSCIOFNC = 0); otherwise read as ‘0’.
TABLE 4-13: PORTB 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 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
All
Resets
TRISB 02C8 TRISB15 TRISB14 TRISB13
(1)
TRISB12
(1)
TRISB9 TRISB8 TRISB7 —TRISB4 TRISB2
(1)
TRISB1
(1)
TRISB0
(1)
FFFF
PORTB 02CA RB15 RB14 RB13
(1)
RB12
(1)
—RB9RB8RB7 —RB4—RB2
(1)
RB1
(1)
RB0
(1)
xxxx
LATB 02CC LATB15 LATB14 LATB13
(1)
LATB12
(1)
LATB9 LATB8 LATB7 —LATB4—LATB2
(1)
LATB1
(1)
LATB0
(1)
xxxx
ODCB 02CE ODB15 ODB14 ODB13
(1)
ODB12
(1)
ODB9 ODB8 ODB7 —ODB4—ODB2
(1)
ODB1
(1)
ODB
(1)
0 0000
Legend: = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Note 1: These bits are not implemented on 14-pin devices.
TABLE 4-14: PAD CONFIGURATION 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 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
All
Resets
PADCFG1 02FC
SMBUSDEL OC1TRIS 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.