sh66l16a SinoWealth Micro-Electronics Corp. Ltd, sh66l16a Datasheet - Page 11

no-image

sh66l16a

Manufacturer Part Number
sh66l16a
Description
16k 4-bit Low Power Micro-controller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. I/O Port
The MCU provides 24 bi-directional I/O ports. The PORT data
and $1E control the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PPULL, Bit3
of the system register $13 and the data of the port, when the PORT is used as input.
PORTD and PORTE are shared with SEG49 - 56 as well as PORTF with COM5 - 8. If the Bit1 - 0 (CS1, CS0) of the system
register $14 are set to “01B”, PORTD.0 - 3 are used as SEG49 - 52. If the Bit1 - 0 (CS1, CS0) of the system register $14 are
cleared to “00B”, PORTD.0 - 3 are used as SEG49 - 52, and PORTE.0 - 3 are used as SEG53 - 56. If the Bit2 (O/S) of the
system register $14 is cleared to “0”, PORTF.0 - 3 are used as COM5 - 8.
If the “ PORTA.1 - 3 input only select” code option is enabled, PORTA.1 - 3 can only be used as input ports even when the
PACR.1 - 3 have been set to “1”.
Port I/O mapping address is shown as follows:
PA (/B/C) 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-high resistor, user must set PPULL to “1”, and write “1” to the port data register when the port is input.
Address
Address
$0C
$0D
$08
$09
$0A
$0B
$19
$1A
$1B
$1E
$13
PCCR.3
PACR.3
PBCR.3
PPULL
PA.3
PB.3
PC.3
PD.3
PE.3
PF.3
Bit3
Bit3
0
1
-
PPULL
PACR.2
PBCR.2
PCCR.2
PUMP
PFCR
PA.2
PB.2
PC.2
PD.2
PE.2
PF.2
OFF
Bit2
Bit2
X
X
I/O Control
Register
Regiser
DATA
DATA
PCCR.1
PACR.1
PBCR.1
PECR
PC.1
PD.1
PA.1
PB.1
PE.1
PF.1
Bit1
Bit1
AF
X
X
PCCR.0 R/W
PACR.0 R/W
PBCR.0 R/W
PDCR
PA.0
PB.0
PC.0
PD.0
PE.0
PAM
PF.0
Bit0
Bit0
X
X
READ DATA IN
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
READ
is
Bit0: Alarm enable control register
Bit1: Alarm carrier frequency control register
Bit2: LCD pump ON/OFF control register
Bit3: Port Pull-High Control register
11
PORTA data register
PORTB data register
PORTC data register
PORTD data register
PORTE data register
PORTF data register
PORTA input/output control register
PORTB input/output control register
PORTC input/output control register
Bit2-0: PORTF, PORTE, PORTD input/output control register
Port Pull-high resistor disable (Power on initial)
Port Pull-high resistor enable
put in register $08 - $0D. The PORT control registers $19 - $1B
1: LCD pump OFF
GND
V
DD
0: LCD pump ON
Remarks
V
Remarks
DD
Pull high
Weak
I/O Pad
SH66L16A

Related parts for sh66l16a