CY8CTMG201A-32LQXI

CY8CTMG201A-32LQXI Datasheet


PSoC CY8CTMG20x, CY8CTMG20xA, CY8CTST200, CY8CTST200A TRM

Part Datasheet
CY8CTMG201A-32LQXI CY8CTMG201A-32LQXI CY8CTMG201A-32LQXI (pdf)
Related Parts Information
CY8CTMG200A-32LQXIT CY8CTMG200A-32LQXIT CY8CTMG200A-32LQXIT
CY8CTMG201A-32LQXIT CY8CTMG201A-32LQXIT CY8CTMG201A-32LQXIT
CY8CTMG200A-32LQXI CY8CTMG200A-32LQXI CY8CTMG200A-32LQXI
CY8CTST200A-24LQXI CY8CTST200A-24LQXI CY8CTST200A-24LQXI
CY8CTST200A-32LQXI CY8CTST200A-32LQXI CY8CTST200A-32LQXI
CY8CTST200A-24LQXIT CY8CTST200A-24LQXIT CY8CTST200A-24LQXIT
CY8CTST200A-32LQXIT CY8CTST200A-32LQXIT CY8CTST200A-32LQXIT
PDF Datasheet Preview
PSoC CY8CTMG20x, CY8CTMG20xA, CY8CTST200, CY8CTST200A TRM

CY8CTMG20x, CY8CTMG20xA, CY8CTST200, CY8CTST200A

Technical Reference Manual TRM

Cypress Semiconductor 198 Champion Court

San Jose, CA 95134-1709 Phone USA Phone Intnl. :
[+] Feedback

Copyrights

Copyrights

Cypress Semiconductor Corporation, The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in lifesupport systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
is a registered trademark and PSoC Designer , TrueTouch , and PSoC Express are trademarks of Cypress Semiconductor Corporation Cypress , along with and Cypress Semiconductor . All other trademarks or registered trademarks referenced herein are the property of their respective owners.

Purchase of I2C components from Cypress or one of its sublicensed Associated Companies conveys a license under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips.

Any Source Code software and/or firmware is owned by Cypress Semiconductor Corporation Cypress and is protected by and subject to worldwide patent protection United States and foreign , United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress.

Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.

Use may be limited by and subject to the applicable Cypress software license agreement.

Flash Code Protection Note the following details of the Flash code protection features on Cypress devices. Cypress products meet the specifications contained in their particular Cypress Data Sheets. Cypress believes that its family of products is one of the most secure families of its kind on the market today, regardless of how they are used. There may be methods that can breach the code protection features. Any of these methods, to our knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as "unbreakable." Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly evolving. We at Cypress are committed to continuously improving the code protection features of our products.
[+] Feedback

Contents Overview

Section A Overview

Pin Information 19

Section B PSoC Core

CPU Core M8C 27

Supervisory ROM SROM 33

RAM Paging 39

Interrupt Controller 45

General Purpose I/O GPIO 55

Internal Main Oscillator IMO 63

Internal Low Speed Oscillator ILO 67

External Crystal Oscillator ECO 69

Sleep and Watchdog 73

Section C TrueTouch System

TrueTouch Module 85

I/O Analog Multiplexer 99

Comparators 101

Section D System Resources

Digital Clocks 109

I2C Slave 117

System Resets 135

POR and LVD 143

SPI 145

Programmable Timer 161

Full-Speed USB 165
The family consists of many Programmable System-on-Chip with On-Chip Controller devices. The CY8CTMG20x and CY8CTST200 PSoC devices have fixed analog and digital resources in addition to a fast CPU, Flash program memory, and SRAM data memory to support various TrueTouch algorithms. For the most up-to-date ordering, pinout, packaging, or electrical specification information, refer to the PSoC device’s data sheet. For the most current technical reference manual information and newest product documentation, go to the Cypress web site at >> Documentation. This section contains
• Pin Information on page

Document Organization

This manual is organized into sections and chapters, according to PSoC functionality. Each section contains a top-level architectural diagram and a register summary if applicable . Most chapters within the sections have an introduction, an architectural/application description, register definitions, and timing diagrams. The sections are as follows
• Overview Presents the top-level architecture, helpful information to get started, and document history and
conventions. The PSoC device pinouts are detailed in the chapter Pin Information, on page
• PSoC Core Describes the heart of the PSoC device in various chapters, beginning with an architectural overview and a
summary list of registers pertaining to the PSoC core.
• TrueTouch System Describes the configurable PSoC TrueTouch system in various chapters, beginning with an archi-
tectural overview and a summary list of registers pertaining to the TrueTouch system.
• System Resources Presents additional PSoC system resources, beginning with an overview and a summary list of
registers pertaining to system resources.
• Registers Lists all PSoC device registers in register mapping tables, and presents bit-level detail of each register in its
own Register Reference chapter. Where applicable, detailed register descriptions are also located in each chapter.
• Glossary Defines the specialized terminology used in this manual. Glossary terms are presented in bold, italic font
throughout this manual.
• Index Lists the location of key topics and elements that constitute and empower the PSoC devices.
13 [+] Feedback

Section A Overview

Top Level Architecture

The PSoC block diagram on the next page illustrates the top-level architecture of the CY8CTMG20x and CY8CTST200 devices. Each major grouping in the diagram is covered in this manual in its own section PSoC Core, TrueTouch System, and the System Resources. Banding these three main areas together is the communication network of the system bus.

PSoC Core

The PSoC Core is a powerful engine that supports a rich instruction set. It encompasses the SRAM for data storage, an interrupt controller for easy program execution to new addresses, sleep and watchdog timers, a regulated 3.0V output option is provided for Port 1 I/Os, and multiple clock sources that include the IMO internal main oscillator and ILO internal low speed oscillator for precision, programmable clocking.

The CPU core, called the M8C, is a powerful processor with speeds up to 24 MHz. The M8C is a four MIPS 8-bit Harvard architecture microprocessor. Within the CPU core are the SROM and Flash memory components that provide flexible programming.

PSoC GPIOs provide connection to the CPU and the TrueTouch resources of the device. Each pin’s drive mode is selectable from four options, allowing great flexibility in external interfacing. Every pin also has the capability to generate a system interrupt on low level and change from last read.

TrueTouch System

The TrueTouch System is composed of comparators, reference drivers, I/O multiplexers, and digital logic to support various capacitive sensing algorithms. Various reference selections are provided. Digital logic is mainly comprised of counters and timers.

System Resources

The System Resources provide additional PSoCcapability. These system resources include
• Digital clocks to increase the flexibility of the PSoC pro-
grammable system-on-chip.
• I2C functionality with "no bus stalling.”
• Various system resets supported by the M8C.
• Power-On-Reset POR circuit protection.
• SPI master and slave functionality.
• A programmable timer to provide periodic interrupts.
• Clock boost network providing a stronger signal to
switches.
• Full-speed USB interface for USB communication
with 512 bytes of dedicated buffer memory and an internal 3V regulator.
[+] Feedback

Section A Overview

PSoC Core Top-Level Block Diagram

CORE

Port 4 Port 3 Port 2

Port 1

Port 0
1.8/2.5/3V PWRSYS LDO Regulator

SYSTEM BUS
1K, 2K SRAM

Interrupt Controller

Supervisory ROM SROM
8K, 16K, 32K Flash Nonvolatile Memory

CPU Core M8C

Sleep and Watchdog
6/12/24 MHz Internal Main Oscillator IMO

Internal Low Speed Oscillator ILO
The quickest path to understanding PSoC is by reading the PSoC device’s data sheet and using PSoC Designer Integrated Development Environment IDE . This manual is useful for understanding the details of the PSoC integrated circuit. Important Note For the most up-to-date Ordering, Packaging, or Electrical Specification information, refer to the individual PSoC device’s data sheet or go to

Support

Free support for PSoC products is available online at Resources include Training Seminars, Discussion Forums, Application Notes, TightLink Technical Support Email/Knowledge Base, and Application Support Technicians. Technical Support can be reached at

Product Upgrades

Cypress provides scheduled upgrades and version enhancements for PSoC Designer free of charge. You can order the upgrades from your distributor on CD-ROM or download them directly from under Software. Also provided are critical updates to system documentation under >> Documentation.

Development Kits

The Cypress Online Store contains development kits, C compilers, and all accessories for PSoC development. Go to the Cypress Online Store web site at under Order >> PSoC Kits.

Document History

This section serves as a chronicle of the CY8CTMG20x, CY8CTMG20xA, CY8CTST200, CY8CTST200A Technical Reference Manual.

Technical Reference Manual History

Version/ Release Date

Originator

Description of Change
** May 2009 *A August 2009

First release of the CY8CTMG20x, CY8CTST200 Technical Reference Manual. Second release of the CY8CTMG20x, CY8CTST200 Technical Reference Manual.
*B November 2009 *C December 2009

Multiple fixes, primarily to the sleep and I2C chapters. Multiple fixes, primarily to the External Crystal Oscillator chapter.
[+] Feedback

Section A Overview

Documentation Conventions

There are only four distinguishing font types used in this manual, besides those found in the headings.
• The first is the use of italics when referencing a document title or file name.
• The second is the use of bold italics when referencing a term described in the Glossary of this manual.
• The third is the use of Times New Roman font, distinguishing equation examples.
• The fourth is the use of Courier New font, distinguishing code examples.

Register Conventions

The following table lists the register conventions that are specific to this manual. A more detailed set of register conventions is located in the Register Reference chapter on page

Register Conventions

Convention ‘x’ in a register name R W O L C 00 XX 0, 1,

Example

PRTxIE

R 00 W 00 RO 00 RL 00 RC 00 RW 00 RW XX 0,04h 1,23h
x,F7h

Empty, grayedout table cell

Description Multiple instances/address ranges of the same register Read register or bit s Write register or bit s Only a read/write register or bit s . Logical register or bit s Clearable register or bit s Reset value is 0x00 or 00h Register is not reset Register is in bank 0 Register is in bank 1 Register exists in register bank 0 and register bank 1 Reserved bit or group of bits, unless otherwise stated

Numeric Naming

Hexadecimal numbers are represented with all letters in uppercase with an appended lowercase ‘h’ for example, ‘14h’ or ‘3Ah’ and hexadecimal numbers may also be represented by a ‘0x’ prefix, the C coding convention. Binary numbers have an appended lowercase ‘b’ for example, 01010100b’ or ‘01000011b’ . Numbers not indicated by an ‘h’ or ‘b’ are decimal.

Units of Measure

This table lists the units of measure used in this manual.

Units of Measure

Symbol °C dB fF Hz k KB Kbit kHz kΩ MHz MΩ uA uF us uV
This chapter lists, describes, and illustrates all pins and pinout configurations for the CY8CTMG20x, CY8CTMG20xA, CY8CTST200, and CY8CTST200A PSoC devices. For up-to-date ordering, pinout, and packaging information, refer to the individual PSoC device’s data sheet or go to

Pinouts

The CY8CTMG20x, CY8CTMG20xA, CY8CTST200, and CY8CTST200A PSoC devices are available in a variety of packages. Every port pin labeled with a “P” , except for Vss, Vdd, and XRES in the following tables and illustrations, is capable of Digital I/O.

CY8CTMG200-16LGXI, CY8CTMG200A-16LGXI, CY8CTST200-16LGXI, CY8CTST200A-16LGXI PSoC 16-Pin Part Pinout

Table 16-Pin QFN/COL Part Pinout

Type

No. Digital Analog

Name

I P2[5] XTAL Out

I P2[3] XTAL In
3 IOHR

I P1[7] I2C SCL, SPI SS
4 IOHR

I P1[5] I2C SDA, SPI MISO
5 IOHR

I P1[3] SPI CLK
6 IOHR

I P1[1] TC CLK*, I2C SCL, SPI MOSI

Power

Ground pin
8 IOHR

I P1[0] TC DATA*, I2C SDA, SPI CLK
9 IOHR

I P1[2]
10 IOHR

I P1[4] EXTCLK

Input

XRES Active high external reset with internal pull down
12 IOH

I P0[4]

Power

Power pin
14 IOH

I P0[7]
15 IOH

I P0[3] Integrating input
16 IOH

I P0[1] Integrating input

P1[3] 5 P1[1] 6

Vss 7 P1[0] 8

CY8CTMG200-16LGXI, CY8CTMG200A-16LGXI, CY8CTST200-16LGXI CY8CTST200A-16LGXI PSoC
More datasheets: 74ACTQ153SC | 74ACTQ153PC | W134SH | W134MH | PI3HDMI611ZLEX | PI3HDMI611ZLE | 1-NPT/603-1078 | CY8CTMG200A-32LQXIT | CY8CTMG201A-32LQXIT | CY8CTMG200A-32LQXI


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived CY8CTMG201A-32LQXI Datasheet file may be downloaded here without warranties.

Datasheet ID: CY8CTMG201A-32LQXI 508188