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 PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further 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, including any sample design information or programming code, 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 product. Cypress products are not
designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, 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 and
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 claims, 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, FRAM, 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 respective owners.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document Number: 001-32519 Rev. *H2
21.3 Bank 0 Registers ..................................................................................................................164
21.4 Bank 1 Registers ..................................................................................................................212
Section E: Glossary 239
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H8
Section A:Overview
The enCoRe™ V family consists of many On-Chip Controller devices. The CY8C20x46A/46AS/96A/46L/96LCY7C643xx and
CY7C604xx enCoRe V devices have fixed analog and digital resources in addition to a fast CPU, flash program memory, and
SRAM data memory to support various algorithms.
For the most up-to-date ordering, pinout, packaging, or electrical specification information, refer to the enCoRe V device’s
datasheet. For the most current technical reference manual information and newest product documentation, go to the
Cypress web site at http://www.cypress.com >> Documentation.
This section contains:
■ Pin Information on page 15.
Document Organization
This manual is organized into sections and chapters, according to enCoRe V functionality. Each section contains a top-level
architectural diagram and a register summary (if applicable). Most chapters within the sections have an introduction, an architectural/application description, register definitions, and timing diagrams. The sections are as follows:
■ Overview – Presents the top-level architecture, helpful information to get started, and document history and
conventions. The enCoRe V device pinouts are detailed in Pin Information, on page 15.
■ enCoRe V Core – Describes the heart of the enCoRe V device in various chapters, beginning with an architectural over-
view and a summary list of registers pertaining to the enCoRe V core.
■ System Resources – Presents additional enCoRe V system resources, beginning with an overview and a summary list of
registers pertaining to system resources.
■ Registers – Lists all enCoRe V device registers in register mapping tables, and presents bit-level detail of each register in
its own Register Reference chapter. Where applicable, detailed register descriptions are also located in each chapter.
■ Glossary – Defines the specialized terminology used in this manual. Glossary terms are presented in bold, italic font
throughout this manual.
■ Index – Lists the location of key topics and elements that constitute and empower the enCoRe V devices.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H9
Top-Level Architecture
The enCoRe V block diagram on the next page illustrates the top-level architecture of the
CY8C20X46A/46AS/96A/46L/96LCY7C643xx and CY7C604xx devices. Each major grouping in the diagram is covered in this
manual in its own section: enCoRe V Core and System Resources. Banding these two main areas together is the communica-
tion network of the system bus.
enCoRe V Core
The enCoRe V Core is a powerful engine that supports a rich instruction set. It includes the SRAM for data storage, an inter-rupt controller for easy program execution to new addresses, sleep and watchdog timers, a regulated 3.0-V output option for
Port 1 I/Os, and multiple clock sources that include the IMO (internal main oscillator) and ILO (internal low-speed oscillator)
for precision, programmable clocking.
The CPU core, called the M8C, is a powerful processor with speeds up to 24 MHz. The M8C is a four MIPS 8-bit Harvard
architecture microprocessor. Within the CPU core are the SROM and Flash memory components that provide flexible pro-
gramming.
enCoRe V GPIOs provide connection to the CPU and external resources of the device. Each pin’s drive mode is selectable
from four options, allowing great flexibility in external interfacing. Every pin also has the capability to generate a system interrupt on low level and change from last read.
System Resources
The System Resources provide additional enCoRe V capability. These system resources include:
■ Digital clocks to increase flexibility.
■ I2C functionality with “no bus stalling.”
■ Various system resets supported by the M8C.
■ Power-on-reset (POR) circuit protection.
■ SPI master and slave functionality.
■ A programmable timer to provide periodic interrupts.
■ Clock boost network providing a stronger signal to switches.
■ Full-speed USB interface for USB 2.0 communication with 512 bytes of dedicated buffer memory and an internal 3-V reg-
ulator.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H10
enCoRe V Core Top-Level Block Diagram
CAPSENSE
SYSTEM
1K/2K
SRAM
Inte rrupt
Controller
Sleep and
Watchdog
M ultip le Clo ck Sou rce s
Inte rna l Lo w Sp ee d O sc illator (IL O )
6/1 2/24 M H z In terna l M ain O sc illato r
(IM O)
PSoC CORE
CPU Core (M8C)
Supervisory ROM (SROM )
8K/16K/32K Flash
Nonvolatile M emory
SYSTEM RESOURCES
SYSTEM BUS
Analog
Reference
SYSTEM BUS
Port 3Port 2Port 1P or t 0
CapSense
Module
Global Analog Interconnect
1.8/2.5/3V
LDO
Analog
Mux
Two
Com parators
I2C
Slave
SPI
Master/
Slave
POR
and
LVD
USB
System
Resets
Internal
Voltage
References
Three 16-Bit
Program mable
Tim ers
PWRSYS
(Regulator)
Port 4
Digital
Clocks
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H11
Getting Started
The quickest path to understanding enCoRe V is by reading the enCoRe V device’s datasheet and using PSoC Designer™
Integrated Development Environment (IDE). This manual is useful for understanding the details of the enCoRe V integrated
circuit.
Important Note
For the most up-to-date Ordering, Packaging, or Electrical Specification information, refer to the individual
enCoRe V device’s datasheet or go to http://www.cypress.com.
Support
Free support for enCoRe V products is available online at http://www.cypress.com. Resources include Training Seminars,
Discussion Forums, Application Notes, TightLink Technical Support Email/Knowledge Base, and Application Support Technicians.
Technical Support can be reached at http://www.cypress.com/support.
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 under Software. Also pro-
vided are critical updates to system documentation under http://www.cypress.com >> Documentation.
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 enCoRe V development. Go to the Cypress Online Store at
http://www.cypress.com under Order >> USB Kits.
Document History
This section serves as a chronicle of the CY8C20XX6A/AS/LenCoRe™ V and enCoRe™ V LV CY7C643xx and CY7C604xx
Technical Reference Manual.
Technical Reference Manual History
Versio n/
Release Date
** September 2007HMTFirst release of the enCoRe™ V and enCoRe™ V LV CY7C643xx and CY7C604xx Technical Reference Manual.
*A June 2008HMTSecond release of the enCoRe™ V and enCoRe™ V LV CY7C643xx and CY7C604xx Technical Reference Manual.
*B June 2009FSUThird release of the enCoRe™ V and enCoRe™ V LV CY7C643xx and CY7C604xx Technical Reference Manual.
*C September 2009FSUFourth release of the enCoRe™ V and enCoRe™ V LV CY7C643xx and CY7C604xx Technical Reference Manual.
*D November 2009FSUMultiple fixes, primarily to the sleep and I2C chapters.
*E December 2009FSUMultiple fixes, primarily to the External Crystal Oscillator chapter.
*F September 2012ANTGUpdated external clock source description
*G October 2015ASRI
*H November 2018RAJVUpdated the template
OriginatorDescription of Change
Removed all instances of IMODIS related information and provided information for "no glitch protection in the device for
an external clock".
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H12
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 use of Times 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 conventions is located in the Register Reference chapter on
page 163.
Register Conventions
ConventionExampleDescription
‘x’ in a register
name
RR : 00Read register or bit(s)
WW : 00Write register or bit(s)
ORO : 00Only a read/write register or bit(s).
LRL : 00Logical register or bit(s)
CRC : 00Clearable register or bit(s)
00RW : 00Reset value is 0x00 or 00h
XXRW : XXRegister is not reset
0,0,04hRegister is in bank 0
1,1,23hRegister is in bank 1
x,x,F7h
Empty, grayedout table cell
PRTxIE
Multiple instances/address ranges of the
same register
Register exists in register bank 0 and register bank 1
Reserved bit or group of bits, unless otherwise stated
Numeric Naming
Hexadecimal numbers are represented with all letters in
uppercase with an appended lowercase ‘h’ (for example,
‘14h’ or ‘3Ah’) and hexadecimal numbers may also be represented by a ‘0x’ prefix, the C coding convention. Binary
numbers have an appended lowercase ‘b’ (for example,
01010100b’ or ‘01000011b’). Numbers not indicated by an
‘h’ or ‘b’ are decimal.
Units of Measure
This table lists the units of measure used in this manual.
Units of Measure
SymbolUnit of Measure
°Cdegrees Celsius
dBdecibels
fFfemtofarads
Hzhertz
kkilo, 1000
K
KB1024 bytes
Kbit1024 bits
kHzkilohertz (32.000)
kkilohms
MHzmegahertz
Mmegaohms
Amicroamperes
Fmicrofarads
smicroseconds
Vmicrovolts
Vrmsmicrovolts root-mean-square
mAmilliamperes
msmilliseconds
mVmillivolts
nAnanoampheres
nsnanoseconds
nVnanovolts
ohms
pFpicofarads
pppeak-to-peak
ppmparts per million
spssamples per second
sigma: one standard deviation
Vvolts
210, 1024
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H13
Acronyms
This table lists the acronyms that are used in this manual.
Acronyms
AcronymDescription
ABUSanalog output bus
ACalternating current
ADCanalog-to-digital converter
APIApplication Programming Interface
BRbit rate
BRAbus request acknowledge
BRQbus request
CIcarry in
CMPcompare
COcarry out
CPUcentral processing unit
CRCcyclic redundancy check
DACdigital-to-analog converter
DCdirect current
DIdigital or data input
DMAdirect memory access
DOdigital or data output
ECOexternal crystal oscillator
FBfeedback
GIEglobal interrupt enable
GPIOgeneral-purpose I/O
ICEin-circuit emulator
IDEintegrated development environment
ILOinternal low-speed oscillator
IMOinternal main oscillator
I/Oinput/output
IORI/O read
IOWI/O write
IPORimprecise power-on-reset
IRQinterrupt request
ISRinterrupt service routine
ISSPin system serial programming
IVRinterrupt vector read
LRblast received bit
LRBlast received byte
LSbleast significant bit
LSBleast significant byte
MISOmaster-in-slave-out
MOSImaster-out-slave-in
MSbmost significant bit
MSBmost significant byte
PCprogram counter
PCHprogram counter high
PCLprogram counter low
PDpower down
PMAPSoC® memory arbiter
PORpower-on-reset
Acronyms (continued)
AcronymDescription
PPORprecision power-on-reset
PRSpseudo random sequence
PSSDCpower system sleep duty cycle
RAMrandom access memory
RETIreturn from interrupt
ROrelaxation oscillator
ROMread-only memory
RWread/write
SIEserial interface engine
SE0single-ended zero
SOFstart of frame
SPstack pointer
SPIserial peripheral interconnect
SPIMserial peripheral interconnect master
SPISserial peripheral interconnect slave
SRAMstatic random access memory
SROMsupervisory read-only memory
SSADCsingle slope ADC
SSCsupervisory system call
TCterminal count
USBuniversal serial bus
WDTwatchdog timer
WDRwatchdog reset
XRESexternal reset
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H14
1.Pin Information
P2[5]
P1[7]
P1[5]
P1[3]
P0[3]
P0[7]
Vdd
P0[4]
P1[1]
P1[0]
P1[2]
P2[3]
P1[4]
XRES
P0[1]
Vss
QFN
(Top View)
1
2
3
4
12
11
10
9
161514
13
567
8
This chapter lists, describes, and illustrates all pins and pinout configurations for the CY8C20X46A/46AS/96A/46L/
96LCY7C643xx and CY7C604xx enCoRe V devices. For up-to-date ordering, pinout, and packaging information, refer to the
individual enCoRe V device’s datasheet or go to http://www.cypress.com.
1.1Pinouts
TheCY8C20X46A/46AS/96A/46L/96LCY7C643xx and CY7C604xx enCoRe V devices are available in a variety of packages.
Every port pin (labeled with a “P”), except for Vss, Vdd, and XRES in the following tables and illustrations, is capable of Dig-
ital I/O.
1.1.1 CY7C60413 enCoRe V LV 16-Pin Part Pinout
Table 1-1. 16-Pin QFN/COL Part Pinout
Pin
No.
1IOIP2[5]XTAL Out
2IOIP2[3]XTAL In
3IOHRIP1[7]I2C SCL, SPI SS
4IOHRIP1[5]I2C SDA, SPI MISO
5IOHRIP1[3]SPI CLK
6IOHRIP1[1]
7PowerVssGround pin
8IOHRIP1[0]
9IOHRIP1[2]
10IOHRIP1[4]EXTCLK
11InputXRESActive high external reset with internal pull down
12IOHIP0[4]
13PowerVddPower pin
14IOHIP0[7]
15IOHIP0[3]
16IOHIP0[1]
Legend A = Analog, I = Input, O = Output, H = 5-mA High Output Drive, R = Regulated Output Option.
Typ e
Digital Analog
1
These are the ISSP pins, which are not High-Z at POR.
NameDescription
1
TC CLK
, I2C SCL, SPI MOSI
1
TC DATA
, I2C SDA, SPI CLK
Devices
,
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H15
1.1.2
P0[1]
P2[7]
P2[5]
P2[3]
P2[1]
P3[3]
QFN
(Top View)
9
101112
131415
16
1
2
3
4
5
6
7
8
24
23
22
21
20
19
18
17
32313029282726
25
Vss
P0[3]
P0[7]
Vdd
P0[6]
P0[4]
P0[2]
P3[1]
P1[7]
P0[0]
P2[6]
P3[0]
XRES
P1[5]
P1[3]
P1[1]
Vss
P1[0]
P1[2]
P1[4]
P1[6]
P2[4]
P2[2]
P2[0]
P3[2]
P0[5]
Pin Information
CY7C60445 enCoRe V LV 32-Pin Part Pinout
Table 1-2. 32-Pin QFN Part Pinout
Pin
No.
Digital
1IOHIP0[1]Integrating input
2IOIP2[7]
3IOIP2[5]XTAL Out
4IOIP2[3]XTAL In
5IOIP2[1]
6IOIP3[3]
7IOIP3[1]
8IOHRIP1[7]I2C SCL, SPI SS
9IOHRIP1[5]I2C SDA, SPI MISO
10 IOHRIP1[3]SPI CLK
11IOHRIP1[1]
12PowerVssGround pin
13 IOHRIP1[0]
14 IOHRIP1[2]
15 IOHRIP1[4]EXTCLK
16 IOHRIP1[6]
17InputXRES Active high external reset with internal pull down
18IOIP3[0]
19IOIP3[2]
20IOIP2[0]
21IOIP2[2]
22IOIP2[4]
23IOIP2[6]
24IOHIP0[0]
25IOHIP0[2]
26IOHIP0[4]
27IOHIP0[6]
28PowerVddPower pin
29IOHIP0[7]
30IOHIP0[5]
31IOHIP0[3]
32PowerVssGround pin
Legend A = Analog, I = Input, O = Output, NC = No Connection, H = 5 mA High Output Drive, R = Regulated Output Option.
1
2
NameDescription
Analog
TC CLK
TC DATA
These are the ISSP pins, which are not High-Z at POR.
The center pad on the QFN package must be connected to ground (Vss) for best mechanical, thermal, and electrical performance. If not connected to ground, it must be electrically floated and not connected to any other signal.
2
1
, I2C SCL, SPI MOSI
1
, I2C SDA, SPI CLK
CY7C60445 enCoRe V LV Devices
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H16
1.1.3CY7C64345, CY7C64343, enCoRe V 32-Pin Part Pinout
P0[1]
P2[5]
P2[3]
P2[1]
P1[7]
P1[5]
QFN
(Top View)
9
101112
131415
16
1
2
3
4
5
6
7
8
24
23
22
21
20
19
18
17
32313029282726
25
Vss
P0[3]
P0[7]
Vdd
P0[6]
P0[4]
P0[2]
P1[3]
P1[1]
P0[0]
P2[6]
P3[0]
XRES
Vss
D+
D-
Vdd
P1[0]
P1[2]
P1[4]
P1[6]
P2[4]
P2[2]
P2[0]
P3[2]
P0[5]
Pin Information
Table 1-3. 32-Pin QFN Part Pinout
Pin
No.
Digital
1IOHIP0[1]
2IOIP2[5]XTAL Out
3IOIP2[3]XTAL In
4IOIP2[1]
5IOHRIP1[7]I2C SCL, SPI SS
6IOHRIP1[5]I2C SDA, SPI MISO
7IOHRIP1[3]SPI CLK
8IOHRIP1[1]
9PowerVssGround pin
10IOD+USB PHY
11IOD-USB PHY
12PowerVddPower pin
13 IOHRIP1[0]
14 IOHRIP1[2]
15 IOHRIP1[4]EXTCLK
16 IOHRIP1[6]
17InputXRES Active high external reset with internal
18IOIP3[0]
19IOIP3[2]
20IOIP2[0]
21IOIP2[2]
22IOIP2[4]
23IOIP2[6]
24IOHIP0[0]
25IOHIP0[2]
26IOHIP0[4]
27IOHIP0[6]
28PowerVddPower pin
29IOHIP0[7]
30IOHIP0[5]
31IOHIP0[3]
32PowerVssGround pin
LEGEND A = Analog, I = Input, O = Output, NC = No Connection, H = 5 mA High Output Drive, R = Regulated Output Option.
1
2
NameDescription
Analog
TC CLK
TC DATA
pull down
These are the ISSP pins, which are not High Z at POR (Power On Reset).
The center pad on the QFN package must be connected to ground (Vss) for best mechanical, thermal, and electrical performance. If not connected to ground, it must be electrically floated and not connected to any other signal.
2
1
, I2C SCL, SPI MOSI
1
, I2C SDA, SPI CLK
CY7C64345, CY7C64343 enCoRe V Devices
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H17
26InputXRESActive high external reset with internal pull down
27IOIP3[0]
28IOIP3[2]
29IOIP3[4]
30IOIP3[6]
32IOIP4[2]
33IOIP2[0]41PowerVddPower pin
34IOIP2[2]42NCNo connection
35IOIP2[4]43NCNo connection
36IOIP2[6]44IOHIP0[7]
37IOHIP0[0]45IOHIP0[5]
38IOHIP0[2]46IOHIP0[3]
39IOHIP0[4]47PowerVssGround pin
40IOHIP0[6]48IOHIP0[1]
Legend A = Analog, I = Input, O = Output, NC = No Connection, H = 5 mA High Output Drive, R = Regulated Output Option.
1
2
NameDescription
Analog
These are the ISSP pins, which are not High-Z at POR.
The center pad on the QFN package must be connected to ground (Vss) for best mechanical, thermal, and electrical performance. If not connected
to ground, it must be electrically floated and not connected to any other signal.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H18
1.1.5CY7C60455, CY7C60456 enCoRe V LV 48-Pin Part Pinout
QFN
(Top View)
P0[1]
Vss
P0[3]
P0[5]
P0[7]NCNC
Vdd
P0[6]
P0[4]
P0[2]
P0[0]
10
11
12
P2[7]
NC
P2[5]
P2[3]
P2[1]
P4[3]
P4[1]
P3[7]
P3[5]
P3[3]
P3[1]
P1[7]
35
34
33
32
31
30
29
28
27
26
25
36
4847464544
43424140393837
P2[4]
P2[2]
P2[0]
P4[2]
P4[0]
P3[6]
P3[4]
P3[2]
P3[0]
XRES
P1[6]
P2[6]
1
2
3
4
5
6
7
8
9
131415161718192021
22
23
24
P1[5]
NC
NC
P1[3]
P1[1]
Vss
NC
NC
Vdd
P1[0]
P1[2]
P1[4]
Pin Information
Table 1-5. 48-Pin Part Pinout
Pin
No.
Digital
1NCNo connection
2IOIP2[7]
3IOIP2[5]XTAL Out
4IOIP2[3]XTAL In
5IOIP2[1]
6IOIP4[3]
7IOIP4[1]
8IOIP3[7]
9IOIP3[5]
10IOIP3[3]
11IOIP3[1]
12 IOHRIP1[7]I2C SCL, SPI SS
13 IOHRIP1[5]I2C SDA, SPI MISO
14NCNo connection
15NCNo connection
16 IOHRIP1[3]SPI CLK
17 IOHRIP1[1]
18PowerVssGround pin
19NCNo connection
20NCNo connection
21PowerVddPower pin
22 IOHRIP1[0]
23 IOHRIP1[2]
24 IOHRIP1[4]EXTCLK
25 IOHRIP1[6]
26InputXRESActive high external reset with
27IOIP3[0]
28IOIP3[2]
29IOIP3[4]
30IOIP3[6]
31IOIP4[0]
32IOIP4[2]
33IOIP2[0]41PowerVddPower pin
34IOIP2[2]42NCNo connection
35IOIP2[4]43NCNo connection
36IOIP2[6]44IOHIP0[7]
37IOHIP0[0]45IOHIP0[5]
38IOHIP0[2]46IOHIP0[3]
39IOHIP0[4]47PowerVssGround pin
40IOHIP0[6]48IOHIP0[1]
LEGEND
A = Analog, I = Input, O = Output, NC = No Connection, H = 5 mA High Output Drive, R = Regulated Output Option.
1
2
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H19
2
CY7C60455, CY7C60456 enCoRe V LV Devices
NameDescription
Analog
1
TC CLK
, I2C SCL, SPI MOSI
1
TC DATA
internal pull down
These are the ISSP pins, which are not High Z at POR (Power On Reset).
The center pad on the QFN package must be connected to ground (Vss) for best mechanical, thermal, and electrical performance. If not connected to ground, it must be electrically floated and not connected to any other signal.
, I2C SDA, SPI CLK
Pin
No.
Digital
NameDescription
Analog
Pin Information
QFN
(Top View)
P0[1]
Vss
P0[3]
P0[5]
P0[7]
OCDE
OCDO
Vdd
P0[6]
P0[4]
P0[2]
P0[0]
10
11
12
P2[7]
OCDOE
P2[5]
P2[3]
P2[1]
P4[3]
P4[1]
P3[7]
P3[5]
P3[3]
P3[1]
P1[7]
35
34
33
32
31
30
29
28
27
26
25
36
4847464544
43424140393837
P2[4]
P2[2]
P2[0]
P4[2]
P4[0]
P3[6]
P3[4]
P3[2]
P3[0]
XRES
P1[6]
P2[6]
1
2
3
4
5
6
7
8
9
131415161718192021
22
23
24
P1[5]
CCLK
HCLK
P1[3]
P1[1]
Vss
D +
D -
Vdd
P1[0]
P1[2]
P1[4]
1.1.6CY8C20066A, CY8CTMG200-00LTXI, CY8CTMG200A-00LTXI PSoC, CY7C64300
enCoRe V and CY7C60400 enCoRe V LV OCD 48-Pin Part Pinout
The 48-pin QFN part is for on-chip debugging (OCD). Note that this part is only used for in-circuit debugging. It is NOT avail-able for production.
Table 1-6. 48-Pin OCD Part Pinout
Pin
No.
Digital
1OCDOE OCD directional pin
2IOIP2[7]
3IOIP2[5]XTAL Out
4IOIP2[3]XTAL In
5IOIP2[1]
6IOIP4[3]
7IOIP4[1]
8IOIP3[7]
9IOIP3[5]
10IOIP3[3]
11IOIP3[1]
12 IOHRIP1[7]I2C SCL, SPI SS
13 IOHRIP1[5]I2C SDA, SPI MISO
14CCLKOCD CPU CLK OUTPUT
15HCLKOCD HIGH SPEED CLK
16 IOHRIP1[3]SPI CLK
17 IOHRIP1[1]
18PowerVssGround pin
19IOD+USB PHY
20IOD–USB PHY
21PowerVddPower pin
22 IOHRIP1[0]
23 IOHRIP1[2]
24 IOHRIP1[4]EXTCLK
25 IOHRIP1[6]
26InputXRESActive high external reset with
27IOIP3[0]
28IOIP3[2]
29IOIP3[4]
30IOIP3[6]
31IOIP4[0]
32IOIP4[2]
33IOIP2[0]41PowerVddPower pin
34IOIP2[2]42OCDOOCD even data I/O
35IOIP2[4]43OCDEOCD odd data output
36IOIP2[6]44IOHIP0[7]
37IOHIP0[0]45IOHIP0[5]
38IOHIP0[2]46IOHIP0[3]
39IOHIP0[4]47PowerVssGround pin
40IOHIP0[6]48IOHIP0[1]
Legend
A = Analog, I = Input, O = Output, NC = No Connection, H = 5-mA High Output Drive, R = Regulated Output Option.
1
2
NameDescription
Analog
TC CLK
TC DATA
internal pull down
ISSP pin which is not High-Z at POR.
The center pad (CP) on the QFN package must be connected to ground (VSS) for best mechanical, thermal, and electrical performance. If not connected to ground, it must be electrically floated and not connected to any other signal.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H20
17InputXRESActive high external reset with internal pull-down
18I/OIP3[0]
19I/OIP3[2]
20I/OIP2[0]
21I/OIP2[2]
22I/OIP2[4]
23I/OIP2[6]
24IOHIP0[0]
25IOHIP0[2]
26IOHIP0[4]
27IOHIP0[6]
28PowerV
DD
Power Pin
29IOHIP0[7]
30IOHIP0[5]
31IOHIP0[3]Integrating Input
32PowerV
A = Analog, I = Input, O = Output, OH = 5 mA High Output Drive, R = Regulated Output.
Legend
1
On power-up, the SDA(P1[0]) drives a strong high for 256 sleep clock cycles and drives resistive low for the next 256 sleep clock cycles. The
SCL(P1[1])line drives resistive low for 512 sleep clock cycles and both the pins transition to high-impedance state. On reset, after XRES deasserts, the SDA and the SCL lines drive resistive low for 8 sleep clock cycles and transition to high-impedance state. Hence, during power-up or
reset event, P1[1] and P1[0] may disturb the I2C bus. Use alternate pins if you encounter issues.
2
The center pad on the QFN package must be connected to ground (Vss) for best mechanical, thermal, and electrical performance. If not con-
nected to ground, it must be electrically floated and not connected to any other signal.
3
Alternate SPI clock.
Ground Pin
SS
CY8C20496A/L PSoC Device
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H21
Legend A = Analog, I = Input, O = Output, NC = No Connection, H = 5 mA High Output Drive, R = Regulated Output Option.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H22
1
2
Analog
DD
Name
Description
Power Pin
Digital
Pin No.
pull-down
On power-up, the SDA(P1[0]) drives a strong high for 256 sleep clock cycles and drives resistive low for the next 256 sleep clock cycles. The
SCL(P1[1])line drives resistive low for 512 sleep clock cycles and both the pins transition to high-impedance state. On reset, after XRES deasserts, the SDA and the SCL lines drive resistive low for 8 sleep clock cycles and transition to high-impedance state. Hence, during power-up or
reset event, P1[1] and P1[0] may disturb the I2C bus. Use alternate pins if you encounter issues.
Alternate SPI clock.
43I/OIP2[6]
Section B: enCoRe V Core
1K, 2K
SRAM
Interrupt
Controller
Sleep and
Watchdog
Multiple Clock Sources
Internal Low Speed Oscillator (ILO)
6/12/24 MHz Internal Main Oscillator (IMO)
CORE
CPU Core (M8C)
Supervisory ROM (SROM)
8K, 16K, 32K Flash
Nonvolatile Memory
SYSTEM BUS
Port 3Port 2Port 1Port 0
1.8/2.5/3V
LDO
PWRSYS
(Regulator)
Port 4
The enCoRe V Core section discusses the core components of an enCoRe V device with a base part number of CY7C643xx
and CY7C604xx and the registers associated with those components. The core section covers the heart of the enCoRe V
device, which includes the M8C microcontroller; SROM, interrupt controller, GPIO, and SRAM paging; multiple clock
sources such as IMO and ILO; and sleep and watchdog functionality. This section includes these chapters:
■ CPU Core (M8C) on page 26.
■ Supervisory ROM (SROM) on page 32.
■ RAM Paging on page 38.
■ Interrupt Controller on page 44.
■ General-Purpose I/O (GPIO) on page 52.
Top-Level Core Architecture
This figure displays the top-level architecture of the enCoRe V core. Each component of the figure is discussed at length in
this section.
enCoRe V Core Block Diagram
■ Internal Main Oscillator (IMO) on page 67.
■ Internal Low-speed Oscillator (ILO) on page 72.
■ External Crystal Oscillator (ECO), on page 74
■ Sleep and Watchdog on page 78.
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H23
Core Register Summary
This table lists all the enCoRe V registers for the CPU core in address order within their system resource configuration. The
grayed out bits are reserved bits. If you write these bits, always write them with a value of ‘0’. For the core registers, the first
‘x’ in some register addresses represents either bank 0 or bank 1. These registers are listed throughout this manual in bank
L The and f, expr; or f, expr; and xor f, expr instructions can be used to modify this register.
x An “x” before the comma in the address field indicates that this register can be accessed or written to no matter what bank is used.
C Clearable register or bit(s).
R Read register or bit(s).
W Write register or bit(s).
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H25
2. CPU Core (M8C)
This chapter explains the CPU Core, called the M8C, and its associated register. It covers the internal M8C registers, address
spaces, instruction set and formats. For additional information concerning the M8C instruction set, refer to the PSoCDesigner Assembly Language User Guide available at http://www.cypress.com. For a quick reference of all enCoRe V regis-
ters in address order, refer to the Register Reference chapter on page 163.
2.1Overview
The M8C is a four MIPS 8-bit Harvard architecture micropro-
cessor. Selectable processor clock speeds up to 24 MHz
enable you to tune the M8C to a particular application’s performance and power requirements. The M8C supports a rich
instruction set that allows for efficient low-level language
support.
2.2Internal Registers
The M8C has five internal registers that are used in program
execution. Here is a list of these registers.
■ Accumulator (A)
■ Index (X)
■ Program Counter (PC)
■ Stack Pointer (SP)
■ Flags (F)
All the internal M8C registers are 8 bits in width, except for
the PC, which is 16 bits wide. Upon reset, A, X, PC, and SP
are reset to 00h. The Flag register (F) is reset to 02h, indi-
cating that the Z flag is set.
With each stack operation, the SP is automatically incre-
mented or decremented so that it always points to the next
stack byte in RAM. If the last byte in the stack is at address
, the stack pointer wraps to RAM address 00h. It is the
FFh
firmware developer’s responsibility to ensure that the stack
does not overlap with user-defined variables in RAM.
The F register is read by using address F7h in either register
bank.
2.3Address Spaces
The M8C has three address spaces: ROM, RAM, and regis-
ters. The ROM address space includes the Supervisory
ROM (SROM) and the flash. The ROM address space is
accessed through its own address and data bus.
The ROM address space is composed of the SROM and the
on-chip flash program store. Flash is organized into 128byte blocks. Program store page boundaries are not an
issue because the M8C automatically increments the 16-bit
PC on every instruction. This makes the block boundaries
invisible to user code. Instructions occurring on a 128-byte
flash page boundary (with the exception of JMP instructions)
incur an extra M8C clock cycle, because the upper byte of
the PC is incremented.
The register address space is used to configure the enCoRe
Vmicrocontroller’s programmable blocks. It consists of two
banks of 256 bytes each. To switch between banks, the XIO
bit in the Flag register is set or cleared (set for Bank1,
cleared for Bank0). The common convention is to leave the
bank set to Bank0 (XIO cleared), switch to Bank1 as needed
(set XIO), then switch back to Bank0.
With the exception of the F register, the M8C internal registers are not accessible via an explicit register address. The
internal M8C registers are accessed using these instructions:
■ MOV A, expr
■ MOV X, expr
■ SWAP A, SP
■ OR F, expr
■ JMP LABEL
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H26
CPU Core (M8C)
2.4Instruction Set Summary
The instruction set is summarized in both Ta bl e 2-1 and Table 2-2 (in numeric and mnemonic order, respectively), and serves
as a quick reference. If more information is needed, the Instruction Set Summary tables are described in detail in the PSoCDesigner Assembly Language User Guide (visit http://www.cypress.com).
Table 2-1. Instruction Set Summary Sorted Numerically by Opcode
Instruction FormatFlags
Bytes
Cycles
Opcode Hex
00 151 SSC2D 82 OR [X+expr], AZ5A52 MOV [expr], X
01 42 ADD A, exprC, Z2E93 OR [expr], exprZ5B 41 MOV A, XZ
02 62 ADD A, [expr]C, Z2F 103 OR [X+expr], exprZ5C 41 MOV X, A
03 72 ADD A, [X+expr]C, Z30 91 HALT5D 62 MOV A, reg[expr]Z
04 72 ADD [expr], AC, Z31 42 XOR A, exprZ5E 72 MOV A, reg[X+expr]Z
Note 2 The number of cycles required by an instruction is increased by one for instructions that span
128 byte page boundaries in the flash memory space.
if (A=B) Z=1
if (A<B) C=1
Opcode Hex
3E 10 2 MVI A, [ [expr]++ ]Z47 8 3 TST [expr], exprZ
Instruction FormatFlags
Bytes
Cycles
Cycles
Opcode Hex
Instruction FormatFlags
Bytes
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H28
CPU Core (M8C)
2.5Instruction Formats
The M8C has a total of seven instruction formats that use
instruction lengths of one, two, and three bytes. All instruction bytes are taken from the program memory (flash), using
an address and data bus that are independent from the
address and data buses used for register and RAM access.
While examples of instructions are given in this section,
refer to the PSoC Designer Assembly Language User Guide
for detailed information on individual instructions.
2.5.1One-Byte Instructions
Many instructions, such as some of the MOV instructions,
have single-byte forms because they do not use an address
or data as an operand. As shown in Table 2-3, one-byte
instructions use an 8-bit opcode. The set of one-byte
instructions are divided into four categories, according to
where their results are stored.
Table 2-3. One-Byte Instruction Format
Byte 0
8-Bit Opcode
The first category of one-byte instructions are those that do
not update any register or RAM. Only the one-byte NOP and
SSC instructions fit this category. While the program coun-
ter is incremented as these instructions execute, they do not
cause any other internal M8C registers to update, nor do
these instructions directly affect the register space or the
RAM address space. The SSC instruction causes SROM
code to run, which modifies RAM and the M8C internal registers.
The second category contains the two PUSH instructions.
The PUSH instructions are unique because they are the only
one-byte instructions that modify a RAM address. These
instructions automatically increment the SP.
The third category contains the HALT instruction. The
instruction is unique because it is the only one-byte instruction that modifies a user register. The HALT instruction modifies user register space address FFh (CPU_SCR0 register).
The final category for one-byte instructions are those that
update the internal M8C registers. This category holds the
largest number of instructions:
ASL, ASR, CPL, DEC, INC,
MOV, POP, RET, RETI , RLC, ROMX, RRC, SWAP. These
instructions cause the A, X, and SP registers or SRAM to
update.
HALT
2.5.2Two-Byte Instructions
The majority of M8C instructions are two bytes in length.
While these instructions are divided into categories identical
to the one-byte instructions, this does not provide a useful
distinction between the three two-byte instruction formats
that the M8C uses.
Table 2-4. Two-Byte Instruction Formats
Byte 0Byte 1
4-Bit Opcode 12-Bit Relative Address
8-Bit Opcode8-Bit Data
8-Bit Opcode8-Bit Address
The first two-byte instruction format, shown in the first row of
Table 2-4, is used by short jumps and calls:
JACC, INDEX, JC, JNC, JNZ, JZ. This instruction format
uses only four bits for the instruction opcode, leaving 12 bits
to store the relative destination address in a two’s-complement form. These instructions can change program execution to an address relative to the current address by –2048
or +2047.
The second two-byte instruction format, shown in the second row of Table 2-4, is used by instructions that employ the
Source Immediate addressing mode (see the PSoCDesigner Assembly Language User Guide). The destination
for these instructions is an internal M8C register, while the
source is a constant value. An example of this type of
instruction is
The third two-byte instruction format, shown in the third row
of Ta b le 2 -4, is used by a wide range of instructions and
addressing modes. The following is a list of the addressing
modes that use this third two-byte instruction format:
■ Source Direct (ADD A, [7])
■ Source Indexed (ADD A, [X+7])
■ Destination Direct (ADD [7], A)
■ Destination Indexed (ADD [X+7], A)
■ Source Indirect Post Increment (MVI A, [7])
■ Destination Indirect Post Increment (MVI [7], A)
For more information on addressing modes see the PSoC
Designer Assembly Language User Guide.
ADD A, 7.
CALL, JMP,
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H29
CPU Core (M8C)
2.5.3Three-Byte Instructions
The three-byte instruction formats are the second most
prevalent instruction formats. These instructions need three
bytes because they either move data between two
addresses in the user accessible address space (registers
and RAM) or they hold 16-bit absolute addresses as the
destination of a long jump or long call.
Table 2-5. Three-Byte Instruction Formats
Byte 0Byte 1Byte 2
8-Bit Opcode16-Bit Address (MSB, LSB)
8-Bit Opcode8-Bit Address8-Bit Data
8-Bit Opcode8-Bit Address8-Bit Address
The first instruction format, shown in the first row of
Table 2-5, is used by the LJMP and LCALL instructions.
These instructions change program execution unconditionally to an absolute address. The instructions use an 8-bit
opcode, leaving room for a 16-bit destination address.
The second three-byte instruction format, shown in the second row of Tab l e 2- 5, is used by the following two addressing modes:
■ Destination Direct Source Immediate (ADD [7], 5)
■ Destination Indexed Source Immediate
(ADD [X+7], 5)
The third three-byte instruction format, shown in the third
row of Ta bl e 2-5, is for the Destination Direct Source Direct
addressing mode, which is used by only one instruction.
This instruction format uses an 8-bit opcode followed by two
8-bit addresses. The first address is the destination address
in RAM, while the second address is the source address in
RAM. The following is an example of this instruction:
MOV [7], [5]
enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H30
Loading...
+ 227 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.