Bidirectional Port Considerations - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
Table 6-10. Port Pin States After Reset and After Example Code Execution
Action or Code
Reset
LDB P x _DIR, #00011111B
LDB P x _MODE, #00000000B
LDB P x _REG, #10010011B
wk1 = weakly pulled high, HZ1 = high impedance (actually a "1" with an external pull-up).
6.3.4

Bidirectional Port Considerations

This section outlines special considerations for using the pins of these ports.
Port 1
Port 2
P2.2/EXTINT
P2.5/HOLD#
6-12
Px.7
Px.6
wk1
wk1
1
1
1
1
1
0
After reset, your software must configure the device to match the
external system. This is accomplished by writing appropriate config-
uration data into P1_MODE. Writing to P1_MODE not only
configures the pins but also turns off the transistor that weakly holds
the pins high (Q4 in Figure 6-2 on page 6-8). For this reason, even if
port 1 is to be used as it is configured at reset, you should still write
data into P1_MODE.
After reset, your software must configure the device to match the
external system. This is accomplished by writing appropriate config-
uration data into P2_MODE. Writing to P2_MODE not only
configures the pins but also turns off the transistor that weakly holds
the pins high (Q4 in Figure 6-2 on page 6-8). For this reason, even if
port 2 is to be used as it is configured at reset, you should still write
data into P2_MODE.
Writing to P2_MODE.2 sets the EXTINT interrupt pending bit. After
configuring the port pins, clear the interrupt pending register before
enabling interrupts. See "Design Considerations for External
Interrupt Inputs" on page 6-15.
8XC196Kx Only: If P2.5 is configured as a standard I/O port pin,
the device does not recognize signals on this pin as HOLD#. Instead,
the bus controller receives an internal HOLD signal. This enables the
device to access the external bus while it is performing I/O at P2.5.
Resulting Pin States
Px.5
Px.4
Px.3
wk1
wk1
wk1
1
wk1
wk1
1
HZ1
HZ1
0
HZ1
0
Px.2
Px.1
Px.0
wk1
wk1
wk1
wk1
wk1
wk1
HZ1
HZ1
HZ1
0
HZ1
HZ1

Advertisement

Table of Contents
loading

Table of Contents