sh66k33a SinoWealth Micro-Electronics Corp. Ltd, sh66k33a Datasheet - Page 7

no-image

sh66k33a

Manufacturer Part Number
sh66k33a
Description
Mask 1k 4-bit Micro-controller
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. I/O Ports
The MCU provides 16 Bi-directional I/O pins and 1 input pin. The PORT data put in register $08 - $0C. The PORT control
register ($16 - $1A) controls the PORT as input or output. Each I/O pin has an internal pull-low resistor, which is controlled by
PPULL of $13 and the data of port, when the PORT is used as input.
Port I/O mapping address is shown as follows:
PA (B/C/D/E) 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:
To turn on the pull-low resistor, user must set PPULL to “1”, and write “0” to the port data register.
Address
Address
$0A
$0B
$0C
$1A
$08
$09
$16
$17
$18
$19
$13
PCCR.3
PACR.3
PBCR.3
PPULL
PC.3
PA.3
PB.3
Bit 3
Bit3
-
-
-
-
DATA
PPULL
PCCR.2
PDCR.2
PACR.2
PBCR.2
CPS2
PC.2
PD.2
PA.2
PB.2
Bit 2
Bit2
-
-
I/O Control
Register
Regiser
DATA
PCCR.1
PDCR.1
PACR.1
PBCR.1
PECR.1
CPS1
Port Configuration Function Block Diagram
PC.1
PD.1
PA.1
PB.1
PE.1
Bit 1
Bit1
READ DATA IN
PCCR.0
PACR.0
PBCR.0
PECR.0
CPS0
PD.0
PA.0
PB.0
PC.0
PE.0
Bit 0
Bit0
-
READ
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
7
PORTA data
PORTB data
PORTC data
PORTD data
PORTE data
PORTA input/output control
PORTB input/output control
PORTC input/output control
PORTD input/output control
PORTE input/output control
Bit3: Port Pull-low enable Control
GND
V
DD
GND
Pull Low
Weak
Remarks
Remarks
I/O Pad
SH66K33A

Related parts for sh66k33a