Datasheet
12 - PARALLEL PORTS ST10F269
76/184
12.7 - Port 4
If this 8-bit port is used for general purpose I/O, the direction of each line can be configured via the
corresponding direction register DP4.
P4 (FFC8h / E4h) SFR Reset Value: --00h
DP4 (FFCAh / E5h) SFR Reset Value: --00h
For CAN configuration support (see section 15), Port 4 has an open drain function, controlled with the
ODP4 register:
ODP4 (F1CAh / E5h) ESFR Reset Value: --00h
Note: Only bit 6 and 7 are implemented, all other bit will be read as “0”.
1514131211109876543210
- - - - - - - - P4.7 P4.6 P4.5 P4.4 P4.3 P4.2 P4.1 P4.0
RW RW RW RW RW RW RW RW
P4.y Port Data Register P4 Bit y
1514131211109876543210
--------DP4.7DP4.6DP4.5DP4.4DP4.3DP4.2DP4.1DP4.0
RW RW RW RW RW RW RW RW
DP4.y Port Direction Register DP4 Bit y
DP4.y = 0: Port line P4.y is an input (high-impedance)
DP4.y = 1: Port line P4.y is an output
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - ODP4.7 ODP4.6 - - - - - -
RW RW
ODP4.y Port 4 Open Drain Control Register Bit y
ODP4.y = 0: Port line P4.y output driver in push/pull mode
ODP4.y = 1: Port line P4.y output driver in open drain mode if P4.y is not a segment
address line output