
M44C510
TELEFUNKEN Semiconductors
Rev. A2, 13-Jan-98
16 (57)
2.2
Bidirectional Ports
With the exception of Port 6 and Port C, all other ports (0,
1, 4, 5, 7, A and B) are 4 bits wide. Port 6 and Port C have
a data width of 2 bits (bit 0 and bit 1). All these ports may
be used for data input or output. All ports are equipped
with Schmitt-trigger inputs and a variety of mask options
for open drain, open source and full complementary out-
puts and pull-up and pull-down transistors. All Port Data
Registers (PxDAT) are I/O mapped to the primary address
register of the respective port address, and the Port Data
Direction Register (PxDDR) to the corresponding
auxiliary register.
Port Data Register (PxDAT)
Primary register address: ’Port address’hex
Bit 3*
Bit 2
Bit 1
Bit 0
PxDAT
PxDAT3
PxDAT2
PxDAT1
PxDAT0
Reset value: 1111b
* Bit 3
→ MSB, bit 0 → LSB
Port Data Direction Register (PxDDR)
Auxiliary register address: ’Port address’hex
Bit 3
Bit 2
Bit 1
Bit 0
PxDDR
PxDDR3
PxDDR2
PxDDR1
PxDDR0
Reset value: 1111b
Value: 1111b means all pins in input mode
Table 6. Port Data Direction Register (PxDDR)
Code
3 2 1 0
Function
x x x 1
BPx0 in input mode
x x x 0
BPx0 in output mode
x x 1 x
BPx1 in input mode
x x 0 x
BPx1 in output mode
x 1 x x
BPx2 in input mode
x 0 x x
BPx2 in output mode
1 x x x
BPx3 in input mode
0 x x x
BPx3 in output mode
There are five different types of bidirectional ports:
D Type 1 (Ports 0 and 1) – 4-bit wide, bidirectional ports
with automatic full bus width direction switching.
D Type 2 (Ports 5 and 7) – 4-bit wide, Port C is a 2-bit
wide, bitwise programmable high drive I/O port.
D Type 3 (Ports A and B) – 4-bit wide, bitwise
programmable bidirectional ports with optional key-
board pull-ups.
D Type 4 (Port 6) – 2-bit wide, bitwise programmable
bidirectional ports with optional bus pullups and pro-
grammable interrupt logic.
D Type 5 (Port 4) – 4-bit wide, bitwise programmable
bidirectional port also provides the I/O interface to
Timer 0 and the Buzzer.