Programmable System-on-Chip (PSoC )
General Description
PSoC
®
3: CY8C36 Family Datasheet
®
PSoC
®
3 is a true programmable embedded system-on-chip, integrating configurable analog and digital peripherals, memory, and a
microcontroller on a single chip. The PSoC 3 architecture boosts performance through:
8051 core plus DMA controller and digital filter processor, at up to 67 MHz
Ultra low power with industry's widest voltage range
Programmable digital and analog peripherals enable custom functions
Flexible routing of any analog or digital peripheral function to any pin
PSoC devices employ a highly configurable system-on-chip architecture for embedded control design. They integrate configurable
analog and digital circuits, controlled by an on-chip microcontroller. A single PSoC device can integrate as many as 100 digital and
analog peripheral functions, reducing design time, board space, power consumption, and system cost while improving system quality.
Features
Operating characteristics
Analog peripherals
Voltage range: 1.71 to 5.5 V, up to six power domains
Temperature range (ambient) –40 to 85 °C
[1]
DC to 67-MHz operation
Power modes
• Active mode 1.2 mA at 6 MHz, and 12 mA at 48 MHz
• 1-µA sleep mode
• 200-nA hibernate mode with RAM retention
Boost regulator from 0.5-V input up to 5-V output
Performance
8-bit 8051 CPU, 32 interrupt inputs
24-channel direct memory access (DMA) controller
24-bit 64-tap fixed-point digital filter processor (DFB)
Configurable 8- to 12-bit delta-sigma ADC
Up to four 8-bit DACs
Up to four comparators
Up to four opamps
Up to four programmable analog blocks, to create:
• Programmable gain amplifier (PGA)
• Transimpedance amplifier (TIA)
• Mixer
• Sample and hold circuit
®
CapSense support, up to 62 sensors
1.024 V ±0.1% internal voltage reference
Versatile I/O system
Memories
Up to 64 KB program flash, with cache and security features
Up to 8 KB additional flash for error correcting code (ECC)
Up to 8 KB RAM
Up to 2 KB EEPROM
Digital peripherals
Up to four 16-bit timer, counter, and PWM (TCPWM) blocks
2
I C, 1 Mbps bus speed
USB 2.0 certified Full-Speed (FS) 12 Mbps peripheral
interface (TID#40770053) using internal oscillator
[2]
Full CAN 2.0b, 16 Rx, 8 Tx buffers
16 to 24 universal digital blocks (UDB), programmable to
create any number of functions:
• 8-, 16-, 24-, and 32-bit timers, counters, and PWMs
• I
2
C, UART, SPI, I2S, LIN 2.0 interfaces
• Cyclic redundancy check (CRC)
• Pseudo random sequence (PRS) generators
• Quadrature decoders
• Gate-level logic functions
29 to 72 I/O pins – up to 62 general-purpose I/Os (GPIOs)
Up to eight performance I/O (SIO) pins
• 25 mA current sink
• Programmable input threshold and output high voltages
• Can act as a general-purpose comparator
• Hot swap capability and overvoltage tolerance
Two USBIO pins that can be used as GPIOs
Route any digital or analog peripheral to any GPIO
LCD direct drive from any GPIO, up to 46 × 16 segments
CapSense support from any GPIO
1.2-V to 5.5-V interface voltages, up to four power domains
Programming and debug
JTAG (4-wire), serial wire debug (SWD) (2-wire), and single
wire viewer (SWV) interfaces
2
Bootloader programming through I C, SPI, UART, USB, and
other interfaces
Package options: 48-pin SSOP, 48-pin QFN, 68-pin QFN,
100-pin TQFP, and 72-pin WLCSP
Development support with free PSoC Creator™ tool
Programmable clocking
3- to 62-MHz internal oscillator, 1% accuracy at 3 MHz
4- to 25-MHz external crystal oscillator
Internal PLL clock generation up to 67 MHz
Low-power internal oscillator at 1, 33, and 100 kHz
32.768-kHz external watch crystal oscillator
12 clock dividers routable to any peripheral or I/O
Schematic and firmware design support
Over 100 PSoC Components™ integrate multiple ICs and
system interfaces into one PSoC. Components are free
embedded ICs represented by icons. Drag and drop
component icons to design systems in PSoC Creator.
Includes free Keil 8051 compiler
Supports device programming and debugging
Notes
1. The maximum storage temperature is 150 °C in compliance with JEDEC Standard JESD22-A103, High Temperature Storage Life.
2. This feature on select devices only. See
Ordering Information
on page 120 for details.
Cypress Semiconductor Corporation
Document Number: 001-53413 Rev. *Z
•
198 Champion Court
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised June 1, 2017
PSoC
®
3: CY8C36 Family Datasheet
More Information
Cypress provides a wealth of data at
www.cypress.com
to help you to select the right PSoC device for your design, and to help you
to quickly and effectively integrate the device into your design. For a comprehensive list of resources, see the knowledge base article
KBA86521, How to Design with PSoC 3, PSoC 4, and PSoC 5LP.
Following is an abbreviated list for PSoC 3:
Overview:
PSoC Portfolio, PSoC Roadmap
Product Selectors:
PSoC 1, PSoC 3, PSoC 4, PSoC 5LP
Development Kits:
In addition, PSoC Creator includes a device selection tool.
application notes and
code examples
covering a broad range
of topics, from basic to advanced level. Recommended appli-
cation notes for getting started with PSoC 3 are:
AN54181:
Getting Started With PSoC 3
AN61290:
Hardware Design Considerations
AN57821:
Mixed Signal Circuit Board Layout
AN58304:
Pin Selection for Analog Designs
AN81623:
Digital Design Best Practices
AN73854:
Introduction To Bootloaders
Application notes: Cypress offers a large number of PSoC
CY8CKIT-030
is designed for analog performance, for devel-
oping high-precision analog, low-power, and low-voltage ap-
plications.
CY8CKIT-001
provides a common development platform for
any one of the PSoC 1, PSoC 3, PSoC 4, or PSoC 5LP
families of devices.
The
MiniProg3
device provides an interface for flash pro-
gramming and debug.
Technical Reference Manuals (TRM)
Architecture TRM
Registers TRM
Programming Specification
PSoC Creator
PSoC Creator
is a free Windows-based Integrated Design Environment (IDE). It enables concurrent hardware and firmware design
of PSoC 3, PSoC 4, and PSoC 5LP based systems. Create designs using classic, familiar schematic capture supported by over 100
pre-verified, production-ready PSoC Components; see the
list of component datasheets.
With PSoC Creator, you can:
1. Drag and drop component icons to build your hardware
3. Configure components using the configuration tools
system design in the main design workspace
4. Explore the library of 100+ components
2. Codesign your application firmware with the PSoC hardware,
5. Review component datasheets
using the PSoC Creator IDE C compiler
Figure 1. Multiple-Sensor Example Project in PSoC Creator
Document Number: 001-53413 Rev. *Z
Page 2 of 137
PSoC
®
3: CY8C36 Family Datasheet
Contents
1. Architectural Overview ..................................................... 4
2. Pinouts ............................................................................... 6
3. Pin Descriptions .............................................................. 12
4. CPU ................................................................................... 13
4.1 8051 CPU ................................................................. 13
4.2 Addressing Modes .................................................... 14
4.3 Instruction Set .......................................................... 14
4.4 DMA and PHUB ....................................................... 18
4.5 Interrupt Controller ................................................... 20
5. Memory ............................................................................. 23
5.1 Static RAM ............................................................... 23
5.2 Flash Program Memory ............................................ 23
5.3 Flash Security ........................................................... 23
5.4 EEPROM .................................................................. 24
5.5 Nonvolatile Latches (NVLs) ...................................... 24
5.6 External Memory Interface ....................................... 25
5.7 Memory Map ............................................................ 26
6. System Integration .......................................................... 28
6.1 Clocking System ....................................................... 28
6.2 Power System .......................................................... 31
6.3 Reset ........................................................................ 35
6.4 I/O System and Routing ........................................... 37
7. Digital Subsystem ........................................................... 44
7.1 Example Peripherals ................................................ 44
7.2 Universal Digital Block .............................................. 46
7.3 UDB Array Description ............................................. 49
7.4 DSI Routing Interface Description ............................ 49
7.5 CAN .......................................................................... 51
7.6 USB .......................................................................... 53
7.7 Timers, Counters, and PWMs .................................. 53
7.8 I
2
C ............................................................................ 54
7.9 Digital Filter Block ..................................................... 56
8. Analog Subsystem .......................................................... 56
8.1 Analog Routing ......................................................... 57
8.2 Delta-sigma ADC ...................................................... 59
8.3 Comparators ............................................................. 60
8.4 Opamps .................................................................... 61
8.5 Programmable SC/CT Blocks .................................. 61
8.6 LCD Direct Drive ...................................................... 62
8.7 CapSense ................................................................. 63
8.8 Temp Sensor ............................................................ 63
8.9 DAC .......................................................................... 64
8.10 Up/Down Mixer ....................................................... 64
8.11 Sample and Hold .................................................... 65
9. Programming, Debug Interfaces, Resources ................ 65
9.1 JTAG Interface ......................................................... 66
9.2 Serial Wire Debug Interface ..................................... 67
9.3 Debug Features ........................................................ 68
9.4 Trace Features ......................................................... 68
9.5 Single Wire Viewer Interface .................................... 68
9.6 Programming Features ............................................. 68
9.7 Device Security ........................................................ 68
9.8 CSP Package Bootloader ......................................... 69
10. Development Support ................................................... 70
10.1 Documentation ....................................................... 70
10.2 Online ..................................................................... 70
10.3 Tools ....................................................................... 70
11. Electrical Specifications ............................................... 71
11.1 Absolute Maximum Ratings .................................... 71
11.2 Device Level Specifications .................................... 72
11.3 Power Regulators ................................................... 76
11.4 Inputs and Outputs ................................................. 80
11.5 Analog Peripherals ................................................. 88
11.6 Digital Peripherals ................................................ 105
11.7 Memory ................................................................ 109
11.8 PSoC System Resources ..................................... 113
11.9 Clocking ................................................................ 116
12. Ordering Information ................................................... 120
12.1 Part Numbering Conventions ............................... 121
13. Packaging ..................................................................... 122
14. Acronyms ..................................................................... 126
15. Reference Documents ................................................. 127
16. Document Conventions .............................................. 128
16.1 Units of Measure .................................................. 128
17. Revision History .......................................................... 129
18. Sales, Solutions, and Legal Information ................... 137
Worldwide Sales and Design Support ..................... 137
Products .................................................................. 137
PSoC® Solutions .................................................... 137
Cypress Developer Community ............................... 137
Technical Support ........................................................ 137
Document Number: 001-53413 Rev. *Z
Page 3 of 137
PSoC
®
3: CY8C36 Family Datasheet
1. Architectural Overview
Introducing the CY8C36 family of ultra low-power, flash Programmable System-on-Chip (PSoC
®
) devices, part of a scalable 8-bit
PSoC 3 and 32-bit PSoC 5 platform. The CY8C36 family provides configurable blocks of analog, digital, and interconnect circuitry
around a CPU subsystem. The combination of a CPU with a flexible analog subsystem, digital subsystem, routing, and I/O enables
a high level of integration in a wide variety of consumer, industrial, and medical applications.
Figure 1-1. Simplified Block Diagram
Analog Interconnect
Digital Interconnect
SIO
GPIOs
Usage Example for UDB
Sequencer
4 to 25 MHz
( Optional
)
System Wide
Resources
Xtal
Osc
Digital System
Universal Digital Block Array (24 x UDB)
8- Bit
Timer
UDB
Quadrature Decoder
UDB
16- Bit
PWM
UDB
16- Bit PRS
UDB
UDB
UDB
CAN
2.0
I2C
Master/
Slave
UDB
I2C Slave
UDB
UDB
8- Bit SPI
UDB
12- Bit SPI
UDB
8- Bit
Timer
Logic
UDB
UDB
UDB
GPIOs
UDB
UDB
UDB
UDB
IMO
4x
Timer
Counter
PWM
FS USB
2.0
USB
PHY
22
Clock Tree
Logic
UDB
UART
UDB
UDB
12- Bit PWM
UDB
UDB
UDB
GPIOs
32. 68 KHz
7
( Optional
)
RTC
Timer
System Bus
WDT
and
Wake
GPIOs
Memory System
EEPROM
SRAM
CPU System
8051 or
Cortex M3 CPU
Interrupt
Controller
Program &
Debug
Program
Debug &
Trace
GPIOs
EMIF
ILO
Clocking System
FLASH
PHUB
DMA
Boundary
Scan
GPIOs
SIOs
Power Management
System
LCD Direct
Drive
Digital
Filter
Block
Analog System
ADC
+
4x
Opamp
-
POR and
LVD
Sleep
Power
1.71 to
5.5 V
1.8 V LDO
SMP
4 x SC/ CT Blocks
(TIA, PGA, Mixer etc)
Temperature
Sensor
CapSense
3 per
Opamp
Del Sig
ADC
+
GPIOs
4x
CMP
4 x DAC
-
0. 5 to 5.5V
( Optional)
Figure 1-1
illustrates the major components of the CY8C36
family. They are:
8051 CPU subsystem
Nonvolatile subsystem
Programming, debug, and test subsystem
Inputs and outputs
Clocking
Power
Digital subsystem
Analog subsystem
PSoC’s digital subsystem provides half of its unique
configurability. It connects a digital signal from any peripheral to
any pin through the digital system interconnect (DSI). It also
provides functional flexibility through an array of small, fast,
low-power UDBs. PSoC Creator provides a library of prebuilt and
tested standard digital peripherals (UART, SPI, LIN, PRS, CRC,
timer, counter, PWM, AND, OR, and so on) that are mapped to
the UDB array. You can also easily create a digital circuit using
boolean primitives by means of graphical design entry. Each
UDB contains programmable array logic (PAL)/programmable
logic device (PLD) functionality, together with a small state
machine engine to support a wide variety of peripherals.
Document Number: 001-53413 Rev. *Z
Page 4 of 137
PSoC
®
3: CY8C36 Family Datasheet
In addition to the flexibility of the UDB array, PSoC also provides
configurable digital blocks targeted at specific functions. For the
CY8C36 family these blocks can include four 16-bit timers,
counters, and PWM blocks; I
2
C slave, master, and multi-master;
FS USB; and Full CAN 2.0b.
For more details on the peripherals see the
“Example
Peripherals”
section on page 44 of this data sheet. For
information on UDBs, DSI, and other digital blocks, see the
“Digital Subsystem”
section on page 44 of this data sheet.
PSoC’s analog subsystem is the second half of its unique
configurability. All analog performance is based on a highly
accurate absolute voltage reference with less than 0.1-percent
error over temperature and voltage. The configurable analog
subsystem includes:
Analog muxes
Comparators
Voltage references
ADC
DACs
DFB
All GPIO pins can route analog signals into and out of the device
using the internal analog bus. This allows the device to interface
up to 62 discrete analog signals. The heart of the analog
subsystem is a fast, accurate, configurable delta-sigma ADC
with these features:
Less than 100 µV offset
A gain error of 0.2 percent
INL less than ±1 LSB
DNL less than ±1 LSB
SINAD better than 66 dB
This converter addresses a wide variety of precision analog
applications, including some of the most demanding sensors.
The output of the ADC can optionally feed the programmable
DFB through the DMA without CPU intervention. You can
configure the DFB to perform IIR and FIR digital filters and
several user-defined custom functions. The DFB can implement
filters with up to 64 taps. It can perform a 48-bit
multiply-accumulate (MAC) operation in one clock cycle.
Four high-speed voltage or current DACs support 8-bit output
signals at an update rate of up to 8 Msps. They can be routed
out of any GPIO pin. You can create higher resolution voltage
PWM DAC outputs using the UDB array. This can be used to
create a PWM DAC of up to 10 bits, at up to 48 kHz. The digital
DACs in each UDB support PWM, PRS, or delta-sigma
algorithms with programmable widths.
In addition to the ADC, DACs, and DFB, the analog subsystem
provides multiple:
Uncommitted opamps
Configurable switched capacitor/continuous time (SC/CT)
blocks. These support:
Transimpedance amplifiers
Programmable gain amplifiers
Mixers
Other similar analog components
See the
“Analog Subsystem”
section on page 56 of this data
sheet for more details.
PSoC’s 8051 CPU subsystem is built around a single-cycle
pipelined 8051 8-bit processor running at up to 67 MHz. The
CPU subsystem includes a programmable nested vector
interrupt controller, DMA controller, and RAM. PSoC’s nested
vector interrupt controller provides low latency by allowing the
CPU to vector directly to the first address of the interrupt service
routine, bypassing the jump instruction required by other
architectures. The DMA controller enables peripherals to
exchange data without CPU involvement. This allows the CPU
to run slower (saving power) or use those CPU cycles to improve
the performance of firmware algorithms. The single cycle 8051
CPU runs ten times faster than a standard 8051 processor. The
processor speed itself is configurable, allowing you to tune active
power consumption for specific applications.
PSoC’s nonvolatile subsystem consists of flash, byte-writeable
EEPROM, and nonvolatile configuration options. It provides up
to 64 KB of on-chip flash. The CPU can reprogram individual
blocks of flash, enabling bootloaders. You can enable an ECC
for high reliability applications. A powerful and flexible protection
model secures the user's sensitive information, allowing
selective memory block locking for read and write protection. Up
to 2 KB of byte-writeable EEPROM is available on-chip to store
application data. Additionally, selected configuration options
such as boot speed and pin drive mode are stored in nonvolatile
memory. This allows settings to activate immediately after POR.
The three types of PSoC I/O are extremely flexible. All I/Os have
many drive modes that are set at POR. PSoC also provides up
to four I/O voltage domains through the VDDIO pins. Every GPIO
has analog I/O, LCD drive
[3]
, CapSense
[4]
, flexible interrupt
generation, slew rate control, and digital I/O capability. The SIOs
on PSoC allow V
OH
to be set independently of V
DDIO
when used
as outputs. When SIOs are in input mode they are high
impedance. This is true even when the device is not powered or
when the pin voltage goes above the supply voltage. This makes
the SIO ideally suited for use on an I
2
C bus where the PSoC may
not be powered when other devices on the bus are. The SIO pins
also have high current sink capability for applications such as
LED drives. The programmable input threshold feature of the
SIO can be used to make the SIO function as a general purpose
analog comparator. For devices with FS USB the USB physical
interface is also provided (USBIO). When not using USB these
pins may also be used for limited digital functionality and device
programming. All of the features of the PSoC I/Os are covered
in detail in the
“I/O System and Routing”
section on page 37 of
this data sheet.
The PSoC device incorporates flexible internal clock generators,
designed for high stability and factory trimmed for high accuracy.
The internal main oscillator (IMO) is the clock base for the
system, and has 1-percent accuracy at 3 MHz. The IMO can be
configured to run from 3 MHz up to 62 MHz. Multiple clock
derivatives can be generated from the main clock frequency to
meet application needs. The device provides a PLL to generate
clock frequencies up to 67 MHz from the IMO, external crystal,
or external reference clock. It also contains a separate, very
low-power internal low speed oscillator (ILO) for the sleep and
watchdog timers. A 32.768-kHz external watch crystal is also
supported for use in RTC applications. The clocks, together with
programmable clock dividers, provide the flexibility to integrate
most timing requirements.
Page 5 of 137
Document Number: 001-53413 Rev. *Z