130
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
PRTxDM2
0,03h
13.2.4
PRTxDM2
Port Drive Mode Bit 2 Register
This register is one of three registers whose combined value determines the unique Drive mode of each bit in a GPIO port.
In this register, there are eight possible drive modes for each port pin. Three mode bits are required to select one of these
modes, and these three bits are spread into three different registers (the
, and the PRTxDM2 register). The bit position of the affected port pin (for example, Pin[2] in Port 0) is the
same as the bit position of each of the three drive mode register bits that control the Drive mode for that pin (for example:
PRT0DM0[2], PRT0DM1[2], and PRT0DM2[2]). The three bits from the three registers are treated as a group. These are
referred to as DM2, DM1, and DM0, or together as DM[2:0].
All Drive mode bits are shown in the sub-table below ([
2
10] refers to the combination (in order) of bits in a given bit position);
however, this register only controls the
of the Drive mode.
For Port 5, the upper nibble of this register returns the last data bus value when read and should be masked off prior to using
this information. For additional information, refer to the
“Register Definitions” on page 76
in the GPIO chapter.
7:0
Drive Mode 2[7:0]
Bit 2 of the Drive mode, for each pin of an 8-bit GPIO port.
[2
10
]
Pin Output High Pin Output Low
Notes
0
00b
Strong
Resistive
0
01b
Strong
Strong
0
10b
High-Z
High-Z
Digital input enabled.
0
11b
Resistive
Strong
1
00b
Slow + strong
High-Z
1
01b
Slow + strong
Slow + strong
1
10b
High-Z
High-Z
Reset state. Digital input disabled for zero power.
1
11b
High-Z
Slow + strong
I
2
C Compatible mode.
Note
A bold digit, in the table, signifies that the digit is used in this register.
Individual Register Names and Addresses:
0,03h
PRT0DM2 : 0,03h
PRT1DM2 : 0,07h
PRT2DM2 : 0,0Bh
PRT3DM2 : 0,0Fh
PRT4DM2 : 0,13h
PRT5DM2 : 0,17h
7
6
5
4
3
2
1
0
Access : POR
RW : FFh
Bit Name
Drive Mode 2[7:0]
Bit
Name
Description
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...