PSoC 3: CY8C34 Family Data Sheet Programmable System-on-Chip (PSoC ) General Description With its unique array of configurable blocks, PSoC 3 is a true system level solution providing microcontroller unit (MCU), memory, analog, and digital peripheral functions in a single chip. The CY8C34 family offers a modern method of signal acquisition, signal processing, and control with high accuracy, high bandwidth, and high flexibility. Analog capability spans the range from thermocouples (near DC voltages) to ultrasonic signals. The CY8C34 family can handle dozens of data acquisition channels and analog inputs on every general-purpose input/output (GPIO) pin. The CY8C34 family isalso a high-performance configurable digital system with some 2 part numbers including interfaces such as USB, multimaster inter-integrated circuit (I C), and controller area network (CAN). In addition to communication interfaces, the CY8C34 family has an easy to configure logic array, flexible routing to all I/O pins, and a high-performance single cycle 8051 microprocessor core. You can easily create system-level designs using a rich library of prebuilt components and boolean primitives using PSoC Creator, a hierarchical schematic design entry tool. The CY8C34 family provides unparalleled opportunities for analog and digital bill of materials integration while easily accommodating last minute design changes through simple firmware updates. Features Single cycle 8051 CPU core Library of standard peripherals DC to 50 MHz operation 8-, 16-, 24-, and 32-bit timers, counters, and PWMs Multiply and divide instructions Serial peripheral interface (SPI), universal asynchronous 2 Flash program memory, up to 64 KB, 100,000 write cycles, transmitter receiver (UART), I C 20 years retention, and multiple security features Many others available in catalog Up to 8-KB flash error correcting code (ECC) or configuration Library of advanced peripherals storage Cyclic redundancy check (CRC) Up to 8 KB SRAM Pseudo random sequence (PRS) generator Up to 2 KB electrically erasable programmable read-only Local interconnect network (LIN) bus 2.0 memory (EEPROM), 1 M cycles, and 20 years retention Quadrature decoder 24-channel direct memory access (DMA) with multilayer Analog peripherals (1.71 V V 5.5 V) 1 DDA AHB bus access 1.024 V0.9-percent internal voltage reference across 40 C Programmable chained descriptors and priorities to +85 C (14 ppm/C) High bandwidth 32-bit transfer support Configurable delta-sigma ADC with 8- to12-bit resolution Low voltage, ultra low-power Programmable gain stage: 0.25 to 16 Wide operating voltage range: 0.5 V to 5.5 V 12-bit mode, 192-ksps, 66-dB signal to noise and distortion High efficiency boost regulator from 0.5-V input through 1.8-V ratio (SINAD), 1-bit INL/DNL to 5.0-V output Two 8-bit, 8-Msps IDACs or 1-Msps VDACs 0.8 mA at 3 MHz, 1.2 mA at 6 MHz, and 6.6 mA at 50 MHz Four comparators with 95-ns response time Low-power modes including: Two uncommitted opamps with 25-mA drive capability 1-A sleep mode with real-time clock (RTC) and Two configurable multifunction analog blocks. Example low-voltage detect (LVD) interrupt configurations are programmable gain amplifier (PGA), 200-nA hibernate mode with RAM retention transimpedance amplifier (TIA), mixer, and sample and hold CapSense support Versatile I/O system 28 to 72 I/O (62 GPIOs, eight special input/outputs (SIO), Programming, debug, and trace 2 two USBIOs ) JTAG (4-wire), serial wire debug (SWD) (2-wire), and single Any GPIO to any digital or analog peripheral routability wire viewer (SWV) interfaces 2 LCD direct drive from any GPIO, up to 4616 segments Eight address and one data breakpoint 3 CapSense support from any GPIO 4-KB instruction trace buffer 2 1.2-V to 5.5-V I/O interface voltages, up to four domains Bootloader programming supportable through I C, SPI, Maskable, independent interrupt request (IRQ) on any pin or UART, USB, and other interfaces port Precision, programmable clocking Schmitt-trigger transistor-transistor logic (TTL) inputs 3- to 24-MHz internal oscillator over full temperature and All GPIOs configurable as open drain high/low, voltage range pull-up/pull-down, High Z, or strong output 4- to 25-MHz crystal oscillator for crystal PPM accuracy Configurable GPIO pin state at power-on reset (POR) Internal PLL clock generation up to 50 MHz 25 mA sink on SIO 32.768-kHz watch crystal oscillator Digital peripherals Low-power internal oscillator at 1, 33, and 100 kHz 16 to 24 programmable logic device (PLD) based universal Temperature and packaging digital blocks (UDB) 40 C to +85 C degrees industrial temperature 2 Full CAN 2.0b 16-receive (Rx), 8-transmit (Tx) buffers 48-pin SSOP, 48-pin QFN, 68-pin QFN, and 100-pin TQFP 2 Full-speed (FS) USB 2.0 12 Mbps using internal oscillator package options Up to four 16-bit configurable timer, counter, and PWM blocks Notes 1. AHB AMBA (advanced microcontroller bus architecture) high-performance bus, an ARM data transfer bus 2. This feature on select devices only. See Ordering Information on page 115 for details. 3. GPIOs with opamp outputs are not recommended for use with CapSense. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 001-53304 Rev. *L Revised May 20, 2011 PSoC 3: CY8C34 Family Data Sheet Contents 1. Architectural Overview ..................................................... 3 8.6 LCD Direct Drive ...................................................... 58 8.7 CapSense ................................................................. 59 2. Pinouts ............................................................................... 5 8.8 Temp Sensor ............................................................ 59 3. Pin Descriptions .............................................................. 10 8.9 DAC .......................................................................... 59 4. CPU ................................................................................... 11 8.10 Up/Down Mixer ....................................................... 59 4.1 8051 CPU ................................................................. 11 8.11 Sample and Hold .................................................... 60 4.2 Addressing Modes .................................................... 11 9. Programming, Debug Interfaces, Resources ................ 60 4.3 Instruction Set .......................................................... 12 9.1 JTAG Interface ......................................................... 61 4.4 DMA and PHUB ....................................................... 16 9.2 Serial Wire Debug Interface ..................................... 62 4.5 Interrupt Controller ................................................... 17 9.3 Debug Features ........................................................ 63 5. Memory ............................................................................. 21 9.4 Trace Features ......................................................... 63 5.1 Static RAM ............................................................... 21 9.5 Single Wire Viewer Interface .................................... 63 5.2 Flash Program Memory ............................................ 21 9.6 Programming Features ............................................. 63 5.3 Flash Security ........................................................... 21 9.7 Device Security ........................................................ 63 5.4 EEPROM .................................................................. 21 10. Development Support ................................................... 64 5.5 Nonvolatile Latches (NVLs) ...................................... 22 10.1 Documentation ....................................................... 64 5.6 External Memory Interface ....................................... 23 10.2 Online ..................................................................... 64 5.7 Memory Map ............................................................ 23 10.3 Tools ....................................................................... 64 6. System Integration .......................................................... 25 11. Electrical Specifications ............................................... 65 6.1 Clocking System ....................................................... 25 11.1 Absolute Maximum Ratings .................................... 65 6.2 Power System .......................................................... 28 11.2 Device Level Specifications .................................... 66 6.3 Reset ........................................................................ 31 11.3 Power Regulators ................................................... 70 6.4 I/O System and Routing ........................................... 32 11.4 Inputs and Outputs ................................................. 74 7. Digital Subsystem ........................................................... 38 11.5 Analog Peripherals ................................................. 82 7.1 Example Peripherals ................................................ 39 11.6 Digital Peripherals .................................................. 99 7.2 Universal Digital Block .............................................. 42 11.7 Memory ................................................................ 102 7.3 UDB Array Description ............................................. 45 11.8 PSoC System Resources ..................................... 108 7.4 DSI Routing Interface Description ............................ 46 11.9 Clocking ................................................................ 111 7.5 CAN .......................................................................... 47 12. Ordering Information ................................................... 115 7.6 USB .......................................................................... 49 12.1 Part Numbering Conventions ............................... 116 7.7 Timers, Counters, and PWMs .................................. 49 2 13. Packaging ..................................................................... 117 7.8 I C ............................................................................49 14. Acronyms ..................................................................... 120 8. Analog Subsystem .......................................................... 50 8.1 Analog Routing ......................................................... 52 15. Reference Documents ................................................. 121 8.2 Delta-sigma ADC ...................................................... 54 16. Document Conventions .............................................. 122 8.3 Comparators ............................................................. 55 16.1 Units of Measure .................................................. 122 8.4 Opamps .................................................................... 56 17. Revision History .......................................................... 123 8.5 Programmable SC/CT Blocks .................................. 56 18. Sales, Solutions, and Legal Information .................127 Document Number: 001-53304 Rev. *L Page 2 of 127