sh66l10a SinoWealth Micro-Electronics Corp. Ltd, sh66l10a Datasheet - Page 9

no-image

sh66l10a

Manufacturer Part Number
sh66l10a
Description
2k 4-bit Micro-controller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. I/O Port
The MCU provides 16 bi-directional I/O ports. The PORT data is put in register $08 - $0B. The PORT control register ($1B -
$1E) controls the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PPULL of $15
and the data of the PORT, when the PORT is used as input.
Port I/O mapping address is shown as follows:
PORTA (/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 Pad
When PAM = 1 (System register $13 Bit0), PORTA.1 - 2 are used as alarm output. When set O/S1 (System register $15 Bit1)
and O/S2 (System register $15 Bit2) = 1, PORTC & PORTD are used as LCD segment outputs, and writing data to PC.X
(System register $0A), PD.X (System register $0B) won't affect LCD output data. If the PORTD.2 - 3 is selected as input only
controlled by code option, these ports can’t be used as LCD SEG33 - 34.
Address
$1C
$1D
$0A
$0B
$1B
$1E
$08
$09
PCCR.3
PDCR.3
PACR.3
PBCR.3
PPULL
PC.3
PD.3
PA.3
PB.3
Bit3
I/O Control
Register
Register
DATA
PACR.2
PBCR.2
PCCR.2
PDCR.2
DATA
PA.2
PB.2
PC.2
PD.2
Bit2
PCCR.1
PDCR.1
PACR.1
PBCR.1
PC.1
PD.1
PA.1
PB.1
Bit1
READ DATA IN
PACR.0
PBCR.0
PCCR.0
PDCR.0
PA.0
PB.0
PC.0
PD.0
Bit0
READ
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
9
PORTA data register
PORTB data register
PORTC data register
PORTD data register
PORTA input/output control register
PORTB input/output control register
PORTC input/output control register
PORTD input/output control register
GND
V
DD
Remarks
V
DD
Weak Pull high
I/O Pad
SH66L10A

Related parts for sh66l10a