Datasheet

2007-2012 Microchip Technology Inc. DS39778E-page 169
PIC18F87J11 FAMILY
REGISTER 12-2: PMCONL: PARALLEL PORT CONTROL LOW BYTE REGISTER
R/W-0 R/W-0 R/W-0
(1)
R/W-0
(1)
R/W-0
(1)
R/W-0 R/W-0 R/W-0
CSF1 CSF0 ALP CS2P CS1P BEP WRSP RDSP
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-6 CSF<1:0>: Chip Select Function bits
11 = Reserved
10 = PMCS1 and PMCS2 function as chip select
01 = PMCS2 functions as chip select, PMCS1 is used as Address Bit 14 (PMADDRH Address Bit 6)
00 = PMCS2 and PMCS1 are used as Address Bits 15 and 14 (PMADDRH Address Bits 7 and 6)
bit 5 ALP: Address Latch Polarity bit
(1)
1 = Active-high (PMALL and PMALH)
0 = Active-low (PMALL
and PMALH)
bit 4 CS2P: Chip Select 2 Polarity bit
(1)
1 = Active-high (PMCS2)
0 =Active-low (PMCS2
)
bit 3 CS1P: Chip Select 1 Polarity bit
(1)
1 = Active-high (PMCS1/PMCS)
0 =Active-low (PMCS1
/PMCS)
bit 2 BEP: Byte Enable Polarity bit
1 = Byte enable active-high (PMBE)
0 = Byte enable active-low (PMBE
)
bit 1 WRSP: Write Strobe Polarity bit
For Slave modes and Master mode 2 (PMMODEH<1:0> = 00, 01, 10):
1 = Write strobe active-high (PMWR)
0 = Write strobe active-low (PMWR
)
For Master mode 1 (PMMODEH<1:0> =
11):
1 = Enable strobe active-high (PMENB)
0 = Enable strobe active-low (PMENB
)
bit 0 RDSP: Read Strobe Polarity bit
For Slave modes and Master mode 2 (PMMODEH<1:0> =
00, 01, 10):
1 = Read strobe active-high (PMRD)
0 = Read strobe active-low (PMRD
)
For Master mode 1 (PMMODEH<1:0> =
11):
1 = Read/write strobe active-high (PMRD/PMWR)
0 = Read/write strobe active-low (PMRD
/PMWR)
Note 1: These bits have no effect when their corresponding pins are used as address lines.