CY8C21312, CY8C21512
Automotive PSoC
®
Programmable System-on-Chip™
Features
■
❐
Automotive Electronics Council (AEC) Q100 qualified
■
Powerful Harvard-architecture processor
❐
M8C processor speeds up to 24 MHz
❐
Low power at high speed
❐
Operating voltage: 3.0 V to 5.25 V
❐
Automotive temperature range: –40
C
to +85
C
■
Advanced peripherals
®
❐
One CapSense block:
• Provides configurable capacitive sensing elements
• Supports combination of CapSense buttons, sliders,
touchpads, and proximity sensors
®
❐
One limited digital PSoC block provides:
• 8-bit timer, counter, or pulse-width modulator (PWM)
• Half-duplex UART
• SPI slave
• Connectable to all general purpose I/O (GPIO) pins
■
Flexible on-chip memory
❐
8 KB flash program storage
❐
512 bytes SRAM data storage
❐
In-system serial programming (ISSP)
❐
Partial flash updates
❐
Flexible protection modes
❐
EEPROM emulation in flash
■
Complete development tools
❐
Free development software (PSoC Designer™)
❐
Full-featured in-circuit emulator (ICE) and programmer
❐
Full-speed emulation
❐
Complex breakpoint structure
❐
128 KB trace memory
■
Precision, programmable clocking
❐
Internal ±5% 24 MHz oscillator
❐
Internal low-speed, low-power oscillator for Watchdog and
Sleep functionality
❐
Optional external oscillator, up to 24 MHz
■
Programmable pin configurations
❐
25 mA sink, 10 mA drive on all GPIOs
■
■
Pull-up, pull-down, high Z, strong, or open drain drive modes
on all GPIOs
❐
Analog input on all GPIOs
❐
Configurable interrupt on all GPIOs
Versatile analog mux
❐
Common internal analog bus
❐
Simultaneous connection of I/O combinations
Additional system resources
2
❐
Inter-Integrated Circuit (I C™) master, slave, or multi-master
operation up to 400 kHz
❐
Watchdog and sleep timers
❐
User-configurable low-voltage detection (LVD)
❐
Integrated supervisory circuit
❐
On-chip precision voltage reference
Port 3
Port 2
Port 1
Port 0
Logic Block Diagram
PSoC CORE
System Bus
Global Digital
Interconnect
SRAM
512B
Interrupt
Controller
SROM
Global Analog Interconnect
Flash 8K
Sleep and
Watchdog
CPU Core (M8C)
Multiple Clock Sources
(Includes IMO, ILO, PLL, and ECO)
DIGITAL SYSTEM
Digital Block
ANALOG SYSTEM
Analog Input
Muxing
CapSense Block
Digital
Resources
Analog
Resources
Digital
Clocks
POR and LVD
I
2
C
System Resets
Internal
Voltage
Ref.
SYSTEM RESOURCES
Cypress Semiconductor Corporation
Document Number: 001-63745 Rev. *D
•
198 Champion Court
•
San Jose
,
CA 95134-1709
• 408-943-2600
Revised November 4, 2014
CY8C21312, CY8C21512
Contents
PSoC Functional Overview .............................................. 3
The PSoC Core ........................................................... 3
The Digital System ...................................................... 3
The Analog System ..................................................... 4
Additional System Resources ..................................... 4
PSoC Device Characteristics ...................................... 5
Getting Started .................................................................. 5
Application Notes ........................................................ 5
Development Kits ........................................................ 5
Training ....................................................................... 5
CYPros Consultants .................................................... 5
Solutions Library .......................................................... 5
Technical Support ....................................................... 5
Development Tools .......................................................... 6
PSoC Designer Software Subsystems ........................ 6
Designing with PSoC Designer ....................................... 7
Select Components ..................................................... 7
Configure Components ............................................... 7
Organize and Connect ................................................ 7
Generate, Verify, and Debug ....................................... 7
Pinouts .............................................................................. 8
20-Pin Part Pinout ...................................................... 8
28-Pin Part Pinout ....................................................... 9
Registers ......................................................................... 10
Register Conventions ................................................ 10
Register Mapping Tables .......................................... 10
Electrical Specifications ................................................ 13
Absolute Maximum Ratings ....................................... 14
Operating Temperature ............................................. 14
DC Electrical Characteristics ..................................... 15
AC Electrical Characteristics ..................................... 18
Packaging Information ................................................... 23
Packaging Dimensions .............................................. 23
Thermal Impedances ................................................. 24
Solder Reflow Specifications ..................................... 24
Tape and Reel Information ........................................ 25
Development Tool Selection ......................................... 27
Software .................................................................... 27
Development Kits ...................................................... 27
Evaluation Tools ........................................................ 27
Device Programmers ................................................. 28
Accessories (Emulation and Programming) .............. 28
Ordering Information ...................................................... 29
Ordering Code Definitions ......................................... 29
Acronyms ........................................................................ 30
Reference Documents .................................................... 30
Document Conventions ................................................. 31
Units of Measure ....................................................... 31
Numeric Conventions .................................................... 31
Glossary .......................................................................... 31
Document History Page ................................................. 36
Sales, Solutions, and Legal Information ...................... 37
Worldwide Sales and Design Support ....................... 37
Products .................................................................... 37
PSoC Solutions ......................................................... 37
Cypress Developer Community ................................. 37
Technical Support ..................................................... 37
Document Number: 001-63745 Rev. *D
Page 2 of 37
CY8C21312, CY8C21512
PSoC Functional Overview
The PSoC family consists of many devices with on-chip
controllers. These devices are designed to replace multiple
traditional microcontroller unit (MCU)-based system
components with one, low-cost single-chip programmable
component. A PSoC device includes configurable blocks of
analog and digital logic, and programmable interconnect. This
architecture makes it possible for you 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, as illustrated in the
“Logic Block
Diagram”
on page 1, comprises of four main areas: the core, the
system resources, the digital system, and the analog system.
Configurable global bus resources allow all the device resources
to be combined into a complete custom system. Each
CY8C21x12 device includes one limited digital block and one
CapSense block. Depending on the PSoC package, up to 24
GPIOs are also included. The GPIOs provide access to the
global digital and analog interconnects.
The Digital System
The Digital System is composed of one digital block. This block
is an 8-bit resource that can implement various 8-bit digital
peripherals. Digital peripheral configurations include those listed.
■
■
■
■
■
■
PWM (8-bit)
Counter (8-bit)
Timer (8-bit)
Half-duplex 8-bit UART with selectable parity
SPI slave
I
2
C master, slave, or multi-master (implemented in a dedicated
I
2
C block)
The digital block can be connected to any GPIO through a series
of global buses that can route any signal to any pin. The buses
also allow for signal multiplexing and for performing logic opera-
tions. This configurability frees your designs from the constraints
of a fixed peripheral controller.
Figure 1. Digital System Block Diagram
Port 3
Port 2
Port 1
Port 0
The 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, and an internal
main oscillator (IMO) and internal low-speed oscillator (ILO). The
CPU core, called the M8C, is a powerful processor with speeds
up to 24 MHz. The M8C is a four-million instructions per second
(MIPS) 8-bit Harvard-architecture microprocessor.
System Resources provide additional capability, such as digital
clocks for increased flexibility, I
2
C functionality for implementing
an I
2
C master, slave, or multi-master, an internal voltage
reference that provides an absolute value of 1.3 V to a number
of PSoC subsystems, and various system resets supported by
the M8C.
The Digital System is composed of a programmable limited
digital block and fixed-function digital resources inside the
CapSense block. The limited digital block can be configured into
a number of digital peripherals. The fixed-function digital
resources in the CapSense block provide external modulation
signals, measurement timing, and measurement conversion.
The digital resources can be connected to the GPIO through a
series of global buses that provide very flexible routing options.
The Analog System is composed of a comparator and a filter that
are used in the CapSense block to implement capacitive sensing
measurement.
8
8
Digital Clocks
From Core
To System Bus
DIGITAL SYSTEM
Digital Array
Row 0
Row Input
Configuration
CapSense0
LDB0
Analog
Digital
3
4
Row Output
Configuration
8
8
GIE[7:0]
GIO[7:0]
Global Digital
Interconnect
GOE[7:0]
GOO[7:0]
Document Number: 001-63745 Rev. *D
Page 3 of 37
CY8C21312, CY8C21512
The Analog System
The Analog System is composed of analog resources inside of
the CapSense block. These resources are used to implement a
flexible capacitive sensing and measurement module. The
analog resources in the CapSense block are listed.
■
■
■
The Analog Multiplexer System
The Analog Mux Bus can connect to every GPIO pin. Pins can
be connected to the bus individually or in any combination. The
bus also connects to the analog system. 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:
■
■
■
Comparator used in capacitance-to-digital conversion
Fixed, absolute reference or adjustable, ratiometric reference
can be used with the comparator
Low-pass filter converts a digital bit stream into the adjustable,
ratiometric analog reference
Track pad, finger sensing.
Chip-wide mux that allows analog input from any I/O pin.
Crosspoint connection between any I/O pin combination.
Figure 2. Analog System Block Diagram
Additional System Resources
System resources, some of which have been previously listed,
provide additional capability useful for complete systems. Brief
statements describing the merits of each system resource are
presented.
■
Analog System
CapSense0
Analog
V
REF
CMP
To Digital
Resources
All I/O
Digital clock dividers provide three customizable clock
frequencies for use in applications. The clocks can be routed
to both the digital and analog systems.
The I
2
C module provides communication up to 400 kHz over
two wires. Slave, master, and multi-master modes are all
supported.
LVD interrupts can signal the application of falling voltage
levels, while the advanced power-on reset (POR) circuit
eliminates the need for a system supervisor.
An internal 1.3 V voltage reference provides an absolute
reference for the analog system.
Versatile analog multiplexer system.
■
■
...
■
■
Document Number: 001-63745 Rev. *D
Page 4 of 37
CY8C21312, CY8C21512
PSoC Device Characteristics
Depending on your PSoC device characteristics, the digital and analog systems can have a varying number of digital and analog
blocks.
Table 1
lists the resources available for specific PSoC device groups. The PSoC device covered by this datasheet is highlighted
in
Table 1
Table 1. PSoC Device Characteristics
PSoC Part
Number
CY8C29x66
[1]
CY8C28xxx
CY8C27x43
CY8C24x94
[1]
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
Digital
Rows
4
up to 3
2
1
1
1
2
1
Digital
Blocks
16
up to 12
8
4
4
4
8
4
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
Analog
Outputs
4
up to 4
4
2
2
2
0
0
Analog
Columns
4
up to 6
4
2
2
2
4
4
Analog
Blocks
12
up to
12 + 4
[2]
12
6
6
4
6
6
[2]
[2]
SRAM
Size
2K
1K
256
1K
256
256
1K
512
Flash
Size
32 K
16 K
16 K
16 K
4K
8K
16 K
8K
CY8C24x23A
[1]
CY8C23x33
CY8C22x45
CY8C21x45
[1]
[1]
CY8C21x34
[1]
CY8C21x23
up to 28
up to 16
1
1
4
4
28
up to 8
0
0
2
2
4
[2]
4
[2]
512
256
8K
4K
CY8C21x12
[1]
CY8C20x34
[1]
up to 24
up to 28
up to 36
1
0
0
1
[2]
0
0
24
up to 28
up to 36
0
0
0
0
0
0
1
[2]
3
[2,3]
512
512
up to 2 K
8K
8K
up to 32 K
CY8C20xx6
3
[2,3]
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.
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,
covers a wide variety of topics and skill levels to assist you in
your designs.
Notes
1. Automotive qualified devices available in this group.
2. Limited analog functionality.
3. Two analog blocks and one CapSense
®
block.
Document Number: 001-63745 Rev. *D
Page 5 of 37