Please note that Cypress is an Infineon Technologies Company.
The document following this cover page is marked as “Cypress” document as this is the
company that originally developed the product. Please note that Infineon will continue
to offer the product to new and existing customers as part of the Infineon product
portfolio.
Continuity of document content
The fact that Infineon offers the following product as part of the Infineon product
portfolio does not lead to any changes to this document. Future revisions will occur
when appropriate, and any changes will be set out on the document history page.
Continuity of ordering part numbers
Infineon continues to support existing part numbers. Please continue to use the
ordering part numbers listed in the datasheet for ordering.
www.infineon.com
Page2
General Description、Features、32-bit Dual CPU Subsystem、Memory Subsystem、Amazon FreeRTOS PSA Integration、Hardware-Based Root-of-Trust (RoT)、Immutable “Secure Boot” Support、Cypress Bootloader、Low-Power 1.7-V to 3.6-V Operation、Flexible Clocking Options、Quad-SPI (QSPI)/Serial Memory Interface (SMIF)、Segment LCD Drive
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
PSoC 64 "Standard Secure" MCU-AWS
General Description
PSoC® 6 MCU is a high-performance, ultra-low-power, and secured MCU platform, purpose-built for IoT applications. The PSoC 64
product line, based on the PSoC 6 MCU platform, features out-of-box security functionality, providing an isolated root-of-trust with true
attestation and provisioning services. In addition, it delivers a pre-configured, PSA level-2 compliant secured execution environment,
which is custom-built to support the Amazon FreeRTOS ecosystem. PSoC 64 also includes a rich execution environment for application
development, with Amazon FreeRTOS support that communicates with the secured execution environment.
Features
32-bit Dual CPU Subsystem Immutable “Secure Boot” Support
Note: In PSoC 64 the Cortex M0+ is reserved for system ■ Flexible chain of trust can use different signatures for different
functions, and is not available for applications. images
■ 150-MHz Arm® Cortex®-M4F (CM4) CPU with single-cycle ■ ECC-based image signature validation
multiply, floating point, and memory protection unit (MPU) Cypress Bootloader
■ 100-MHz Cortex-M0+ (CM0+) CPU with single-cycle multiply
and MPU ■ Open Source MCUBoot[1] based bootloader optimized for
PSoC 64
■ User-selectable core logic operation at either 1.1 V or 0.9 V
■ Pre-built bootloader binary capable of validating, launching and
■ Active CPU current slope with 1.1-V core operation updating signed user application images
❐ Cortex-M4: 40 µA/MHz
■ Tightly integrated with provisioned debug and boot policies to
❐ Cortex-M0+: 28 µA/MHz inherit and implement security policies
■ Active CPU current slope with 0.9-V core operation
Low-Power 1.7-V to 3.6-V Operation
❐ Cortex-M4: 27 µA/MHz
❐ Cortex-M0+: 20 µA/MHz ■ Six power modes for fine-grained power management
■ Three DMA controllers ■ Deep Sleep mode current of 7 µA with 64-KB SRAM retention
Memory Subsystem ■ On-chip DC-DC buck converter, <1 µA quiescent current
■ 1856-KB application flash, 32-KB auxiliary flash (AUXflash), ■ Backup domain with 64 bytes of memory and real-time clock
and 32-KB supervisory flash (SFlash); read-while-write (RWW) Flexible Clocking Options
support. Two 8-KB flash caches, one for each CPU
■ 8-MHz internal main oscillator (IMO) with ±2% accuracy
■ 944-KB SRAM with three independent blocks for power and
data retention control ■ Ultra-low-power 32-kHz internal low-speed oscillator (ILO)
■ One-time-programmable (OTP) 1-Kb eFuse array ■ On-chip crystal oscillators (16 to 35 MHz, and 32 kHz)
Amazon FreeRTOS PSA Integration ■ Two phase-locked loops (PLLs) for multiplying clock
frequencies
■ Out-of-box solution for enabling Amazon FreeRTOS (AFR) with
Arm Platform Service Architecture (PSA) Level-2 Compliance ■ Frequency-locked loop (FLL) for multiplying IMO frequency
■ Pre-built Trusted Firmware-M (TF-M) Secure Processing ■ Integer and fractional peripheral clock dividers
Environment (SPE) binary built for this product line Quad-SPI (QSPI)/Serial Memory Interface (SMIF)
■ Amazon FreeRTOS API-level integration for TLS, firmware ■ Execute-In-Place (XIP) from external quad SPI flash
update, and secured storage
■ On-the-fly encryption and decryption
Hardware-Based Root-of-Trust (RoT)
■ 4-KB cache for greater XIP performance with lower power
■ RoT based on immutable boot-up code, flash content hash, and
■ Supports single, dual, quad, dual-quad, and octal interfaces
Cypress public key that ensures firmware integrity prior to provi- with throughput up to 640 Mbps
sioning
■ Supports trusted RoT handover to maintain chain of trust and Segment LCD Drive
establish OEM trust anchor for secured boot
■ Supports up to 101 segments and up to 8 commons
■ Device generates a unique device ID and a device secret key
during the provisioning process, which can be used for attes-
tation and signing
Note
1. For details, refer to https://mcuboot.com/.
Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600
Document Number: 002-28690 Rev. *H Revised March 15, 2022
Page3
Serial Communication、Audio Subsystem、Timing and Pulse-Width Modulation、Programmable Analog、Capacitive Sensing、Cryptography Accelerator、Profiler、Packages
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Serial Communication Capacitive Sensing
®
■ 13 run-time configurable serial communication blocks (SCBs) ■ Cypress CapSense sigma-delta (CSD) provides best-in-class
❐ Eight SCBs: configurable as SPI, I2C, or UART signal-to-noise ratio (SNR), liquid tolerance, and proximity
❐ Four SCBs: configurable as I2C or UART sensing
❐ One Deep Sleep SCB: configurable as SPI or I2C ■ Enables dynamic usage of both self and mutual sensing
■ USB Full-Speed device interface ■ Automatic hardware tuning (SmartSense™)
■ Two independent SD Host Controller/eMMC/SD controllers Cryptography Accelerator
Audio Subsystem ■ Hardware acceleration for symmetric and asymmetric
cryptographic methods and hash functions
Two pulse density modulation (PDM) channels and two I2■ S
channels with time division multiplexed (TDM) mode ■ True random number generator (TRNG) function
Timing and Pulse-Width Modulation Profiler
■ Thirty-two timer/counter/pulse-width modulators (TCPWMs) ■ Eight counters provide event or duration monitoring of on-chip
resources
■ Center-aligned, edge, and pseudo-random modes
■ Comparator-based triggering of kill signals Packages
Programmable Analog ■ 124-BGA and 100-WLCSP
■ 12-bit 2-Msps SAR ADC with differential and single-ended
modes and 16-channel sequencer with result averaging
■ Two low-power comparators available in system Deep Sleep
and Hibernate modes
■ Built-in temperature sensor connected to ADC
Up to 100 Programmable GPIOs
■ Two Smart I/O™ ports (16 I/Os) enable Boolean operations on
GPIO pins; available during system Deep Sleep
■ Programmable drive modes, strengths, and slew rates
■ Six overvoltage-tolerant (OVT) pins
Document Number: 002-28690 Rev. *H Page 2 of 87
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Contents
Development Ecosystem ................................................. 4 Analog Peripherals .................................................... 56
PSoC 6 MCU Resources ............................................. 4 Digital Peripherals ..................................................... 62
ModusToolbox Software .............................................. 5 Memory ..................................................................... 65
Blocks and Functionality ................................................. 6 System Resources .................................................... 66
Functional Description..................................................... 8 Ordering Information...................................................... 76
CPU and Memory Subsystem ..................................... 8 PSoC 6 MPN Decoder .............................................. 77
System Resources .................................................... 12 Packaging........................................................................ 78
Programmable Analog Subsystems .......................... 14 Acronyms........................................................................ 81
Programmable Digital ................................................ 16 Document Conventions ................................................. 83
Fixed-Function Digital ................................................ 16 Units of Measure ....................................................... 83
GPIO ......................................................................... 18 Errata ............................................................................... 84
Special-Function Peripherals .................................... 18 Revision History ............................................................. 85
PSoC 64 Security ...................................................... 22 Sales, Solutions, and Legal Information ...................... 87
Pinouts ............................................................................ 28 Worldwide Sales and Design Support ....................... 87
Power Supply Considerations....................................... 42 Products .................................................................... 87
Electrical Specifications ................................................ 47 PSoC® Solutions ...................................................... 87
Absolute Maximum Ratings ....................................... 47 Cypress Developer Community ................................. 87
Device-Level Specifications ...................................... 47 Technical Support ..................................................... 87
Document Number: 002-28690 Rev. *H Page 3 of 87
Page5
Development Ecosystem、PSoC 6 MCU Resources
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Development Ecosystem
PSoC 6 MCU Resources
Cypress provides a wealth of data at www.cypress.com to help you select the right PSoC device and quickly and effectively integrate
it into your design. The following is an abbreviated list of resources for PSoC 6 MCU:
■ Overview: PSoC Portfolio, PSoC Roadmap ■ PSoC 6 MCU Programming Specification provides the infor-
mation necessary to program PSoC 6 MCU nonvolatile
■ Product Selectors: PSoC 6 MCU memory
■ Application Notes cover a broad range of topics, from basic
■ Development Tools
to advanced level, and include the following:
❐ ModusToolbox® software enables cross platform code de-
❐ AN22174: Getting Started with PSoC 6 MCU velopment with a robust suite of tools and software libraries
❐ AN218241: PSoC 6 MCU Hardware Design Guide ❐ “Secure Boot” SDK includes all required libraries, tools, and
❐ AN213924: PSoC 6 MCU Device Firmware Update Guide sample code to provision and develop applications for
❐ AN219528: PSoC 6 MCU Power Reduction Techniques PSoC 64 MCUs.
❐ AN85951: PSoC 4, PSoC 6 MCU CapSense Design Guide ❐ CY8CKIT-064S0S2-4343W[2] PSoC 64 “Standard Secure”
Prototyping Kit: a low-cost hardware platform that enables
■ Code Examples demonstrate product features and usage, and design and debug of this product line.
are also available on Cypress GitHub repositories. ❐ PSoC 6 CAD libraries provide footprint and schematic sup-
■ Technical Reference Manuals (TRMs) provide detailed port for common tools. BSDL files and IBIS models are also
descriptions of PSoC 6 MCU architecture and registers. available.
■ Training Videos are available on a wide range of topics
including the PSoC 6 MCU 101 series
Note
2. The link will be provided in a later revision.
Document Number: 002-28690 Rev. *H Page 4 of 87
Page6
ModusToolbox Software
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
ModusToolbox Software
ModusToolbox Software is Cypress' comprehensive collection of multi-platform tools and software libraries that enable an immersive
development experience for creating converged MCU and wireless systems. It is:
■ Comprehensive - it has the resources you need
■ Flexible - you can use the resources in your own workflow
■ Atomic - you can get just the resources you want
Cypress provides a large collection of code repositories on GitHub. This includes:
■ Board Support Packages (BSPs) aligned with Cypress kits
■ Low-level resources, including a hardware abstraction layer (HAL) and peripheral driver library (PDL)
■ Middleware enabling industry-leading features such as CapSense®, Bluetooth Low Energy, and mesh networks
■ An extensive set of thoroughly tested code example applications
Note: The HAL provides a high-level, simplified interface to configure and use the hardware blocks on Cypress MCUs. It is a generic
interface that can be used across multiple product families. For example, it wraps the PSoC 6 PDL with a simplified API, but the PDL
exposes all low-level peripheral functionality. You can leverage the HAL's simpler and more generic interface for most of an application,
even if one portion requires finer-grained control.
ModusToolbox Software is IDE-neutral and easily adaptable to your workflow and preferred development environment. It includes a
project creator, peripheral and library configurators, a library manager, as well as the optional Eclipse IDE for ModusToolbox. For
information on using Cypress tools, refer to the documentation delivered with ModusToolbox software, and AN228571: Getting Started
with PSoC 6 MCU on ModusToolbox.
Figure 1. ModusToolbox Software Tools
Document Number: 002-28690 Rev. *H Page 5 of 87
Page7
Blocks and Functionality
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Blocks and Functionality
Figure 2 shows the major subsystems and a simplified view of their interconnections. The color coding shows the lowest power mode
where the particular block is still functional (for example, the SRAM is functional down to system Deep Sleep mode).
Figure 2. Block Diagram
Color Key: PSoC 64 “Standard Secure” MCU
Power Modes and
Domains CYS0644xxxI-S2D4x
Programmable Analog
System LP/ULP Mode System Resources SAR ADC 12 bit
CPUs Active/Sleep
Power Clocks
Temperature
OVP LVD IMO ECO Sensor
System POR BOD FLL 2x PLL
Deep Sleep Mode Buck Regulator 2x MCWDT
ILO WDT
XRES Reset
System RTC WCO
Hibernate Mode
Backup Regs PMIC Control
Backup
Domain
CPU Subsystem
SCB
Cortex M4F CPU
150/50 MHz, 1.1/0.9 V
SWJ, ETM, ITM, CTI
Cortex M0+ CPU
100/25 MHz, 1.1/0.9 V
SWJ, MTB, CTI
Audio Subsystem
3x DMA
Controller
Crypto
DES/TDES, AES, SHA,
CRC, TRNG, RSA/ECC
Accelerator
Flash
2048 KB + 32 KB + 32 KB
8 KB cache for each CPU
SRAM0
512 KB USB
PHY
SRAM1
256 KB
SRAM2
256 KB
ROM
64 KB
Document Number: 002-28690 Rev. *H Page 6 of 87
System Interconnect (Multi Layer AHB, IPC, MPU/SMPU)
Peripheral Interconnect (MMIO, PPU) Peripheral clock (PCLK)
SARMUX
I/O Subsystem: Up to 100 GPIOs (including 6 OVT)
2x Smart I/O Ports
Boundary Scan
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
This product line has up to 2 MB of flash; however 192 KB is reserved for system usage, leaving 1856 KB for applications. It also has
up to 1 MB of SRAM; however 80 KB is reserved for system usage, leaving 944 KB for applications.
The PSoC 64 devices offer an immutable, RoT-based boot-up process, which allows only signed applications to be booted up. In
addition, user assets such as keys and debug policies can be provisioned on the device in an HSM environment and made immutable.
PSoC 64 also allows for root-of-trust based cryptography services which can be accessed using system calls.
There are three debug access ports, one each for CM4 and CM0+, and a system port. All debug and test interfaces can be permanently
disabled during final production provisioning to avoid any malicious reprogramming or reading of flash and register contents.
PSoC 6 MCU devices include extensive support for programming, testing, debugging, and tracing both hardware and firmware. All
device interfaces can be permanently disabled for applications concerned about a reprogrammed device or starting and interrupting
flash programming sequences. All programming, debug, and test interfaces can be disabled.
Complete debug-on-chip functionality enables full device debugging in the final system using the standard production device. It does
not require special interfaces, debugging pods, simulators, or emulators. Only the standard programming connections are required
to fully support debug.
The Eclipse IDE for ModusToolbox provides fully integrated programming and debug support for these devices. The SWJ (SWD and
JTAG) interface is fully compatible with industry-standard third party probes. With the ability to disable debug features, with very robust
flash protection, and by allowing customer-proprietary functionality to be implemented in on-chip programmable blocks, PSoC 6
provides multiple levels of device security.
Document Number: 002-28690 Rev. *H Page 7 of 87
Page9
Functional Description、CPU and Memory Subsystem、CPUs
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Functional Description
The following sections provide an overview of the features, CPU and Memory Subsystem
capabilities and operation of each functional block identified in PSoC 6 has multiple bus masters, as Figure 2 shows. They are:
the block diagram in Figure 2. For more detailed information,
refer to the following documentation: CPUs, DMA controllers, QSPI, USB, SD Host Controllers, and a
Crypto block. Generally, all memory and peripherals can be
■ Board Support Package (BSP) Documentation accessed and shared by all bus masters through multi-layer Arm
BSPs are available on GitHub. They are aligned with Cypress AMBA high-performance bus (AHB) arbitration. Accesses
kits and provide files for basic device functionality such as between CPUs can be synchronized using an inter-processor
communication (IPC) block.
hardware configuration files, startup code, and linker files.
The BSP also includes other libraries that are required to sup- CPUs
port a kit. Each BSP has its own documentation, but typically
includes an API reference such as the example here. This There are two Arm Cortex CPUs:
search link finds all currently available BSPs on the Cypress The Cortex-M4 (CM4) has single-cycle multiply, a floating-point
GitHub site. unit (FPU), and a memory protection unit (MPU). It can run at up
to 150 MHz. This is the main CPU, designed for a short interrupt
■ Hardware Abstraction Layer API Reference Manual response time, high code density, and high throughput.
The Cypress Hardware Abstraction Layer (HAL) provides a CM4 implements a version of the Thumb instruction set based
high-level interface to configure and use hardware blocks on
Cypress MCUs. It is a generic interface that can be used on Thumb-2 technology (defined in the Armv7-M Architecture
across multiple product families. You can leverage the HAL's Reference Manual).
simpler and more generic interface for most of an application, The Cortex-M0+ (CM0+) has single-cycle multiply, and an MPU.
even if one portion requires finer-grained control. The HAL It can run at up to 100 MHz; however, for CM4 speeds above
API Reference provides complete details. Example applica- 100 MHz, CM0+ and bus peripherals are limited to half the speed
tions that use the HAL download it automatically from the of CM4. Thus, for CM4 running at 150 MHz, CM0+ and
GitHub repository. peripherals are limited to 75 MHz.
■ Peripheral Driver Library (PDL) Application Programming In PSoC 64, the initial CM0+ frequency is set according to a
Interface (API) Reference Manual provisioned security policy (see PSoC 64 Security). The
frequency ranges from 8 MHz to 50 MHz. For more information,
The Peripheral Driver Library (PDL) integrates device header see the Architecture and Registers TRM.
files and peripheral drivers into a single package and supports
all PSoC 6 MCU product lines. The drivers abstract the hard- CM0+ is the secondary CPU; it is used to implement system calls
ware functions into a set of easy-to-use APIs. These are fully and device-level safety and protection features. CM0+ provides
documented in the PDL API Reference. Example applications a secured, uninterruptible boot function. This helps ensure that
that use the PSoC 6 PDL download it automatically from the post boot, system integrity is checked and memory and
GitHub repository. peripheral access privileges are enforced.
Architecture Technical Reference Manual (TRM) CM0+ implements the Armv6-M Thumb instruction set (defined
■ in the Armv6-M Architecture Reference Manual).
The architecture TRM provides a detailed description of each
resource in the device. This is the next reference to use if it is The CPUs have the following power draw, at VDDD = 3.3 V and
using the internal buck regulator:
necessary to understand the operation of the hardware below
the software provided by PDL. It describes the architecture Table 1. Active Current Slope at V = 3.3 V Using the
and functionality of each resource and explains the operation DDD
Internal Buck Regulator
of each resource in all modes. It provides specific guidance
regarding the use of associated registers. System Power Mode
■ Register Technical Reference Manual ULP LP
Cortex-M0+ 20 A/MHz 28 A/MHz
The register TRM provides a complete list of all registers in CPU
the device. It includes the breakdown of all register fields, Cortex-M4 27 A/MHz 40 A/MHz
their possible settings, read/write accessibility, and default
states. All registers that have a reasonable use in typical ap- The CPUs can be selectively placed in their Sleep and Deep
plications have functions to access them from within PDL. Sleep power modes as defined by Arm.
Note that ModusToolbox and PDL may provide software de- Both CPUs have nested vectored interrupt controllers (NVIC) for
fault conditions for some registers that are different from and rapid and deterministic interrupt response, and wakeup interrupt
override the hardware defaults. controllers (WIC) for CPU wakeup from Deep Sleep power
mode.
Document Number: 002-28690 Rev. *H Page 8 of 87
Page10
Interrupts、InterProcessor Communication (IPC)、Direct Memory Access (DMA) Controllers、Cryptography Accelerator (Crypto)、Protection Units
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
The CPUs have extensive debug support. PSoC 6 has a debug Direct Memory Access (DMA) Controllers
access port (DAP) that acts as the interface for device This product line has three DMA controllers, which support
programming and debug. An external programmer or debugger CPU-independent accesses to memory and peripherals. Two of
(the “host”) communicates with the DAP through the device them have 29 channels each and the third has 4 channels. The
serial wire debug (SWD) or Joint Test Action Group (JTAG) descriptors for DMA channels can be in SRAM or flash.
interface pins. Through the DAP (and subject to restrictions), the Therefore, the number of descriptors is limited only by the size
host can access the device memory and peripherals as well as of the memory. Each descriptor can transfer data in two nested
the registers in both CPUs. loops with configurable address increments to the source and
Each CPU offers debug and trace features as follows: destination. The size of data transfer per descriptor varies based
on the type of DMA channel. Refer to the technical reference
■ CM4 supports six hardware breakpoints and four watchpoints, manual for detail.
4-bit embedded trace macrocell (ETM), serial wire viewer
(SWV), and printf()-style debugging through the single wire Cryptography Accelerator (Crypto)
output (SWO) pin.
This subsystem consists of hardware implementation and
■ CM0+ supports four hardware breakpoints and two watch- acceleration of cryptographic functions and random number
points, and a micro trace buffer (MTB) with 4-KB dedicated generators.
RAM. The Crypto subsystem supports the following:
PSoC 6 also has an Embedded Cross Trigger for synchronized
debugging and tracing of both CPUs. ■ Encryption/Decryption Functions
❐ Data Encryption Standard (DES)
Interrupts ❐ Triple DES (3DES)
This product line has 168 system and peripheral interrupt ❐ Advanced Encryption Standard (AES) (128-, 192-, 256-bit)
sources, and supports interrupts and system exceptions on both ❐ Elliptic Curve Cryptography (ECC)
CPUs. CM4 has 168 interrupt request lines (IRQ), with the ❐ RSA cryptography functions
interrupt source ‘n’ directly connected to IRQn. CM0+ has eight
interrupts IRQ[7:0] with configurable mapping of one or more ■ Hashing functions
interrupt sources to any of the IRQ[7:0]. CM0+ also supports ❐ Secure Hash Algorithm (SHA)
eight internal (software only) interrupts. ❐ SHA-1
❐ SHA-224/-256/-384/-512
Each interrupt supports configurable priority levels (eight levels
for CM4 and four levels for CM0+). Up to four system interrupts ■ Message authentication functions (MAC)
can be mapped to each of the CPUs' non-maskable interrupts ❐ Hashed message authentication code (HMAC)
(NMI). Up to 39 interrupt sources are capable of waking the ❐ Cipher-based message authentication code (CMAC)
device from Deep Sleep power mode using the WIC. Refer to the
technical reference manual for details. ■ 32-bit cyclic redundancy code (CRC) generator
InterProcessor Communication (IPC) ■ Random number generators
❐ Pseudo random number generator (PRNG)
In addition to the Arm SEV and WFE instructions, a hardware
InterProcessor Communication (IPC) block is included. It ❐ True random number generator (TRNG)
includes 16 IPC channels and 16 IPC interrupt structures. The Protection Units
IPC channels can be used to implement data communication
between the processors. Each IPC channel also implements a This product line has multiple types of protection units to control
locking scheme which can be used to manage shared resources. erroneous or unauthorized access to memory and peripheral
The IPC interrupts let one processor interrupt the other, signaling registers. CM4 and CM0+ have Arm MPUs for protection at the
an event. This is used to trigger events such as notify and release bus master level. Other bus masters use additional MPUs.
of the corresponding IPC channels. Some IPC channels and Shared memory protection units (SMPUs) help implement
other resources are reserved, as Table 2 shows: protection for memory resources that are shared among multiple
bus masters. Peripheral protection units (PPU) are similar to
Table 2. Distribution of IPC Channels and Other Resources SMPUs but are designed for protecting the peripheral register
Resources Available Resources Consumed space.
Protection units support memory and peripheral access
IPC channels, 13 reserved
16 available attributes including address range, read/write, code/data,
privilege level, secured/non-secured, and protection context.
IPC interrupts, 13 reserved
16 available Protection units are configured at boot to control access
privileges and rights for bus masters and peripherals. Up to eight
Other interrupts 1 reserved protection contexts (boot is in protection context 0) allow access
CM0+ NMI Reserved privileges for memory and system resources to be set by the boot
process per protection context by bus master and code privilege
Other resources: 4 CM0+ interrupt mux level.
clock dividers, DMA
channels, etc.
Document Number: 002-28690 Rev. *H Page 9 of 87
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
In PSoC 64, multiple protection contexts are used to isolate the ■ eFuse
different security levels within the device. The CM0+ makes use A one-time-programmable (OTP) eFuse array consists of
of several of them during the boot sequence, bootloading, 1024 bits, all of which are reserved for system use. The bits
system calls, etc. Protection context 6 is used for the user are used for storing hash values, unique IDs, or other similar
application code that runs on the CM4 CPU. The SMPUs are set PSoC 64 parameters.
up by default and cannot be modified by the user. See section 8
in the Architecture TRM for the protection context assignment. Each fuse is individually programmed; once programmed (or
“blown”), its state cannot be changed. Blowing a fuse transi-
Memory tions it from the default state of 0 to 1. To program an eFuse,
PSoC 6 contains flash, SRAM, ROM, and eFuse memory blocks. VDDIO0 must be at 2.5 V ±5%, at 14 mA.
Because blowing an eFuse is an irreversible process, pro-
■ Flash gramming is recommended only in mass production under
There is up to 2 MB of flash; however 192 KB is reserved for controlled factory conditions. For more information, see
system usage, leaving 1856 KB for applications, organized in PSoC 6 MCU Programming Specifications.
256-KB sectors.
Boot Code
There are also two 32-KB flash sectors:
❐ Auxiliary flash (AUXflash), typically used for EEPROM emu- Two blocks of code, ROM Boot and Flash Boot, are
lation pre-programmed into the device and work together to provide
❐ Supervisory flash (Sflash). Data stored in Sflash includes de- device startup and configuration, basic security features,
vice trim values, Flash Boot code, and encryption keys. After lifecycle stage management and other system functions.
the device transitions into the “Secure” lifecycle stage, Sflash
■ ROM Boot
can no longer be changed.
The flash has 128-bit-wide accesses to reduce power. Write On a device reset, the boot code in ROM is the first code to
operations can be performed at the row level. A row is execute. This code performs the following:
512 bytes. Read operations are supported in both Low Power ❐ Integrity checks of flash boot code
and Ultra-Low Power modes, however write operations may ❐ Device trim setting (calibration)
not be performed in Ultra-Low Power mode. ❐ Setting the device protection units
The flash controller has two caches, one for each CPU. Each ❐ Setting device access restrictions for “Secure” lifecycle states
cache is 8 KB, with 4-way set associativity. ROM cannot be changed and acts as the root of trust in a
secured system.
■ SRAM
There is 944 KB of SRAM available for applications. The re- ■ Flash Boot
maining 80 KB is reserved for system usage. SRAM is provid- Flash boot is firmware stored in SFlash that ensures that only
ed in three banks of 432 KB, 256 KB, and 256 KB. Each a validated application may run on the device. It also ensures
SRAM bank provides control over power modes to manage that the firmware image has not been modified, such as by a
power consumption. For Bank 0 (432 KB), power control and malicious third party.
retention granularity are configurable in thirteen 32-KB re- Flash boot:
gions. For banks 1 and 2 (256 KB each) power control is on
a per bank basis. For normal operation, the banks can be ❐ Is validated by ROM Boot
enabled or disabled to save power. For Deep Sleep mode, the ❐ Runs after ROM Boot and before the user application
banks can also be configured to retain data. ❐ Enables system calls
❐ Enables provisioning and device policy features
■ ROM
❐ Implements RoT-based services for cryptography
The 64-KB ROM, also referred to as the supervisory ROM ❐ Provides secured storage for keys and certificates
(SROM), provides code (ROM Boot) for several system func- ❐ Validates and launches first image based on policies
tions. The ROM contains device initialization, flash write, se- provisioned in the device
curity, eFuse programming, and other system-level routines. ❐ Uses mbed TLS v2.24
ROM code is executed only by the CM0+ CPU, in protection If the user application cannot be validated, then flash boot
context 0. A system function can be initiated by either CPU,
or through the DAP. This causes an NMI in CM0+, which ensures that the device is transitioned into a safe state. Refer
causes CM0+ to execute the system function. to the PSoC 64 Security section for more details.
Document Number: 002-28690 Rev. *H Page 10 of 87
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Memory Map
Both CPUs have a fixed address map, with shared access to memory and peripherals. The 32-bit (4 GB) address space is divided
into the Arm-defined regions shown in Table 3. Note that code can be executed from the Code and External RAM regions.
Table 3. Address Map for CM4 and CM0+
Address Range Name Use
0x0000 0000 – 0x1FFF FFFF Code Program code region. Data can also be placed here. It includes
the exception vector table, which starts at address 0.
0x2000 0000 – 0x3FFF FFFF SRAM Data region. This region is not supported in PSoC 6.
0x4000 0000 – 0x5FFF FFFF Peripheral All peripheral registers. Code cannot be executed from this
region. CM4 bit-band in this region is not supported in PSoC 6.
0x6000 0000 – 0x9FFF FFFF External SMIF or Quad SPI, (see the Quad-SPI/Serial Memory Interface
RAM (SMIF) section). Code can be executed from this region.
0xA000 0000 – 0xDFFF FFFF External
Device Not used.
Private
0xE000 0000 – 0xE00F FFFF Peripheral Provides access to peripheral registers within the CPU core.
Bus
0xE010 0A000 – 0xFFFF FFFF Device Device-specific system registers.
The device memory map shown in Table 4 applies to both CPUs. That is, the CPUs share access to all PSoC 6 MCU memory and
peripheral registers.
Table 4. Internal Memory Address Map for CM4 and CM0+
Address Range Memory Type Size
0x0000 0000 – 0x0000 FFFF ROM 64 KB
0x0800 0000 – 0x080E BFFF Application SRAM Up to 944 KB
0x080E C000 - 0x080F FFFF System SRAM 80 KB
0x1000 0000 – 0x101C FFFF Application flash Up to 1856 KB
0x101D 0000 - 0x101F FFFF Secured code flash 192 KB
Used for secured boot, secured boot-
loader, and system calls
0x1400 0000 – 0x1400 7FFF Auxiliary flash, can be used for EE-
PROM emulation 32 KB
0x1600 0000 – 0x1600 7FFF Supervisory flash, for secured access 32 KB
Note that PSoC 6 SRAM is located in the Arm Code region for both CPUs (see Table 3). There is no physical memory located in the
CPUs’ Arm SRAM regions.
Document Number: 002-28690 Rev. *H Page 11 of 87
Page13
System Resources、Power System、Power Modes、Clock System、Internal Main Oscillator (IMO)、Internal Low-speed Oscillator (ILO)
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
System Resources ■ CPU Active – CPU is executing code in system LP or ULP mode
Power System ■ CPU Sleep – CPU code execution is halted in system LP or
ULP mode
The power system provides assurance that voltage levels are as
required for each respective mode and will either delay mode ■ CPU Deep Sleep – CPU code execution is halted and system
entry (on power-on reset (POR), for example) until voltage levels Deep Sleep is requested in system LP or ULP mode
are as required for proper function or generate resets (brown-out
detect (BOD)) when the power supply drops below specified ■ System Deep Sleep – Only low-frequency peripherals are
available after both CPUs enter CPU Deep Sleep mode
levels. The design guarantees safe chip operation between
power supply voltage dropping below specified levels (for ■ System Hibernate – Device and I/O states are frozen and the
example, below 1.7 V) and the reset occurring. There are no device resets on wakeup
voltage sequencing requirements. CPU Active, Sleep, and Deep Sleep are standard Arm-defined
The VDDD supply (1.7 to 3.6 V) powers an on-chip buck regulator power modes supported by the Arm CPU instruction set
or a low-dropout regulator (LDO), selectable by the user. In architecture (ISA). System LP, ULP, Deep Sleep and Hibernate
addition, both the buck and the LDO offer a selectable (0.9 or modes are additional low-power modes supported by PSoC 6
1.1 V) core operating voltage (VCCD). The selection lets users MCU.
choose between two system power modes:
Clock System
■ System Low Power (LP) operates VCCD at 1.1 V and offers high
performance, with no restrictions on device configuration. Figure 3 shows that the clock system of this product line consists
of the following:
■ System Ultra Low Power (ULP) operates VCCD at 0.9 V for
exceptional low power, but imposes limitations on clock ■ Internal main oscillator (IMO)
speeds. ■ Internal low-speed oscillator (ILO)
In addition, a backup domain adds an “always on” functionality
using a separate power domain supplied by a backup supply ■ Watch crystal oscillator (WCO)
(VBACKUP) such as a battery or supercapacitor. It includes a ■ External MHz crystal oscillator (ECO)
real-time clock (RTC) with alarm feature, supported by a
32.768-kHz watch crystal oscillator (WCO), and ■ External clock input
power-management IC (PMIC) control. Refer to Power Supply ■ Two phase-locked loops (PLLs)
Considerations for more details.
■ One frequency-locked loop (FLL)
Power Modes Clocks may be buffered and brought out to a pin on a smart I/O
PSoC 6 MCU can operate in four system and three CPU power port.
modes. These modes are intended to minimize the average
power consumption in an application. For more details on power Internal Main Oscillator (IMO)
modes and other power-saving configuration options, see the The IMO is the primary source of internal clocking. It is trimmed
application note, AN219528: PSoC 6 MCU Low-Power Modes at the factory to achieve the specified accuracy. The IMO
and Power Reduction Techniques. Contact your local Cypress frequency is 8 MHz and tolerance is ± 2%.
sales representative for the latest TRM.
Power modes supported by PSoC 6 MCUs, in order of Internal Low-speed Oscillator (ILO)
decreasing power consumption, are: The ILO is a very low power oscillator, nominally 32 kHz, which
operates in all power modes. The ILO can be calibrated against
■ System Low Power (LP) – All peripherals and CPU power
modes are available at maximum speed a higher accuracy clock for better accuracy.
■ System Ultra Low Power (ULP) – All peripherals and CPU
power modes are available, but with limited speed
Document Number: 002-28690 Rev. *H Page 12 of 87
Page14
External Crystal Oscillators、Watchdog Timers (WDT, MCWDT)、Clock Dividers
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Figure 3. Clocking Diagram
Yellow multiplexers
are glitch safe Path Mux (FLL/PLL) Root mux
clk_fast
Divider CM4
Predivider CLK_HF[0]
FLL (1/2/4/8) Peripheral
IMO clk_peri Peripheral clocks
Divider TCPWM
Clock Dividers
EXTCLK
Predivider CLK_HF[1] clk_slow SCB
PLL 0 (1/2/4/8) Audio Divider CM0+
ECO
CapSense
AHB
Predivider CLK_HF[2] QSPI/SMIF,
PLL 1 (1/2/4/8) SD Host [1] LCD
DMA
CLK_PATH3 Analog
Predivider CLK_HF[3] eFuse Subsystem
USB
(1/2/4/8)
Smart I/O
CLK_PATH4 MMIO
Predivider CLK_HF[4]
(1/2/4/8) SD Host[0]
PPU
System LP/ULP Domain
System Deep Sleep / Crypto
Hibernate Domain Predivider CLK_HF[5] clk_ext
(1/2/4/8)
ILO CLK_LF
WCO
External Crystal Oscillators See also Table 6 for additional restrictions for general analog
Figure 4 shows all of the external crystal oscillator circuits for this subsystem use.
product line. The component values shown are typical; check Table 5. ECO Usage Guidelines
ECO Specifications for the crystal values, and the crystal
datasheet for the load capacitor values. The ECO and WCO Drive Strength Drive
require balanced external load capacitors. For more information, Ports Max Frequency for V ≤ 2.7 V Strength for
DDD
see the TRM and AN218241, PSoC 6 MCU Hardware Design VDDD ≤ 2.7 V
Considerations. Port 11 60 MHz for SMIF DRIVE_SEL 2 DRIVE_SEL 3
(QSPI)
Figure 4. Oscillator Circuits Ports 12 and Slow slew rate No restrictions No restrictions
13 setting
PSoC 6
Watchdog Timers (WDT, MCWDT)
PSoC 6 MCU has one WDT and two multi-counter WDTs
(MCWDT). The WDT has a 16-bit free-running counter. Each
MCWDT has two 16-bit counters and one 32-bit counter, with
multiple operating modes. All of the 16-bit counters can generate
a watchdog device reset. All of the counters can generate an
interrupt on a match event.
The WDT is clocked by the ILO. It can generate interrupt/wakeup
MHz XTAL 32.768 kHz XTAL in system LP/ULP, Deep Sleep, and Hibernate power modes.
The MCWDTs are clocked by LFCLK (ILO or WCO). It can
generate periodic interrupt / wakeup in system LP/ULP and Deep
CL / 2 CL / 2 CL / 2 CL / 2 Sleep power modes.
Clock Dividers
Integer and fractional clock dividers are provided for peripheral
If the ECO is used, note that its performance is affected by GPIO use and timing purposes. There are:
switching noise. GPIO ports should be used as Table 5 shows. ■ Eight 8-bit clock dividers
■ Sixteen 16-bit integer clock dividers
■ Four 16.5-bit fractional clock dividers
■ One 24.5-bit fractional clock divider
Document Number: 002-28690 Rev. *H Page 13 of 87
ECO_IN, P12.6
ECO_OUT, P12.7
WCO_IN, P0.0
WCO_OUT, P0.1
Page15
Trigger Routing、Reset、Programmable Analog Subsystems、12-bit SAR ADC、Temperature Sensor、Low-Power Comparators
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Trigger Routing Programmable Analog Subsystems
PSoC 6 MCU contains a trigger multiplexer block. This is a 12-bit SAR ADC
collection of digital multiplexers and switches that are used for
routing trigger signals between peripheral blocks and between The 12-bit, 2-Msps SAR ADC can operate at a maximum clock
GPIOs and peripheral blocks. rate of 36 MHz and requires a minimum of 18 clocks at that
frequency to do a 12-bit conversion. One of three internal
There are two types of trigger routing. Trigger multiplexers have reference voltages may be used for an ADC reference voltage.
reconfigurability in the source and destination. There are also The references are, V , V /2, and V (nominally 1.2 V and
hardwired switches called “one-to-one triggers”, which connect DD DD REF
trimmed to ±1%). An external reference may also be used, by
a specific source to a destination. The user can enable or disable either driving the VREF pin or routing an external reference to
the route. GPIO pin P9.7. These reference options allow ratio-metric
readings or absolute readings at the accuracy of the reference
Reset used. The input range of the ADC is the full supply voltage
PSoC 6 MCU can be reset from a variety of sources: between VSS and VDDA/VDDIOA. The SAR ADC may be
■ Power-on reset (POR) to hold the device in reset while the configured with a mix of single-ended and differential signals in
power supply ramps up to the level required for the device to the same configuration.
function properly. POR activates automatically at power-up. The SAR ADC’s sample-and-hold (S/H) aperture is
■ Brown-out detect (BOD) reset to monitor the digital voltage programmable to allow sufficient time for signals with a high
supply VDDD and generate a reset if VDDD falls below the impedance to settle sufficiently, if required. System performance
minimum required logic operating voltage. is 65 dB for true 12-bit precision provided appropriate references
■ External reset dedicated pin (XRES) to reset the device using are used and system noise levels permit it. To improve
an external source. The XRES pin is active low. It can be performance in noisy conditions, an external bypass capacitor
connected either to a pull-up resistor to V , or to an active for the internal reference amplifier (through the fixed “VREF”
DDD
drive circuit, as Figure 5 shows. If a pull-up resistor is used, pin), may be added.
select its value to minimize current draw when the pin is pulled The SAR is connected to a fixed set of pins through an input
low; 4.7 kΩ is typical. multiplexer. The multiplexer cycles through the selected
channels autonomously (sequencer scan) and does so with zero
Figure 5. XRES Connection Diagram switching overhead (that is, the aggregate sampling bandwidth
is equal to 2 Msps whether it is for a single channel or distributed
1.7 to 3.6 V over several channels). The result of each channel is buffered,
PSoC 6 so that an interrupt may be triggered only when a full scan of all
channels is complete. Also, a pair of range registers can be set
VDDD to detect and cause an interrupt if an input exceeds a minimum
and/or maximum value. This allows fast detection of out-of-range
4.7 kΩ typ. values without having to wait for a sequencer scan to be
completed and the CPU to read the values and check for
XRES out-of-range values in software. The SAR can also be
XRES
drive connected, under firmware control, to most other GPIO pins via
the Analog Multiplexer Bus (AMUXBUS). The SAR is not
available in system Deep Sleep and Hibernate modes as it
■ Watchdog timer (WDT or MCWDT) to reset the device if requires a high-speed clock (up to 36 MHz). The SAR operating
firmware fails to service it within a specified timeout period. range is 1.71 to 3.6 V.
■ Software-initiated reset to reset the device on demand using Temperature Sensor
firmware. An on-chip temperature sensor is part of the SAR and may be
■ Logic-protection fault can trigger an interrupt or reset the device scanned by the SAR ADC. It consists of a diode, which is biased
if unauthorized operating conditions occur; for example, by a current source that can be disabled to save power. The
reaching a debug breakpoint while executing privileged code. temperature sensor may be connected directly to the SAR ADC
■ Hibernate wakeup reset to bring the device out of the system as one of the measurement channels. The ADC digitizes the
Hibernate power mode. temperature sensor’s output and a Cypress-supplied software
function may be used to convert the reading to temperature
Reset events are asynchronous and guarantee reversion to a which includes calibration and linearization.
known state. Some of the reset sources are recorded in a
register, which is retained through reset and allows software to Low-Power Comparators
determine the cause of the reset. Two low-power comparators are provided, which can operate in
all power modes. This allows other analog system resources to
be disabled while retaining the ability to monitor external voltage
levels during system Deep Sleep and Hibernate modes. The
comparator outputs are normally synchronized to avoid
metastability unless operating in an asynchronous power mode
(Hibernate) where the system wake-up circuit is activated by a
comparator-switch event.
Document Number: 002-28690 Rev. *H Page 14 of 87
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Figure 6 shows an overview of the analog subsystem. This diagram is a high-level abstraction. See the TRM for detailed connectivity
information.
Figure 6. Analog Subsystem
AMUXBUSA
AMUXBUSB Red dots indicate
AMUXBUS splitter
P6.0 switches
P6.1 LPCOMP0 CSD
P1.0
P6.2 inp shield_pad P1.1
P6.3 inn vref_ext P1.2
P6.4 csh P1.3
P6.5 cmod P1.4
P6.6 LPCOMP1 amuxbusa P1.5
P6.7 inp amuxbusb P2.0
inn P2.1
P2.2
P5.0 P2.3
P5.1 P2.4
P5.2 P2.5
P5.3 P2.6
P5.4 P2.7
P5.5
P3.0
P5.6
P3.1
P5.7
P3.2
P3.3
P3.4
P3.5
P4.0
P4.1
P4.2
P4.3
P14.0
P9.7 P14.1
P9.6
P9.5
P9.4
P9.3 P0.0
P9.2 P0.1
P9.1 P0.2
P9.0 P0.3
AREF, 1.2 V P0.4
P0.5
P11.0
P10.0
P10.1 P11.1
P11.2
P10.2
P10.3 P11.3
P11.4
P10.4
P10.5 SAR ADC P11.5
vplus P11.6
P10.6
P10.7 vminus P11.7
vref P12.0
P12.1
VDDA SARREF
P12.2
TEMP VDDA / 2 P12.3
temp P12.4
VSS P12.5
To VREF pin, for bypass capacitor P12.6
P12.7
P13.0
P13.1
P13.2
P13.3
P13.4
P13.5
P13.6
P13.7
Document Number: 002-28690 Rev. *H Page 15 of 87
SARMUX
P7.0
P7.1
P7.2
P7.3
P7.4
P7.5
P7.6
P7.7
P8.0
P8.1
P8.2
P8.3
P8.4
P8.5
P8.6
P8.7
Page17
Programmable Digital、Smart I/O、Fixed-Function Digital、Timer/Counter/Pulse-width Modulator (TCPWM)、Serial Communication Blocks (SCB)、USB Full-Speed Device Interface、Quad-SPI/Serial Memory Interface (SMIF)
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
Programmable Digital In this device there are:
■ Eight 32-bit TCPWMs
Smart I/O
■ Twenty-four 16-bit TCPWMs
Smart I/O is a programmable logic fabric that enables Boolean
operations on signals traveling from device internal resources to Serial Communication Blocks (SCB)
the GPIO pins or on signals traveling into the device from This product line has 13 SCBs:
external sources. A Smart I/O block sits between the GPIO pins 2
and the high-speed I/O matrix (HSIOM) and is dedicated to a ■ Eight can implement either I C, UART, or SPI.
single port. ■ Four can implement either I2C or UART.
There are two Smart I/O blocks: one on Port 8 and one on Port 9. ■ One SCB (SCB #8) can operate in system Deep Sleep mode
When Smart I/O is not enabled, all signals on Port 8 and Port 9 with an external clock; this SCB can be either SPI slave or I2C
bypass the Smart I/O hardware. slave.
I2Smart I/O supports: C Mode: The SCB can implement a full multi-master and slave
System Deep Sleep operation interface (it is capable of multimaster arbitration). This block can
■
operate at speeds of up to 1 Mbps (Fast Mode Plus). It also
■ Boolean operations without CPU intervention supports EZI2C, which creates a mailbox address range and
■ Asynchronous or synchronous (clocked) operation effectively reduces I2C communication to reading from and
Each Smart I/O block contains a data unit (DU) and eight lookup writing to an array in memory. The SCB supports a 256-byte
FIFO for receive and transmit.
tables (LUTs).
2
The DU: The I C peripheral is compatible with I2C standard-mode, Fast
Mode, and Fast Mode Plus devices as defined in the NXP
■ Performs unique functions based on a selectable opcode. I2C-bus specification and user manual (UM10204). The I2C bus
■ Can source input signals from internal resources, the GPIO I/O is implemented with GPIO in open-drain modes.
port, or a value in the DU register. UART Mode: This is a full-feature UART operating at up to
Each LUT: 8 Mbps. It supports automotive single-wire interface (LIN),
infrared interface (IrDA), and SmartCard (ISO7816) protocols, all
■ Has three selectable input sources. The input signals may be of which are minor variants of the basic UART protocol. In
sourced from another LUT, an internal resource, an external addition, it supports the 9-bit multiprocessor mode that allows the
signal from a GPIO pin, or from the DU. addressing of peripherals connected over common Rx and Tx
■ Acts as a programmable Boolean logic table. lines. Common UART functions such as parity error, break
Can be synchronous or asynchronous. detect, and frame error are supported. A 256-byte FIFO allows
■
much greater CPU service latencies to be tolerated.
Fixed-Function Digital SPI Mode: The SPI mode supports full Motorola SPI, TI Secure
Simple Pairing (SSP) (essentially adds a start pulse that is used
Timer/Counter/Pulse-width Modulator (TCPWM) to synchronize SPI Codecs), and National Microwire (half-duplex
■ The TCPWM supports the following operational modes: form of SPI). The SPI block supports an EZSPI mode in which
Timer-counter with compare the data interchange is reduced to reading and writing an array
❐
in memory. The SPI interface operates with a 25-MHz clock.
❐ Timer-counter with capture
❐ Quadrature decoding USB Full-Speed Device Interface
❐ Pulse width modulation (PWM) This product line incorporates a full-speed USB device interface.
❐ Pseudo-random PWM The device can have up to eight endpoints. A 512-byte SRAM
❐ PWM with dead time buffer is provided and DMA is supported.
■ Up, down, and up/down counting modes Note: If the USB pins are not used, connect VDDUSB to ground
■ Clock prescaling (division by 1, 2, 4, ... 64, 128) and leave the P14.0/USBDP and P14.1/USBDM pins
unconnected.
■ Double buffering of compare/capture and period values
■ Underflow, overflow, and capture/compare output signals Quad-SPI/Serial Memory Interface (SMIF)
■ Supports interrupt on: A serial memory interface is provided, running at up to 80 MHz.
Terminal count – Depends on the mode; typically occurs on It supports single, dual, quad, dual-quad and octal SPI
❐
overflow or underflow configurations, and supports up to four external memory devices.
❐ Capture/compare – The count is captured to the capture reg- It supports two modes of operation:
ister or the counter value equals the value in the compare ■ Memory-mapped I/O (MMIO), a command mode interface that
register provides data access via registers and FIFOs
■ Complementary output for PWMs
■ Execute in Place (XIP), in which AHB reads and writes are
■ Selectable start, reload, stop, count, and capture event signals directly translated to SPI read and write transfers.
for each TCPWM; with rising edge, falling edge, both edges,
and level trigger options. The TCPWM has a Kill input to force
outputs to a predetermined state.
Document Number: 002-28690 Rev. *H Page 16 of 87
Page18
LCD、SD Host Controllers
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
In XIP mode, the external memory is mapped into the PSoC 6 For eMMC, the supported modes are:
MCU internal address space, enabling code execution directly
from the external memory. To improve performance, a 4-KB ■ BWC (backward compatibility)
cache is included. XIP mode also supports AES-128 on-the-fly ■ SDR
encryption and decryption, enabling secured storage and access
of code and data in the external memory. Maximum clock restrictions and capacitive loads apply to some
modes, and are also dependent on system power mode
LCD (LP/ULP). Refer to the SD Host Controller and eMMC
Specifications for details.
This block drives LCD commons and segments; routing is
available to most of the GPIOs. One to eight of the GPIOs must The SD Host Controller complies with the following standards.
be used for commons, the rest can be used for segments. Refer to the specifications documents for more information on
the protocol and operations.
The LCD block has two modes of operation: high speed (8 MHz)
and low speed (32 kHz). Both modes operate in system LP and ■ SD Specifications Part 1 Physical Layer Specification Version
ULP modes. Low-speed mode operates with reduced contrast in 6.00, supporting card capacities for SDSC (up to 2 GB), SDHC
system Deep Sleep mode - review the number of common and (up to 32 GB) and SDXC (up to 2 TB).
segment lines, viewing angle requirements, and prototype
performance before using this mode. ■ SD Specifications Part A2 SD Host Controller Standard Speci-
fication Version 4.20
SD Host Controllers
■ SD Specifications Part E1 SDIO Specifications Version 4.10
This product line contains two Secure Digital (SD) host
controllers. They provide communication with IoT connectivity ■ Embedded Multi-Media Card (eMMC) Electrical Standard 5.1
devices such as Bluetooth, Bluetooth Low-Energy and WiFi The SD Host Controller is configured as a master. To be fully
radios, as well as combination devices. The controller also compatible with features provided in the driver software for
supports embedded MultiMediaCards (eMMC) and Secure speed and efficiency, it supports advanced DMA version 3
Digital (SD) cards. (ADMA3), defined by the SDIO standard, and has a 1-KB Rx/Tx
Several bus speed modes under the SD specification are FIFO allowing double buffering of 512-byte blocks.
supported:
■ DS (default speed)
■ HS (high speed)
■ SDR12 (single data rate)
■ SDR25
■ SDR50
■ DDR50 (double data rate)
Document Number: 002-28690 Rev. *H Page 17 of 87
Page19
GPIO、Special-Function Peripherals、Audio Subsystem
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
GPIO The port 1 pins are capable of overvoltage-tolerant (OVT)
This product line has up to 100 GPIOs, which implement the operation, where the input voltage may be higher than VDDD.
following: OVT pins are commonly used with I2C, to allow powering the
chip OFF while maintaining a physical connection to an
■ Eight drive strength modes: operating I2C bus without affecting its functionality.
❐ Analog input mode (input and output buffers disabled) GPIO pins can be ganged to source or sink higher values of
❐ Input only current. GPIO pins, including OVT pins, may not be pulled up
❐ Weak pull-up with strong pull-down higher than the absolute maximum; see Electrical Specifications.
❐ Strong pull-up with weak pull-down During power-on and reset, the pins are forced to the analog
❐ Open drain with strong pull-down input drive mode, with input and output buffers disabled, so as
❐ Open drain with strong pull-up not to crowbar any inputs and/or cause excess turn-on current.
❐ Strong pull-up with strong pull-down
A multiplexing network known as the high-speed I/O matrix
❐ Weak pull-up with weak pull-down (HSIOM) is used to multiplex between various peripheral and
■ Input threshold select (CMOS or LVTTL) analog signals that may connect to an I/O pin.
■ Hold mode for latching previous state (used for retaining the Analog performance is affected by GPIO switching noise. In
I/O state in system Hibernate mode) order to get the best analog performance, the following
■ Selectable slew rates for dV/dt-related noise control to improve frequency and drive mode constraints must be applied. The
EMI DRIVE_SEL values (refer to Table 6) represent drive strengths .
Contact your local Cypress sales representative for the latest
The pins are organized in logical entities called ports, which are TRM.
up to 8 pins in width. Data output and pin state registers store,
respectively, the values to be driven on the pins and the input See also Table 5 for additional restrictions for ECO use.
states of the pins.
Every pin can generate an interrupt if enabled; each port has an
interrupt request (IRQ) associated with it.
Table 6. DRIVE_SEL Values
Ports Max Frequency Drive Strength for VDDD ≤ 2.7 V Drive Strength for VDDD > 2.7 V
Ports 0, 1 8 MHz DRIVE_SEL 2 DRIVE_SEL 3
Port 2 50 MHz DRIVE_SEL 1 DRIVE_SEL 2
Ports 3 to 10 16 MHz; 25 MHz for SPI DRIVE_SEL 2 DRIVE_SEL 3
Ports 11 to 13 80 MHz for SMIF (QSPI). DRIVE_SEL 1 DRIVE_SEL 2
Special-Function Peripherals The PDM-to-PCM decoder implements a single hardware Rx
FIFO that decodes a stereo or mono 1-bit PDM input stream to
Audio Subsystem PCM data output. The following features are supported:
This subsystem consists of the following hardware blocks:
■ Programmable data output word length – 16/18/20/24 bits
■ Two Inter-IC Sound (I2S) interfaces
■ Programmable gain amplifier (PGA) for volume control – from
■ Two PDM to PCM decoder channels –12 dB to +10.5 dB in 1.5 dB steps
Each of the I2S interfaces implements two independent ■ Configurable PDM clock generation. Range from 384 kHz to
hardware FIFO buffers – Tx and Rx, which can operate in master 3.072 MHz
or slave mode. The following features are supported:
■ Droop correction and configurable decimation rate for
■ Multiple data formats – I2S, left-justified, Time Division Multi- sampling; up to 48 ksps
plexed (TDM) mode A, and TDM mode B
■ Programmable high-pass filter gain
■ Programmable channel/word lengths – 8/16/18/20/24/32 bits
■ Interrupt mask events – not empty, overflow, trigger, underflow
■ Internal/external clock operation up to 192 ksps
■ Configurable FIFO trigger level with DMA support
■ Interrupt mask events – trigger, not empty, full, overflow,
underflow, watchdog The PDM-to-PCM decoder is commonly used to connect to
digital PDM microphones. Up to two microphones can be
■ Configurable FIFO trigger level with DMA support connected to the same PDM Data line.
The I2S interface is commonly used to connect with audio
codecs, simple DACs, and digital microphones.
Document Number: 002-28690 Rev. *H Page 18 of 87
Page20
CapSense Subsystem
PSoC 6 MCU: CYS0644xxxI-S2D4x
Datasheet
CapSense Subsystem IDAC
CapSense is supported in PSoC 6 MCU through a CapSense The CSD block has two programmable current sources, which
sigma-delta (CSD) hardware block. It is designed for offer the following features:
high-sensitivity self-capacitance and mutual-capacitance
measurements, and is specifically built for user interface ■ 7-bit resolution
solutions. ■ Sink and source current modes
In addition to CapSense, the CSD hardware block supports three
■ A current source programmable from 37.5 nA to 609 A
general-purpose functions. These are available when CapSense
is not being used. Alternatively, two or more functions can be ■ Two IDACs that can be used in parallel to form one 8-bit IDAC
time-multiplexed in an application under firmware control. The Comparator
four functions supported by the CSD hardware block are:
The CapSense subsystem comparator operates in the system
■ CapSense Low Power and Ultra-Low Power modes. The inverting input is
■ 10-bit ADC connected to an internal programmable reference voltage and
Programmable current sources (IDAC) the non-inverting input can be connected to any GPIO via the
■
AMUXBUS.
■ Comparator
CapSense Hardware Subsystem
CapSense
Figure 7 shows the high-level hardware overview of the
Capacitive touch sensors are designed for user interfaces that CapSense subsystem, which includes a delta sigma converter,
rely on human body capacitance to detect the presence of a internal clock dividers, a shield driver, and two programmable
finger on or near a sensor. Cypress CapSense solutions bring current sources.
elegant, reliable, and simple capacitive touch sensing functions
to applications including IoT, industrial, automotive, and home The inputs are managed through analog multiplexed buses
appliances. (AMUXBUS A/B). The input and output of all functions offered by
the CSD block can be provided on any GPIO or on a group of
The Cypress-proprietary CapSense technology offers the GPIOs under software control, with the exception of the
following features: comparator output and external capacitors that use dedicated
■ Best-in-class signal-to-noise ratio (SNR) and robust sensing GPIOs.
under harsh and noisy conditions Self-capacitance is supported by the CSD block using
AMUXBUS A, an external modulator capacitor, and a GPIO for
■ Self-capacitance (CSD) and mutual-capacitance (CSX) each sensor. There is a shield electrode (optional) for
sensing methods self-capacitance sensing. This is supported using AMUXBUS B
■ Support for various widgets, including buttons, matrix buttons, and an optional external shield tank capacitor (to increase the
sliders, touchpads, and proximity sensors drive capability of the shield driver) should this be required.
Mutual-capacitance is supported by the CSD block using
■ High-performance sensing across a variety of materials AMUXBUS A, two external integrated capacitors, and a GPIO for
Best-in-class liquid tolerance transmit and receive electrodes.
■
The ADC does not require an external component. Any GPIO
■ SmartSense™ auto-tuning technology that helps avoid that can be connected to AMUXBUS A can be an input to the
complex manual tuning processes ADC under software control. The ADC can accept VDDA as an
■ Superior immunity against external noise input without needing GPIOs (for applications such as battery
voltage measurement).
■ Spread-spectrum clocks for low radiated emissions
The two programmable current sources (IDACs) in
■ Gesture and built-in self-test libraries general-purpose mode can be connected to AMUXBUS A or B.
They can therefore connect to any GPIO pin. The comparator
■ Ultra-low power consumption resides in the delta-sigma converter. The comparator inverting
■ An integrated graphical CapSense tuner for real-time tuning, input can be connected to the reference. Both comparator inputs
testing, and debugging can be connected to any GPIO using AMUXBUS B; see
Figure 7. The reference has a direct connection to a dedicated
ADC GPIO; see Table 9.
The CapSense subsystem slope ADC offers the following The CSD block can operate in active and sleep CPU power
features: modes, and seamlessly transition between system LP and ULP
■ Selectable 8- or 10-bit resolution modes. It can be powered down in system Deep Sleep and
Hibernate modes. Upon wakeup from Hibernate mode, the CSD
■ Selectable input range: GND to VREF and GND to VDDA on any block requires re-initialization. However, operation can be
GPIO input resumed without re-initialization upon exit from Deep Sleep
■ Measurement of VDDA against an internal reference without the mode, under firmware control.
use of GPIO or external components
Document Number: 002-28690 Rev. *H Page 19 of 87