
NT68F62
22
12.2. Port1: P10 - P16
PORT10 - PORT16 is a 7-bit bi-directional CMOS I/O port
with PMOS as internal pull-up (Figure 12.1). Each bi-
directional I/O pin may be bit programmed as an input or
output port without software controlling the data direction
register. When Port1 works as an output, the data to be
output is latched to the port data register and output to the
pin. Port1 pins that have '1's written to them are pulled high
by the internal PMOS pull-ups. In this state they can be
used as inputs and then the input signals can be read. This
port output is high after reset.
P10 & P11 are shared with AD0 & AD1 input pins
respectively. If the ENADC0/
1
bit in the ENADC control
register is cleared to LOW, the A/D converters will activate
simultaneously. After the chip is reset, ENADC0/
1
bits will
be in the HIGH state and P10 - P11 will act as I/O pins.
P12
、
P13 are shared with the HALF SIGNALS input and
OUTPUT pins by accessing the OUTCON control register.
If the
ENHALF
bit is cleared to LOW, P13 will switch to
HALFHI pin (input pin) and P12 will switch to HALFHO pin
(output pin, Figure 12.3). For HALFHI & HALFHO pin
descriptions, please refer half frequency function in the H/V
Addr.
Register
INIT
$0001
PT1
7FH
sync processor paragraph. After the chip is reset, the
ENHALF
bits will be in the HIGH state and P12
、
P13 will
act as I/O pins.
P14 is shared with the output pin of the self test pattern. If
users clear the
PATTERN
bit in the SYNCON control
register and the free running function has been activated,
the P14 will switch to be the output pin of the self test
pattern. This pattern output pin is of the push-pull structure.
After the chip is reset, the
PATTERN
bits will be in the
HIGH state and P14 will act as an I/O pin. (Refer to the
'Syncprocessor' section for more detailed information.)
P15 & P16 can be shared with the external interrupt INTE0
& INTE1 pins if the INTE0/1 bits are set in the control
register of the interrupt enable ($0018 & $001B). These
interrupt pins have 'Schmitt Trigger' input buffers. After the
chip is reset, INTE0/1 bits will be in the HIGH state and P15
& P16 will act as I/O pins.
Refer to the 'INTERRUPT CONTROLLER' paragraph
above for more details about the interrupt function.
Bit7
Bit6
P16
Bit5
P15
Bit4
P14
Bit3
P13
Bit2
P12
Bit1
P11
Bit0
P10
R/W
RW
―
$000C
FREECON
FFH
ENPAT
PAT0
―
―
―
FREQ2
FREQ1
FREQ0
W
$0010
ENADC
FFH
CSTA
―
―
―
ENADC3
ENADC2
ENADC1
ENADC0
W
$0018
IENMI
00H
―
―
―
―
―
―
INTE0
INTMUTE
RW
$001B
IEIRQ2
00H
―
―
―
―
―
INTV
INTE1
INTMR
RW
Data Input
I/P
V
DD
Figure 12.4. Schmitt Input Structure
V
DD
I/O
Data Out
.
Data OE
Data In
Figure 12.5. I/O
Structure