English
Language : 

C8051F326 Datasheet, PDF (84/140 Pages) List of Unclassifed Manufacturers – Full Speed USB, 16 kB Flash MCU Family
C8051F326/7
SFR Definition 11.1. GPIOCN: Global Port I/O Control
R/W
R/W
R
R
R
R
R
R/W
Reset Value
WEAKPUD INPUTEN —
—
—
—
— SYSCLK 01000000
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SFR Address:
0xE2
Bit7:
Bit6:
Bits5–1:
Bit0:
WEAKPUD: Port I/O Weak Pullup Disable.
0: Weak Pullups enabled (except for I/O pins with Port latches set to logic 0 or are config-
ured to push-pull mode).
1: Weak Pullups disabled.
INPUTEN: Global Digital Input Enable.
0: Port I/O input path disabled; Port pins can be used as outputs only.
1: Port I/O input path enabled.
UNUSED. Read = 00000b. Write = don’t care.
SYSCLK: /SYSCLK Enable
0: /SYSCLK unavailable at P0.0 pin. P0.0 Latch routed to P0.0 pin.
1: /SYSCLK routed to P0.0. P0.0 Latch unavailable at P0.0 pin.
SFR Definition 11.2. P0: Port0
R/W
P0.7
Bit7
R/W
P0.6
Bit6
R/W
P0.5
Bit5
R/W
P0.4
Bit4
R/W
P0.3
Bit3
R/W
P0.2
Bit2
R/W
R/W
Reset Value
P0.1
P0.0 11111111
Bit1
Bit0
SFR Address:
(bit addressable) 0x80
Bits7–0:
P0.[7:0]
Write - Output appears on I/O pins.
0: Logic Low Output.
1: Logic High Output (high impedance if corresponding P0MDOUT.n bit = 0).
Read - Always reads ‘0’ if INPUTEN = ‘0’. Otherwise, directly reads Port pin.
0: P0.n pin is logic low.
1: P0.n pin is logic high.
SFR Definition 11.3. P0MDOUT: Port0 Output Mode
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
00000000
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0 SFR Address:
0xA4
Bits7–0: Output Configuration Bits for P0.7-P0.0 (respectively):
0: Corresponding P0.n Output is open-drain.
1: Corresponding P0.n Output is push-pull.
84
Rev. 0.5