CY8C20X34 CYPRESS [Cypress Semiconductor], CY8C20X34 Datasheet - Page 56
![no-image](/images/no-image-200.jpg)
CY8C20X34
Manufacturer Part Number
CY8C20X34
Description
Technical Reference Manual (TRM)
Manufacturer
CYPRESS [Cypress Semiconductor]
Datasheet
1.CY8C20X34.pdf
(218 pages)
- Current page: 56 of 218
- Download datasheet (3Mb)
General Purpose IO (GPIO)
6.1.5.1
GPIO interrupts use the IOINT bit from the IO_CFG register.
The setting of IOINT determines the interrupt mode for all
GPIO.
Interrupt mode IOINT=0 means that the block will assert the
GPIO interrupt line (INTO) when the pin voltage is low, pro-
viding the block’s bit interrupt enable line is set (high).
Interrupt mode IOINT=1 means that the block will assert the
interrupt line (INTO) when the pin voltage is the opposite of
the last state read from the pin, providing the block’s bit
interrupt enable line is set high. This mode switches
between low mode and high mode, depending on the last
value that was read from the port during reads of the data
register (PRTxDR). If the last value read from the GPIO was
‘0’, the GPIO pin will subsequently be in Interrupt High
mode. If the last value read from the GPIO was ‘1’, the GPIO
will then be in Interrupt Low mode.
Table 6-1. GPIO Interrupt Modes
Figure 6-3
is set, and that the IOINT bit has been set to high. The
Change Interrupt mode relies on the value of an internal
read register to determine if the pin state has changed.
Therefore, the port that contains the GPIO in question must
be read during every interrupt service routine. If the port is
not read, the Interrupt mode will act as if it is in high mode
when the latch value is ‘0’ and low mode when the latch
value is ‘1’.
Figure 6-3. GPIO Interrupt Mode IOINT = 1
56
(a)
(c)
Pin State Waveform
Pin State Waveform
enable set
enable set
GPIO pin
GPIO pin
interrupt
interrupt
IE
0
0
1
1
assumes that the GIE is set, GPIO interrupt mask
IOINT
Last Value Read From Pin was ‘0’
Last Value Read From Pin was ‘1’
0
1
0
1
Interrupt
Interrupt
Interrupt Modes
occurs
occurs
Bit interrupt disabled, INTO de-asserted
Bit interrupt disabled, INTO de-asserted
Assert INTO when PIN = low
Assert INTO when PIN = change from last read
(b)
(d)
Pin State Waveform
Pin State Waveform
enable set
enable set
GPIO pin
GPIO pin
interrupt
interrupt
Description
Interrupt
Interrupt
occurs
occurs
6.1.6
GPIO pins can be configured to either output data through
CPU writes to the PRTxDR registers, or to bypass the port's
data register and output data from internal functions instead.
The bypass path is shown in
input, which is selected by the Alt Select input. These data
bypass options are selected in one of two ways.
For internal functions such as I2C and SPI, the hardware
automatically selects the bypass mode for the required pins
when the function is enabled. In addition, some bypass out-
puts are selected by the user through the OUT_P1 register.
For these, the pin is configured for data bypass when the
register bit is set high, which allows an internal signal to be
driven to the pin.
For all bypass modes, the desired drive mode of the pin
must be configured separately for each pin, with the
PRTxDM1 and PRTxDM0 registers.
Data Bypass
PSoC CY8C20x34 TRM, Version 1.0
Figure 6-1
by the Alt Data
Related parts for CY8C20X34
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![CY37256VP208-66NI](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
Cypress Semiconductor [5V, 3.3V, ISRTM High-Performance CPLDs]
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C0831V-167AC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
CY7C0831V-167ACCypress Semiconductor [FLEx18-TM 3.3V 32K/64K/128K/256K/512K x 18 Synchronous Dual-Port RAM]
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![PLDC20G10-35PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
CMOS Generic 24-Pin Reprogrammable Logic Device
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C1021-15VC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
64K x 16 Static RAM
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C130-55PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
1K x 8 Dual-Port Static Ram
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY62128LL-70SC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
128K x 8 static RAM, standby current 20uA, 70ns
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C182-25PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
8Kx9 Static RAM
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C182-35PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
8Kx9 Static RAM
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C171A-25PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
4K x 4 Static RAM with Separate I/O
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C150-12PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
1024 x 4 Static R/W RAM
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C433-30PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
256/512/1K/2K/4K x 9 Asynchronous FIFO
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C172A-25PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
4K x 4 Static RAM with Separate I/O
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C172A-15PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
4K x 4 Static RAM with Separate I/O
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C172A-35PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
4K x 4 Static RAM with Separate I/O
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet:
![CY7C166-20PC](/images/manufacturer_photos/0/1/180/cypress_semiconductor_corporation__tmb.jpg)
Part Number:
Description:
16K x 4 Static RAM
Manufacturer:
Cypress Semiconductor Corporation.
Datasheet: