
Parallel Ports
MOTOROLA
MC68328 DRAGONBALL PROCESSOR USER’S MANUAL
7-13
All 8 bits are implemented in the registers, and each is connected to the outside. As with
other ports, each bit can be individually configured, as needed. The programmer’s model for
port G is:
DIRECTION- DIR[7:0]
These bits control the pin directions. While high, the pins are outputs; while low, the pins
are inputs. These bits reset to 0 and have no function while the SELECT bits are low.
DATA- D[7:0]
These bits control or report the data on the pins while the associated SELECT bits are
high. While the DIRECTION bits are high, the DATA bits control the pins. While the DI-
RECTION bits are low, the levels on the pins are reported. These bits reset to 0 while the
SELECT bits are low. The data bits may be written at any time. Bits that are configured
as inputs will accept the written data but it will not be accessible until the respective pins
Table 7-5. Port K Bit Functions
Bit
Port Function Other Function
0
Bit 0
SPIM TXD
1
Bit 1
SPIM RXD
2
Bit 2
SPIM CLKO
3
Bit 3
SPIS EN
4
Bit 4
SPIS RXD
5
Bit 5
SPIS CLKI
6
Bit 6
PCMCIA CE2
7
Bit 7
PCMCIA CE1
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DIRECTION
DATA
DIR7
DIR6
DIR5
DIR4
DIR3
DIR2
DIR1
DIR0
D7
D6
D5
D4
D3
D2
D1
D0
Address: $FFFFF440
Reset Value: $0000
Figure 7-22. Port K Data/Direction Register
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PULLUP
SELECT
PU7
PU6
PU5
PU4
PU3
PU2
PU1
PU0
SEL7
SEL6
SEL5
SEL4
SEL3
SEL2
SEL1
SEL0
Address: $FFFFF442
Reset Value: $FFFF
Figure 7-23. Port K Select Register
Содержание DragonBall MC68328
Страница 5: ...vi MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 25: ...Overview 1 14 MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 45: ...System Integration Module 2 20 MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 103: ...Parallel Ports 7 16 MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 117: ...UART 8 14 MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 127: ...SPI Master 10 6 MC68328 DRAGONBALL PROCESSOR USER S MANUAL MOTOROLA ...
Страница 137: ...Electrical Characteristics PRELIMINARY MOTOROLA MC68328 DRAGONBALL PROCESSOR USER S MANUAL 13 4 ...