Cypress Semiconductor Corporation•198 Champion Court•San Jose, CA 95134-1709•408-943-2600
Document Number: 001-13105 Rev. ** Revised June 12, 2007
Overview
Block Diagram
Port 7 Port 6 Port 5 Port 4 Port 3 Port 2 Port 1 Port 0
SYSTEM BUS
CY8CLED16
Analog
Drivers
Global Digital Interconnect
SRAM
2K
Interrupt
Controller
SROMFlash 32K
CPU Core (M8C)
Multiple Clock Sources
(Includes IMO, ILO, PLL, and ECO)
DIGITAL SYSTEM
Digital
Block
Array
Global Analog Interconnect
PSoC CORE
Sleep and
Watchdog
ANALOG SYSTEM
Analog
Ref.
Analog
Block
Array
Analog
Input
Muxing
Digital
Clocks
Two
Multiply
Accums.
Decimator
2
I C
POR and LVD
System Resets
Internal
Voltage
Ref.
Switch
Mode
Pump
SYSTEM RESOURCES
Document Number: 001-13105 Rev. **Page 2 of 39
CY8CLED16
EZ-Color Functional Overview
Cypress' EZ-Color family of devices offers the ideal control
solution for High Brightness LED applications requiring intelligent dimming control. EZ-Color devices combine the power and
flexibility of PSoC (Programmable System-on-Chip™); with
Cypress' PrISM (precise illumination signal modulation)
modulation technology providing lighting designers a fully
customizable and integrated lighting solution platform.
The EZ-Color family supports up to 16 independent LED
channels with up to 32 bits of resolution per channel, enabling
lighting designers the flexibility to choose the LED array size and
color quality. PSoC Express software, with lighting specific
drivers, can significantly cut development time and simplify
implementation of fixed color points through temperature and
LED binning compensation. EZ-Color's virtually limitless analog
and digital customization allow for simple integration of features
in addition to intelligent lighting, such as Battery Charging, Image
Stabilization, and Motor Control during the development
process. These features, along with Cypress' best-in-class
quality and design support, make EZ-Color the ideal choice for
intelligent HB LED control applications.
Target Applications
■ LCD Backlight
■ Large Signs
■ General Lighting
■ Architectural Lighting
■ Camera/Cell Phone Flash
■ Flashlights
The PSoC Core
The PSoC Core is a powerful engine that supports a rich feature
set. The core includes a CPU, memory , clocks, and configurable
GPIO (General Purpose IO).
The M8C CPU core is a powerful processor with speeds up to 48
MHz, providing a four MIPS 8-bit Harvard architecture microprocessor. The CPU utilizes an interrupt controller with 25 vectors,
to simplify programming of real time embedded events. Program
execution is timed and protected using the included Sle ep and
Watch Dog Timers (WDT).
Memory encompasses 32 KB of Flash for program storage, 2 KB
of SRAM for data storage, and up to 2 KB of EEPROM emulated
using the Flash. Program Flash utilizes four protection levels on
blocks of 64 bytes, allowing customized software IP protection.
The EZ-Color family incorporates flexible internal clock generators, including a 24 MHz IMO (int ernal main oscill ator) accurate
to 2.5% over temperature and voltage. The 24 MHz IMO can also
be doubled to 48 MHz for use by the digital system. A low power
32 kHz ILO (internal low speed oscillator) is provided for the
Sleep timer and WDT. If crystal accuracy is desired, the ECO
(32.768 kHz external crystal oscillator) is available for use as a
Real Time Clock (RTC) and can optionally generate a
crystal-accurate 24 MHz system clock using a PLL. The clocks,
together with programmable clock dividers (as a System
Resource), provide the flexibility to integrate almost any timing
requirement into the EZ-Color device.
EZ-Color GPIOs provide connection to the CPU, digital and
analog resources of the device. Each pin’s drive mode may be
selected from eight options, allowing great flexibility in external
interfacing. Every pin also has the capability to generate a
system interrupt on high level, low level, and change from last
read.
The Digital System
The Digital System is composed of 16 digital PSoC blocks. Each
block is an 8-bit resource that can be used alone or combined
with other blocks to form 8, 16, 24, and 32-bit peripherals, which
are called user module references. Digital peripheral configurations include those listed below.
■ PrISM (8 to 32 bit)
■ PWMs (8 to 32 bit)
■ PWMs with Dead band (8 to 32 bit)
■ Counters (8 to 32 bit)
■ Timers (8 to 32 bit)
■ UART 8 bit with selectable parity (up to 4)
■ SPI master and slave (up to 4 each)
■ I2C slave and multi-master (1 available as a System Resource)
■ Cyclical Redundancy Checker/Generator (8 to 32 bit)
■ IrDA (up to 4)
■ Generators (8 to 32 bit)
The digital blocks 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
operations. This configurability frees your designs from the
constraints of a fixed peripheral controller.
Digital blocks are provided in rows of four, where the number of
blocks varies by EZ-Color device family. This allows you the
optimum choice of system resources for your application. Family
resources are shown in the table titled EZ-Color Device Characteristics on page 4.
Document Number: 001-13105 Rev. **Page 3 of 39
CY8CLED16
Figure 1. Digital System Block Diagram
Port 7
Port 6
Port 5
Port 4
Port 3
Port 2
Port 1
Port 0
The Analog System
The Analog System is composed of 12 configurable blocks, each
comprised of an opamp circuit allowing the creation of complex
analog signal flows. Analog peripherals are very flexible and can
l
o
c
k
o
r
e
To System Bus
s
To Analog
System
D
i
g
i
t
a
l
C
F
r
C
o
m
DIGITAL SYSTEM
Digital PSoC Block Array
Row 0
DBB00 DBB01 DCB02 DCB03
Row Input
8
Configuration
Row 1
DBB10 DBB11 DCB12 DCB13
Row Input
Configuration
Configuration
Row Output
4
4
8
Configuration
4
Row Output
4
be customized to support specific application requirements.
Some of the more common EZ-Color analog functions (most
available as user modules) are listed below.
■ Analog-to-digital converters (up to 4, with 6- to 14-bit resolution,
selectable as Incremental, Delta Sigma, and SAR)
■ Filters (2, 4, 6, or 8 pole band-pass, low-pass, and notch)
■ Amplifiers (up to 4, with selectable gain to 48x)
■ Instrumentation amplifiers (up to 2, with selectable gain to 93x)
■ Comparators (up to 4, with 16 selectable thresholds)
88
■ DACs (up to 4, with 6- to 9-bit resolution)
■ Multiplying DACs (up to 4, with 6- to 9-bit resolution)
■ High current output drivers (four with 40 mA drive as a Core
Resource)
Row 2
DBB20 DBB21 DCB22 DCB23
Row Input
Configuration
Row 3
DBB30 DBB31 DCB32 DCB33
Row Input
Configuration
Configuration
4
Row Output
4
Configuration
Row Output
4
4
■ 1.3V reference (as a System Resource)
■ DTMF Dialer
■ Modulators
■ Correlators
■ Peak Detectors
■ Many other topologies possible
Analog blocks are provided in columns of three, which includes
one CT (Continuous Time) and two SC (Switched Capacitor)
GIE[7:0]
GIO[7:0]
Global D ig ital
Interconnect
GOE[7:0]
GOO[7:0]
blocks, as shown in the figure below.
Document Number: 001-13105 Rev. **Page 4 of 39
CY8CLED16
P0[7]
P0[5]
P0[3]
P0[1]
P2[3]
P2[1]
Figure 2. Analog System Block Diagram
RefIn
AGNDIn
Array Input Configuration
ACI0[1:0 ]ACI3[1:0 ]
ACB00ACB01
ACI1[1:0]ACI2[1:0]
Block Array
ACB02ACB03
P0[6]
P0[4]
P0[2]
P0[0]
P2[6]
P2[4]
P2[2]
P2[0]
Additional System Resources
System Resources, some of which have been previously listed,
provide additional capability useful to complete systems.
Resources include a multiplier, decimator, switch mode pump,
low voltage detection, and power on reset. Statements
describing the merits of each system resource are presented
below.
■ Digital clock dividers provide three customizable clock
frequencies for use in applications. The clocks can be routed
to both the digital and analog systems. Additional clocks can
be generated using digital PSoC blocks as clock dividers.
■ Multiply accumulate (MAC) provides fast 8-bit multiplier with
32-bit accumulate, to assist in general math and digital filters.
■ The decimator provides a custom hardware filter for digital
signal, processing applications including the creation of Delta
Sigma ADCs.
■ The I2C module provides 100 and 400 kHz communication over
two wires. Slave, master, and multi-master modes are all
supported.
■ Low Voltage Detection (LVD) interrupts can signal the appli-
cation of falling voltage levels, while the advanced POR (Power
On Reset) circuit eliminates the need for a system supervisor.
■ An internal 1.3 voltage reference provides an absolute
reference for the analog system, including ADCs and DACs.
■ An integrated switch mode pump (SMP) generates normal
operating voltages from a single 1.2V battery cell, providing a
low cost boost converter.
ASC10
Interface to
Digital System
M8C Interface (Address Bus, Data Bus, Etc.)
ASD11
ASC21
AGND
RefHi
RefLo
ASC12ASD13
ASD22ASC23ASD20
Analog Reference
Reference
Generators
AGNDIn
RefIn
Bandgap
Document Number: 001-13105 Rev. **Page 5 of 39
CY8CLED16
EZ-Color Device Characteristics
Depending on your EZ-Color device characteristics, the digital and analog systems can have 16, 8, or 4 digital blocks and 12, 6, or 4
analog blocks. The following table lists the resources available for specific EZ-Color device groups. The device covered by this data
sheet is shown in the highlighted row of the table.
The quickest path to understanding the EZ-Color silicon is by
reading this data sheet and using PSoC Express to create HB
LED applications. This data sheet is an overview of the EZ-Color
integrated circuit and presents specific pin, register, and
electrical specifications.
For up-to-date Ordering, Packaging, and Electrical Specification
information, reference the latest device data sheets on the web
at http://www.cypress.com/ez-color.
Development Kits
Development Kits are available from the following distributors:
Digi-Key, A vnet, Arrow , and Future. The Cypress Online Store at
opment kits, C compilers, and all accessories for PSoC development. Click on EZ-Color to view a current list of available
items.
Technical Training Modules
Free PSoC technical training modules are available for users
new to PSoC. Training modules cover designing, debugging,
advanced analog, CapSense, and HB LED. Go to
http://www.cypress.com/techtrain.
Consultants
Certified PSoC Consultants offer everything from technical
assistance to completed PSoC designs. To contact or become a
PSoC Consultant, go to the following Cypress support web site:
http://www.cypress.com/support/cypros.cfm.
Technical Support
PSoC application engineers take pride in fast and accurate
response. They can be reached with a 4-hour guaranteed
response at http://www.cypress.com/support/login.cfm.
Application Notes
A long list of application notes will assist you i n every aspe ct of
your design effort. To view the PSoC application notes, go to the
http://www.cypress.com web site and select Application Notes
under the Design Resources list located in the center of the web
page. Application notes are listed by date by default.
CapSense
Document Number: 001-13105 Rev. **Page 6 of 39
CY8CLED16
Development Tools
PSoC Express is a high-level design tool for creating embedded
systems with devices using Cypress's PSoC Mixed-Signal
technology. With PSoC Express you create a complete
embedded solution including all necessary on-chip peripherals,
block configuration, interrupt handling and application software
without writing a single line of assembly or C code.
PSoC Express solves design problems the way you think about
the system:
■ Select input and output devices based upon system require-
ments.
■ Add a communications interface and define its interface to
system (using registers).
■ Define when and how an output device chang es state based
upon any and all other system devices.
■ Based upon the design, automatically select one or more PSoC
Mixed-Signal Controllers that match system requirements.
Figure 3. PSoC Express
Most of the files associated with a project are automatically
generated by PSoC Express during the build process, but you
can make changes directly to the custom.c and custom.h files
and also add your own custom code to the project in the Project
Manager.
Application Editor
The Application Editor allows you to edit custom.c and custom.h
as well as any C or assembly language source code that you add
to your project. With PSoC Express you can create application
software without writing a single line of assembly or C code, but
you have a full featured application editor at your finger tips if you
want it.
Build Manager
The Build Manager gives you the ability to build the application
software, assign pins, and generate the data sheet, schematic,
and BOM for your project.
Board Monitor
The Board Monitor is a debugging tool designed to be used
while attached to a prototype board through a communication
interface that allows you to monitor changes in the various
design elements in real time.
The default communication for the board monitor is I
2
the CY3240-I2USB I
C to USB Bridge Debugging/Communica-
tion Kit.
2
C. It uses
PSoC Express Subsystems
Express Editor
The Express Editor allows you to create designs visually by
dragging and dropping inputs, outputs, communication interfaces, and other design elements, and then describing the logic
that controls them.
Project Manager
The Project Manager allows you to work with your applications
and projects in PSoC Express. A PSoC Express application is a
top level container for projects and their associated files. Each
project contains a design that uses a single PSoC device. An
application can contain multiple projects so if you are creating an
application that uses multiple PSoC devices you can keep all of
the projects together in a single application.
Tuners
A Tuner is a visual interface for the Board Monitor that allows
you to view the performance of the HB LED drivers on your test
board while your program is running, and manually override values and see the results.
Hardware Tools
In-Circuit Emulator
A low cost, high functionality ICE (In-Circuit Emulator) is
available for development support. This hardware has the
capability to program single devices.
The emulator consists of a base unit that connects to the PC by
way of the USB port. The base unit is universal and will operate
with all PSoC devices. Emulation pods for each device family are
available separately. The emulation pod takes the place of the
PSoC device in the target board and performs full speed (24
MHz) operation.
2
I
C to USB Bridge
2
C to USB Bridge is a quick and easy link from any design
The I
or application’s I
debugging and communication.
2
C bus to a PC via USB for design testing,
Document Number: 001-13105 Rev. **Page 7 of 39
Document Conventions
CY8CLED16
Acronyms Used
The following table lists the acronyms that are used in this
document.
AcronymDescription
ACalternating current
ADCanalog-to-digital converter
APIapplication programming interface
CPUcentral processing unit
CTcontinuous time
DACdigital-to-analog converter
DCdirect current
ECOexternal crystal oscillator
EEPROMelectrically erasable programmable read-only memory
FSRfull scale range
GPIOgeneral purpose IO
GUIgraphical user interface
HBMhuman body model
ICEin-circuit emulator
ILOinternal low speed oscillator
IMOinternal main oscillator
IOinput/output
IPORimprecise power on reset
LSbleast-significant bit
LVDlow voltage detect
MSbmost-significant bit
PCprogram counter
PLLphase-locked loop
PORpower on reset
PPORprecision power on reset
PSoC™Programmable System-on-Chip™
PWMpulse width modulator
SCswitched capacitor
SLIMOslow IMO
SMPswitch mode pump
SRAMstatic random access memory
Units of Measure
A units of measure table is located in the Electrical Specifications
section. Table 7 on page 15 lists all the abbreviations used to
measure the PSoC devices.
Numeric Naming
Hexidecimal numbers are represented with all letters in
uppercase with an appended lowercase ‘h’ (for example, ‘14h’ or
‘3Ah’). Hexidecimal numbers may also be represented by a ‘0x’
prefix, the C coding convention. Binary numbers have an
appended lowercase ‘b’ (e.g., 01010100b’ or ‘01000011b’).
Numbers not indicated by an ‘h’, ‘b’, or 0x are decimal.
Document Number: 001-13105 Rev. **Page 8 of 39
CY8CLED16
Pin Information
Pinouts
The CY8CLED16 device is available in three packages which are listed and illustrated in the following tables. Every port pin (labeled
with a “P”) is capable of Digital IO. However, Vss, Vdd, SMP, and XRES are not capable of Digital IO.
Vdd
P0[6], A, I
P0[4], A, IO
P0[2], A, IO
P0[0], A, I
P2[6], External VREF
P2[4], Extern a l AGND
P2[2], A, I
P2[0], A, I
XRES
P1[6]
P1[4], EXTCLK
P1[2]
P1[0], XTALout, I2C SDA
LEGEND: A = Analog, I = Input, and O = Output.
* These are the ISSP pins, which are not High Z at POR (Power On Reset).
LEGEND: A = Analog, I = Input, and O = Output.
* These are the ISSP pins, which are not High Z at POR (Power On Reset).
** The QFN package has a center pad that must be connected to ground (Vss).
Register Reference
CY8CLED16
Register Conventions
Abbreviations Used
The register conventions specific to this section are listed in the
following table.
Register Mapping Tables
This chapter lists the registers of the CY8CLED16 EZ-Color
device.
The device has a total register address space of 512 bytes. The
register space is referred to as IO space and is divided into two
banks. The XOI bit in the Flag register (CPU_F) determines
ConventionDescription
RRead register or bit(s)
WWrite register or bit(s)
LLogical register or bit(s)
CClearable register or bit(s)
#Access is bit specific
which bank the user is currently in. When the XOI bit is set the
user is in Bank 1.
Note In the following register mapping tables, blank fields are
reserved and should not be accessed.