C8051F340/1/2/3/4/5/6/7

SFR Definition 15.21. P4MDIN: Port4 Input Mode

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

 

Reset Value

 

 

 

 

 

 

 

 

11111111

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

 

SFR Address:

0xF5

Bits7–0: Analog Input Configuration Bits for P4.7–P4.0 (respectively).

Port pins configured as analog inputs have their weak pull-up, digital driver, and digital receiver disabled.

0: Corresponding P4.n pin is configured as an analog input.

1: Corresponding P4.n pin is not configured as an analog input.

Note: P4 is only available on 48-pin devices.

SFR Definition 15.22. P4MDOUT: Port4 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:

 

 

 

 

 

 

 

 

0xAE

Bits7–0: Output Configuration Bits for P4.7–P4.0 (respectively); ignored if corresponding bit in regis- ter P4MDIN is logic 0.

0: Corresponding P4.n Output is open-drain.

1: Corresponding P4.n Output is push-pull.

Note: P4 is only available on 48-pin devices.

Rev. 0.5

161

Page 161
Image 161
Silicon Laboratories C8051F346, C8051F347, C8051F341, C8051F343, C8051F340 SFR Definition 15.21. P4MDIN Port4 Input Mode