402-00005-00
Registers
3–58
Rev 02; February 8, 2002
3.4.15 Parallel IO Port Control (PORTCON) R/W
0
7
BADR2 + 0x40
Reserved
STRBIN
INTINSTAT
INPORT
INREGCLR
INSTRBPOL
INREGENB
OUTSTB
8
15
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
PCP_PORTCON_32
16
23
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
24
31
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
STAT
IPOL
This register controls the functions of the parallel input and output port. Reserved bits always read zero.
Bit
Mnemonic
Function
0
OUTSTB
Output Port Strobe
1
INREGENB
Input Buffer Enable
2
INSTRBPOL
Input Port Strobe Polarity
3
INREGCLR
Input Port Buffer Clear
4
IPINTPOL
Input Port Interrupt Polarity
5
INTINSTAT
Input Port Interrupt Input Status
6
STRBINSTAT
Input Port Strobe Input Status
7–31
Reserved
“Don’t care”
3.4.15.1 Output Port Strobe (OUTSTB) R/W
This bit determines the state of the Output Port Strobe signal (STROBE_O). This bit is cleared during power up and
system reset.
OUTSTB
Function
0
Strobe output pin driven low
1
Strobe output pin driven high
3.4.15.2 Input Buffer Enable (INREGENB) R/W
This bit enables the input port buffer. With the buffer enabled, the input strobe clocks the state of the input pins into
the input port buffer, and the Input Port register INPORT reads the data in the buffer. With the buffer disabled, the
input strobe has no effect, and the Input Port register INPORT reads the state of the input pins directly. This bit is
cleared during power up and system reset.
INREGENB
Function
0
Disable input buffer and strobe; INPORT reads input pins
1
Enable input buffer and strobe; INPORT reads buffer data
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com