English
Language : 

NT68P62-01 Datasheet, PDF (23/56 Pages) List of Unclassifed Manufacturers – 8-Bit Microcontroller for Monitor (32K OTP ROM Type)
NT68P62-01
12.3. PORT2: P20 - P27
PORT2, an 8-bit bi-directional I/O port (Figure 12.5), may be programmed as an input or output pin by the software control.
When setting the PT2DIR control bit to '0', its correspondent pin will act as an output pin. On the other hand, clear PT2DIR
bit to '1', act as input pin. When programmed as an input, it has an internal pull-up resistor. When programmed as an output,
the data to be output is latched to the port data register and output to the pin with push-pull structure. This port acts as input
port after reset.
Addr.
$0002
$0003
$0010
$0029
Register
PT2DIR
PT2
ENADC
CH1CON
INIT
FFH
FFH
FFH
FFH
Bit7
P27OE
P27
CSTA
ENDDC
Bit6
P26OE
P26
-
MD1/ 2
Bit5
P25OE
P25
-
SRW
Bit4
P24OE
P24
-
START
Bit3
P23OE
P23
ENADC3
STOP
Bit2
P22OE
P22
ENADC2
RXACK
Bit1
Bit0
R/W
P21OE
P21
P20OE
W
P20
RW
ENADC1 ENADC0
W
TXACK
-
RW
12.4. PORT3: P30 - P31
PORT3 is an 2 bit bi-directional open-drain I/O port (Figure 12.6). Each pin of PORT3 may be bit programmed as an input or
output port with open drain structure. When PORT3 works as output, the data to be output is latched to the port data register
and output to the pin. When PORT3 pins that have '1's written to them, users must connect PORT3 with external pulled-up
resistor and then PORT3 can be used as input (the input signal can be read). This port output HIGH after reset.
P30 P31 include Schmitt Trigger buffers for noise immunity and can be configured as the I2C pins SDA0 & SCL0
respectively. If set ENDDC to LOW in CH0DDC control register, P30 P31 will act as SDA0 & SCL0 I/O pins respectively
and will be an open drain structure (Figure 12.6). After the chip is reset, this ENDDC bit will be in HIGH state and PORT3
will act as I/O pins.
Addr.
$0004
$0029
Register
PT3
CH1CON
INIT
Bit7
FFH
-
FFH ENDDC
Bit6
-
MD1/ 2
Bit5
-
SRW
Bit4
-
START
Bit3
-
STOP
Bit2
-
RXACK
I/O
Bit1
P31
TXACK
Bit0 R/W
P30
RW
-
RW
Data Out
Data In
Figure 12.6. PORT3
23