sh66p31b SinoWealth Micro-Electronics Corp. Ltd, sh66p31b Datasheet - Page 10

no-image

sh66p31b

Manufacturer Part Number
sh66p31b
Description
Otp 1k 4-bit Micro-controller
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. I/O Ports
The MCU provides 14 bi-directional I/O ports. The PORT data put in register $08 - $0B. The PORT control register ($16 - $19)
controls the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PULLEN of $13 and
the data of the port, when the PORT is used as input
System Register ($08 - $0B, $16 - $19)
PA (/B/C/D) CR.n, (n = 0, 1, 2, 3)
0: Set I/O as an input direction. (Power on initial)
1: Set I/O as an output direction.
Equivalent Circuit for a Single I/O Pin
System Register $13
PULLEN
Address
Address
$13
$0A
$0B
$08
$09
$16
$17
$18
$19
PULLEN
Port Pull-high resistor enables control
0 = Disable PORT pull-high resistor (power-on initial)
1 = Enable PORT pull-high resistor
PCCR.3
PACR.3
PBCR.3
Bit 3
PC.3
PA.3
PB.3
Bit3
-
-
PULLEN
PACR.2
PBCR.2
PCCR.2
Bit 2
CPS
PA.2
PB.2
PC.2
Bit2
-
-
I/O Control
Register
Regiser
DATA
DATA
PACR.1
PBCR.1
PCCR.1
PDCR.1
Bit 1
CF1
PA.1
PB.1
PC.1
PD.1
Bit1
PACR.0
PBCR.0
PCCR.0
PDCR.0
Bit 0
CF0
PA.0
PB.0
PC.0
PD.0
Bit0
READ DATA IN
.
READ
R/W
R/W
R/W
R/W
R/W
R/W
W
W
W
W
W
10
PORTA
PORTB
PORTC
PORTD
PORTA input/output control
PORTB input/output control
PORTC input/output control
PORTD input/output control
Bit3: Port Pull-high resistor Control
GND
V
DD
V
DD
Pull high
Weak
Remarks
Remarks
I/O Pad
SH66P31B

Related parts for sh66p31b