Cypress PSoC CY8C24533, PSoC CY8C23433, PSoC CY8C23533 Technical Reference Manual

PSoC® CY8C24533, CY8C23533, CY8C23433 TRM

PSoC® CY8C24533, CY8C23533, CY8C23433

Technical Reference Manual (TRM)

Document # 001-20559 Rev. *D
January 19, 2017
Cypress Semiconductor
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl.): 408.943.2600
http://www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2007-2017. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware included or refer­enced in this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as spe­cifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organi­zation, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resell­ers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress's patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR­POSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without fur­ther notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, inclu ding any sample design info rmation o r progra mming co de, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting p roduct. Cypress products are not designed, intended, or authorized for use as critical components in systems designed o r intended for the operation of we ap­ons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ("Unintended Uses"). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall a nd hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all cla ims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F­RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respec­tive owners.
2 Document # 001-20559 Rev. *D

Contents Overview

Section A: Overview 17
1. Pin Information
Section B: PSoC Core 31
2. CPU Core (M8C)
3. Supervisory ROM (SROM)..... .............. ............. .............. ............. .............. ........... ...........45
4. RAM Paging............................................ ............. .............. .............. ............. .............. ......55
5. Interrupt Controller . .............. ............. ............ ............. .............. ............. .............. .............61
6. General Purpose IO (GPIO) ........................... ........... .............. ............. .............. .............69
7. Analog Output Drivers. ............. .............. ............. .............. .............. ........... .............. ........77
8. Internal Main Oscillator (IMO) ...................................... ............. .............. ............. ...........79
9. Internal Low Speed Oscillator (ILO). .............. .............. ........... ............. .............. .............83
10. External Crystal Oscillator (ECO)................................... ............. ............ ............. ...........85
11. Phase-Locked Loop (PLL) ............................ ............. ............ ............. .............. ............. ..91
12. Sleep and Watchdog ............................ ............. .............. ............. ............ ............. ...........95
............................ ............. ........... .............. .............. ............. .............. ......25
........................... ............. ............ ............. .............. ............. .............. ....35
Section C: Register Reference 107
13. Register Details
Section D: Digital System 225
14. Global Digital Interconnect (GDI)
15. Array Digital Interconnect (ADI) ............ ............. .............. .............. ............. .............. .... 233
16. Row Digital Interconnect (RDI) ............ ............. .............. ............. .............. .............. ...... 235
17. Digital Blocks ................... .............. ............. .............. .............. ............. ........... .............. .. 241
Section E: Analog System 279
18. Analog Interface
19. Analog Array ........................... .............. ............. .............. ........... .............. ............. ......... 297
20. Analog Input Configuration........... ............. .............. .............. ............. .............. ............. 305
21. Analog Reference.......... .............. ............. .............. ............. .............. ............. .............. .. 309
22. Continuous Time PSoC Block....... ............. .............. .............. ............. .............. ............. 313
23. Switched Capacitor PSoC Block ........... ............. .............. .............. ............. .............. .... 319
24. SAR8 ADC PSoC Block ....... ............. .............. .............. ............. ........... .............. ........... 329
Section F: System Resources 335
25. Digital Clocks
26. Multiply Accumulate (MAC) ... .............. ........... .............. ............. .............. ............. ......... 349
27. Decimator.................. .............. .............. ............. .............. ............. .............. ........... ......... 355
28. I2C ......................................... ............. .............. .............. ........... ............. .............. ........... 359
29. Internal Voltage Reference .................... ............. .............. .............. ............. .............. .... 375
30. System Resets................... .............. .............. ............. .............. ............. .............. ........... 377
31. POR and LVD ..... ............. .............. ............. .............. .............. ............. .............. ............. 383
........................... ............. ........... .............. .............. ............. .............. .....111
.......................... ............. ............ ............. .............. .... 229
.......................... ............. ........... .............. .............. ............. .............. .... 283
.......................... .............. ........... .............. ............. .............. ............. ......... 339
Document # 001-20559 Rev. *D 3
Contents Overview
Section G: Glossary 385
Index 401
4 Document # 001-20559 Rev. *D

Contents

Section A: Overview 17
Document Organization ......................................................................................................................17
Top-Level Architecture ................. ... ... ....................................... ... ... ... .... ... ... ... .... ... ... ..........................18
PSoC Core ................................................................................................................................18
Digital System ............................................................................................................................18
Analog System ................................................ ... .......................................................................18
System Resources ................................... ... .... ... ... ... .... ... ... ....................................... ... ... ... .......18
PSoC Device Characteristics ..............................................................................................................20
PSoC Device Distinctions ........................ .... ... ... .......................................... ... .... ................................20
Getting Started ...................................................................................................................................21
Support ......................................................................................................................................21
Product Upgrades ......................................................................................................................21
Development Kits .....................................................................................................................21
Document History ................................................................................................................................21
Documentation Conventions ..............................................................................................................22
Register Conventions ..............................................................................................................22
Numeric Naming .......................................................................................................................22
Units of Measure ....................................................................................................................22
Acronyms .............. ...................................... .... ... ... ... .... ... ... ....................................... ................23
1. Pin Information..................................................................................................................25
1.1 Pinouts ................................... ................................ ............................. .......................................25
1.1.1 28-Pin Part Pinout...... ... ... ....................................... ... .... ... ... ... .... ................................26
1.1.2 32-Pin Part Pinout...... ... ... ....................................... ... .... ... ... ... .... ................................28
1.1.3 56-Pin Part Pinout...... ... ... ....................................... ... .... ... ... ... .... ................................29
Section B: PSoC Core 31
Top-Level Core Architecture ................................................................................................................31
Interpreting Core Documentation ........................................ .................................................................31
Core Register Summary ......................................................................................................................32
2. CPU Core (M8C).................................................................................................................35
2.1 Overview ................................... ............................. ............................. .......................................35
2.2 Internal Registers ................................................... .... ... ..........................................................35
2.3 Address Spaces .......................................................................................................................35
2.4 Instruction Set Summary .............. ... .... ... ... ... .... ... ... ... .................................................................36
2.5 Instruction Formats ............... ... ... ... .... ... ... ... .... ..........................................................................38
2.5.1 One-Byte Instructions..................................................................................................38
2.5.2 Two-Byte Instructions................. ... .... ... ... ... .... .............................................................38
2.5.3 Three-Byte Instructions...............................................................................................39
2.6 Addressing Modes ....................................................................................................................39
2.6.1 Source Immediate.......................................................................................................39
2.6.2 Source Direct ..............................................................................................................40
2.6.3 Source Indexed...........................................................................................................40
Document # 001-20559 Rev. *D 5
Contents Overview
2.6.4 Destination Direct .......................................................................................................41
2.6.5 Destination Indexed ...................................................................................................41
2.6.6 Destination Direct Source Immediate .................. .... ... ... ... ... .......................................41
2.6.7 Destination Indexed Source Immediate......................................................................42
2.6.8 Destination Direct Source Direct.... ... ... ... .... ... ... ... .... ... ... ... ... .......................................42
2.6.9 Source Indirect Post Increment ..................................................................................43
2.6.10 Destination Indirect Post Increment.................. ... .... ... ... ... ... .... ... ... ... ..........................43
2.7 Register Definitions ...................................................................................................................44
2.7.1 CPU_F Register .........................................................................................................44
3. Supervisory ROM (SROM)................................................................................................. 45
3.1 Architectural Description ...........................................................................................................45
3.1.1 Additional SROM Feature.............. ... ... ... .... ... ... ... .... ... ... .............................................46
3.1.2 SROM Function Descriptions ....................................................................................46
3.1.2.1 SWBootReset Function ............................................................................46
3.1.2.2 ReadBlock Function..................................... ... ... .... ... ... ... ..........................47
3.1.2.3 WriteBlock Function..................................................................................48
3.1.2.4 EraseBlock Function.......................................... .... ... ................................48
3.1.2.5 ProtectBlock Function...............................................................................49
3.1.2.6 TableRead Function ................................................................................49
3.1.2.7 EraseAll Function......................................................................................49
3.1.2.8 Checksum Function..................................................................................50
3.1.2.9 Calibrate0 Function...................................................................................50
3.1.2.10 Calibrate1 Function...................................................................................50
3.2 Register Definitions ..................................................................................................................51
3.2.1 CPU_SCR1 Register .................................................... ... ... .... ... ... ... .... ......................51
3.2.2 FLS_PR1 Register .....................................................................................................52
3.3 Clocking ....................................................................................................................................53
3.3.1 DELAY Parameter.......................................................................................................53
3.3.2 CLOCK Parameter......................................................................................................53
4. RAM Paging ...................................................................................................................... 55
4.1 Architectural Description ...........................................................................................................55
4.1.1 Basic Paging ..............................................................................................................55
4.1.2 Stack Operations .......................................................................................................56
4.1.3 Interrupts ............................................. ................................ ................................. ......56
4.1.4 MVI Instructions .........................................................................................................56
4.1.5 Current Page Pointer .................................................................... ... .... ... ...................56
4.1.6 Index Memory Page Pointer ............................ ... .... ... ... ... ..........................................57
4.2 Register Definitions ...................................................................................................................58
4.2.1 TMP_DRx Registers ..................................................................................................58
4.2.2 CPU_F Register..........................................................................................................59
5. Interrupt Controller........................................................................................................... 61
5.1 Architectural Description ............................................................................................................61
5.1.1 Posted versus Pending Interrupts...............................................................................62
5.2 Application Description ..............................................................................................................63
5.3 Register Definitions ...................................................................................................................64
5.3.1 INT_CLRx Registers ................. .... ... ... ... .... ... ... ... .... ... ................................................64
5.3.1.1 INT_CLR0 Register ..................................................................................64
5.3.1.2 INT_CLR1 Register ..................................................................................65
5.3.1.3 INT_CLR3 Register ..................................................................................65
5.3.2 INT_MSKx Registers .................................................................................................65
5.3.2.1 INT_MSK3 Register. .... .............................................................................65
6 Document # 001-20559 Rev. *D
Contents Overview
5.3.2.2 INT_MSK0 Register.................................................................. ... ... ... .... ...66
5.3.2.3 INT_MSK1 Register.................................................................. ... ... ... .... ...66
5.3.3 INT_VC Register .... ... ... ... .... ... ... ... .... ... ... ... .... ... ... ... ... .... .......................................... ...66
5.3.4 CPU_F Register .........................................................................................................67
6. General Purpose IO (GPIO) ..................... ............. .............. .............. ............... .............. ....69
6.1 Architectural Description.............................................................................................................69
6.1.1 Digital IO ............. ... ... ... ... .... ...................................... .... ... ... ... ....................................69
6.1.2 Global IO ......... .... ... ... ... ... .... ...................................... .... ... ... ... .... ... .............................70
6.1.3 Analog Input ........... ... ... ....................................... ... ... .... ... ... ... ....................................70
6.1.4 GPIO Block Interrupts ...............................................................................................71
6.2 Register Definitions ...................................................................................................................72
6.2.1 PRTxDR Registers .....................................................................................................72
6.2.2 PRTxIE Registers .......................................................................................................72
6.2.3 PRTxGS Registers .....................................................................................................73
6.2.4 PRTxDMx Registers ................................................................................................74
6.2.5 PRTxICx Registers ............................ ... ... .................................................................75
7. Analog Output Drivers .......... .................. .................. ................ .................. ................ ......77
7.1 Architectural Description ............................................................................................................77
7.2 Register Definitions ..................................................................................................................78
7.2.1 ABF_CR0 Register .....................................................................................................78
8. Internal Main Oscillator (IMO) ............................ .............. ................ ............. .............. ......79
8.1 Architectural Description.............................................................................................................79
8.2 Application Description...............................................................................................................79
8.2.1 Trimming the IMO .......................................................................................................79
8.3 Register Definitions ...................................................................................................................80
8.3.1 CPU_SCR1 Register .................... .... ... ... ... .... .............................................................80
8.3.2 OSC_CR2 Register ....................................................................................................81
8.3.3 IMO_TR Register .......................................... ... ... ... ... .... ... ... ... .... ................................ 81
9. Internal Low Speed Oscillator (ILO)........................................ ............... .............. ............. 83
9.1 Architectural Description.............................................................................................................83
9.2 Register Definitions ...................................................................................................................83
9.2.1 ILO_TR Register ........................................................................................................83
10. External Crystal Oscillator (ECO) ........................... ................ ............. ................ ............. 85
10.1 Architectural Description.............................................................................................................85
10.1.1 ECO External Components.........................................................................................86
10.2 PSoC Device Distinctions...........................................................................................................86
10.3 Register Definitions ...................................................................................................................87
10.3.1 CPU_SCR1 Register ... ... .... ... ... ... .... ... ... ....................................................................87
10.3.2 OSC_CR0 Register ....................................................................................................88
10.3.3 ECO_TR Register ......................................................................................................89
11. Phase-Locked Loop (PLL) .................................................................................................91
11.1 Architectural Description.............................................................................................................91
11.2 Register Definitions ..................................................................................................................91
11.2.1 OSC_CR0 Register.....................................................................................................92
11.2.2 OSC_CR2 Register ....................................................................................................93
12. Sl eep and Watchdog .............. ................ ............. .............. ................ ............. .............. ......95
12.1 Architectural Description.............................................................................................................95
12.1.1 32 kHz Clock Selection ..............................................................................................95
Document # 001-20559 Rev. *D 7
Contents Overview
12.1.2 Sleep Timer ..............................................................................................................95
12.2 Application Description...............................................................................................................96
12.3 Register Definitions ...................................................................................................................97
12.3.1 INT_MSK0 Register ...... ...................................................... ....................................... 97
12.3.2 RES_WDT Register ...................................................................................................97
12.3.3 CPU_SCR1 Register ................................................................................................98
12.3.4 CPU_SCR0 Register .................................................................................................99
12.3.5 OSC_CR0 Register .................................................................................................100
12.3.6 ILO_TR Register ......................................................................................................101
12.3.7 ECO_TR Register ....................................................................................................101
12.4 Timing Diagrams......................................................................................................................102
12.4.1 Sleep Sequence .......................................................................................................102
12.4.2 Wake Up Sequence.......................................................... ... .... ... ... ... ........................1 03
12.4.3 Bandgap Refresh......................................................................................................104
12.4.4 Watchdog Timer........................................................................................................104
12.5 Power Consumption.................................................................................................................105
Section C: Register Reference 107
Register General Conventions ...........................................................................................................107
Register Naming Conventions ...........................................................................................................107
Register Mapping Tables ...................................................................................................................107
Register Map Bank 0 Table: User Space ..... ... ... .... ... ... ... .... ... ... ... ... .... ... ..............................108
Register Map Bank 1 Table: Configuration Space ....................................... .... ... ... ... ... .... ... .109
13. Register Details................................................................................................................111
13.1 Maneuvering Around the Registers..........................................................................................111
Register Conventions ............................................................................................................112
13.1.1 Register Naming Conventions ................................................................................. 112
13.2 Bank 0 Registers .....................................................................................................................113
13.2.1 PRTxDR .... ....................... ...................... ....................... ....................... ....................113
13.2.2 PRTxIE ....................................................................................................................114
13.2.3 PRTxGS .... ....................... ...................... ....................... ....................... ....................115
13.2.4 PRTxDM2 ................................................................................................................ 116
13.2.5 DxBxxDR0 ............................................................................................................... 117
13.2.6 DxBxxDR1 ............................................................................................................... 118
13.2.7 DxBxxDR2 ............................................................................................................... 119
13.2.8 DxBxxCR0 (Timer Control) ...................................................................................... 120
13.2.9 DxBxxCR0 (Counter Control) ..................................................................................121
13.2.10 DxBxxCR0 (Dead Band Control) ............................................................................122
13.2.11 DxBxxCR0 (CRCPRS Control) ................................................................................123
13.2.12 DCBxxCR0 (SPIM Control) ......................................................................................124
13.2.13 DCBxxCR0 (SPIS Control) ................................................. .... ... ... ... .... ... ... ... ... .... ... .125
13.2.14 DCBxxCR0 (UART Transmit ter Control) .................................................................126
13.2.15 DCBxxCR0 (UART Receiver Control) .....................................................................127
13.2.16 AMX_IN ...................................................................................................................128
13.2.17 ARF_CR ..................................................................................................................129
13.2.18 CMP_CR0 ................................................................................................................130
13.2.19 ASY_CR .................................................................................... ..............................131
13.2.20 CMP_CR1 ................................................................................................................132
13.2.21 SARADC_DL ...........................................................................................................133
13.2.22 SARADC_CR0 .......... ...............................................................................................134
13.2.23 SARADC_CR1 .......... ...............................................................................................135
13.2.24 TMP_DRx ................................................................................................................ 136
8 Document # 001-20559 Rev. *D
Contents Overview
13.2.25 ACBxxCR3 .......... .....................................................................................................137
13.2.26 ACBxxCR0 .......... .....................................................................................................138
13.2.27 ACBxxCR1 .......... .....................................................................................................140
13.2.28 ACBxxCR2 .......... .....................................................................................................142
13.2.29 ASDxxCR0 .......... ................................................................... ..................................143
13.2.30 ASDxxCR1 .......... ................................................................... ..................................144
13.2.31 ASDxxCR2 .......... ................................................................... ..................................145
13.2.32 ASDxxCR3 .......... ................................................................... ..................................146
13.2.33 ASCxxCR0 .......... ................................................................... ..................................147
13.2.34 ASCxxCR1 .......... ................................................................... ..................................148
13.2.35 ASCxxCR2 .......... ................................................................... ..................................149
13.2.36 ASCxxCR3 .......... ................................................................... ..................................150
13.2.37 RDIxRI ....... ...... ....... ...... ....... ...... ....... ...... ....... ...... ... ....... ...... ....... ...... ...... ....... ...........151
13.2.38 RDIxSYN ...... .................................... ................................... .....................................152
13.2.39 RDIxIS .......... ....................................... .......................................... ...........................153
13.2.40 RDIxLT0 .......... .........................................................................................................154
13.2.41 RDIxLT1 .......... .........................................................................................................155
13.2.42 RDIxRO0 ... ................................... ....................................... .....................................156
13.2.43 RDIxRO1 ... ................................... ....................................... .....................................157
13.2.44 I2C_CFG ............. ....................................................................... ..............................158
13.2.45 I2C_SCR ............. ....................................................................... ..............................159
13.2.46 I2C_DR ....................................................................................................................161
13.2.47 I2C_MSCR .......... ................................................................... ..................................162
13.2.48 INT_CLR0 ................................................................................................................163
13.2.49 INT_CLR1 ................................................................................................................165
13.2.50 INT_CLR3 ................................................................................................................166
13.2.51 INT_MSK3 .............. ...... ............................................................................................167
13.2.52 INT_MSK0 .............. ...... ............................................................................................168
13.2.53 INT_MSK1 .............. ...... ............................................................................................169
13.2.54 INT_VC ....................................................................................................................170
13.2.55 RES_WDT ....... .... ...... ...... ....... ...... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ..... 171
13.2.56 DEC_DH ..................................................................................................................172
13.2.57 DEC_DL ..................................................................................................................173
13.2.58 DEC_CR0 ............................................................................. .... ... ... ... ... .... ... ... ... .... .174
13.2.59 DEC_CR1 ................................................................................................................175
13.2.60 MULx_X ...................................................................................................................176
13.2.61 MULx_Y ...................................................................................................................177
13.2.62 MULx_DH ..... ....... ...... ...... .... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... ...... ........178
13.2.63 MULx_DL .................................................................................................................179
13.2.64 MACx_X/ACCx_DR1 ...............................................................................................180
13.2.65 MACx_Y/ACCx_DR0 ...............................................................................................181
13.2.66 MACx_CL0/ACCx_DR3 ...........................................................................................182
13.2.67 MACx_CL1/ACCx_DR2 ...........................................................................................183
13.2.68 CPU_F ................................................................................................................184
13.2.69 CPU_SCR1 .........................................................................................................185
13.2.70 CPU_SCR0 .. .................................................................... ........................................1
86
13.3 Bank 1 Registers ...................... ... ... .... ... ..................................................................................187
13.3.1 PRTxDM0 ........ ....... ...... ....... ... ...... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ..... 187
13.3.2 PRTxDM1 ........ ....... ...... ....... ... ...... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ..... 188
13.3.3 PRTxIC0 ....... ... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... ...... ........189
13.3.4 PRTxIC1 ....... ... ....... ...... ....... ...... ....... ...... ....... ...... ...... ....... ...... ....... ...... ....... ...... ........190
13.3.5 DxBxxFN ...... ....................................................................... .....................................191
13.3.6 DxBxxIN ...................................................................................................................193
Document # 001-20559 Rev. *D 9
Contents Overview
13.3.7 DxBxxOU ................................................................................................................. 195
13.3.8 CLK_CR0 ..... ....................... .......................... ...................... ....................... ..............197
13.3.9 CLK_CR1 ..... ....................... .......................... ...................... ....................... ..............198
13.3.10 ABF_CR0 .............................................................................................................199
13.3.11 AMD_CR0 ........... .....................................................................................................200
13.3.12 AMD_CR1 ........... .....................................................................................................201
13.3.13 ALT_CR0 .................................................................................................................202
13.3.14 SARADC_TRS . ............................. .......................... ......................... ........................203
13.3.15 SARADC_TRCL ......................................................................................................204
13.3.16 SARADC_TRCH . .......................................................... ........................................... 205
13.3.17 SARADC_CR2 .......... ...............................................................................................206
13.3.18 SARADC_LCR .... .......................... .......................... ......................... ........................207
13.3.19 GDI_O_IN ................................................................................................................208
13.3.20 GDI_E_IN ................................................................................................................209
13.3.21 GDI_O_OU .............................................................................................................. 210
13.3.22 GDI_E_OU ....... ......................... .......................... .......................... ...........................211
13.3.23 OSC_GO_EN ..........................................................................................................212
13.3.24 OSC_CR4 . .................................................... ....................................................... .... 213
13.3.25 OSC_CR3 . .................................................... ....................................................... .... 214
13.3.26 OSC_CR0 ............................................................................................................215
13.3.27 OSC_CR1 . .................................................... ....................................................... .... 216
13.3.28 OSC_CR2 ...............................................................................................................217
13.3.29 VLT_CR ...................................................................................................................218
13.3.30 VLT_CMP ................................................................................................................219
13.3.31 IMO_TR ...................................................................................................................220
13.3.32 ILO_TR ....................................................................................................................221
13.3.33 BDG_TR .................................................................................................................222
13.3.34 ECO_TR ..................................................................................................................223
13.3.35 FLS_PR1 ................................................................................................................224
Section D: Digital System 225
Top-Level Digital Architecture ...........................................................................................................225
Interpreting the Digital Documentation .............................................................................................225
Digital Register Summary .................................................................................................................226
14. G lobal Digital Interconnect (GDI) ..... .............. ............... .............. ................ ............. ....... 229
14.1 Architectural Description .........................................................................................................229
14.1.1 28-Pin Global Interconnect .....................................................................................230
14.2 Register Definitions .................................................................................................................231
14.2.1 GDI_x_IN Registers ...............................................................................................231
14.2.2 GDI_x_OU Registers ............................................................................................... 232
15. Array Digital Interconnect (ADI) ............................... ...................................................... 233
15.1 Architectural Description ..........................................................................................................233
16. Row Digital Interconnect (RDI) ................. .............. ............. ................ .............. ............. 235
16.1 Architectural Description ..........................................................................................................235
16.2 Register Definitions .................................................................................................................237
16.2.1 RDIxRI Register .......................................................................................................237
16.2.2 RDIxSYN Register ........................... ........................................................................237
16.2.3 RDIxIS Register ............................ ...........................................................................238
16.2.4 RDIxLTx Registers .................................................................................................239
16.2.5 RDIxROx Registers ...............................................................................................240
16.2.5.1 RDIxRO0 Register..................................................................................240
10 Document # 001-20559 Rev. *D
Contents Overview
16.2.5.2 RDIxRO1 Register..................................................................................240
16.3 Timing Diagram ......................................................................................................................240
17. Digital Blocks ..................................................................................................................241
17.1 Architectural Description...........................................................................................................241
17.1.1 Input Multiplexers ......... .................................................................... ........................242
17.1.2 Input Clock Resynchronization ............ ...... ....... ...... ....... ...... ....... ...... ...... .... ...... ....... . 242
17.1.2.1 Clock Resynchronization Summary........................................................243
17.1.3 Output De-Multiplexers ............................................................................................243
17.1.4 Block Chaining Signals ............................................................................................243
17.1.5 Input Data Synchronization.......................................................................................243
17.1.6 Timer Function .................... .....................................................................................243
17.1.6.1 Usability Exceptions................................................................................243
17.1.6.2 Block Interrupt.............................. ... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .....243
17.1.7 Counter Function ......................................................................................................244
17.1.7.1 Usability Exceptions................................................................................244
17.1.7.2 Block Interrupt.............................. ... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .....244
17.1.8 Dead Band Function ................................................................................................244
17.1.8.1 Usability Exceptions................................................................................245
17.1.8.2 Block Interrupt.............................. ... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .....245
17.1.9 CRCPRS Function ...................................................................................................245
17.1.9.1 Usability Exceptions................................................................................246
17.1.9.2 Block Interrupt.............................. ... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .....246
17.1.10 SPI Protocol Function ................................................... ... ... ... .... ... ...........................247
17.1.10.1 SPI Protocol Signal Definitions...............................................................247
17.1.11 SPI Master Function ............................... ....... ...... ...... ....... ...... ....... ...... ....... ...... ... .....247
17.1.11.1 Usability Exceptions.................................................................. ... ... ... .... .248
17.1.11.2 Block Interrupt.................................................................... ... .... ... ... ... .....248
17.1.12 SPI Slave Function .... ... ... .... ... .......................................... ... ... .................................. 2 48
17.1.12.1 Usability Exceptions.................................................................. ... ... ... .... .248
17.1.12.2 Block Interrupt.................................................................... ... .... ... ... ... .....248
17.1.13 Asynchronous Transmitter and Receiver Functions .............................................249
17.1.13.1 Asynchronous Transmitter Function ......................... ... ... ... ... .... ... ... ... .... .249
17.1.13.2 Usability Exceptions.................................................................. ... ... ... .... .249
17.1.13.3 Block Interrupt.................................................................... ... .... ... ... ... .....249
17.1.13.4 Asynchronous Receiver Function ...........................................................249
17.1.13.5 Usability Exceptions.................................................................. ... ... ... .... .250
17.1.13.6 Block Interrupt.................................................................... ... .... ... ... ... .....250
17.2 Register Definitions .................................................................................................................251
17.2.1 DxBxxDRx Registers ................................................................................................252
17.2.1.1 Timer Register Definitions.......................................................................252
17.2.1.2 Counter Register Definitions...................................................................253
17.2.1.3 Dead Band Register Definitions..............................................................253
17.2.1.4 CRCPRS Register Definitions.................................................................254
17.2.1.5 SPI Master Register Definitions..............................................................254
17.2.1.6 SPI Slave Register Definitions................................................................255
17.2.1.7 Transmitter Register Definitions..............................................................255
17.2.1.8 Receiver Register Definitions..................................................................255
17.2.2 DxBxxCR0 Regist er ............ ... ... ... .... ... ... ... .... ... ... ... ... .......................................... .... .256
17.2.3 INT_MSK1 Register ...............................................................................................257
17.2.4 DxBxxFN Registers ..................................................................................................257
17.2.5 DxBxxIN Registers ...................................................................................................259
17.2.6 DxBxxOU Registers .................................................................................................260
Document # 001-20559 Rev. *D 11
Contents Overview
17.3 Timing Diagrams .....................................................................................................................262
17.3.1 Timer Timing .............................................................. ... ... ... .... ... ... ... ........................262
17.3.2 Counter Timing ... ... ... ...............................................................................................263
17.3.3 Dead Band Timing ...................................................................................................264
17.3.3.1 Changing the PWM Duty Cycle..............................................................264
17.3.3.2 Kill Operation..........................................................................................265
17.3.4 CRCPRS Timing ......................................................................................................266
17.3.5 SPI Mode Timing .......................................................... ... ... .... .................................266
17.3.6 SPIM Timing ............................................................................................................267
17.3.7 SPIS Timing ............................................................... ... ... ... .... ... ... ...........................270
17.3.8 Transmitter Timing ...................................................................................................273
17.3.9 Receiver Timing .......................................................................................................275
Section E: Analog System 279
Top-Level Analog Architecture ........ ... .... ... ... .......................................... ... ... .... ... ... ... .... ....................279
Interpreting the Analog Documentation ............................................................................................279
Application Description ......................................................................................................................280
Defining the Analog Blocks .....................................................................................................280
Analog Functionality .................................................................. ... ... ... .... ... ... ... .... ... ... ... ...........280
Analog Register Summary .. ... ............................................................................................................281
18. Analog Interface.............................................................................................................. 283
18.1 Architectural Description .........................................................................................................283
18.1.1 Analog Data Bus Interface .................. ............................................................. ........2 84
18.1.2 Analog Comparator Bus Interface ............................................................................284
18.1.3 Analog Column Clock Generation ...........................................................................285
18.1.3.1 Column Clock Synchronization...............................................................285
18.1.4 Decimator and Incremental ADC Interface ..............................................................285
18.1.4.1 Decimator ...............................................................................................285
18.1.4.2 Incremental ADC ...................................................................................285
18.1.5 Analog Modulator Interface (Mod Bits) ....................................................................286
18.1.6 Analog Synchronization Interface (Stalling) ............................................................. 286
18.2 PSoC Device Distinctions.........................................................................................................286
18.3 Application Description.............................................................................................................286
18.3.1 SAR Hardware Acceleration .................................................................................... 286
18.3.1.1 Architectural Description.........................................................................287
18.3.1.2 Application Description...........................................................................287
18.3.1.3 SAR Timing..................................... ... .... ... ... ... ... .....................................290
18.4 Register Definitions .................................................................................................................291
18.4.1 CMP_CR0 Register ...............................................................................................291
18.4.2 ASY_CR Register ....................................................................................................291
18.4.3 CMP_CR1 Register .................................................................................................292
18.4.4 DEC_CR0 Regist er ................... .... ... ... ... .... ... ....................................... ... ... ... ... .... ... .293
18.4.5 DEC_CR1 Regist er ................... .... ... ... ... .... ... ....................................... ... ... ... ... .... ... .293
18.4.6 CLK_CR0 Register ..................................................................................................294
18.4.7 CLK_CR1 Register ..................................................................................................294
18.4.8 AMD_CR0 Register .................................................................................................295
18.4.9 AMD_CR1 Register .................................................................................................295
18.4.10 ALT_CR0 Register ...................................................................................................295
19. Analog Array ................................................................................................................... 297
19.1 Architectural Description ..........................................................................................................297
19.1.1 NMux Connections General Overview......................................................................298
12 Document # 001-20559 Rev. *D
Contents Overview
19.1.2 PMux Connections General Overview ......................................................................299
19.1.3 RBotMux Connections General Overview.................................................................300
19.1.4 AMux Connections General Overview .....................................................................301
19.1.5 CMux Connections General Overview......................................................................302
19.1.6 BMux SC/SD Connections General Overview..........................................................303
19.1.7 Analog Comparator Bus ...........................................................................................303
19.2 Temperature Sensing Capability .............................................................................................303
20. Analog Input Configuration............................................................................................. 305
20.1 Architectural Description...........................................................................................................305
20.1.1 Two Column Analog Input Configuration........................................ ... ... ... .... ... ... ... .... .306
20.2 Register Definitions ................................................................................................................307
20.2.1 AMX_IN Register .....................................................................................................307
20.2.2 ABF_CR0 Register ...................................................................................................307
21. Analog Reference............................................................................................................309
21.1 Architectural Description...........................................................................................................309
21.2 Register Definitions .................................................................................................................310
21.2.1 ARF_CR Register ............................................ ... ... ... .... ... ... ... .... ... ... ... ... ..................310
22. Continuous Time PSoC Block ......................................................................................... 313
22.1 Architectural Description ..........................................................................................................313
22.2 Register Definitions .................................................................................................................315
22.2.1 ACBxxCR3 Register .................................................................................................315
22.2.2 ACBxxCR0 Register .................................................................................................317
22.2.3 ACBxxCR1 Register .................................................................................................317
22.2.4 ACBxxCR2 Register .................................................................................................318
23. Switched Capacitor PSoC Block .................................... .................. .................. ............. 319
23.1 Architectural Description...........................................................................................................319
23.2 Application Description.............................................................................................................321
23.3 Register Definitions .................................................................................................................322
23.3.1 ASCxxCR0 Register .................................................................................................323
23.3.2 ASCxxCR1 Register .................................................................................................324
23.3.3 ASCxxCR2 Register .................................................................................................324
23.3.4 ASCxxCR3 Register .................................................................................................325
23.3.5 ASDxxCR0 Register .................................................................................................326
23.3.6 ASDxxCR1 Register .................................................................................................327
23.3.7 ASDxxCR2 Register .................................................................................................327
23.3.8 ASDxxCR3 Register .................................................................................................328
24. SAR 8 ADC PSoC Block .................... .............. ............. .............. ............. ................ ......... 329
24.1 Architectural Description...........................................................................................................329
24.1.1 Features....................................................................................................................329
24.2 Register Definitions .................................................................................................................330
24.2.1 SARADC_DL Register .............................................................................................330
24.2.2 SARADC_CR0 Register ...........................................................................................330
24.2.3 SARADC_CR1 Register ...........................................................................................331
24.2.4 SARADC_TRS Register ...........................................................................................332
24.2.5 SARADC_TRCL Register ........................................................................................333
24.2.6 SARADC_TRCH Regist er ...... ... ... .... ... ... ... .... ... ... ... ... .... .......................................... .333
24.2.7 SARADC_CR2 Register ...........................................................................................334
24.2.8 SARADC_LCR Register ...........................................................................................334
Document # 001-20559 Rev. *D 13
Contents Overview
Section F: System Resources 335
Top-Level System Resources Architecture .......................................................................................335
Interpreting the System Resources Documentation .........................................................................335
System Resources Register Summary ..............................................................................................336
25. Digital Clocks.................................................................................................................. 339
25.1 Architectural Description ..........................................................................................................339
25.1.1 Internal Main Oscillator ............................................................................................339
25.1.2 Internal Low Speed Oscillator .................................................................................. 339
25.1.3 32.768 kHz Crystal Oscillator............... .....................................................................341
25.1.4 External Clock ........................................................................................................341
25.1.4.1 Clock Doubler.........................................................................................341
25.1.4.2 Switch Operation .................. .... ... ...........................................................341
25.2 PSoC Device Distinctions.........................................................................................................342
25.3 Register Definitions .................................................................................................................343
25.3.1 INT_CLR0 Register .................................................................................................343
25.3.2 INT_MSK0 Register ...... ...................................................... ..................................... 343
25.3.3 OSC_GO_EN Register ............................................................................................344
25.3.4 OSC_CR4 Register .................................................................................................344
25.3.5 OSC_CR3 Register .................................................................................................345
25.3.6 OSC_CR0 Register ...............................................................................................346
25.3.7 OSC_CR1 Register .................................................................................................347
25.3.8 OSC_CR2 Register ...............................................................................................348
26. Mult iply Accumulate (MAC) ...... ................ ................ .................. ................ ................ .... 349
26.1 Architectural Description .........................................................................................................349
26.2 Application Description.............................................................................................................350
26.2.1 Multiplication with No Accumulation ........................................................................350
26.2.2 Accumulation After Multiplication..............................................................................350
26.3 Register Definitions .................................................................................................................351
26.3.1 MULx_X Register .....................................................................................................351
26.3.2 MULx_Y Register .....................................................................................................351
26.3.3 MULx_DH Register ..................................................................................................352
26.3.4 MULx_DL Register ....................... ... ... .....................................................................352
26.3.5 MACx_X/ACCx_DR1 Register ...... .......................... ......................... ........................352
26.3.6 MACx_Y/ACCx_DR0 Register ...... .......................... ......................... ........................353
26.3.7 MACx_CL0/ACCx_DR3 Regis ter .............. ..............................................................353
26.3.8 MACx_CL1/ACCx_DR2 Regis ter .............. ..............................................................353
27. Decimator........................................................................................................................ 355
27.1 Architectural Description ..........................................................................................................355
27.1.1 Decimator Block .......................................................................................................355
27.2 Register Definitions .................................................................................................................357
27.2.1 DEC_DH Register ....................................................................................................357
27.2.2 DEC_DL Register ....................................................................................................357
27.2.3 DEC_CR0 Regist er ................... .... ... ... ... .... ... ....................................... ... ... ... ... .... ... .358
27.2.4 DEC_CR1 Regist er ................... .... ... ... ... .... ... ....................................... ... ... ... ... .... ... .358
28. I2C ............................................................................................................................... .... 359
28.1 Architectural Description ..........................................................................................................359
28.1.1 Basic I2C Data Transfer............................................................................................359
28.2 Application Description.............................................................................................................360
28.2.1 Slave Operation .................................. ... .... ... ... .......................................... ... ... ........360
28.2.2 Master Operation .....................................................................................................361
14 Document # 001-20559 Rev. *D
Contents Overview
28.3 Register Definitions .................................................................................................................362
28.3.1 I2C_CFG Register ..... ...... ....... ...... ....... ...... ....... ... ...... ....... ...... ....... ...... ....... ...... ....... . 362
28.3.2 I2C_SCR Register ....................................................................................................364
28.3.3 I2C_DR Register ......................................................................................................366
28.3.4 I2C_MSCR Register .................................................................................................366
28.4 Timing Diagrams ......................................................................................................................368
28.4.1 Clock Generation ......................................................................................................368
28.4.2 Basic Input/Output Timing.........................................................................................368
28.4.3 Status Timing ............................................................................................................369
28.4.4 Master Start Timing...................................................................................................370
28.4.5 Master Restart Timing...............................................................................................371
28.4.6 Master Stop Timing ..................................................................................................371
28.4.7 Master/Slave Stall Timing ........................................................... .............................. 372
28.4.8 Master Lost Arbitration Timing .................................................................................372
28.4.9 Master Clock Synchronization...................................................................................373
29. Inte rnal Voltage Reference............................................... ............. .............. ........... ......... 375
29.1 Architectural Description...........................................................................................................375
29.2 Register Definitions .................................................................................................................376
29.2.1 BDG_TR Register ....................................................................................................376
30. System Resets................................................................................................................. 377
30.1 Architectural Description...........................................................................................................377
30.2 Pin Behavior During Reset .......................................................................................................377
30.2.1 GPIO Behavior on Power Up ....................................................................................377
30.3 Register Definitions .................................................................................................................378
30.3.1 CPU_SCR1 Register .. ... .... ... ... ... .... ........................................................................378
30.3.2 CPU_SCR0 Register . ... ... .... ... ... ... .... ... ... ..................................................................379
30.4 Timing Diagrams .....................................................................................................................380
30.4.1 Power On Reset .......................................................................................................380
30.4.2 Watchdog Timer Reset .............................................................................................380
30.4.3 Reset Details.............................................................................................................382
30.5 Power Consumption ................................................................................................................382
31. POR and LVD .................. ................ ................ ................ .................. ............... ................ 383
31.1 Architectural Description...........................................................................................................383
31.2 Register Definitions .................................................................................................................384
31.2.1 VLT_CR Register ................................................... ... .... ... ........................................384
31.2.2 VLT_CMP Register ..................................................................................................384
Section G: Glossary 385 Index 401
Document # 001-20559 Rev. *D 15
Contents Overview
16 Document # 001-20559 Rev. *D

Section A: Overview

The PSoC® family consists of programmable system-on-chips with on-chip controller devices. As described in this technical reference manual (TRM), a PSoC device includes configurable blocks of analog circuits and digital logic, as well as pro­grammable interconnect. This architecture allows the user to create customized peripheral configurations, to match the requirements of each individual application. Additionally, a fast CPU, Flash program memory, SRAM data memory, and con­figurable input/output (IO) are included in a range of pinouts.
This document is a technical reference manual for the PSoC device: CY8C24533, CY8C23533, CY8C23433CY8C24633. For the most up-to-date Ordering, Pinout, Packaging, or Electrical Specification inf ormation, refer to the PSoC data sheet. For the most current technical reference manual information, refer to the addendum. To obtain the newest product documentation, go to the Cypress web site at http://www.cypress.com/psoc. This section encompasses the following chapter:
Pin Information on page 25

Document Organization

This manual is organized into sections and chap ters, according to PSoC functionali ty. Each section begins with documenta­tion interpretation, a top-level architectural explanation, PSoC device distinctions (if relevant), and a register summary (if applicable). Most chapters within the sections have an introduction, an architectural/application description, PSoC device dis­tinctions (if relevant), register definitions, and timing diagrams. The sections are as follows:
Overview – Presents the PSoC top-level architecture, PSoC device characteristics and distinctions, how to get started
with helpful information, and document history and conventions. The PSoC device pinouts are detailed in the Pin
Information chapter on page 25.
PSoC Core – Describes the heart of the PSoC device in various chapters, beginning with an architectural overview and a
summary list of registers pertaining to the PSoC core. See “PSoC Core” on page 31.
Register Reference – Lists all PSoC device registers in Register Mapping Tables, on page 43, and presents bit-level
detail of each PSoC register in its own Register Details chapter on page 47. Where applicable, detailed register descrip­tions are also located in each chapter.
Digital System – Describes the configurable PSoC digital system in various chapters, beginning with an architectural
overview and a summary list of registers pertaining to the digital system. See the “Digital System” on page 161.
Analog System – Describes the configurable PSoC analog system in various chapters, beginning with an architectural
overview and a summary list of registers pertaining to the analog system. See the “Analog System ” on page 215.
System Resources – Presents additional PSoC system resources, depending on the PSoC device, beginning with an
overview and a summary list of registers pertaining to system resources. See “System Resources” on page 271.
Glossary – Defines the specialized terminology used in this manual. Glossary terms are presented in bold, italic font
throughout this manual. See the “Glossary” on page 321.
Index – Lists the location of key topics and elements that constitute and empower the PSoC device. See the “Index” on
page 401.
Document # 001-20559 Rev. *D 17
Section A: Overview

Top-Level Architecture

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

PSoC Core

The PSoC Core is a powerful engine that supports a rich instruction set. It encompasses the SRAM for data storage, an interrupt controller fo r easy program execution to new addresses, sleep and watchdog timers, and multiple clock sources that include the phase locked loop (PLL), IMO (internal main oscillator), ILO (internal low speed oscillator), and ECO (32.768 kHz external crystal oscillator) for preci­sion, programmable clocking. The clocks, together with pro­grammable clock dividers (as a System Resource), provide the flexibility to integrate almost any timing requirement into the PSoC device.
The CPU core, called the M8C, is a powerful processor with speeds up to 24 MHz. The M8C is a four MIPS 8-bit Har­vard architecture microprocessor. Within the CPU core are the SROM and Flash memory components that provide flexible programming.
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 also has the capability to gen­erate a system interrupt on high level, low level, and change from last read.

Digital System

The Digital System is composed of digital rows in a block array, and the Global, Array, and Row Digital Interconnects (GDI, ADI, and RDI, respectively).The digital system block is composed of 4 digital PSoC blocks. Each block is an 8-bit resource that can be used alone or combined with other blocks to form 8-, 16-, 24-, and 32-bit peripherals, which are called user modules.

Analog System

The Analog System is composed of analog columns in a block array, analog references, analog input muxing, and analog drivers. The analog system block is composed of 6 configurable blocks, each comprised of an opamp circuit allowing the creation of complex analog signal flows.
Analog blocks are arranged in a column of three, which includes one CT (Continuous Time) and two SC (Switched Capacitor) blocks. The Analog Column 0 contains the SAR8 ADC block rather than the standard SC blocks.

System Resources

The System Resources provide additional PSoC capability. These system resources include:
Digital clocks to increase the flexibility of the PSoC
device.
One multiply accumulate (MAC) provides a fast 8-bit
multiplier with 32-bit accumulate to assist in both general math as well as digital filters.
The decimator provides a custom hardware filter for digi-
tal signal processing applications, including the creation of Delta Sigma ADCs.
I2C functionality for implementing either I2C slave or
master.
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 voltage reference that provides an absolute
value of 1.3 V to a variety of PSoC subsystems.
Various system resets supported by the M8C.
The digital blocks can be connected to any GPIO through a series of global buses that can route any signal to any p in. The buses also allow for signal multiplexing and for perform­ing logic operations. This configurability frees your designs from the constraints of a fixed peripheral controller.
18 Document # 001-20559 Rev. *D
PSoC Top-Level Block Diagram
DIGITAL SYSTEM
SRAM
256 Bytes
Interrupt
Controller
Sleep and Watchdog
Multiple Clock Sources
(Includes IMO, ILO, PLL, and ECO)
Global Digital Interconnect
Global Analog Interconnect
PSoC CORE
CPU Core (M8C)
SROM Flash 8K
Multiply
Accum.
(MAC)
Internal Voltage
Ref.
Digital
Clocks
POR and LVD
System Resets
Decimator
SYSTEM RESOURCES
ANALOG SYSTEM
Analog
Ref
I2C
Port 2 Port 1 Port 0
Analog Drivers
System Bus
Analog
Block Array
Digital PSoC
Block Array
DBB0
1
DBB0
0
DCB02 DCB03
SAR8
ADC
SC SC
CT
Analog
Input
Muxing
1 Digital Row
2 Analog Columns
Port 3
CT
Section A: Overview
Document # 001-20559 Rev. *D 19
Section A: Overview

PSoC Device Characteristics

The PSoC digital system has 1 digital row and the analog system has 2 analog columns, as described in the following table.
PSoC Device Characteristics
PSoC Part
Number
Digital Rows
Digital Blocks
Digital IO (max)
CY8C24423A 24 1 4 12 2 2 6 256 Bytes 4 KB CY8C24533
CY8C23533 CY8C23433 CY8C24633
a. 2 CT, 2 SC.
26 1 4 12 2 2 26 1 4 12 2 2 26 1 4 12 2 2 25 1 4 12 2 2
Analog Inputs
Analog Outputs
Analog Blocks
Analog Columns
a
4
a
4
a
4
a
4
Amount of SRAM
256 Bytes 8 KB 256 Bytes 8 KB 256 Bytes 8 KB 256 Bytes 8 KB
Amount of Flash
The following table lists the resources available for CY8C24633, CY8C24533, CY8C23533, CY8C23433-spe­cific PSoC device groups. The check mark or appropriate information denotes that a system resource is available for the PSoC device. Blank fields denote that the system resource is not available. These resources are detailed in the section titled “System Resources” on page 271.
Availability of System Resources for PSoC Devices
PSoC Part
Number
CY8C24423A CY8C24533 CY8C23533 CY8C23433 CY8C24633
I2C
Digital
Clocks
Internal
Voltage Ref
LVD
System
POR and
   
   
   
   
   
Resets
Decimator
T1 1 T1 1 T1 1 T1 1 T1 1
Multiply
Accumulate
SAR8 ADC

XRES Pin

PSoC Device Distinctions

The PSoC device distinctions are listed in the table below and in each chapter section where it is app ropriate. The PSoC device distinctions are significant exceptions or differences between PSoC groups and devices.
PSoC Device Distinctions
Device Distinctions Devices Affected Described in Chapter
Low Power Oscillator Capability The slow IMO (SLIMO) bit is available to
enable SYSCLK operation at 6 MHz and 12 MHz, instead of only 24 MHz. The SLIMO bit is located in the
POR and LVD Trip Levels The lowest POR level is set for 2.4V operation; the next lowest is set for 3.0V operation (instead of 3.0V or 4.5V operation).
Register Distinction
IMO mode) is reserved.
Register Distinction
2 (ECO EXW and ECO EX, respectively) cannot be used.
Register Distinction is only available in devices with a type 1 decimator.
Register Distinction reserved.
CPU_SCR1 register on page 121 bit 4 (Slow
CPU_SCR1 register on page 121.
CPU_SCR1 register on page 121 bits 3 and
DEC_CR1 register on page 111 bit 7 (ECNT)
OSC_GO_EN register on page 148 bit 7 is
CY8C24x23A CY8C24633CY8C24533, CY8C23533, CY8C23433
CY8C24x23A CY8C24533, CY8C23533, CY8C23433CY8C24633
CY8C24533, CY8C23533, CY8C23433CY8C24633
CY8C24533, CY8C23533, CY8C23433CY8C24633
CY8C24x23A CY8C24533, CY8C23533, CY8C23433CY8C24633
CY8C24533, CY8C23533, CY8C23433CY8C24633
Internal Main Oscillator (IMO) chapter on page 15
.
POR and LVD chapter on page 319 and
PSoC device data sheets.
Internal Main Oscillator (IMO) chapter on page 15
.
External Crystal Oscillator (ECO) chapter on page 21
.
Analog Interface chapter on page 219
Decimator chapter on page 291.
and
Digital Clocks chapter on page 275.
20 Document # 001-20559 Rev. *D
Section A: Overview

Getting Started

The quickest path to understanding PSoC is by reading the PSoC device’s data sheet and using the PSoC Desi gner Inte­grated Development Environment (IDE). This manual is useful for understanding the details of the PSoC integrated circuit.
Important Note: For the most up-to-date Ordering, Packaging, or Electrical Specification information, refer to the individual PSoC device’s data sheet or go to http://www.cypress.com/psoc.

Support

Free support for PSoC products is available online at http://www.cypress.com. Resources include Training Seminars, Discus­sion Forums, Application Notes, PSoC Consultants, TightLink Technical Support Email/Knowledge Base, and Application Support Technicians. Technical Support can be reached at http://www.cypress.com/support or by phone at:1-425-787-4814.

Product Upgrades

Cypress provides scheduled upgrades and version enhancements for PSoC Designer free of charge. You can order the upgrades from your distributor on CD-ROM or download them directly from http://www.cypress.com.

Development Kits

Development Kits are available from the following distributors: Digi-Key, Avnet, Arrow, and Future. The Cypress Online Store contains development kits, C compilers, and all accessories for PSoC development. Go to the Cypress Online Store web site at http://www.onfulfillment.com/cypressstore.

Document History

This section serves as a chronicle of the PSoC CY8C24533, CY8C23533, CY8C23433 Technical Reference Manual PSoC Technical Reference Manual History
Version/
Release Date
** August, 2007
*A February 2010
*B July 2013 *C December 2013 *D January 2017
Originator Description of Change
HMT First release of the PSoC CY8C24533 Technical Reference Manual. This release encompasses the following PSoC device:
HMT Add CY8C23533, CY8C23433 and update pinout diagrams.
RJVB Removed reference to the IMODIS bit.
MSON No content update; sunset review
RJVB Added information for "no glitch protection in the device for an external clock".
CY8C24533.
Document # 001-20559 Rev. *D 21
Section A: Overview

Documentation Conventions

There are only four distinguishing font types used in this manual, besides those found in the headings.
The first is the use of italics when referencing a docu-
ment title or file name.
The second is the use of bold italics when referencing a
term described in the Glossary of this manual.
The third is the us e of T imes New Roman font, distinguish-
ing equation examples.
The fourth is the use of Courier New font, distinguish-
ing code examples.

Register Conventions

The following table lists the register conventions that are specific to this manual. A more detailed set of register con­ventions is located in the Register Details chapter on
page 47.
Register Conventions
Convention Example Description
‘x’ in a register name
R R : 00 Read register or bit(s) W W : 00 Write register or bit(s) L RL : 00 Logical register or bit(s) C RC : 00 Clearable register or bit(s) 00 RW : 00 Reset value is 0x00 or 00h XX RW : XX Register is not reset 0, 0,04h Register is in bank 0 1, 1,23h Register is in bank 1 x, x,F7h Register exists in register bank 0 and reg-
Empty, grayed­out table cell
ACBxxCR1 Multiple instances/address ranges of the
same register
ister bank 1 Reserved bit or group of bits, unless oth-
erwise stated

Units of Measure

The following table lists the units of measure used in this manual.
Units of Measure
Symbol Unit of Measure
dB decibels Hz hertz
k kilo, 1000 K
KB 1024 bytes Kbit 1024 bits kHz kilohertz (32.000)
MHz megahertz
A microampere
F microfarad
s microsecond
V microvolts
mA milli-ampere ms milli-second mV milli-volts
ns nanosecond
pF picofarad
ppm parts per million
V volts
210, 1024

Numeric Naming

Hexidecimal numbers are represented with all letters in uppercase with an appended lowercase ‘h’ (for example, ‘14h’ or ‘3Ah’) and hexidecimal numbers may also be rep­resented by a ‘0x’ prefix, the C coding convention. Binary numbers have an appended lowercase ‘b’ (for example, 01010100b’ or ‘01000011b’). Numbers not indicated by an ‘h’ or ‘b’ are decimal.
22 Document # 001-20559 Rev. *D
Section A: Overview

Acronyms

The following table lists the acronyms that are used in this manual.
Acronyms
Acronym Description
ABUS analog output bus AC alternating current ADC analog-to-digital converter API Application Programming Interface BC broadcast clock BR bit rate BRA bus request acknowledge BRQ bus request CBUS comparator bus CI carry in CMP compare CO carry out CPU central processing unit CRC cyclic redundancy check CT continuous time DAC digital-to-analog converter DC direct current DI digital or data input DMA direct memory access DO digital or data output ECO external crystal oscillator FB feedback GIE global interrupt enable GPIO general purpose IO ICE in-circuit emulator IDE integrated development environment ILO internal low speed oscillator IMO internal main oscillator IO input/output IOR IO read IOW IO write IPOR imprecise power on reset IRQ interrupt request ISR interrupt service routine ISSP in system serial programming IVR interrupt vector read LFSR linear feedback shift register LRb last received bit LRB last received byte LSb least significant bit LSB least significant byte LUT look-up table MISO master-in-slave-out MOSI master-out-slave-in MSb most significant bit MSB most significant byte PC program counter
Acronyms (continued)
Acronym Description
PCH program counter high PCL program counter low PD power down PMA PSoC® memory arbiter POR power on reset PPOR precision power on reset PRS pseudo random sequence PSoC® Programmable System-on-Chip™ PSSDC power system sleep duty cycle PWM pulse width modulator RAM random access memory RETI return from interrupt RI row input RO row output ROM read only memory RW read/write SAR successive approximation register SC switched capacitor SIE serial interface engine SE0 single-ended zero SOF start of frame SP stack pointer SPI serial peripheral interconnect SPIM serial peripheral interconnect master SPIS serial peripheral interconnect slave SRAM static random access memory SROM supervisory read only memory SSADC single slope ADC SSC supervisory system call TC terminal count USB universal serial bus WDT watchdog timer WDR watchdog reset XRES external reset
Document # 001-20559 Rev. *D 23
Section A: Overview
24 Document # 001-20559 Rev. *D

1. Pin Information

This chapter lists, describes, and illustrates CY8C24533, CY8 C23533, CY8C23433CY8C2463 3 device pins and pino ut con­figurations. For up-to-date Ordering, Pinout, and Packaging information, refer to the individual PSoC device’s data sheet at
http://www.cypress.com/psoc.

1.1 Pinouts

The PSoC CY8C24533, CY8C23533, CY8C23433CY8C24633 are available in 28-pin SSOP and 32-pin QFN and 56-pin SSOP OCDpackages. Refer to the following information for details. Every port pin (labeled with a “P”), except for Vss and Vdd, and XRES in the following tables and illustrations, is capable of Digital IO.
Document # 001-20559 Rev. *D 25
Pin Information
AIO, P0[7]
IO, P0[5] IO, P0[3]
AIO, P0[1]
IO, P2[7]
IO, P2[5] AIO, P2[3] AIO, P2[1]
AVref, IO, P3[0]
I2C SCL, IO, P1[7]
I2C SDA, IO, P1[5]
IO, P1[3]
I2C SCL, ISSP SCL, XTALin, IO, P1[1]
Vss
Vdd P0[6],
AIO, AnColMux and ADC IP
P0[4], AIO, AnColMux and ADC IP P0[2], AIO, AnColMux and ADC IP P0[0], AIO, AnColMux and ADC IP P2[6], IO P2[4], IO P2[2], AIO P2[0], AIO P3[1], IO P1[6], IO P1[4], IO, EXTCLK P1[2], IO P1[0], IO, XTALout, ISSP SDA, I2C SDA
SSOP
1 2 3 4 5 6 7 8
9 10 11 12 13 14
28 27 26 25 24 23 22 21 20 19 18 17 16 15
1.1.1 28-Pin Part Pinout
The 28-pin part is for the CY8C24533 CY8C24633 PSoC device.
Table 1-1. 28-Pin Part Pinout (SSOP)
Digital
Pin No.
1 IO I P0[7] Analog Col Mux IP and ADC
2 IO IO P0[5] Analog Col Mux IP and Col-
3 IO IO P0[3] Analog Col Mux IP and Col-
4 IO I P0[1] Analog Col Mux IP and ADC
5 IO P2[7] GPIO 6 IO P2[5] GPIO 7 IO I P2[3] Direct switched capacitor
8 IO I P2[1] Direct switched capacitor
9 IO AVref P3[0]* GPIO/ADC Vref (optional) 10 IO P1[7] I2C SCL 11 IO P1[5] I2C SDA 12 IO P1[3] GPIO 13 IO P1[1]** GPIO, Xtal input, I2C SCL,
14 15 IO P1[0]** GPIO, Xtal output, I2C SDA,
16 IO P1[2] GPIO 17 IO P1[4] GPIO, external clock IP 18 IO P1[6] GPIO 19 IO P3[1]*** GPIO
19 20 IO I P2[0] Direct switched capacitor
21 IO I P2[2] Direct switched capacitor
22 IO P2[4] GPIO 23 IO P2[6] GPIO 24 IO I P0[0] Analog Col Mux IP and ADC
25 IO I P0[2] Analog Col Mux IP and ADC
26 IO I P0[4] Analog Col Mux IP and ADC
27 IO I P0[6] Analog Col Mux IP and ADC
28
LEGEND: A = Analog, I = Input, and O = Output. * Even though P3[0] is an odd port, it resides on the left side of the pinout. ** ISSP pin, which is not High Z at POR. *** Even though P3[1] is an even port, it resides on the right side of the pinout.
26 Document # 001-20559 Rev. *D
Power Vss Ground pin
Power Vdd Supply voltage
Description
Analog
Pin Name
IP
umn O/P and ADC IP
umn O/P and ADC IP
IP
input
input
ISSP SCL
ISSP SDA
XRES Active high pin reset with
internal pull down
input
input
IP
IP
IP
IP
CY8C24533 CY8C24633 PSoC Device
The 28-pin part is for the CY8C23433 PSoC device.
AIO, P0[7 ]
IO, P0[5]
IO, P0[3]
AIO, P0[ 1]
IO, P2[7] IO, P2[5]
AIO, P2[ 3]
AIO, P2[1]
AVref, IO, P3[0]
I2C SCL, IO, P1[7]
I2C SDA, IO, P1[5]
IO, P1[3]
I2C SCL,ISSP SCL,XTALin,IO, P1[1]
Vss
Vd
d
P0[6], AIO, AnColMux and ADC IP P0[4], AIO, AnColMux and ADC IP P0[2], AIO, AnColMux and ADC IP P0[0], AIO, AnColMux and ADC IP P2[6], VREF
P2[4], AGND P2[2], AIO P2[0], AIO
P3[1], IO
P1[6], IO
P1[4], IO, EXTCLK P1[2], IO P1[0],IO,XTALout,ISSP S DA,I2C SDA
SSOP
1 2 3 4 5 6 7 8
9 10 11 12 13 14
28 27 26 25 24 23 22 21 20 19 18 17 16 15
Table 1-2. 28-Pin Part Pinout (SSOP)
Pin No.
1 IO I P0[7] Analog Column Mux IP and
2 IO IO P0[5] Analog Column Mux IP and
3 IO IO P0[3] Analog Column Mux IP and
4 IO I P0[1] Analog Column Mux IP and
5 IO P2[7] GPIO 6 IO P2[5] GPIO 7 IO I P2[3] Direct Switched Capacitor
8 IO I P2[1] Direct Switched Capacitor
9IOAVref
10 IO P1[7] I2C SCL 11 IO P1[5] I2C SDA 12 IO P1[3] GPIO 13 IO
14 15 IO
16 IO P1[2] GPIO 17 IO P1[4] GPIO, External Clock IP 18 IO P1[6] GPIO 19 IO
20 IO I P2[0] Direct Switched Capacitor
21 IO I P2[2] Direct Switched Capacitor
22 IO P2[4] External Analog Ground
23 IO P2[6] Analog Voltage Reference
24 IO I P0[0] Analog Column Mux IP and
25 IO I P0[2] Analog Column Mux IP and
26 IO I P0[4] Analog Column Mux IP and
27 IO I P0[6] Analog Column Mux IP and
28
LEGEND: A = Analog, I = Input, and O = Output. * Even though P3[0] is an odd port, it resides on the left side of the pinout. ** ISSP pin, which is not High Z at POR. *** Even though P3[1] is an even port, it resides on the right side of the pinout.
Document # 001-20559 Rev. *D 27
Description
Digital
Analog
Pin Name
ADC IP
Column O/P and ADC IP
Column O/P and ADC IP
ADC IP
Input
Input GPIO/ADC Vref (optional)
*
P3[0]
GPIO, Xtal Input, I2C SCL,
**
P1[1]
ISSP SCL
Power Vss Ground Pin
P1[0]**
P3[1]
GPIO, Xtal Output, I2C SDA, ISSP SDA
GPIO
***
Input
Input
(AGnd)
(VRef)
ADC IP
ADC IP
ADC IP
ADC IP
Power Vdd Supply Voltage
Pin Information
CY8C23433 28-Pin PSoC Device
Pin Information
GPIO, P2[7] GPIO, P2[5]
A, I, P2[3] A, I, P2[1]
AVref, P3[0]
NC
QFN
(Top View)
9
10111213141516
1 2 3 4 5 6 7 8
24 23 22 21 20
19 18 17
32313029282726
25
P0[1], A , I
P0[3], A , IO
P0[5], A , IO
P0[7], A , I
Vdd
P0[6], A , I
P0[4], A , I
NC
I2C SCL, P1[7]
I2C SDA, P1[5]
P0[2], A , I P0[0], A , I
XRES P1[6], GPIO
NC
GPIO P1[3]
I2C SCL, XTAL in, P1[1]
Vss
I2C SDA, XTALout, P1[0]
GPIO P1[2]
GP IO, E XT CL K, P 1 [4 ]
NC
P2[6], Vref P2[4], AGnd P2[2], A , I P2[0], A , I
1.1.2 32-Pin Part Pinout
The 32-pin part is for the CY8C23533 PSoC device. Table 1-3. 32-Pin Part Pinout (QFN)
Pin No.
1 IO P2[7] GPIO 2 IO P2[5] GPIO 3 IO I P2[3] Direct Switched Capacitor Block Input 4 IO I P2[1] Direct Switched Capacitor Block Input 5 IO AVref P3[0]* GPIO/ADC Vref (optional) 6 NC No Connection 7 IO P1[7] I2C Serial Clock (SCL) 8 IO P1[5] I2C Serial Data (SDA)
9 NC No Connection 10 IO P1[3] GPIO 11 IO P1[1]** GPIO, Crystal Input (XTALin), I2C Serial
12 Power Vss Ground Connection 13 IO P1[0]** GPIO, Crystal Output (XTALout), I2C
14 IO P1[2] GPIO 15 IO P1[4] GPIO, External Clock IP 16 NC No Connection 17 IO P1[6] GPIO 18 Input XRES Active High External Reset with Internal
19 IO I P2[0] Direct Switched Capacitor Block Input 20 IO I P2[2] Direct Switched Capacitor Block Input 21 IO P2[4] External Analog Ground (AGnd) 22 IO P2[6] External Voltage Reference (VRef) 23 IO I P0[0] Analog Column Mux Input and ADC Input 24 IO I P0[2] Analog Column Mux Input and ADC Input 25 NC No Connection 26 IO I P0[4] Analog Column Mux Input and ADC Input 27 IO I P0[6] Analog Column Mux Input and ADC Input 28 Power Vdd Supply Voltage 29 IO I P0[7] Analog Column Mux Input and ADC Input 30 IO IO P0[5] Analog Column Mux Input, Column Output
31 IO IO P0[3] Analog Column Mux Input, Column Output
32 IO I P0[1] Analog Column Mux Input.and ADC Input
LEGEND: A = Analog, I = Input, and O = Output. * Even though P3[0] is an odd port, it resides on the left side of the pinout. ** ISSP pin, which is not High Z at POR.
Type
Digital Analog
Pin
Name
Clock (SCL), ISSP-SCLK
Serial Data (SDA), ISSP-SDATA
Pull Down
and ADC Input
and ADC Input
Description
CY8C23533 32-Pin PSoC Device
28 Document # 001-20559 Rev. *D
1.1.3 56-Pin Part Pinout
OCD
SSOP
156
Vdd 2AI, P0[7] 55 P 0[6 ], AI 3
AIO, P0 [5 ]
54 P 0 [4 ], AIO
4
AIO, P0 [3 ]
53 P 0 [2 ], AIO
5
AI, P0[1]
52
P0[0], AI 6
P2[7]
51 P 2 [6 ], External VRef
7
P2[5]
50
P2[4], External AGND 8
AI, P2[3]
49 P 2 [2 ], AI
9AI, P2[1]
48 P 2 [0 ], AI
10
47
11
GPIO/ADC VRef, P3[0]
46 12 45 13 44 14
OCDE
43
CCLK 15OCDO 42 HCLK 16 41
XRES 17
NC
40
NC 18
NC
39
NC 19NC
38
NC 20 37 P 3[1 ] 21
NC
36 NC
22
NC 35 NC
23
I2C SCL, P1[7]
34
P1[6] 24I2C SDA, P1[5] 33 P1[4], EXTCLK 25NC 32
P1[2] 26
P1[3]
31 P 1 [0 ], XTALout, I2C SDA, SDATA
27
SCLK, I2C SC L, XTALin, P1[1] 30 NC
28
Vss 29 NC
NC
NC
NC NC
NC
NC
NC
NC
NC
NC
The 56-pin OCD (On-Chip Debug) part is for the CY8C24633 (CY8C24033) PSoC device. Note OCD parts are only used for in-circuit debugging. OCD parts are NOT available for production.
Table 1-4. 56-Pin OCD Part Pinout (SSOP)
Pin
Name Description
No.
1 NC No internal connection 2 P0[7] Analog column mux input: AI 3 P0[5] Analog column mux input and column output: AIO 4 P0[3] Analog column mux input and column output: AIO 5 P0[1] Analog column mux input: AI 6 P2[7] 7 P2[5] 8 P2[3] Direct switched capacitor block input: AI
9 P2[1] Direct switched capacitor block input: AI 10 NC No internal connection 11 P3[0] GPIO/ADC Vref (optional) 12 NC No internal connection 13 NC No internal connection 14 OCDE OCD even data IO 15 OCDO OCD odd data output 16 NC No internal connection 17 NC No internal connection 18 NC No internal connection 19 NC No internal connection 20 NC No internal connection 21 NC No internal connection 22 NC No internal connection 23 P1[7] I2C Serial Clock (SCL) 24 P1[5] I2C Serial Data (SDA) 25 NC No internal connection 26 P1[3]
27 P1[1]* Crystal (XTALin), I2C Serial Clock (SCL) 28 Vss Ground connection 29 NC No internal connection 30 NC No internal connection Pin
31 P1[0]* Crystal (XTALout), I2C Serial Data (SDA) 44 NC No internal connection 32 P1[2] 45 NC No internal connection
33 P1[4] Optional External Clock Input (EXTCLK) 46 NC No internal connection 34 P1[6] 47 NC No internal connection 35 NC No internal connection 48 P2[0] Direct switched capacitor block input: AI 36 NC No internal connection 49 P2[2] Direct switched capacitor block input: AI 37 P3[1] GPIO 50 P2[4] External Analog Ground (AGND) 38 NC No internal connection 51 P2[6] External Voltage Reference (VRef) 39 NC No internal connection 52 P0[0] Analog column mux input: AI 40 NC No internal connection 53 P0[2] Analog column mux input and column output: AIO 41 XRES Active high pin reset with internal pull down 54 P0[4] Analog column mux input and column output: AIO
LEGEND A = Analog, I = Input, O = Output.
Document # 001-20559 Rev. *D 29
42 HCLK OCD high speed clock output 55 P0[6] Analog column mux input: AI 43 CCLK OCD CPU clock output 56 Vdd Supply voltage
* ISSP pin, which is not High Z at POR.
CY8C24033 OCD PSoC Device
NOT FOR PRODUCTION
Name Description
No.
Pin Information
Pin Information
30 Document # 001-20559 Rev. *D
Loading...
+ 380 hidden pages