CY8C20134, CY8C20234, CY8C20334
CY8C20434, CY8C20534, CY8C20634
PSoC
®
Programmable System-on-Chip™
PSoC
®
Programmable System-on-Chip™
Features
■
Low power CapSense
®
block
❐
Configurable capacitive sensing elements
❐
Supports combination of CapSense buttons, sliders,
touchpads, and proximity sensors
Powerful Harvard-architecture processor
❐
M8C processor speeds running up to 12 MHz
❐
Low power at high speed
❐
Operating voltage: 2.4 V to 5.25 V
❐
Industrial temperature range: –40 °C to +85 °C
Flexible on-chip memory
❐
8 KB flash program storage 50,000 erase/write cycles
❐
512-Bytes SRAM data storage
❐
Partial flash updates
❐
Flexible protection modes
❐
Interrupt controller
❐
In-system serial programming (ISSP)
Complete development tools
❐
Free development tool (PSoC Designer™)
❐
Full-featured, in-circuit emulator, and programmer
❐
Full-speed emulation
❐
Complex breakpoint structure
❐
128 KB trace memory
Precision, programmable clocking
❐
Internal ±5.0% 6- / 12-MHz main oscillator
❐
Internal low speed oscillator at 32 kHz for watchdog and sleep
Programmable pin configurations
❐
Pull-up, high Z, open-drain, and CMOS drive modes on all
GPIOs
❐
Up to 28 analog inputs on all GPIOs
❐
Configurable inputs on all GPIOs
❐
20-mA sink current on all GPIOs
❐
Selectable, regulated digital I/O on port 1
• 3.0 V, 20 mA total port 1 source current
• 5 mA strong drive mode on port 1 versatile analog mux
❐
Common internal analog bus
❐
Simultaneous connection of I/O combinations
❐
Comparator noise immunity
❐
Low-dropout voltage regulator for the analog array
■
■
Additional system resources
❐
Configurable communication speeds
• I
2
C: selectable to 50 kHz, 100 kHz, or 400 kHz
• SPI: configurable between 46.9 kHz and 3 MHz
2
❐
I C slave
❐
SPI master and SPI slave
❐
Watchdog and sleep timers
❐
Internal voltage reference
❐
Integrated supervisory circuit
■
Logic Block Diagram
Port 3
Port 2
Port 1
Port 0
Config LDO
PSoC
CORE
System Bus
■
Global Analog Interconnect
SRAM
512 Bytes
Interrupt
Controller
SROM
Flash 8K
Sleep and
Watchdog
CPU Core
(M8C)
■
6/12 MHz Internal Main Oscillator
■
ANALOG
SYSTEM
CapSense
Block
Analog
Ref.
I2C Slave/SPI
Master-Slave
POR and LVD
System Resets
Analog
Mux
SYSTEM RESOURCES
Cypress Semiconductor Corporation
Document Number: 001-05356 Rev. *O
•
198 Champion Court
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised June 13, 2011
[+] Feedback
CY8C20134, CY8C20234, CY8C20334
CY8C20434, CY8C20534, CY8C20634
Contents
PSoC Functional Overview .............................................. 3
PSoC Core .................................................................. 3
CapSense Analog System .......................................... 3
Additional System Resources ..................................... 4
PSoC Device Characteristics ...................................... 4
Getting Started .................................................................. 5
Application Notes ........................................................ 5
Development Kits ........................................................ 5
Training ....................................................................... 5
CYPros Consultants .................................................... 5
Solutions Library .......................................................... 5
Technical Support ....................................................... 5
Development Tools .......................................................... 5
PSoC Designer Software Subsystems ........................ 5
Designing with PSoC Designer ....................................... 6
Select User Modules ................................................... 6
Configure User Modules .............................................. 6
Organize and Connect ................................................ 6
Generate, Verify, and Debug ....................................... 6
Pin Information ................................................................. 7
8-Pin SOIC Pinout ....................................................... 7
16-Pin SOIC Pinout ..................................................... 8
48-Pin OCD Part Pinout .............................................. 9
16-Pin Part Pinout ..................................................... 11
24-Pin Part Pinout ..................................................... 12
32-Pin Part Pinout ..................................................... 13
28-Pin Part Pinout ..................................................... 15
30-Ball Part Pinout .................................................... 16
Electrical Specifications ................................................ 17
Absolute Maximum Ratings ....................................... 17
Operating Temperature ............................................. 18
DC Electrical Characteristics ..................................... 18
AC Electrical Characteristics ..................................... 23
Packaging Dimensions .................................................. 30
Thermal Impedances ................................................. 35
Solder Reflow Specifications ..................................... 35
Development Tool Selection ......................................... 36
Software .................................................................... 36
Development Kits ...................................................... 36
Evaluation Tools ............................................................. 36
Device Programmers ................................................. 37
Accessories (Emulation and Programming) .............. 37
Ordering Information ...................................................... 38
Ordering Code Definitions ......................................... 38
Acronyms ........................................................................ 39
Acronyms Used ......................................................... 39
Reference Documents .................................................... 39
Document Conventions ................................................. 40
Units of Measure ....................................................... 40
Numeric Conventions ................................................ 40
Glossary .......................................................................... 40
Document History Page ................................................. 45
Sales, Solutions, and Legal Information ...................... 47
Worldwide Sales and Design Support ....................... 47
Products .................................................................... 47
PSoC Solutions ......................................................... 47
Document Number: 001-05356 Rev. *O
Page 2 of 47
[+] Feedback
CY8C20134, CY8C20234, CY8C20334
CY8C20434, CY8C20534, CY8C20634
PSoC Functional Overview
The PSoC family consists of many
Programmable
System-on-Chips with On-Chip Controller
devices. These
devices are designed to replace multiple traditional MCU based
system components with one low cost single chip programmable
component. A PSoC device includes configurable analog and
digital blocks and programmable interconnect. This architecture
enables the user to create customized peripheral configurations
to match the requirements of each individual application.
Additionally, a fast CPU, flash program memory, SRAM data
memory, and configurable I/O are included in a range of
convenient pinouts.
The PSoC architecture for this device family, as shown in
Figure 1,
consists of three main areas: the Core, the System
Resources, and the CapSense Analog System. A common
versatile bus enables connection between I/O and the analog
system. Each CY8C20x34 PSoC device includes a dedicated
CapSense block that provides sensing and scanning control
circuitry for capacitive sensing applications. Depending on the
PSoC package, up to 28 general purpose I/O (GPIO) are also
included. The GPIO provide access to the MCU and analog mux.
Figure 1. Analog System Block Diagram
ID AC
Analog Global Bus
Vr
R eferenc e
Buffer
C internal
C om parator
Mux
Mux
PSoC Core
The PSoC Core is a powerful engine that supports a rich
instruction set. It encompasses SRAM for data storage, an
interrupt controller, sleep and watchdog timers, IMO , and ILO.
The CPU core, called the M8C, is a powerful processor with
speeds up to 12 MHz. The M8C is a two MIPS, 8-bit
Harvard-architecture microprocessor.
System Resources provide additional capability such as a
configurable I
2
C slave or SPI master-slave communication
interface and various system resets supported by the M8C.
The Analog System consists of the CapSense PSoC block and
an internal 1.8 V analog reference. Together they support capac-
itive sensing of up to 28 inputs.
R efs
C ap Sens e C ounters
C SC LK
IMO
C apSens e
C lock Selec t
R elaxation
O s c illator
(RO)
CapSense Analog System
The Analog System contains the capacitive sensing hardware.
Several hardware algorithms are supported. This hardware
performs capacitive sensing and scanning without requiring
external components. Capacitive sensing is configurable on
each GPIO pin. Scanning of enabled CapSense pins is
completed quickly and easily across multiple ports.
Analog Multiplexer System
The Analog Mux Bus connects to every GPIO pin. Pins are
connected to the bus individually or in any combination. The bus
also connects to the analog system for analysis with the
CapSense block comparator.
Switch control logic enables selected pins to precharge
continuously under hardware control. This enables capacitive
measurement for applications such as touch sensing. Other
multiplexer applications include:
■
■
■
Complex capacitive sensing interfaces such as sliders and
touch pads
Chip-wide mux that enables analog input from any I/O pin
Crosspoint connection between any I/O pin combinations
Document Number: 001-05356 Rev. *O
Page 3 of 47
[+] Feedback
CY8C20134, CY8C20234, CY8C20334
CY8C20434, CY8C20534, CY8C20634
Additional System Resources
System Resources provide additional capability useful to
complete systems. Additional resources include low voltage
detection and power on reset. Brief statements describing the
merits of each system resource follow:
■
■
Low voltage detection (LVD) interrupts signal the application of
falling voltage levels, while the advanced POR (Power On
Reset) circuit eliminates the need for a system supervisor.
An internal 1.8 V reference provides an absolute reference for
capacitive sensing.
The 5 V maximum input, 3 V fixed output, low dropout regulator
(LDO) provides regulation for I/Os. A register controlled bypass
mode enables the user to disable the LDO.
The I
2
C slave or SPI master-slave module provides 50/100/400
kHz communication over two wires. SPI communication over
three or four wires run at speeds of 46.9 kHz to 3 MHz (lower
for a slower system clock).
■
■
PSoC Device Characteristics
Depending on your PSoC device characteristics, the digital and analog systems can have 16, 8, or 4 digital blocks, and 12, 6, or 4
analog blocks.
Table 1
lists the resources available for specific PSoC device groups. The PSoC device covered by this datasheet is
highlighted.
Table 1. PSoC Device Characteristics
PSoC Part
Number
CY8C29x66
CY8C28xxx
CY8C27x43
CY8C24x94
CY8C24x23A
CY8C23x33
CY8C22x45
CY8C21x45
CY8C21x34
CY8C21x23
CY8C20x34
CY8C20xx6
Digital
I/O
up to 64
up to 44
up to 44
up to 56
up to 24
up to 26
up to 38
up to 24
up to 28
up to 16
up to 28
up to 36
Digital
Rows
4
up to 3
2
1
1
1
2
1
1
1
0
0
Digital
Blocks
16
up to 12
8
4
4
4
8
4
4
4
0
0
Analog
Inputs
up to 12
up to 44
up to 12
up to 48
up to 12
up to 12
up to 38
up to 24
up to 28
up to 8
up to 28
up to 36
Analog
Outputs
4
up to 4
4
2
2
2
0
0
0
0
0
0
Analog
Columns
4
up to 6
4
2
2
2
4
4
2
2
0
0
Analog
Blocks
12
up to
12 + 4
[1]
12
6
6
4
6
[1]
6
4
[1]
[1]
SRAM
Size
2K
1K
256
1K
256
256
1K
512
512
256
512
up to
2K
Flash
Size
32 K
16 K
16 K
16 K
4K
8K
16 K
8K
8K
4K
8K
up to
32 K
4
[1]
3
[1,2]
3
[1,2]
Notes
1. Limited analog functionality
2. Two analog blocks and one CapSense
®
.
Document Number: 001-05356 Rev. *O
Page 4 of 47
[+] Feedback
CY8C20134, CY8C20234, CY8C20334
CY8C20434, CY8C20534, CY8C20634
Getting Started
For in-depth information, along with detailed programming
details, see the
PSoC
®
Technical Reference Manual.
For up-to-date ordering, packaging, and electrical specification
information, see the latest
PSoC device datasheets
on the web.
covers a wide variety of topics and skill levels to assist you in
your designs.
CYPros Consultants
Certified PSoC consultants offer everything from technical
assistance to completed PSoC designs. To contact or become a
PSoC consultant go to the
CYPros Consultants
web site.
Application Notes
Cypress application notes
are an excellent introduction to the
wide variety of possible PSoC designs.
Solutions Library
Visit our growing
library of solution focused designs.
Here you
can find various application designs that include firmware and
hardware design files that enable you to complete your designs
quickly.
Development Kits
PSoC Development Kits
are available online from and through a
growing number of regional and global distributors, which
include Arrow, Avnet, Digi-Key, Farnell, Future Electronics, and
Newark.
Technical Support
Technical support
– including a searchable Knowledge Base
articles and technical forums – is also available online. If you
cannot find an answer to your question, call our Technical
Support hotline at 1-800-541-4736.
Training
Free PSoC technical training
(on demand, webinars, and
workshops), which is available online via
www.cypress.com,
Development Tools
PSoC Designer™ is the revolutionary integrated design
environment (IDE) that you can use to customize PSoC to meet
your specific application requirements. PSoC Designer software
accelerates system design and time to market. Develop your
applications using a library of precharacterized analog and digital
peripherals (called user modules) in a drag-and-drop design
environment. Then, customize your design by leveraging the
dynamically generated application programming interface (API)
libraries of code. Finally, debug and test your designs with the
integrated debug environment, including in-circuit emulation and
standard software debug features. PSoC Designer includes:
■
■
■
■
■
■
■
the user modules for your chosen application and connect them
to each other and to the proper pins. Then generate your project.
This prepopulates your project with APIs and libraries that you
can use to program your application.
The tool also supports easy development of multiple configura-
tions and dynamic reconfiguration. Dynamic reconfiguration
makes it possible to change configurations at run time. In
essence, this allows you to use more than 100 percent of PSoC's
resources for an application.
Code Generation Tools
The code generation tools work seamlessly within the
PSoC Designer interface and have been tested with a full range
of debugging tools. You can develop your design in C, assembly,
or a combination of the two.
Assemblers.
The assemblers allow you to merge assembly
code seamlessly with C code. Link libraries automatically use
absolute addressing or are compiled in relative mode, and are
linked with other software modules to get absolute addressing.
C Language Compilers.
C language compilers are available
that support the PSoC family of devices. The products allow you
to create complete C programs for the PSoC family devices. The
optimizing C compilers provide all of the features of C, tailored
to the PSoC architecture. They come complete with embedded
libraries providing port and bus operations, standard keypad and
display support, and extended math functionality.
Debugger
PSoC Designer has a debug environment that provides
hardware in-circuit emulation, allowing you to test the program in
a physical system while providing an internal view of the PSoC
device. Debugger commands allow you to read and program and
read and write data memory, and read and write I/O registers.
You can read and write CPU registers, set and clear breakpoints,
and provide program run, halt, and step control. The debugger
Application editor graphical user interface (GUI) for device and
user module configuration and dynamic reconfiguration
Extensive user module catalog
Integrated source-code editor (C and assembly)
Free C compiler with no size restrictions or time limits
Built-in debugger
In-circuit emulation
Built-in support for communication interfaces:
2
❐
Hardware and software I C slaves and masters
❐
Full-speed USB 2.0
❐
Up to four full-duplex universal asynchronous receiver/trans-
mitters (UARTs), SPI master and slave, and wireless
PSoC Designer supports the entire library of PSoC 1 devices and
runs on Windows XP, Windows Vista, and Windows 7.
PSoC Designer Software Subsystems
Design Entry
In the chip-level view, choose a base device to work with. Then
select different onboard analog and digital components that use
the PSoC blocks, which are called user modules. Examples of
user modules are ADCs, DACs, amplifiers, and filters. Configure
Document Number: 001-05356 Rev. *O
Page 5 of 47
[+] Feedback