
PRELIMINARY
PSoC®3: CY8C38 Family Data Sheet
Document Number: 001-11729 Rev. *I
Page 32 of 100
6.4.1 Drive Modes
Each GPIO and SIO pin is individually configurable into one of
the eight drive modes listed in Table 6-6. Three configuration bits
are used for each pin (DM[2:0]) and set in the PRTxDM[2:0]
registers. Figure 6-9 depicts a simplified pin view based on each
of the eight drive modes. Table 6-6 shows the I/O pin’s drive state
based on the port data register value or digital array signal if
bypass mode is selected. Note that the actual I/O pin voltage is
determined by a combination of the selected drive mode and the
load at the pin. For example, if a GPIO pin is configured for
resistive pull up mode and driven high while the pin is floating,
the voltage measured at the pin is a high logic state. If the same
GPIO pin is externally tied to ground then the voltage unmea-
sured at the pin is a low logic state.
Figure 6-9. Drive Mode
High Impedance Analog
The default reset state with both the output driver and digital
input buffer turned off. This prevents any current from flowing
in the I/O’s digital input buffer due to a floating voltage. This
state is recommended for pins that are floating or that support
an analog voltage. High impedance analog pins do not provide
digital input functionality.
To achieve the lowest chip current in sleep modes, all I/Os
must either be configured to the high impedance analog mode,
or have their pins driven to a power supply rail by the PSoC
device or by external circuitry.
High Impedance Digital
The input buffer is enabled for digital signal input. This is the
standard high impedance (HiZ) state recommended for digital
inputs.
Table 6-6. Drive Modes
Diagram
Drive Mode
PRTxDM2
PRTxDM1
PRTxDM0
PRTxDR = 1
PRTxDR = 0
0
High impedence analog
0
0
0
High-Z
High-Z
1
High Impedance digital
0
0
1
High-Z
High-Z
2
Resistive pull up
0
1
0
Res High (5K)
Strong Low
3
Resistive pull down
0
1
1
Strong High
Res Low (5K)
4
Open drain, drives low
1
0
0
High-Z
Strong Low
5
Open drain, drive high
1
0
1
Strong High
High-Z
6
Strong drive
1
1
0
Strong High
Strong Low
7
Resistive pull up and pull down
1
1
1
Res High (5K)
Res Low (5K)
High Impedance
Analog
PS
DR
PS
DR
PS
DR
0.
High Impedance
Digital
1.
Resistive
Pull Up
2.
Resistive
Pull Down
3.
Open Drain,
Drives Low
4.
Open Drain,
Drives High
5.
Strong Drive
6.
Resistive
Pull Up and Down
7.
Vio
Pin
Pin
Pin
Vio
Pin
Vio
Pin
Vio
Pin
Vio
Pin
Pin
PS
DR
PS
DR
PS
DR
PS
DR
PS
DR
[+] Feedback