enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H
212
1,00h
21.4
Bank 1 Registers
The following registers are all in bank 1 and are listed in address order. Registers that are in both Bank 0 and Bank 1 are
listed in address order in the section titled
21.4.1
PRTxDM0
Port Drive Mode Bit Registers 0
This register is one of two registers where the combined value determines the unique drive mode of each bit in a GPIO port.
In register PRTxDM0 there are four possible drive modes for each port pin. Two mode bits are required to select one of these
modes, and these two bits are spread into two different registers (PRTxDM0 and
). The bit position of
the effected port pin (for example, Pin[2] in Port 0) is the same as the bit position of each of the two Drive Mode register bits
that control the drive mode for that pin (for example, bit[2] in PRT0DM0 and bit[2] in PRT0DM1). The two bits from the two
registers are treated as a group. These are referred to as DM1 and DM0, or together as DM[1:0].
All drive mode bits are shown in the sub-table ([1
0
] refers to the combination (in order) of bits in a given bit position); however,
this register only controls the
The upper nibble of the PRT4DM0 register returns the last data bus value when read. You need to mask it off prior to using
this information. For additional information, refer to the
Register Definitions on page 56
in the GPIO chapter.
7:0
Drive Mode 0[7:0]
Bit 0 of the drive mode, for each of 8-port pins, for a GPIO port.
[
1
0]
Pin Output High
Pin Output Low
Notes
0
0
b
Resistive
Strong
0
1
b
Strong
Strong
1
0
b
High-Z
High-Z
Reset state. Digital input disabled for zero power.
1
1
b
High-Z
Strong
I2C compatible mode. For digital inputs, use this
mode with data bit (PRTxDR register) set high.
Note
A bold digit in the table signifies that the digit is used in this register.
Individual Register Names and Addresses:
1,00h
PRT0DM0 : 1,00h
PRT1DM0 : 1,04h
PRT2DM0 : 1,08h
PRT3DM0 : 1,0Ch
PRT4DM0 : 1,10h
7
6
5
4
3
2
1
0
Access : POR
RW : 00
Bit Name
Drive Mode 0[7:0]
Bit
Name
Description