C8051F340/1/2/3/4/5/6/7
SFR Definition 15.16. P3: Port3 Latch
R/W |
| R/W | R/W | R/W | R/W | R/W | R/W |
| R/W | Reset Value | ||
P3.7 |
| P3.6 | P3.5 |
| P3.4 |
| P3.3 | P3.2 | P3.1 |
| P3.0 | 11111111 |
Bit7 |
| Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 |
| Bit0 | SFR Address: | ||
|
|
|
|
|
|
|
|
|
| (bit addressable) | 0xB0 | |
P3.[7:0] |
|
|
|
|
|
|
|
|
|
| ||
| Write - Output appears on I/O pins. |
|
|
|
|
|
| |||||
| 0: Logic Low Output. |
|
|
|
|
|
|
|
| |||
| 1: Logic High Output (high impedance if corresponding P3MDOUT.n bit = 0). |
| ||||||||||
| Read - Always reads ‘0’ if selected as analog input in register P3MDIN. Directly reads Port | |||||||||||
| pin when configured as digital input. |
|
|
|
|
|
| |||||
| 0: P3.n pin is logic low. |
|
|
|
|
|
|
|
| |||
| 1: P3.n pin is logic high. |
|
|
|
|
|
|
|
|
Note:
SFR Definition 15.17. P3MDIN: Port3 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: |
0xF4
Port pins configured as analog inputs have their weak
0: Corresponding P3.n pin is configured as an analog input.
1: Corresponding P3.n pin is not configured as an analog input.
Note:
SFR Definition 15.18. P3MDOUT: Port3 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: |
|
|
|
|
|
|
|
|
| 0xA7 |
0: Corresponding P3.n Output is
1: Corresponding P3.n Output is
Note:
Rev. 0.5 | 159 |