sh6636 SinoWealth Micro-Electronics Corp. Ltd, sh6636 Datasheet - Page 8

no-image

sh6636

Manufacturer Part Number
sh6636
Description
Mask 4-bit Microcontroller With Remote Control Carrier Synthesizer
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
6. I/O PORT
The MCU provides 16 I/O pins.
Each I/O pin contains pull-up MOS controllable by the program. Bit3 of the PMOD register controls the On/Off status of all
pull-up MOS simultaneously. Pull-up MOS is also controlled by the port data registers (PDR) of each port, so the pull-up MOS
can be turned on and off individually.
The port control register (PCR) controls ON/OFF of the output buffer.
The following sections show the circuit configuration of the I/O ports.
Port I/O Data Register: (PDR)
Port I/O Control Register: (PCR)
I/O control register: PAXOUT, PBXOUT, PCXOUT, PDXOUT (X = 0, 1, 2, 3)
0: Set I/O as an input buffer. (Power on initial)
1: Set I/O as an output buffer.
Port Function Control: (PMOD)
PPULL
Address
Address
$16
$17
$18
$19
$13
Address
Port Pull-up MOS enables control
0: Disable PORT pull-up MOS (Power on initial)
1: Enable PORT pull-up MOS
$0A
$0B
$08
$09
PA3OUT
PB3OUT
PC3OUT
PD3OUT
PPULL
Bit 3
Bit3
PC2OUT
PD2OUT
PA2OUT
PB2OUT
PORT A.3
PORT B.3
PORT C.3
PORT D.3
Bit 2
CPS
Bit2
Bit3
PULL-UP
Figure 3. Port Configuration Function Block Diagram
REGISTER
CONTROL
REGISTER
PORT
PORT
DATA
DATA INPUT
PA1OUT
PB1OUT
PC1OUT
PD1OUT
Bit 1
Bit1
CF1
PORT C.2
PORT D.2
PORT A.2
PORT B.2
Bit2
8
PC0OUT
PD0OUT
PA0OUT
PB0OUT
Bit 0
Bit0
CF0
V
DD
R/W
R/W
W
W
W
W
W
PULL-UP
PORT C.1
PORT D.1
PORT A.1
PORT B.1
PMOS
Bit1
Bit3: Port Pull-up MOS Control
Set PORTC as output port
Set PORTD as output port
Set PORTA as output port
Set PORTB as output port
Remarks
Remark
PORT C.0
PORT D.0
PORT A.0
PORT B.0
Bit0
SH6636

Related parts for sh6636