C8051F326/7 - Silicon Labs
C8051F326/7 - Silicon Labs
C8051F326/7 - Silicon Labs
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>C8051F326</strong>/7<br />
SFR Definition 11.1. GPIOCN: Global Port I/O Control<br />
R/W R/W R R R R R R/W Reset Value<br />
WEAKPUD INPUTEN — — — — — SYSCLK 01000000<br />
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:<br />
0xE2<br />
Bit7: WEAKPUD: Port I/O Weak Pullup Disable.<br />
0: Weak Pullups enabled (except for I/O pins with Port latches set to logic 0 or are configured<br />
to push-pull mode).<br />
1: Weak Pullups disabled.<br />
Bit6: INPUTEN: Global Digital Input Enable.<br />
0: Port I/O input path disabled; Port pins can be used as outputs only.<br />
1: Port I/O input path enabled.<br />
Bits5–1: Unused. Read = 00000b. Write = don’t care.<br />
Bit0: SYSCLK: /SYSCLK Enable<br />
0: /SYSCLK unavailable at P0.0 pin. P0.0 Latch routed to P0.0 pin.<br />
1: /SYSCLK routed to P0.0. P0.0 Latch unavailable at P0.0 pin.<br />
SFR Definition 11.2. P0: Port0<br />
R/W R/W R/W R/W R/W R/W R/W R/W Reset Value<br />
P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 11111111<br />
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:<br />
(bit addressable) 0x80<br />
Bits7–0: P0.[7:0]<br />
Write - Output appears on I/O pins.<br />
0: Logic Low Output.<br />
1: Logic High Output (high impedance if corresponding P0MDOUT.n bit = 0).<br />
Read - Always reads ‘0’ if INPUTEN = ‘0’. Otherwise, directly reads Port pin.<br />
0: P0.n pin is logic low.<br />
1: P0.n pin is logic high.<br />
SFR Definition 11.3. P0MDOUT: Port0 Output Mode<br />
R/W R/W R/W R/W R/W R/W R/W R/W Reset Value<br />
00000000<br />
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:<br />
0xA4<br />
Bits7–0: Output Configuration Bits for P0.7-P0.0 (respectively):<br />
0: Corresponding P0.n Output is open-drain.<br />
1: Corresponding P0.n Output is push-pull.<br />
82 Rev. 1.1