CY8C21345 CY8C22345, CY8C22545 PSoC® Programmable System-on-Chip ■ ■ Powerful Harvard Architecture Processor: ❐ M8C Processor Speeds up to 24 MHz ❐ 8x8 Multiply, 32-Bit Accumulate ❐ Low Power at High Speed ❐ 3.0V to 5.25V Operating Voltage ❐ Industrial Temperature Range: -40°C to +85°C High Speed 10-Bit SAR ADC with Sample and Hold Optimized for Embedded Control ■ Precision, Programmable Clocking: ❐ Internal ± 5% 24/48 MHz Oscillator across the Industrial Temperature Range ❐ High Accuracy 24 MHz with Optional 32 kHz Crystal and PLL ❐ Optional External Oscillator, up to 24 MHz ❐ Internal/External Oscillator for Watchdog and Sleep ■ Programmable Pin Configurations: ❐ 25 mA Sink, 10 mA Source on all GPIO ❐ Pull up, Pull down, High Z, Strong, or Open Drain Drive Modes on all GPIO ❐ Up to 38 Analog Inputs on GPIO ❐ Configurable Interrupt on all GPIO ■ Additional System Resources: 2 ❐ I C™ Slave, Master, and MultiMaster to 400 kHz ❐ Supports Hardware Addressing Feature ❐ Watchdog and Sleep Timers ❐ User Configurable Low Voltage Detection ❐ Integrated Supervisory Circuit ❐ On-Chip Precision Voltage Reference ❐ Supports RTC Block into Digital Peripheral Logic Advanced Peripherals (PSoC® Blocks) ❐ Six Analog Type “E” PSoC Blocks Provide: • Single or Dual 8-Bit ADC • Comparators (up to four) ❐ Up to Eight Digital PSoC Blocks Provide: • 8 to 32-Bit Timers, Counters, and PWMs • One Shot, Multi Shot Mode Support in Timers and PWMs • PWM with Deadband Support in One Digital Block • Shift Register, CRC, and PRS Modules • Full Duplex UART • Multiple SPI Masters or Slaves, Variable Data Length Support: 8 to 16-Bit • Can be Connected to all GPIO Pins ❐ Complex Peripherals by Combining Blocks ❐ Shift Function Support for FSK Detection ❐ Powerful Synchronize Feature Support. Analog Module Operations can be Synchronized by Digital Blocks or External Signals. ■ ■ ■ Flexible On-Chip Memory: ❐ Up to 16K Bytes Flash Program Storage 50,000 Erase/Write Cycles ❐ Up to 1K Byte SRAM Data Storage ❐ In-System Serial Programming (ISSP) ❐ Partial Flash Updates ❐ Flexible Protection Modes ❐ EEPROM Emulation in Flash ® Optimized CapSense Resource: ❐ Two IDAC Support up to 640 µA Source Current to Replace External Resistor ❐ Two Dedicated Clock Resources for CapSense: • CSD_CLK: 1/2/4/8/16/32/128/256 Derive from SYSCLK • CNT_CLK: 1/2/4/8 Derive from CSD_CLK ❐ Dedicated 16-Bit Timers/Counters for CapSense Scanning ❐ Support Dual CSD Channels Simultaneous Scanning Cypress Semiconductor Corporation Document Number: 001-43084 Rev. *L • 198 Champion Court Top Level Block Diagram Port 4 Port 3 Port 2 Port 1 Port 0 Analog Drivers PSoC Core Global Digital Interconnect SRAM 1K SROM Global Analog Interconnect Flash 16K CPU Core (M8C) Interrupt Controller Sleep and Watchdog Multiple Clock Sources (Includes IMO, ILO, PLL, and ECO) ANALOG SYSTEM DIGITAL SYSTEM Digital Block Array Analog Ref Analog Input Muxing(L,R) DBC DBC DCC DCC = ROW 1 Analog Block Array DBC DBC DCC DCC ROW 2 System Bus Features CapSense Digital Resource Digital Clocks MACs CTE CTE SCE SCE CTE CTE 10-bit SAR ADC I2C POR and LVD System Resets Internal Voltage Ref. SYSTEM RESOURCES • San Jose, CA 95134-1709 • 408-943-2600 Revised December 17, 2010 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Contents PSoC Functional Overview .............................................. 3 PSoC Core .................................................................. 3 Digital System ............................................................. 3 Analog System ............................................................ 4 Additional System Resources ..................................... 4 PSoC Device Characteristics ...................................... 5 Getting Started .................................................................. 6 Application Notes ........................................................ 6 Development Kits ........................................................ 6 Training ....................................................................... 6 CYPros Consultants .................................................... 6 Solutions Library .......................................................... 6 Technical Support ....................................................... 6 Development Tools .......................................................... 6 PSoC Designer Software Subsystems ........................ 6 In-Circuit Emulator ....................................................... 7 Designing with PSoC Designer ....................................... 7 Select Components ..................................................... 7 Configure Components ............................................... 7 Organize and Connect ................................................ 8 Generate, Verify, and Debug ....................................... 8 Pinouts .............................................................................. 9 CY8C22345, CY8C21345 28-Pin SOIC ...................... 9 CY8C22545 44-Pin TQFP ......................................... 10 Registers ......................................................................... 11 Register Conventions ................................................ 11 Register Mapping Tables .......................................... 11 Document Number: 001-43084 Rev. *L Electrical Specifications ................................................ 14 Absolute Maximum Ratings ....................................... 15 Operating Temperature ............................................ 15 DC Electrical Characteristics ..................................... 16 AC Electrical Characteristics ..................................... 20 Packaging Information ................................................... 26 Thermal Impedances ................................................ 27 Solder Reflow Peak Temperature ............................. 27 Ordering Information ...................................................... 27 Ordering Code Definitions ........................................ 27 Acronyms ........................................................................ 28 Acronyms Used ......................................................... 28 Reference Documents .................................................... 28 Document Conventions ................................................. 29 Units of Measure ....................................................... 29 Numeric Conventions ................................................ 29 Glossary .......................................................................... 29 Document History Page ................................................. 34 Sales, Solutions, and Legal Information ...................... 35 Worldwide Sales and Design Support ....................... 35 Products .................................................................... 35 PSoC Solutions ......................................................... 35 Page 2 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 PSoC Functional Overview The PSoC family consists of many On-Chip Controller devices. These devices are designed to replace multiple traditional MCU-based system components with one low cost single-chip programmable device. PSoC devices include configurable blocks of analog and digital logic, and programmable interconnects. This architecture enables the user to create customized peripheral configurations that match the requirements of each individual application. Additionally, a fast CPU, Flash program memory, SRAM data memory, and configurable I/O are included in a range of convenient pinouts and packages. Digital System The Digital System is composed of eight digital PSoC blocks. Each block is an 8-bit resource that may be used alone or combined with other blocks to form 8, 16, 24, and 32-bit peripherals, which are called user module references. Figure 1. Digital System Block Diagram Port 3 To Analog System Row 0 DBC00 DBC01 DCC02 4 DCC03 4 Row Output Configuration Row Input Configuration Digital PSoC Block Array 8 8 8 Row Input Configuration 8 The M8C CPU core is a powerful processor with speeds up to 24 MHz, providing a four MIPS 8-bit Harvard architecture microprocessor. The CPU uses an interrupt controller with 21 vectors, to simplify the programming of real time embedded events. Row 1 DBC00 GIE[7:0] Program execution is timed and protected using the included Sleep and Watch Dog Timers (WDT). GIO[7:0] DBC01 DCC02 DCC03 Global Digital Interconnect Row Output Configuration The PSoC Core is a powerful engine that supports a rich feature set. The core includes a CPU, memory, clocks, and configurable GPIO (General Purpose I/O). PSoC GPIOs provide connection to the CPU, digital, and analog resources of the device. Each pin’s drive mode may be selected from eight options, allowing great flexibility in external interfacing. Every pin can also generate a system interrupt on high level, low level, and change from last read. To System Bus Port 0 DIGITAL SYSTEM PSoC Core The PSoC device incorporates flexible internal clock generators, including a 24 MHz IMO (internal main oscillator). The 24 MHz IMO can also be doubled to 48 MHz for use by the digital system. A low power 32 kHz ILO (internal low speed oscillator) is provided for the Sleep timer and WDT. If crystal accuracy is required, the ECO (32.768 kHz external crystal oscillator) is available for use as a Real Time Clock (RTC), and can optionally generate a crystal-accurate 24 MHz system clock using a PLL. The clocks, together with programmable clock dividers (as a System Resource), provide the flexibility to integrate almost any timing requirement into the PSoC device. Port 2 Digital Clocks From Core The PSoC architecture, shown in Figure 1, consists of four main areas: PSoC Core, Digital System, Analog System, and System Resources. Configurable global busing allows the combining of all the device resources into a complete custom system. The PSoC family can have up to five I/O ports connecting to the global digital and analog interconnects, providing access to eight digital blocks and six analog blocks. Memory encompasses 16 KB of Flash for program storage, 1K bytes of SRAM for data storage, and up to 2 KB of EEPROM emulated using the Flash. Program Flash uses four protection levels on blocks of 64 bytes, allowing customized software IP protection. Port 1 Port 4 GOE[7:0] GOO[7:0] Digital peripheral configurations are: ■ PWMs (8 to 32-Bit) ■ PWMs with Dead band (8 to 32-Bit) ■ Counters (8 to 32-Bit) ■ Timers (8 to 32-Bit) ■ UART 8 Bit with Selectable Parity (Up to Two) ■ SPI Master and Slave (Up to Two) ■ Shift Register (1 to 32-Bit) ■ I2C Slave and Master (One Available as a System Resource) ■ Cyclical Redundancy Checker/Generator (8 to 32-Bit) ■ IrDA (Up to Two) ■ Pseudo Random Sequence Generators (8 to 32-Bit) The digital blocks may be connected to any GPIO through a series of global buses that can route any signal to any pin. The buses also allow for signal multiplexing and performing logic operations. This configurability frees your designs from the constraints of a fixed peripheral controller. Digital blocks are provided in rows of four, where the number of blocks varies by PSoC device family. This provides a choice of system resources for your application. Family resources are shown in Table 1 on page 5. Document Number: 001-43084 Rev. *L Page 3 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Analog System Additional System Resources The Analog System consists of a 10-bit SAR ADC and six configurable blocks. System Resources, some of which are listed in the previous sections, provide additional capability useful to complete systems. Additional resources include a MAC, low voltage detection, and power on reset. The merits of each system resource are: The programmable 10-bit SAR ADC is an optimized ADC that can be run up to 200 ksps with ± 1.5 LSB DNL and ± 2.5 LSB INL (true for VDD ≥ 3.0V and Vref ≥ 3.0V). External filters are required on ADC input channels for antialiasing. This ensures that any out-of-band content is not folded into the input signal band. Reconfigurable analog resources allow creating complex analog signal flows. Analog peripherals are very flexible and may be customized to support specific application requirements. Some of the more common PSoC analog functions (most available as user modules) are: ■ Analog-to-Digital converters (Single or Dual, with 8-bit resolution) ■ Pin-to-pin Comparator ■ Single ended comparators with absolute (1.3V) reference or 5-bit DAC reference ■ 1.3V reference (as a System Resource) Analog blocks are provided in columns of four, which include CT-E (Continuous Time) and SC-E (Switched Capacitor) blocks. These devices provide limited functionality Type “E” analog blocks. Figure 2. Analog System Block Diagram ■ Digital clock dividers provide three customizable clock frequencies for use in applications. The clocks may be routed to both the digital and analog systems. Additional clocks can be generated using digital PSoC blocks as clock dividers. ■ Additional Digital resources and clocks optimized for CSD. ■ Support “RTC” block into digital peripheral logic. ■ A multiply accumulate (MAC) provides a fast 8-bit multiplier with 32-bit accumulate, to assist in both general math and digital filters. ■ The I2C module provides 100 and 400 kHz communication over two wires. Slave, master, and multi-master modes are all supported. ■ Low Voltage Detection (LVD) interrupts can signal the application of falling voltage levels, while the advanced POR (Power On Reset) circuit eliminates the need for a system supervisor. ■ An internal 1.3V reference provides an absolute reference for the analog system, including ADCs and DACs. Array Input Configuration ACI0[1:0] ACI1[1:0] ACI1[1:0] ACI1[1:0] ACE00 ACE01 ACE10 ACE11 ASE10 ASE11 Block Array AmuxL AmuxR P0[0:7] ACI2[3:0] 10 bit SAR ADC Analog Reference Interface to Digital System AGND Reference Generators Bandgap M8C Interface (Address Bus, Data Bus, Etc.) Document Number: 001-43084 Rev. *L Page 4 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 PSoC Device Characteristics Depending on your PSoC device characteristics, the digital and analog systems can have 16, 8, or 4 digital blocks and 12, 6, or 3 analog blocks. The following table lists the resources available for specific PSoC device groups. Table 1. PSoC Device Characteristics PSoC Part Number Digital I/O CY8C29x66[1] up to 64 CY8C28xxx up to 44 Digital Rows Digital Blocks Analog Inputs Analog Outputs 4 16 up to 12 4 up to 3 up to 12 up to 44 up to 4 Analog Columns Analog Blocks SRAM Size Flash Size 4 12 2K 32 K up to 6 up to 12 + 4[2] 1K 16 K CY8C27x43 up to 44 2 8 up to 12 4 4 12 256 16 K CY8C24x94[1] up to 56 1 4 up to 48 2 2 6 1K 16 K CY8C24x23A[1] up to 24 1 4 up to 12 2 2 6 256 4K CY8C23x33 up to 26 1 4 up to 12 2 2 4 256 8K CY8C22x45[1] up to 38 2 8 up to 38 0 4 6[2] 1K 16 K CY8C21x45[1] up to 24 1 4 up to 24 0 4 6[2] 512 8K 512 8K 256 4K CY8C21x34[1] up to 28 1 4 up to 28 0 2 4[2] CY8C21x23 up to 16 1 4 up to 8 0 2 4[2] 512 8K up to 2 K up to 32 K CY8C20x34[1] up to 28 0 0 up to 28 0 0 3[2,3] CY8C20xx6 up to 36 0 0 up to 36 0 0 3[2,3] Notes 1. Automotive qualified devices available in this group. 2. Limited analog functionality. 3. Two analog blocks and one CapSense® block. Document Number: 001-43084 Rev. *L Page 5 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Getting Started Development Tools The quickest way to understand PSoC silicon is to read this data sheet and then use the PSoC Designer Integrated Development Environment (IDE). This data sheet is an overview of the PSoC integrated circuit and presents specific pin, register, and electrical specifications. PSoC Designer is a Microsoft® Windows-based, integrated development environment for the Programmable System-on-Chip (PSoC) devices. The PSoC Designer IDE runs on Windows XP or Windows Vista. For in depth information, along with detailed programming details, see the Technical Reference Manual for this PSoC device. For up-to-date ordering, packaging, and electrical specification information, see the latest PSoC device data sheets on the web at http://www.cypress.com. Application Notes Application notes are an excellent introduction to the wide variety of possible PSoC designs and are available at http://www.cypress.com. Development Kits PSoC Development Kits are available online from Cypress at http://www.cypress.com and through a growing number of regional and global distributors, which include Arrow, Avnet, Digi-Key, Farnell, Future Electronics, and Newark. Training Free PSoC technical training (on demand, webinars, and workshops) is available online at http://www.cypress.com. The training covers a wide variety of topics and skill levels to assist you in your designs. CYPros Consultants Certified PSoC Consultants offer everything from technical assistance to completed PSoC designs. To contact or become a PSoC Consultant go to http://www.cypress.com and refer to CYPros Consultants. Solutions Library Visit our growing library of solution focused designs at http://www.cypress.com. Here you can find various application designs that include firmware and hardware design files that enable you to complete your designs quickly. Technical Support For assistance with technical issues, search KnowledgeBase articles and forums at http://www.cypress.com. If you cannot find an answer to your question, call technical support at 1-800-541-4736. Document Number: 001-43084 Rev. *L This system provides design database management by project, an integrated debugger with In-Circuit Emulator, in-system programming support, and built-in support for third-party assemblers and C compilers. PSoC Designer also supports C language compilers developed specifically for the devices in the PSoC family. PSoC Designer Software Subsystems System-Level View A drag-and-drop visual embedded system design environment based on PSoC Express. In the system level view you create a model of your system inputs, outputs, and communication interfaces. You define when and how an output device changes state based upon any or all other system devices. Based upon the design, PSoC Designer automatically selects one or more PSoC programmable system-on-chip controllers that match your system requirements. PSoC Designer generates all embedded code, then compiles and links it into a programming file for a specific PSoC device. Chip-Level View The chip-level view is a more traditional integrated development environment (IDE). Choose a base device to work with and then select different onboard analog and digital components called user modules that use the PSoC blocks. Examples of user modules are ADCs, DACs, Amplifiers, and Filters. Configure the user modules for your chosen application and connect them to each other and to the proper pins. Then generate your project. This prepopulates your project with APIs and libraries that you can use to program your application. The device editor also supports easy development of multiple configurations and dynamic reconfiguration. Dynamic configuration allows for changing configurations at run time. Hybrid Designs You can begin in the system-level view, allow it to choose and configure your user modules, routing, and generate code, then switch to the chip-level view to gain complete control over on-chip resources. All views of the project share a common code editor, builder, and common debug, emulation, and programming tools. Page 6 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Code Generation Tools PSoC Designer supports multiple third party C compilers and assemblers. The code generation tools work seamlessly within the PSoC Designer interface and have been tested with a full range of debugging tools. The choice is yours. Assemblers. The assemblers allow assembly code to merge seamlessly with C code. Link libraries automatically use absolute addressing or are compiled in relative mode, and linked with other software modules to get absolute addressing. C Language Compilers. C language compilers are available that support the PSoC family of devices. The products allow you to create complete C programs for the PSoC family devices. The optimizing C compilers provide all the features of C tailored to the PSoC architecture. They come complete with embedded libraries providing port and bus operations, standard keypad and display support, and extended math functionality. Debugger The PSoC Designer Debugger subsystem provides hardware in-circuit emulation, allowing you to test the program in a physical system while providing an internal view of the PSoC device. Debugger commands allow the designer to read and program and read and write data memory, read and write I/O registers, read and write CPU registers, set and clear breakpoints, and provide program run, halt, and step control. The debugger also allows the designer to create a trace buffer of registers and memory locations of interest. Designing with PSoC Designer The development process for the PSoC device differs from that of a traditional fixed function microprocessor. The configurable analog and digital hardware blocks give the PSoC architecture a unique flexibility that pays dividends in managing specification change during development and by lowering inventory costs. These configurable resources, called PSoC Blocks, have the ability to implement a wide variety of user-selectable functions. The PSoC development process can be summarized in the following four steps: 1. Select components 2. Configure components 3. Organize and Connect 4. Generate, Verify, and Debug Select Components Both the system-level and chip-level views provide a library of prebuilt, pretested hardware peripheral components. In the system-level view, these components are called “drivers” and correspond to inputs (a thermistor, for example), outputs (a brushless DC fan, for example), communication interfaces (I2C-bus, for example), and the logic to control how they interact with one another (called valuators). In the chip-level view, the components are called “user modules”. User modules make selecting and implementing peripheral devices simple, and come in analog, digital, and programmable system-on-chip varieties. Online Help System Configure Components The online help system displays online, context-sensitive help for the user. Designed for procedural and quick reference, each functional subsystem has its own context-sensitive help. This system also provides tutorials and links to FAQs and an Online Support Forum to aid the designer in getting started. Each of the components you select establishes the basic register settings that implement the selected function. They also provide parameters and properties that allow you to tailor their precise configuration to your particular application. For example, a Pulse Width Modulator (PWM) User Module configures one or more digital PSoC blocks, one for each 8 bits of resolution. The user module parameters permit you to establish the pulse width and duty cycle. Configure the parameters and properties to correspond to your chosen application. Enter values directly or by selecting values from drop down menus. In-Circuit Emulator A low cost, high functionality ICE (In-Circuit Emulator) is available for development support. This hardware has the capability to program single devices. The emulator consists of a base unit that connects to the PC using a USB port. The base unit is universal and operates with all PSoC devices. Emulation pods for each device family are available separately. The emulation pod takes the place of the PSoC device in the target board and performs full speed (24 MHz) operation. Document Number: 001-43084 Rev. *L Both the system-level drivers and chip-level user modules are documented in data sheets that are viewed directly in the PSoC Designer. These data sheets explain the internal operation of the component and provide performance specifications. Each data sheet describes the use of each user module parameter or driver property, and other information you may need to successfully implement your design. Page 7 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Organize and Connect You can build signal chains at the chip level by interconnecting user modules to each other and the I/O pins, or connect system level inputs, outputs, and communication interfaces to each other with valuator functions. In the system-level view, selecting a potentiometer driver to control a variable speed fan driver and setting up the valuators to control the fan speed based on input from the pot selects, places, routes, and configures a programmable gain amplifier (PGA) to buffer the input from the potentiometer, an analog to digital converter (ADC) to convert the potentiometer’s output to a digital signal, and a PWM to control the fan. In the chip-level view, perform the selection, configuration, and routing so that you have complete control over the use of all on-chip resources. Generate, Verify, and Debug When you are ready to test the hardware configuration or move on to developing code for the project, perform the “Generate Application” step. This causes PSoC Designer to generate source code that automatically configures the device to your specification and provides the software for the system. Document Number: 001-43084 Rev. *L Both system-level and chip-level designs generate software based on your design. The chip-level design provides application programming interfaces (APIs) with high level functions to control and respond to hardware events at run-time and interrupt service routines that you can adapt as needed. The system-level design also generates a C main() program that completely controls the chosen application and contains placeholders for custom code at strategic positions allowing you to further refine the software without disrupting the generated code. A complete code development environment allows you to develop and customize your applications in C, assembly language, or both. The last step in the development process takes place inside the PSoC Designer’s Debugger subsystem. The Debugger downloads the HEX image to the In-Circuit Emulator (ICE) where it runs at full speed. Debugger capabilities rival those of systems costing many times more. In addition to traditional single-step, run-to-breakpoint and watch-variable features, the Debugger provides a large trace buffer and allows you define complex breakpoint events that include monitoring address and data bus values, memory locations and external signals. Page 8 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Pinouts This PSoC device family is available in a variety of packages that are listed in the following tables. Every port pin (labeled with a “P”) is capable of Digital I/O. However, Vss, Vdd, and XRES are not capable of Digital I/O. CY8C22345, CY8C21345 28-Pin SOIC Table 2. Pin Definitions Pin No. Type Digital Analog Pin Name Description 1 I/O I, MR P0[7] Integration Capacitor for MR 2 I/O I, ML P0[5] Integration Capacitor for ML 3 I/O I, ML P0[3] 4 I/O I, ML P0[1] 5 I/O I, ML P2[7] To Compare Column 0 6 I/O ML P2[5] Optional ADC External Vref 7 I/O ML P2[3] 8 I/O ML P2[1] 9 Power Vss Ground Connection 10 I/O ML P1[7] I2C Serial Clock (SCL) I2C Serial Data (SDA) 11 I/O ML P1[5] 12 I/O ML P1[3] 13 I/O ML P1[1] 14 Power Vss 15 I/O MR P1[0] 16 I/O MR P1[2] 17 I/O MR P1[4] 18 I/O MR P1[6] 19 Input XRES 20 I/O MR 21 I/O MR P2[2] 22 I/O MR P2[4] 23 I/O I, MR P2[6] 24 I/O I, MR P0[0] 25 I/O I, MR P0[2] 26 I/O I, MR P0[4] 27 I/O I, MR P0[6] 28 Power Figure 3. Pin Diagram AI, MR, P0[7] AI, ML, P0[5] AI, ML, P0[3] AI, ML, P0[1] AI, ML, P2[7] ADC_Ext_Vref, ML, P2[5] ML, P2[3] ML, P2[1] Vss I2C SCL, ML, P1[7] I2C SDA, ML, P1[5] ML, P1[3] I2C SCL, ML, P1[1] Vss 1 2 3 4 5 6 7 8 9 10 11 12 13 14 SOIC 28 27 26 25 24 23 22 21 20 19 18 17 16 15 Vdd P0[6], MR, AI P0[4], MR, AI P0[2], MR, AI P0[0], MR, AI P2[6], MR, AI P2[4], MR P2[2], MR P2[0], MR XRES P1[6], MR P1[4], MR, EXTCLK P1[2], MR P1[0], MR, I2C SDATA I2C Serial Clock (SCL), ISSP-SCLK[4] Ground Connection I2C Serial Clock (SCL), ISSP-SDATA[4] Optional External Clock Input (EXT-CLK) Active High Pin Reset with Internal Pull Down P2[0] Vdd To Compare Column 1 Supply Voltage LEGEND: A = Analog, I = Input, O = Output, M=Analog Mux input, MR= Analog Mux right input, ML= Analog Mux left input. Note 4. ISSP pin which is not Hi-Z at POR. Document Number: 001-43084 Rev. *L Page 9 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 CY8C22545 44-Pin TQFP Table 3. Pin Definitions I/O I/O I/O I/O I/O I/O I/O I/O 17 18 I/O Power MR Vss P1[0] 19 I/O MR P1[2] 20 21 22 23 24 25 26 I/O I/O I/O I/O I/O I/O MR MR MR MR MR MR P1[4] P1[6] P3[0] P3[2] P3[4] P3[6] XRES 27 I/O MR P4[0] 28 I/O MR P4[2] 29 I/O MR P4[4] Input 30 Power Vss 31 I/O MR P2[0] 32 I/O MR P2[2] 33 I/O MR P2[4] 34 I/O I, MR P2[6] 35 I/O I, MR P0[0] 36 I/O I, MR P0[2] 37 I/O I, MR P0[4] 38 I/O I, MR P0[6] 39 Power Ground Connection I2C Serial Clock (SCL) I2C Serial Data (SDA) ADC_Ext_Vref, ML, P2[5] ML, P2[3] ML, P2[1] Vdd ML, P4[5] ML, P4[3] ML, P4[1] Vss ML, P3[7] ML, P3[5] ML, P3[3] Crystal (XTALin), I2C Serial Clock (SCL), TC SCLK[4] Ground Connection Crystal (XTALout), I2C ] Serial Data (SDA), TC SDATA[4 1 2 3 4 5 TQFP 6 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 P2[4], MR P2[2], MR P2[0], MR Vss P4[4], MR P4[2], MR P4[0], MR XRES P3[6], MR P3[4], MR P3[2], MR MR, P1[6] MR, P3[0] Power Supply Voltage P0[5], ML, AI P0[7], MR, AI Vdd P0[6], MR, AI P0[4], MR, AI P0[2], MR, AI P0[0], MR, AI P2[6], MR, AI ML ML ML 41 40 Power I/O I/O I/O Optional ADC External Vref 39 38 37 36 35 34 ML ML ML ML ML ML ML ML P2[5] P2[3] P2[1] Vdd P4[5] P4[3] P4[1] Vss P3[7] P3[5] P3[3] P3[1] P1[7] P1[5] P1[3] P1[1] Figure 4. Pin Diagram P2[7], ML, AI P0[1], ML, AI P0[3], ML, AI ML ML ML Description 44 43 42 I/O I/O I/O Pin Name 12 13 14 15 16 17 18 19 20 21 22 Analog ML, P3[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Type Digital I2C SCL, ML, P1[7] I2C SDA, ML, P1[5] ML, P1[3] I2C SCL, XTALin, ML, P1[1] Vss I2C SDA, XTALout, MR, P1[0] MR, P1[2] EXTCLK, MR, P1[4] Pin No. Optional External Clock Input (EXTCLK) Active High Pin Reset with Internal Pull Down Ground Connection To Compare Column 1 Vdd Supply Voltage 40 I/O I, MR P0[7] Integration Capacitor for MR 41 I/O I, ML P0[5] Integration Capacitor for ML 42 I/O I, ML P0[3] 43 I/O I, ML P0[1] 44 I/O I, ML P2[7] To Compare Column 0 LEGEND: A = Analog, I = Input, O = Output, M=Analog Mux input, MR= Analog Mux right input, ML= Analog Mux left input. Document Number: 001-43084 Rev. *L Page 10 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Registers This section lists the registers of this PSoC device family by mapping tables. For detailed register information, refer the PSoC Programmable System-on Chip Technical Reference Manual. Register Conventions Register Mapping Tables Table 4. Abbreviations The PSoC device has a total register address space of 512 bytes. The register space is also referred to as I/O space and is broken into two parts. The XIO bit in the Flag register determines which bank the user is currently in. When the XIO bit is set, the user is said to be in the “extended” address space or the “configuration” registers. Convention Description RW Read and write register or bit(s) R Read register or bit(s) W Write register or bit(s) L Logical register or bit(s) C Clearable register or bit(s) # Access is bit specific Document Number: 001-43084 Rev. *L Note In the following register mapping tables, blank fields are Reserved and must not be accessed. Page 11 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Table 5. Register Map Bank 0 Table: User Space Name PRT0DR PRT0IE PRT0GS PRT0DM2 PRT1DR PRT1IE PRT1GS PRT1DM2 PRT2DR PRT2IE PRT2GS PRT2DM2 PRT3DR PRT3IE PRT3GS PRT3DM2 PRT4DR PRT4IE PRT4GS PRT4DM2 Addr (0,Hex) Access Name 00 RW 01 RW 02 RW 03 RW 04 RW 05 RW 06 RW 07 RW 08 RW 09 RW 0A RW 0B RW 0C RW 0D RW 0E RW 0F RW 10 RW CSD0_DR0_L 11 RW CSD0_DR1_L 12 RW CSD0_CNT_L 13 RW CSD0_CR0 14 RW CSD0_DR0_H 15 RW CSD0_DR1_H 16 RW CSD0_CNT_H 17 RW CSD0_CR1 18 RW CSD1_DR0_L 19 RW CSD1_DR1_L 1A RW CSD1_CNT_L 1B RW CSD1_CR0 1C RW CSD1_DR0_H 1D RW CSD1_DR1_H 1E RW CSD1_CNT_H 1F RW CSD_CR1 DBC00DR0 20 # AMX_IN DBC00DR1 21 W AMUX_CFG DBC00DR2 22 RW PWM_CR DBC00CR0 23 # ARF_CR DBC01DR0 24 # CMP_CR0 DBC01DR1 25 W ASY_CR DBC01DR2 26 RW CMP_CR1 DBC01CR0 27 # DCC02DR0 28 # ADC0_CR DCC02DR1 29 W ADC1_CR DCC02DR2 2A RW SADC_DH DCC02CR0 2B # SADC_DL DCC03DR0 2C # TMP_DR0 DCC03DR1 2D W TMP_DR1 DCC03DR2 2E RW TMP_DR2 DCC03CR0 2F # TMP_DR3 DBC10DR0 30 # DBC10DR1 31 W DBC10DR2 32 RW ACB00CR1* DBC10CR0 33 # ACB00CR2* DBC11DR0 34 # DBC11DR1 35 W DBC11DR2 36 RW ACB01CR1* DBC11CR0 37 # ACB01CR2* DCC12DR0 38 # DCC12DR1 39 W DCC12DR2 3A RW DCC12CR0 3B # DCC13DR0 3C # DCC13DR1 3D W DCC13DR2 3E RW DCC13CR0 3F # Shaded fields are Reserved and must not be accessed. Document Number: 001-43084 Rev. *L Addr (0,Hex) 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72* 73* 74 75 76* 77* 78 79 7A 7B 7C 7D 7E 7F Access # W RW # # W RW # # W RW # # W RW # R W R # R W R RW R W R # R W R RW RW RW RW RW # # RW RW # # RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW Name ASC10CR0* Addr (0,Hex) Access Name 80* RW 81 RW 82 RW 83 RW ASD11CR0* 84* RW 85 RW 86 RW 87 RW 88 RW PWMVREF0 89 RW PWMVREF1 8A RW IDAC_MODE 8B RW PWM_SRC 8C RW TS_CR0 8D RW TS_CMPH 8E RW TS_CMPL 8F RW TS_CR1 90 RW CUR PP 91 RW STK_PP 92 RW PRV PP 93 RW IDX_PP 94 RW MVR_PP 95 RW MVW_PP 96 RW I2C0_CFG 97 RW I2C0_SCR 98 RW I2C0_DR 99 RW I2C0_MSCR 9A RW INT_CLR0 9B RW INT_CLR1 9C RW INT_CLR2 9D RW INT_CLR3 9E RW INT_MSK3 9F RW INT_MSK2 A0 INT_MSK0 A1 INT_MSK1 A2 INT_VC A3 RES_WDT A4 DEC_DH A5 DEC_DL A6 DEC _CR0* A7 DEC_CR1* A8 W MUL0_X A9 W MUL0_Y AA R MUL0_DH AB R MUL0_DL AC RW ACC0_DR1 AD RW ACC0_DR0 AE RW ACC0_DR3 AF RW ACC0_DR2 RDI0RI B0 RW CPU A RDI0SYN B1 RW CPU_T1 RDI0IS B2 RW CPU_T2 RDI0LT0 B3 RW CPU_X RDI0LT1 B4 RW CPU PCL RDI0RO0 B5 RW CPU_PCH RDI0RO1 B6 RW CPU_SP RDI0DSM B7 RW CPU_F RDI1RI B8 RW CPU_TST0 RDI1SYN B9 RW CPU_TST1 RDI1IS BA RW CPU_TST2 RDI1LT0 BB RW CPU TST3 RDI1LT1 BC RW DAC1_D RDI1RO0 BD RW DAC0_D RDI1RO1 BE RW CPU_SCR1 RDI1DSM BF RW CPU_SCR0 # Access is bit specific. * has a different meaning. Addr (0,Hex) C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF Access RW RW RW RW RW RW RW RW # # RW # RW RW RW RW RW RW RW RW RW RW RW # RW # RW RW RW RW RW RW RW RW RC W RW RW RW RW W W R R RW RW RW RW # # # # # # # I RW RW RW # RW RW # # Page 12 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Table 6. Register Map Bank 1 Table: Configuration Space Name PRT0DM0 PRT0DM1 PRT0IC0 PRT0IC1 PRT1DM0 PRT1DM1 PRT1IC0 PRT1IC1 PRT2DM0 PRT2DM1 PRT2IC0 PRT2IC1 PRT3DM0 PRT3DM1 PRT3IC0 PRT3IC1 PRT4DM0 PRT4DM1 PRT4IC0 PRT4IC1 DBC00FN DBC00IN DBC00OU DBC00CR1 DBC01FN DBC01IN DBC01OU DBC01CR1 DCC02FN DCC02IN DCC02OU DBC02CR1 Addr (1,Hex) 0 1 2 3 4 5 6 7 8 9 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B Access RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW Name CMP0CR1 CMP0CR2 VDAC50CR0 CMP1CR1 CMP1CR2 VDAC51CR0 CSCMPCR0 CSCMPGOEN CSLUTCR0 CMPCOLMUX CMPPWMCR CMPFLTCR CMPCLK1 CMPCLK0 CLK_CR0 CLK_CR1 ABF_CR0 AMD_CR0 CMP_GO_EN CMP_GO_EN1 AMD_CR1 ALT_CR0 ALT_CR1 CLK_CR2 CLK_CR3 DCC03FN 2C RW TMP_DR0 DCC03IN 2D RW TMP_DR1 DCC03OU 2E RW TMP_DR2 DBC03CR1 2F RW TMP_DR3 DBC10FN 30 RW DBC10IN 31 RW DBC10OU 32 RW ACB00CR1* DBC10CR1 33 RW ACB00CR2* DBC11FN 34 RW DBC11IN 35 RW DBC11OU 36 RW ACB01CR1* DBC11CR1 37 RW ACB01CR2* DCC12FN 38 RW DCC12IN 39 RW DCC12OU 3A RW DBC12CR1 3B RW DCC13FN 3C RW DCC13IN 3D RW DCC13OU 3E RW DBC13CR1 3F RW Shaded fields are Reserved and must not be accessed. Document Number: 001-43084 Rev. *L Addr (1,Hex) 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B Access RW RW RW RW RW RW RW RW RW RW RW # RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW 6C 6D 6E 6F 70 71 72 73 74 75 76* 77* 78 79 7A 7B 7C 7D 7E 7F RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW Name ASC10CR0* Addr (1,Hex) Access Name 80* RW 81 RW 82 RW 83 RW ASD11CR0* 84* RW 85 RW 86 RW 87 RW 88 RW 89 RW 8A RW 8B RW 8C RW 8D RW 8E RW 8F RW 90 RW GDI_O_IN 91 RW GDI_E_IN 92 RW GDI_O_OU 93 RW GDI_E_OU 94 RW 95 RW 96 RW 97 RW 98 RW MUX_CR0 99 RW MUX_CR1 9A RW MUX_CR2 9B RW MUX_CR3 9C RW DAC_CR1# 9D RW OSC_GO_EN 9E RW OSC_CR4 9F RW OSC_CR3 GDI_O_IN_CR A0 RW OSC_CR0 GDI_E_IN_CR A1 RW OSC_CR1 GDI_O_OU_CR A2 RW OSC_CR2 GDI_E_OU_CR A3 RW VLT_CR RTC_H A4 RW VLT_CMP RTC_M A5 RW ADC0_TR* RTC_S A6 RW ADC1_TR* RTC_CR A7 RW V2BG_TR SADC_CR0 A8 RW IMO_TR SADC_CR1 A9 RW ILO_TR SADC_CR2 AA RW BDG_TR SADC_CR3TRI AB RW ECO_TR M SADC_CR4 AC RW MUX_CR4 I2C0_AD AD RW MUX_CR5 AE RW MUX_CR6 AF RW MUX_CR7 RDI0RI B0 RW CPU A RDI0SYN B1 RW CPU_T1 RDI0IS B2 RW CPU_T2 RDI0LT0 B3 RW CPU_X RDI0LT1 B4 RW CPU_PCL RDI0RO0 B5 RW CPU_PCH RDI0RO1 B6 RW CPU_SP RDI0DSM B7 RW CPU_F RDI1RI B8 RW FLS_PR0 RDI1SYN B9 RW FLS TR RDI1IS BA RW FLS_PR1 RDI1LT0 BB RW RDI1LT1 BC RW FAC_CR0 RDI1RO0 BD RW DAC_CR0# RDI1RO1 BE RW CPU_SCR1 RDI1DSM BF RW CPU_SCR0 # Access is bit specific. * has a different meaning. Addr (1,Hex) C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB Access RW RW RW RW RW RW RW RW # RW RW RW # RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW R RW RW RW W W RW W EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF RW RW RW RW # # # # # # # I RW W RW SW RW # # Page 13 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Electrical Specifications This section presents the DC and AC electrical specifications of this PSoC device family. For the latest electrical specifications, check the most recent data sheet by visiting http://www.cypress.com. Specifications are valid for -40°C ≤ TA ≤ 85°C and TJ ≤ 100°C, except where noted. Specifications for devices running at greater than 12 MHz are valid for -40°C ≤ TA ≤ 70°C and TJ ≤ 82°C. Figure 5. Voltage versus Operating Frequency 5.25 Vdd Voltage lid n g Va rati n e io Op Reg 4.75 3.00 93 kHz 12 MHz 24 MHz CPU Frequency Document Number: 001-43084 Rev. *L Page 14 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Absolute Maximum Ratings Exceeding maximum ratings may shorten the useful life of the device. User guidelines are not tested. Table 7. Absolute Maximum Ratings Symbol TSTG Description Storage Temperature TBAKETEMP Bake Temperature TBAKETIME Bake Time Min -55 Typ – Max +100 - 125 See Package label 72 Hours - Units Notes °C Higher storage temperatures reduce data retention time o C TA See package label Ambient Temperature with Power Applied -40 – +85 °C Vdd Supply Voltage on Vdd Relative to Vss -0.5 – +6.0 V VIO DC Input Voltage Vss - 0.5 – Vdd + 0.5 V VIOz DC Voltage Applied to Tristate Vss - 0.5 – Vdd + 0.5 V IMIO Maximum Current into any Port Pin ESD Electro Static Discharge Voltage LU Latch up Current -25 – +50 mA 2000 – – V – – 200 mA Min -40 -40 Typ – – Max +85 +100 Human Body Model ESD Operating Temperature Table 8. Operating Temperature Symbol TA TJ Description Ambient Temperature Junction Temperature Document Number: 001-43084 Rev. *L Units Notes °C °C The temperature rise from ambient to junction is package specific. See Table 29 on page 27. The user must limit the power consumption to comply with this requirement. Page 15 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 DC Electrical Characteristics DC Chip Level Specifications Table 9 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V and 3.3V at 25°C, and are for design guidance only, unless specified otherwise. Table 9. DC Chip Level Specifications Symbol Vdd Description Supply Voltage Min 3.0 Typ – Max 5.25 IDD Supply Current – 7 12 mA IDD3 Supply Current – 4 7 mA ISB Sleep (Mode) Current with POR, LVD, Sleep Timer, and WDT[5] – 3 6.5 μA ISBH Sleep (Mode) Current with POR, LVD, Sleep Timer, and WDT at high temperature[5] Sleep (Mode) Current with POR, LVD, Sleep Timer, WDT, and external crystal[5] – 4 25 μA – 4 7.5 μA Sleep (Mode) Current with POR, LVD, Sleep Timer, WDT, and external crystal at high temperature [5] Reference Voltage (Bandgap) – 5 26 μA 1.275 1.3 1.325 V ISBXTL ISBXTLH VREF Units Notes V See Table 16 on page 18 Conditions are Vdd = 5.0V, 25°C, CPU = 3 MHz, 48 MHz disabled. VC1 = 1.5 MHz VC2 = 93.75 kHz VC3 = 93.75 kHz Conditions are Vdd = 3.3V TA = 25°C, CPU = 3 MHz 48 MHz = Disabled VC1 = 1.5 MHz, VC2 = 93.75 kHz VC3 = 93.75 kHz Conditions are with internal slow speed oscillator, Vdd = 3.3V -40°C <= TA <= 55°C Conditions are with internal slow speed oscillator, Vdd = 3.3V 55°C < TA <= 85°C Conditions are with properly loaded, 1 μW max, 32.768 kHz crystal. Vdd = 3.3V, -40°C <= TA <= 55°C Conditions are with properly loaded, 1μW max, 32.768 kHz crystal. Vdd = 3.3 V, 55°C < TA <= 85°C Trimmed for appropriate Vdd DC GPIO Specifications Table 10 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V and 3.3V at 25°C and are for design guidance only, unless otherwise specified. Table 10. DC GPIO Specifications Symbol RPU Description Pull up Resistor Min 4 Typ 5.6 RPD VOH Max 8 Units kΩ Pull down Resistor 4 High Output Level Vdd - 1.0 5.6 8 kΩ – – V VOL Low Output Level – – 0.75 V IOH High Level Source Current 10 – – mA Notes IOH = 10 mA, Vdd = 4.75 to 5.25V (80 mA maximum combined IOH budget) IOL = 25 mA, Vdd = 4.75 to 5.25V (100 mA maximum combined IOL budget) VOH = Vdd-1.0V, see the limitations of the total current in the note for VOH. Note 5. Standby current includes all functions (POR, LVD, WDT, Sleep Time) needed for reliable system operation. This must be compared with devices that have similar functions enabled. Document Number: 001-43084 Rev. *L Page 16 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Table 10. DC GPIO Specifications (continued) Symbol IOL Description Low Level Sink Current Min 25 Typ – Max – Units mA Input Low Level – – 0.8 V Notes VOL = 0.75V, see the limitations of the total current in the note for VOL. Vdd = 3.0 to 5.25 VIL V Vdd = 3.0 to 5.25 – mV VIH Input High Level 2.1 – VH Input Hysterisis – 60 IIL Input Leakage (Absolute Value) – 1 – nA Gross tested to 1 μA CIN Capacitive Load on Pins as Input – 3.5 10 pF COUT Capacitive Load on Pins as Output – 3.5 10 pF Package and pin dependent. Temp = 25°C Package and pin dependent. Temp = 25°C DC Operational Amplifier Specifications The following tables list the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 11. 5V DC Operational Amplifier Specifications Symbol VOSOA Description Input Offset Voltage (absolute value) TCVOSOA Average Input Offset Voltage Drift Min – Typ 2.5 Max 15 Units mV – 10 – μV/°C Notes IEBOA[6] Input Leakage Current (Port 0 Analog Pins) – 200 – pA Gross tested to 1 μA CINOA Input Capacitance (Port 0 Analog Pins) – 4.5 9.5 pF Package and pin dependent. Temp = 25°C VCMOA Common Mode Voltage Range 0.0 – Vdd - 1 V Min Typ Max Units Table 12. 3.3V DC Operational Amplifier Specifications Symbol Description Notes VOSOA Input Offset Voltage (absolute value) – 2.5 15 mV TCVOSOA Average Input Offset Voltage Drift – 10 – μV/°C IEBOA[6] Input Leakage Current (Port 0 Analog Pins) – 200 – pA Gross tested to 1 μA CINOA Input Capacitance (Port 0 Analog Pins) – 4.5 9.5 pF Package and pin dependent. Temp = 25°C VCMOA Common Mode Voltage Range 0 – Vdd – 1 V DC Low Power Comparator Specifications Table 13 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C respectively. Typical parameters apply to 5V at 25°C and are for design guidance only. Table 13. DC Low Power Comparator Specifications Symbol VREFLPC VOSLPC Description Low power comparator (LPC) reference voltage range LPC voltage offset Min 0.2 Typ – Max Vdd - 1 Units V – 2.5 30 mV Notes Note 6. Atypical behavior: IEBOA of Port 0 Pin 0 is below 1 nA at 25°C; 50 nA over temperature. Use Port 0 Pins 1-7 for the lowest leakage of 200 nA. Document Number: 001-43084 Rev. *L Page 17 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 SAR10 ADC DC Specifications Table 14 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 14. SAR10 ADC DC Specifications Symbol Description Min Typ Max Units Notes Vadcvref Reference voltage at pin P2[5] when configured as ADC reference voltage 3.0 – 5.25 V When VREF is buffered inside ADC, the voltage level at P2[5] (when configured as ADC reference voltage) must be always maintained to be at least 300 mV less than the chip supply voltage level on Vdd pin. (Vadcvref < Vdd) Iadcvref Current when P2[5] is configured as ADC VREF - – 0.5 mA Disables the internal voltage reference buffer INL at 10 bits Integral Nonlinearity -2.5 – 2.5 LSB For VDD ≥ 3.0V and Vref ≥ 3.0V -5.0 – 5.0 LSB For VDD < 3.0V or Vref < 3.0V DNL at 10 bits Differential Nonlinearity SPS Sample per second -1.5 – 1.5 LSB For VDD≥ 3.0V and Vref ≥ 3.0V -4.0 – 4.0 LSB For VDD < 3.0V or Vref < 3.0V – – 150 ksps Resolution 10 bits DC Analog Mux Bus Specifications Table 15 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 15. DC Analog Mux Bus Specifications Symbol Description Min Typ Max Units RSW Switch Resistance to Common Analog Bus – – 400 Ω Rgnd Resistance of Initialization Switch to gnd – – 800 Ω Notes Vdd ≥ 3.00 DC POR and LVD Specifications Table 16 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 16. DC POR and LVD Specifications Symbol Description VPPOR1 VPPOR2 Vdd Value for PPOR Trip PORLEV[1:0] = 01b PORLEV[1:0] = 10b VLVD2 VLVD3 VLVD4 VLVD5 VLVD6 VLVD7 Vdd Value for LVD Trip VM[2:0] = 010b VM[2:0] = 011b VM[2:0] = 100b VM[2:0] = 101b VM[2:0] = 110b VM[2:0] = 111b Document Number: 001-43084 Rev. *L Min Typ Max Units – 2.82 4.55 2.95 4.70 V V 2.95 3.06 4.37 4.50 4.62 4.71 3.02 3.13 4.48 4.64 4.73 4.81 3.09 3.20 4.55 4.75 4.83 4.95 V V V V V V Notes Vdd must be greater than or equal to 3.0V during startup, reset from the XRES pin, or reset from Watchdog. Page 18 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 DC Programming Specifications Table 17 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 17. DC Programming Specifications Min Typ Max Units Notes VDDP Symbol VDD for programming and erase Description 4.5 5.0 5.5 V VDDLV Low VDD for verify 3.0 3.1 3.2 V VDDHV High VDD for verify 5.1 5.2 5.3 V VDDIWRITE Supply voltage for flash write operation 3.0 – 5.25 V This specification applies to the functional requirements of external programmer tools This specification applies to the functional requirements of external programmer tools This specification applies to the functional requirements of external programmer tools This specification applies to this device when it is executing internal flash writes IDDP Supply Current during Programming or Verify – 5 25 mA Input Low Voltage during Programming or Verify VIHP Input High Voltage during Programming or Verify IILP Input Current when Applying Vilp to P1[0] or P1[1] during Programming or Verify IIHP Input Current when Applying Vihp to P1[0] or P1[1] during Programming or Verify VOLV Output Low Voltage during Programming or Verify VOHV Output High Voltage during Programming or Verify FlashENPB Flash Endurance (per block)[8] FlashENT Flash Endurance (total)[7] – – 0.8 V 2.2 – – V – – 0.2 mA – – 1.5 mA – – Vss + 0.75 V Vdd - 1.0 – Vdd V VILP FlashDR Flash Data Retention Driving internal pull down resistor Driving internal pull down resistor 50,000 – – – Erase/write cycles per block 1,800,000 – – – Erase/write cycles 10 – – Years DC I2C Specifications Table 18 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 18. DC I2C Specifications Parameter VILI2C[9] VIHI2C[9] Description Min Typ Max Units Notes Input low level – – 0.3 × VDD V – – 0.25 × VDD V 4.75 V ≤ VDD ≤ 5.25 V Input high level 0.7 × VDD – – V 3.0 V ≤ VDD ≤ 5.25 V 3.0 V ≤ VDD ≤ 3.6 V Note 7. A maximum of 36 x 50,000 block endurance cycles is allowed. This may be balanced between operations on 36x1 blocks of 50,000 maximum cycles each, 36x2 blocks of 25,000 maximum cycles each, or 36x4 blocks of 12,500 maximum cycles each (to limit the total number of cycles to 36x50,000 and that no single block ever sees more than 50,000 cycles). For the full industrial range, the user must employ a temperature sensor user module (FlashTemp) and feed the result to the temperature argument before writing. Refer to the Flash APIs Application Note AN2015 at http://www.cypress.com under Application Notes for more information. 8. The 50,000 cycle Flash endurance per block is guaranteed only if the Flash operates within one voltage range. Voltage ranges are 3.0V to 3.6V and 4.75V to 5.25V 9. All GPIOs meet the DC GPIO VIL and VIH specifications found in the DC GPIO specifications sections.The I2C GPIO pins also meet the above specs. Document Number: 001-43084 Rev. *L Page 19 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC Electrical Characteristics AC Chip Level Specifications The following tables list the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 19. 5V and 3.3V AC Chip-Level Specifications Symbol FIMO24 Description Internal Main Oscillator Frequency for 24 MHz FIMO6 Internal Main Oscillator Frequency for 6 MHz FCPU1 CPU Frequency (5V Nominal) FCPU2 CPU Frequency (3.3V Nominal) FBLK5 Min 22.8 Min(%) Typ Max Max(%) Units Notes – 24 25.2[10,11 – MHz Trimmed for 5V or 3.3V ,12] operation using factory trim values. See Figure 5 on page 14. SLIMO mode = 0 < 85 [10,11, 5.5 6 MHz Trimmed for 5V or 3.3V 8 6.5 8 12] operation using factory trim values. See Figure 5 on page 14. SLIMO mode = 0 < 85. 0.089 – 24 24.6[10,11 – MHz 24 MHz only for ] SLIMO mode = 0. 0.089 – 12 12.3[11,12 – MHz SLIMO mode = 0. Digital PSoC Block Frequency0(5V Nominal) 0 – 48 49.2[10,11 – MHz Refer to Table 23 on page 22. FBLK33 Digital PSoC Block Frequency (3.3V Nominal) 0 – 24 24.6[11,13 – MHz F32K1 Internal Low Speed Oscillator Frequency 15 – 32 85 – kHz F32KU Untrimmed Internal Low Speed Oscillator Frequency 5 – – 100 – TXRST External Reset Pulse Width 10 – – – – kHz The ILO is not adjusted with the factory trim values until after the CPU starts running. See the “System Resets” section in the Technical Reference Manual. µs DC24M DCILO FOUT48M 24 MHz Duty Cycle Internal Low Speed Oscillator Duty Cycle 48 MHz Output Frequency 40 20 46.8 – – – 50 50 48.0 60 80 49.2 – – – Maximum frequency of signal on row input or row output SRPOWERUP Power supply slew rate – – – 12.3 – – – – 250 – TPOWERUP Time from end of POR to CPU executing code – – – 100 – 24 MHz IMO cycle-to-cycle jitter (RMS) 24 MHz IMO long term N cycle-to-cycle jitter (RMS) 24 MHz IMO period jitter (RMS) – – – – 200 300 700 900 – – ps ps – – 100 400 – ps 24 MHz IMO cycle-to-cycle jitter (RMS) 24 MHz IMO long term N cycle-to-cycle jitter (RMS) 24 MHz IMO period jitter (RMS) – – – – 200 300 800 1200 – – ps ps – – 100 700 – ps FMAX tjit_IMO [14] tjit_PLL [14] ] ,13] ] % % MHz Trimmed. Utlizing factory trim values. MHz V/ms Vdd slew rate during power up. ms N = 32 N = 32 Notes 10. Valid only for 4.75V < Vdd < 5.25V. 11. Accuracy derived from Internal Main Oscillator with appropriate trim for Vdd range. 12. 3.0V < Vdd < 3.6V. See Application Note AN2012 “Adjusting PSoC Microcontroller Trims for Dual Voltage-Range Operation” for information on trimming for operation at 3.3V. 13. Refer to the individual user module data sheets for information on maximum frequencies for user modules. 14. Refer to Cypress Jitter Specifications application note, Understanding Datasheet Jitter Specifications for Cypress Timing Products – AN5054 for more information. Document Number: 001-43084 Rev. *L Page 20 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC GPIO Specifications Table 20 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 20. 5V and 3.3V AC GPIO Specifications Symbol Description Min Typ Max Units Notes FGPIO GPIO Operating Frequency 0 – 12 MHz TRiseF Rise Time, Normal Strong Mode, Cload = 50 pF 3 – 18 ns Normal Strong Mode Vdd = 4.5 to 5.25V, 10% - 90% TFallF Fall Time, Normal Strong Mode, Cload = 50 pF 2 – 18 ns Vdd = 4.5 to 5.25V, 10% - 90% TRiseS Rise Time, Slow Strong Mode, Cload = 50 pF 7 27 – ns Vdd = 3 to 5.25V, 10% - 90% TFallS Fall Time, Slow Strong Mode, Cload = 50 pF 7 22 – ns Vdd = 3 to 5.25V, 10% - 90% Figure 6. GPIO Timing Diagram 90% GPIO Pin Output Voltage 10% TRiseF TRiseS TFallF TFallS AC Operational Amplifier Specifications Table 21 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 21. AC Operational Amplifier Specifications Symbol TCOMP Description Comparator Mode Response Time, 50 mV Min Typ Max 100 Units ns Vdd ≥ 3.0V Notes AC Low Power Comparator Specifications Table 22 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V at 25°C and are for design guidance only. Table 22. AC Low Power Comparator Specifications Symbol TRLPC Description LPC response time Document Number: 001-43084 Rev. *L Min – Typ – Max 50 Units Notes μs ≥ 50 mV overdrive comparator reference set within VREFLPC Page 21 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC Digital Block Specifications The following tables list the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V, at 25°C and are for design guidance only. Table 23. AC Digital Block Specifications Function All functions Timer Counter Dead Band CRCPRS (PRS Mode) Description Block Input Clock Frequency Vdd ≥ 4.75V Vdd < 4.75V Input Clock Frequency No Capture, Vdd ≥ 4.75V No Capture, Vdd < 4.75V With Capture Capture Pulse Width Input Clock Frequency No Enable Input, Vdd ≥ 4.75V No Enable Input, Vdd < 4.75V With Enable Input Enable Input Pulse Width Kill Pulse Width Asynchronous Restart Mode Synchronous Restart Mode Disable Mode Input Clock Frequency Vdd ≥ 4.75V Vdd < 4.75V Input Clock Frequency Vdd ≥ 4.75V Vdd < 4.75V Input Clock Frequency CRCPRS (CRC Mode) SPIM Input Clock Frequency SPIS Transmitter Receiver Input Clock (SCLK) Frequency Width of SS_Negated Between Transmissions Input Clock Frequency Vdd ≥ 4.75V, 2 Stop Bits Vdd ≥ 4.75V, 1 Stop Bit Vdd < 4.75V Input Clock Frequency Vdd ≥ 4.75V, 2 Stop Bits Vdd ≥ 4.75V, 1 Stop Bit Vdd < 4.75V Min Typ Max Units Notes – – – – 50.4[16] 25.2[16] MHz MHz – – – 50[15] – – – – 50.4[16] 25.2[16] 25.2[16] – MHz MHz MHz ns – – – 50[15] – – – – 50.4[16] 25.2[16] 25.2[16] – MHz MHz MHz ns 20 50[15] 50[15] – – – – – – ns ns ns – – – – 50.4[16] 25.2[16] MHz MHz – – – – – – 50.4[16] 25.2[16] 25.2[16] MHz MHz MHz – – 8.4[16] – – 4.2[16] 50[15] – – – – – – – – 50.4[16] 25.2[16] 25.2[16] MHz The SPI serial clock (SCLK) frequency is equal to the input clock frequency divided by 2. MHz The input clock is the SPI SCLK in SPIS mode. ns The baud rate is equal to the input MHz clock frequency divided by 8. – – – – – – 50.4[16] 25.2[16] 25.2[16] MHz MHz The baud rate is equal to the input MHz clock frequency divided by 8. MHz MHz Notes 15. 50 ns minimum input pulse width is based on the input synchronizers running at 24 MHz (42 ns nominal period). 16. Accuracy derived from IMO with appropriate trim for VDD range. Document Number: 001-43084 Rev. *L Page 22 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC External Clock Specifications The following tables list the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V or 3.3V at 25°C and are for design guidance only. Table 24. 5V AC External Clock Specifications Symbol Description Min Typ Max Units FOSCEXT Frequency 0.093 – 24.6 MHz – High Period 20.6 – 5300 ns – Low Period 20.6 – – ns – Power Up IMO to Switch 150 – – μs Notes Table 25. 3.3V AC External Clock Specifications Min Typ Max Units FOSCEXT Symbol Frequency with CPU Clock divide by 1 Description 0.093 – 12.3 MHz Maximum CPU frequency is 12 MHz at 3.3V. With the CPU clock divider set to 1, the external clock must adhere to the maximum frequency and duty cycle requirements. FOSCEXT Frequency with CPU Clock divide by 2 or greater 0.186 – 24.6 MHz If the frequency of the external clock is greater than 12 MHz, the CPU clock divider must be set to 2 or greater. In this case, the CPU clock divider ensures that the fifty percent duty cycle requirement is met. – High Period with CPU Clock divide by 1 41.7 – 5300 ns – Low Period with CPU Clock divide by 1 41.7 – – ns – Power Up IMO to Switch 150 – – μs Notes SAR10 ADC AC Specifications Table 26 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V and 3.3V at 25°C and are for design guidance only. Table 26. SAR10 ADC AC Specifications Symbol Description Min Typ Max Units Freq3 Input clock frequency 3V – – 2.7 MHz Freq5 Input clock frequency 5V – – 2.7 MHz Document Number: 001-43084 Rev. *L Notes Page 23 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC Programming Specifications Table 27 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, or 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V, or 3.3V at 25°C and are for design guidance only. Table 27. AC Programming Specifications Symbol Description Min Typ Max Units Notes TRSCLK Rise Time of SCLK 1 – 20 ns TFSCLK Fall Time of SCLK 1 – 20 ns TSSCLK Data Set up Time to Falling Edge of SCLK 40 – – ns THSCLK Data Hold Time from Falling Edge of SCLK 40 – – ns FSCLK Frequency of SCLK 0 – 8 MHz FSCLK3 Frequency of SCLK3 0 – 6 MHz VDD < 3.6V TERASEB Flash Erase Time (Block) – 10 – ms TWRITE Flash Block Write Time – 40 – ms TDSCLK Data Out Delay from Falling Edge of SCLK – – 55 ns 3.6 < Vdd; at 30 pF Load TDSCLK3 Data Out Delay from Falling Edge of SCLK – – 65 ns 3.0 ≤ Vdd ≤ 3.6; at 30 pF Load TERASEALL Flash Erase Time (Bulk) – 40 – ns TPROGRAM_HOT Flash Block Erase + Flash Block Write Time – – 100 ms TPROGRAM_COLD Flash Block Erase + Flash Block Write Time – – 200 ms Document Number: 001-43084 Rev. *L Page 24 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 AC I2C Specifications Table 28 lists the guaranteed maximum and minimum specifications for the voltage and temperature ranges: 4.75V to 5.25V and -40°C ≤ TA ≤ 85°C, and 3.0V to 3.6V and -40°C ≤ TA ≤ 85°C, respectively. Typical parameters apply to 5V, 3.3V, or 2.7V at 25°C and are for design guidance only. Table 28. AC Characteristics of the I2C SDA and SCL Pins for Vdd ≥ 3.0V Symbol Standard Mode Min Max 0 100 Description FSCLI2C SCL Clock Frequency THDSTAI2C TLOWI2C Hold Time (repeated) START Condition. After this period, the first clock pulse is generated. LOW Period of the SCL Clock THIGHI2C TSUSTAI2C THDDATI2C Fast Mode Min Max 0 400 Units kHz 4.0 – 0.6 – μs 4.7 – 1.3 – μs HIGH Period of the SCL Clock 4.0 – 0.6 – μs Setup Time for a Repeated START Condition Data Hold Time 4.7 – 0.6 – μs 0 – 0 – μs TSUDATI2C Data Setup Time 250 – 100[10] – ns TSUSTOI2C Setup Time for STOP Condition 4.0 – 0.6 – μs TBUFI2C Bus Free Time Between a STOP and START Condition Pulse Width of spikes are suppressed by the Input Filter 4.7 – 1.3 – μs – – 0 50 ns TSPI2C Notes Figure 7. Definition for Timing for Fast/Standard Mode on the I2C Bus I2C_SDA TSUDATI2C THDSTAI2C TSPI2C THDDATI2CTSUSTAI2C TBUFI2C I2C_SCL THIGHI2C TLOWI2C S START Condition TSUSTOI2C Sr Repeated START Condition P S STOP Condition Note 10. A Fast-Mode I2C-bus device may be used in a Standard-Mode I2C-bus system, but the requirement TSUDATI2C ≥ 250 ns must then be met. This is automatically the case if the device does not stretch the LOW period of the SCL signal. If such device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line trmax + TSUDATI2C = 1000 + 250 = 1250 ns (according to the Standard-Mode I2C-bus specification) before the SCL line is released. Document Number: 001-43084 Rev. *L Page 25 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Packaging Information Figure 8. 28-Pin SOIC NOTE : PIN 1 ID 1. JEDEC STD REF MO-119 2. BODY LENGTH DIMENSION DOES NOT INCLUDE MOLD PROTRUSION/END FLASH,BUT 14 DOES INCLUDE MOLD MISMATCH AND ARE MEASURED AT THE MOLD PARTING LINE. 1 MOLD PROTRUSION/END FLASH SHALL NOT EXCEED 0.010 in (0.254 mm) PER SIDE MIN. MAX. 3. DIMENSIONS IN INCHES 0.291[7.39] 4. PACKAGE WEIGHT 0.85gms 0.300[7.62] 0.394[10.01] * 0.419[10.64] 15 28 PART # S28.3 STANDARD PKG. SZ28.3 LEAD FREE PKG. 0.026[0.66] 0.032[0.81] SEATING PLANE 0.697[17.70] 0.713[18.11] 0.092[2.33] 0.105[2.67] 0.004[0.10] 0.050[1.27] 0.013[0.33] 0.004[0.10] * 0.019[0.48] 0.0118[0.30] TYP. 0.0091[0.23] 0.0125[3.17] 0.015[0.38] 0.050[1.27] 51-85026 *E Figure 9. 44-Pin TQFP 12.00±0.25 SQ 10.00±0.10 SQ 44 34 0° MIN. 33 1 0.37±0.05 R. 0.08 MIN. 0.20 MAX. STAND-OFF 0.05 MIN. 0.15 MAX. 0.25 GAUGE PLANE R. 0.08 MIN. 0.20 MIN. 0-7° 0.20 MIN. 11 1.00 REF. 0.80 B.S.C. 23 DETAIL 12 0.60±0.15 A 22 NOTE: 1. JEDEC STD REF MS-026 SEATING PLANE 1.60 MAX. 12°±1° (8X) 1.40±0.05 2. BODY LENGTH DIMENSION DOES NOT INCLUDE MOLD PROTRUSION /END FLASH MOLD PROTRUSION/END FLASH SHALL NOT EXCEED 0.0098 in (0.25 mm) PER SIDE BODY LENGTH DIMENSIONS ARE MAX PLASTIC BODY SIZE INCLUDING MOLD MISMATCH 3. DIMENSIONS IN MILLIMETERS 0.10 0.20 MAX. SEE DETAIL A 51-85064 *D Document Number: 001-43084 Rev. *L Page 26 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Thermal Impedances Table 29. Thermal Impedances per Package Typical θJA [11] Package 28 SOIC 68°C/W 44 TQFP 61°C/W Solder Reflow Peak Temperature Following is the minimum solder reflow peak temperature to achieve good solderability. Table 30. Thermal Impedances per Package Package Maximum Peak Temperature Time at Maximum Peak Temperature 28 SOIC 260 °C 20 s 44 TQFP 260 °C 20 s Ordering Information The following table lists the key package features and ordering codes of this PSoC device family. Ordering Code Flash (Kbytes) RAM (Bytes) Temperature Range Digital Blocks (Rows of 4) Analog Blocks (Columns of 3) Digital I/O Pins Analog Inputs Analog Outputs XRES Pin Table 31. PSoC Device Family Key Features and Ordering Information 28 SOIC CY8C21345-24SXI 8 512B -40°C to +85°C 4 6 24 10 0 Y 28 SOIC (Tape and Reel) CY8C21345-24SXIT 8 512B -40°C to +85°C 4 6 24 10 0 Y 28 SOIC CY8C22345-24SXI 16 1K -40°C to +85°C 8 6 24 10 0 Y 28 SOIC (Tape and Reel) CY8C22345-24SXIT 16 1K -40°C to +85°C 8 6 24 10 0 Y 44 TQFP CY8C22545-24AXI 16 1K -40°C to +85°C 8 6 38 10 0 Y 44 TQFP (Tape and Reel) CY8C22545-24AXIT 16 1K -40°C to +85°C 8 6 38 10 0 Y Package Ordering Code Definitions CY 8 C 2x xxx-SPxx Package Type: Thermal Rating: PX = PDIP Pb-Free C = Commercial SX = SOIC Pb-Free I = Industrial PVX = SSOP Pb-Free E = Extended LFX/LTX = QFN Pb-Free AX = TQFP Pb-Free CPU Speed: 24 MHz Part Number Family Code (21, 22) Technology Code: C = CMOS Marketing Code: 8 = PSoC Company ID: CY = Cypress Document Number: 001-43084 Rev. *L Page 27 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Acronyms Acronyms Used Table 32 lists the acronyms that are used in this document. Table 32. Acronyms Used in this Datasheet Acronym AC Description Acronym Description alternating current MAC multiply-accumulate ADC analog-to-digital converter MCU microcontroller unit API application programming interface MIPS million instructions per second CMOS complementary metal oxide semiconductor PCB printed circuit board CPU central processing unit PGA programmable gain amplifier CRC cyclic redundancy check PLL phase-locked loop CSD capsense sigma delta POR power on reset CT continuous time PPOR precision power on reset DAC digital-to-analog converter PRS pseudo-random sequence DC direct current PSoC® Programmable System-on-Chip DNL differential nonlinearity PWM pulse width modulator ECO external crystal oscillator QFN quad flat no leads EEPROM electrically erasable programmable read-only memory RTC real time clock FSK frequency-shift keying SAR successive approximation GPIO general-purpose I/O SC switched capacitor I/O input/output SLIMO slow IMO ICE in-circuit emulator SOIC small-outline integrated circuit IDE integrated development environment SPI™ serial peripheral interface IDAC current DAC SRAM static random access memory ILO internal low speed oscillator SROM supervisory read only memory IMO internal main oscillator SSOP shrink small-outline package INL integral nonlinearity TQFP thin quad flat pack IrDA infrared data association UART universal asynchronous reciever / transmitter ISSP in-system serial programming USB universal serial bus LPC low power comparator WDT watchdog timer LSB least-significant bit XRES external reset LVD low voltage detect Reference Documents CY8C22x45 and CY8C21345 PSoC® Programmable System-on-Chip™ Technical Reference Manual (TRM) (001-48461) Design Aids – Reading and Writing PSoC® Flash – AN2015 (001-40459) Adjusting PSoC® Trims for 3.3 V and 2.7 V Operation – AN2012 (001-17397) Understanding Datasheet Jitter Specifications for Cypress Timing Products – AN5054 (001-14503) Notes 11. TJ = TA + POWER x θJA Document Number: 001-43084 Rev. *L Page 28 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Document Conventions Units of Measure Table 33 lists the units of measures. Table 33. Units of Measure Symbol Unit of Measure Symbol Unit of Measure kB 1024 bytes mV millivolts °C degree Celsius nA nanoampere kilohertz ns nanosecond kHz kΩ LSB MHz kilohm W ohm least significant bit % percent megahertz pF picofarad microampere ps picosecond µs microsecond sps samples per second µV microvolts pA pikoampere V volts µA mA milliampere mm millimeter µW microwatts ms millisecond W watt Numeric Conventions Hexadecimal numbers are represented with all letters in uppercase with an appended lowercase ‘h’ (for example, ‘14h’ or ‘3Ah’). 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 decimals. Glossary active high 5. A logic signal having its asserted state as the logic 1 state. 6. A logic signal having the logic 1 state as the higher voltage of the two states. analog blocks The basic programmable opamp circuits. These are SC (switched capacitor) and CT (continuous time) blocks. These blocks can be interconnected to provide ADCs, DACs, multi-pole filters, gain stages, and much more. analog-to-digital (ADC) A device that changes an analog signal to a digital signal of corresponding magnitude. Typically, an ADC converts a voltage to a digital number. The digital-to-analog (DAC) converter performs the reverse operation. API (Application Programming Interface) A series of software routines that comprise an interface between a computer application and lower level services and functions (for example, user modules and libraries). APIs serve as building blocks for programmers that create software applications. asynchronous A signal whose data is acknowledged or acted upon immediately, irrespective of any clock signal. bandgap reference A stable voltage reference design that matches the positive temperature coefficient of VT with the negative temperature coefficient of VBE, to produce a zero temperature coefficient (ideally) reference. bandwidth 1. The frequency range of a message or information processing system measured in hertz. 2. The width of the spectral region over which an amplifier (or absorber) has substantial gain (or loss); it is sometimes represented more specifically as, for example, full width at half maximum. Document Number: 001-43084 Rev. *L Page 29 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Glossary (continued) bias 1. A systematic deviation of a value from a reference value. 2. The amount by which the average of a set of values departs from a reference value. 3. The electrical, mechanical, magnetic, or other force (field) applied to a device to establish a reference level to operate the device. block 1. A functional unit that performs a single function, such as an oscillator. 2. A functional unit that may be configured to perform one of several functions, such as a digital PSoC block or an analog PSoC block. buffer 1. A storage area for data that is used to compensate for a speed difference, when transferring data from one device to another. Usually refers to an area reserved for IO operations, into which data is read, or from which data is written. 2. A portion of memory set aside to store data, often before it is sent to an external device or as it is received from an external device. 3. An amplifier used to lower the output impedance of a system. bus 1. A named connection of nets. Bundling nets together in a bus makes it easier to route nets with similar routing patterns. 2. A set of signals performing a common function and carrying similar data. Typically represented using vector notation; for example, address[7:0]. 3. One or more conductors that serve as a common connection for a group of related devices. clock The device that generates a periodic signal with a fixed frequency and duty cycle. A clock is sometimes used to synchronize different logic blocks. comparator An electronic circuit that produces an output voltage or current whenever two input levels simultaneously satisfy predetermined amplitude requirements. compiler A program that translates a high level language, such as C, into machine language. configuration space In PSoC devices, the register space accessed when the XIO bit, in the CPU_F register, is set to ‘1’. crystal oscillator An oscillator in which the frequency is controlled by a piezoelectric crystal. Typically a piezoelectric crystal is less sensitive to ambient temperature than other circuit components. cyclic redundancy A calculation used to detect errors in data communications, typically performed using a linear check (CRC) feedback shift register. Similar calculations may be used for a variety of other purposes such as data compression. data bus A bi-directional set of signals used by a computer to convey information from a memory location to the central processing unit and vice versa. More generally, a set of signals used to convey data between digital functions. debugger A hardware and software system that allows the user to analyze the operation of the system under development. A debugger usually allows the developer to step through the firmware one step at a time, set break points, and analyze memory. dead band A period of time when neither of two or more signals are in their active state or in transition. digital blocks The 8-bit logic blocks that can act as a counter, timer, serial receiver, serial transmitter, CRC generator, pseudo-random number generator, or SPI. Document Number: 001-43084 Rev. *L Page 30 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Glossary (continued) digital-to-analog (DAC) A device that changes a digital signal to an analog signal of corresponding magnitude. The analogto-digital (ADC) converter performs the reverse operation. duty cycle The relationship of a clock period high time to its low time, expressed as a percent. emulator Duplicates (provides an emulation of) the functions of one system with a different system, so that the second system appears to behave like the first system. external reset (XRES) An active high signal that is driven into the PSoC device. It causes all operation of the CPU and blocks to stop and return to a pre-defined state. flash An electrically programmable and erasable, non-volatile technology that provides users with the programmability and data storage of EPROMs, plus in-system erasability. Non-volatile means that the data is retained when power is off. Flash block The smallest amount of Flash ROM space that may be programmed at one time and the smallest amount of Flash space that may be protected. A Flash block holds 64 bytes. frequency The number of cycles or events per unit of time, for a periodic function. gain The ratio of output current, voltage, or power to input current, voltage, or power, respectively. Gain is usually expressed in dB. I2C A two-wire serial computer bus by Philips Semiconductors (now NXP Semiconductors). I2C is an Inter-Integrated Circuit. It is used to connect low-speed peripherals in an embedded system. The original system was created in the early 1980s as a battery control interface, but it was later used as a simple internal bus system for building control electronics. I2C uses only two bi-directional pins, clock and data, both running at +5V and pulled high with resistors. The bus operates at 100 kbits/second in standard mode and 400 kbits/second in fast mode. ICE The in-circuit emulator that allows users to test the project in a hardware environment, while viewing the debugging device activity in a software environment (PSoC Designer). input/output (I/O) A device that introduces data into or extracts data from a system. interrupt A suspension of a process, such as the execution of a computer program, caused by an event external to that process, and performed in such a way that the process can be resumed. interrupt service routine (ISR) A block of code that normal code execution is diverted to when the M8C receives a hardware interrupt. Many interrupt sources may each exist with its own priority and individual ISR code block. Each ISR code block ends with the RETI instruction, returning the device to the point in the program where it left normal program execution. jitter 1. A misplacement of the timing of a transition from its ideal position. A typical form of corruption that occurs on serial data streams. 2. The abrupt and unwanted variations of one or more signal characteristics, such as the interval between successive pulses, the amplitude of successive cycles, or the frequency or phase of successive cycles. low-voltage detect A circuit that senses Vdd and provides an interrupt to the system when Vdd falls below a (LVD) selected threshold. M8C An 8-bit Harvard-architecture microprocessor. The microprocessor coordinates all activity inside a PSoC by interfacing to the Flash, SRAM, and register space. Document Number: 001-43084 Rev. *L Page 31 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Glossary (continued) master device A device that controls the timing for data exchanges between two devices. Or when devices are cascaded in width, the master device is the one that controls the timing for data exchanges between the cascaded devices and an external interface. The controlled device is called the slave device. microcontroller An integrated circuit chip that is designed primarily for control systems and products. In addition to a CPU, a microcontroller typically includes memory, timing circuits, and IO circuitry. The reason for this is to permit the realization of a controller with a minimal quantity of chips, thus achieving maximal possible miniaturization. This in turn, reduces the volume and the cost of the controller. The microcontroller is normally not used for general-purpose computation as is a microprocessor. mixed-signal The reference to a circuit containing both analog and digital techniques and components. modulator A device that imposes a signal on a carrier. noise 1. A disturbance that affects a signal and that may distort the information carried by the signal. 2. The random variations of one or more characteristics of any entity such as voltage, current, or data. oscillator A circuit that may be crystal controlled and is used to generate a clock frequency. parity A technique for testing transmitting data. Typically, a binary digit is added to the data to make the sum of all the digits of the binary data either always even (even parity) or always odd (odd parity). phase-locked loop (PLL) An electronic circuit that controls an oscillator so that it maintains a constant phase angle relative to a reference signal. pinouts The pin number assignment: the relation between the logical inputs and outputs of the PSoC device and their physical counterparts in the printed circuit board (PCB) package. Pinouts involve pin numbers as a link between schematic and PCB design (both being computer generated files) and may also involve pin names. port A group of pins, usually eight. power on reset (POR) A circuit that forces the PSoC device to reset when the voltage is below a pre-set level. This is one type of hardware reset. PSoC® Cypress Semiconductor’s PSoC® is a registered trademark and Programmable System-onChip™ is a trademark of Cypress. PSoC Designer™ The software for Cypress’ Programmable System-on-Chip technology. pulse width An output in the form of duty cycle which varies as a function of the applied measurand modulator (PWM) RAM An acronym for random access memory. A data-storage device from which data can be read out and new data can be written in. register A storage device with a specific capacity, such as a bit or byte. reset A means of bringing a system back to a know state. See hardware reset and software reset. ROM An acronym for read only memory. A data-storage device from which data can be read out, but new data cannot be written in. Document Number: 001-43084 Rev. *L Page 32 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Glossary (continued) serial 1. Pertaining to a process in which all events occur one after the other. 2. Pertaining to the sequential or consecutive occurrence of two or more related activities in a single device or channel. settling time The time it takes for an output signal or value to stabilize after the input has changed from one value to another. shift register A memory storage device that sequentially shifts a word either left or right to output a stream of serial data. slave device A device that allows another device to control the timing for data exchanges between two devices. Or when devices are cascaded in width, the slave device is the one that allows another device to control the timing of data exchanges between the cascaded devices and an external interface. The controlling device is called the master device. SRAM An acronym for static random access memory. A memory device allowing users to store and retrieve data at a high rate of speed. The term static is used because, after a value has been loaded into an SRAM cell, it remains unchanged until it is explicitly altered or until power is removed from the device. SROM An acronym for supervisory read only memory. The SROM holds code that is used to boot the device, calibrate circuitry, and perform Flash operations. The functions of the SROM may be accessed in normal user code, operating from Flash. stop bit A signal following a character or block that prepares the receiving device to receive the next character or block. synchronous 1. A signal whose data is not acknowledged or acted upon until the next active edge of a clock signal. 2. A system whose operation is synchronized by a clock signal. tri-state A function whose output can adopt three states: 0, 1, and Z (high-impedance). The function does not drive any value in the Z state and, in many respects, may be considered to be disconnected from the rest of the circuit, allowing another output to drive the same net. UART A UART or universal asynchronous receiver-transmitter translates between parallel bits of data and serial bits. user modules Pre-build, pre-tested hardware/firmware peripheral functions that take care of managing and configuring the lower level Analog and Digital PSoC Blocks. User Modules also provide high level API (Application Programming Interface) for the peripheral function. user space The bank 0 space of the register map. The registers in this bank are more likely to be modified during normal program execution and not just during initialization. Registers in bank 1 are most likely to be modified only during the initialization phase of the program. VDD A name for a power net meaning "voltage drain." The most positive power supply signal. Usually 5 V or 3.3 V. VSS A name for a power net meaning "voltage source." The most negative power supply signal. watchdog timer A timer that must be serviced periodically. If it is not serviced, the CPU resets after a specified period of time. Document Number: 001-43084 Rev. *L Page 33 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Document History Page Document Title: CY8C21345, CY8C22345, CY8C22545 PSoC® Programmable System-on-Chip Document Number: 001-43084 Revision ECN Orig. of Change Submission Date ** 2251907 PMP/AESA See ECN New Data sheet *A 2506377 EIJ/AESA See ECN Changed data sheet status to “Preliminary”. Changed part numbers to CY8C22x45. Updated data sheet template. Added 56-Pin OCD information. Added: “You must put filters on intended ADC input channels for anti-aliasing. This ensures that any out-of-band content is not folded into the Input Signal Band." To Section Analog System on page 4. Corrected Minimum Electro Static Discharge Voltage in Table 7 on page 15. *B 2558750 PMP/AESA 08/28/2008 Updated Features on page 1, PSoC Core on page 3, Analog System on page 4. Changed DBB to DBC, and DCB to DCC in Register Tables Table 5 on page 12 and Table 6 on page 13. Removed INL at 8 bit reference in Table 14 on page 18. Changed IDD3 value Table 16 on page 18 Typ:3.3 mA, Max 6 mA Added “3.0V < Vdd < 3.6V and -40C < TA < 85C, IMO can guarantee 5% accuracy only” to Table 19 on page 20. Updated data sheet template. *C 2606793 NUQ/AESA 11/19/2008 Updated data sheet status to “Final”. Updated block diagram on page 1. Removed CY8C22045 56-Pin OCD information. Added part numbers CY8C21345, CY8C22345, and CY8C22545. For more details, see CDT 31271. *D 2615697 PMP/AESA 12/03/2008 Confirmed CY8C22345 and CY8C21345 have same pinout on page 8. Confirmed that IMO has 5% accuracy in Table 19 on page 20. *E 2631733 PMP/PYRS 01/07/2009 Updated Table 16. SAR10 ADC DC Specifications and Table 29 AC Programming Specifications. Title changed to “CY8C21345, CY8C22345, CY8C22545 PSoC® Programmable System-on-Chip™” *F 2648800 JHU/AESA 01/28/2009 Updated INL, DNL information in Table 14 on page 18, Development Tools on page 6, and TDSCLK parameter in Table 27 on page 24. *G 2658078 HMI/AESA 02/11/2009 Updated section Features on page 1. *H 2667311 JHU/AESA 03/16/2009 Added parameter “F32KU” and added Min% and Max % to parameter “FIMO6” in Table 19 on page 20, according to updated SLIMO spec. *I 2748976 JZHU/PYRS 08/06/2009 Updated F32K1 max rating in Table 19 on page 20. *J 2786560 JZHU 10/23/2009 Added DCILO, TERASEALL, TPROGRAM_HOT, TPROGRAM_COLD, SRPOWERUP, IOH, and IOL parameters. Added Tape and Reel parts in Ordering Information table *K 2901653 NJF 03/30/2010 Updated PSoC Designer Software Subsystems. Added TBAKETEMP and TBAKETIME parameters in Absolute Maximum Ratings Modified Note 6 on page 17. Added FOUT48M parameter in 5V and 3.3V AC Chip-Level Specifications. Removed AC Analog Mux Bus Specifications. Updated Ordering Code Definitions. Updated links in Sales, Solutions, and Legal Information. *L 3114978 NJF 12/19/10 Document Number: 001-43084 Rev. *L Description of Change Added DC I2C Specifications. Added Tjit_IMO specification, removed existing jitter specifications. Updated DC Programming Specifications. Updated AC Digital Block Specifications. Updated I2C Timing Diagram. Added Solder Reflow Peak Temperature table. Updated Units of Measure, Acronyms, Glossary, and References sections. Page 34 of 35 [+] Feedback CY8C21345 CY8C22345, CY8C22545 Sales, Solutions, and Legal Information Worldwide Sales and Design Support Cypress maintains a worldwide network of offices, solution centers, manufacturer’s representatives, and distributors. To find the office closest to you, visit us at Cypress Locations. Products Automotive Clocks & Buffers Interface Lighting & Power Control PSoC Solutions cypress.com/go/automotive cypress.com/go/clocks psoc.cypress.com/solutions cypress.com/go/interface PSoC 1 | PSoC 3 | PSoC 5 cypress.com/go/powerpsoc cypress.com/go/plc Memory Optical & Image Sensing cypress.com/go/memory cypress.com/go/image PSoC Touch Sensing cypress.com/go/psoc cypress.com/go/touch USB Controllers Wireless/RF cypress.com/go/USB cypress.com/go/wireless © Cypress Semiconductor Corporation, 2008-2010. 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 life-support 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. 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. Document Number: 001-43084 Rev. *L Revised December 17, 2010 Page 35 of 35 PSoC Designer™ and Programmable System-on-Chip™ are trademarks and PSoC® and CapSense® are registered trademarks of Cypress Semiconductor Corporation. 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. As from October 1st, 2006 Philips Semiconductors has a new trade name - NXP Semiconductors. All products and company names mentioned in this document may be the trademarks of their respective holders. [+] Feedback