CY8C20X34 CYPRESS [Cypress Semiconductor], CY8C20X34 Datasheet - Page 184

no-image

CY8C20X34

Manufacturer Part Number
CY8C20X34
Description
Technical Reference Manual (TRM)
Manufacturer
CYPRESS [Cypress Semiconductor]
Datasheet
PRTxDM1
20.4.2
This register is one of three registers whose combined value determines the unique Drive mode of each bit in a GPIO port.
In register PRTxDM1 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 (PRTxDM1 and
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 below ([10] refers to the combination (in order) of bits in a given bit position);
however, this register only controls the most significant bit (MSb) of the Drive mode.
The upper nibble of the PRT3DM1 register will return the last data bus value when read and should be masked off prior to
using this information.
For additional information, refer to the
Bit
7:0
184
Individual Register Names and Addresses:
PRT0DM1 : 1,01h
Access : POR
Bit Name
1,01h
Drive Mode 1[7:0]
Name
PRTxDM1
Port Drive Mode Bit Register 1
7
PRT1DM1 : 1,05h
6
Description
Bit 1 of the Drive mode, for each of 8-port pins, for a GPIO port.
[1 0 ]
0 0b
0 1 b
1 0 b
1 1 b
Note A bold digit, in the table above, signifies that the digit is used in this register.
Register Definitions on page 57
Pull up
Strong
ITIZ
Open Drain Low
5
PRT2DM1 : 1,09h
Pin Output High
Resistive
Strong
High-Z
High-Z
4
Drive Mode 1[7:0]
RW : FF
in the GPIO chapter.
3
Pin Output Low
Strong
Strong
High-Z
Strong
PRTxDM0 on page
PSoC CY8C20x34 TRM, Version 1.0
PRT3DM1 : 1,0Dh
2
Reset state. Digital input
(PRTxDR register) set high.
Notes
disabled for zero power.
I2C compatible mode.
For digital inputs, use this
mode with data bit
1,01h
183). The bit position of
1
0

Related parts for CY8C20X34