Cypress enCoRe CY7C602xx User Manual

Browse online or download User Manual for Hardware Cypress enCoRe CY7C602xx. Cypress enCoRe CY7C602xx User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 68
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
CY7C601xx, CY7C602xx
enCoRe™ II Low Voltage Microcontroller
Cypress Semiconductor Corporation 198 Champion Court San Jose
,
CA 95134-1709 408-943-2600
Document 38-16016 Rev. *E Revised December 08, 2008
1. Features
enCoRe II Low Voltage (enCoRe II LV)—enhanced
component reduction
Internal crystalless oscillator with support for optional exter-
nal clock or external crystal or resonator
Configurable IO for real world interface without external com-
ponents
Enhanced 8-bit microcontroller
Harvard architecture
M8C CPU speed up to 12 MHz or sourced by an external
crystal, resonator, or clock signal
Internal memory
256 bytes of RAM
8 Kbytes of Flash including EEROM emulation
Low power consumption
Typically 2.25 mA at 3 MHz
5 μA sleep
In-system reprogrammability
Allows easy firmware update
General purpose IO ports
Up to 36 General Purpose IO (GPIO) pins
2 mA source current on all GPIO pins. Configurable 8 or
50 mA per pin current sink on designated pins
Each GPIO port supports high impedance inputs, config-
urable pull up, open drain output, CMOS and TTL inputs, and
CMOS output
Maskable interrupts on all IO pins
SPI serial communication
Master or slave operation
Configurable up to 2 Mbit per second transfers
Supports half duplex single data line mode for optical sensors
2-channel 8-bit or 1-channel 16-bit capture timer registers.
Capture timer registers store both rising and falling edge times
Two registers each for two input pins
Separate registers for rising and falling edge capture
Simplifies interface to RF inputs for wireless applications
Internal low power wakeup timer during suspend mode
Periodic wakeup with no external components
Programmable interval timer interrupts
Reduced RF emissions at 27 MHz and 96 MHz
Watchdog timer (WDT)
Low voltage detection with user selectable threshold voltages
Improved output drivers to reduce EMI
Operating voltage from 2.7V to 3.6V DC
Operating temperature from 0–70°C
Available in 24 and 40-pin PDIP, 24-pin SOIC, 24-pin QSOP
and SSOP, 28-pin SSOP, and 48-pin SSOP
Advanced development tools based on Cypress PSoC
®
tools
Industry standard programmer support
Internal
12 MHz
Oscillator
Clock
Control
Crystal
Oscillator
CY7C601xx only
POR /
Low-Voltage
Detect
Watchdog
Timer
M8C CPU
16 Extended
I/O Pins
16 GPIO
Pins
Wakeup
Timer
Capture
Timers
12-bit Timer
Vdd
Interrupt
Control
4 SPI/GPIO
Pins
Flash
8K Byte
RAM
256 Byte
2. Logic Block Diagram
[+] Feedback [+] Feedback
Page view 0
1 2 3 4 5 6 ... 67 68

Summary of Contents

Page 1 - CY7C601xx, CY7C602xx

CY7C601xx, CY7C602xxenCoRe™ II Low Voltage MicrocontrollerCypress Semiconductor Corporation • 198 Champion Court • San Jose,CA 95134-1709 • 408-943-

Page 2

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 10 of 689.2 Addressing Modes9.2.1 Source ImmediateThe result of an instruction using this addres

Page 3

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 11 of 689.2.5 Destination IndexedThe result of an instruction using this addressing mode is place

Page 4

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 12 of 689.2.9 Source Indirect Post IncrementThe result of an instruction using this addressing mo

Page 5

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 13 of 6813 7 2 SUB A, [X+expr] C, Z 40 4 1 NOP 6D 4 1 RRC A C, Z14 7 2 SUB [expr], A C, Z

Page 6

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 14 of 6811. Memory Organization11.1 Flash Program Memory OrganizationFigure 11-1. Program Memor

Page 7

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 15 of 6811.2 Data Memory OrganizationThe CY7C601xx and CY7C602xx microcontrollers provide up to 2

Page 8

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 16 of 68Two important variables used for all functions are KEY1 andKEY2. These variables help disc

Page 9

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 17 of 6811.5.3 WriteBlock FunctionThe WriteBlock function is used to store data in Flash. Data is

Page 10 - CY7C601xx, CY7C602xx

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 18 of 6811.5.6 EraseAll FunctionThe EraseAll function performs a series of steps that destroy the

Page 11

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 19 of 6811.6 SROM Table Read DescriptionThe Silicon IDs for enCoRe II LV devices are stored in SR

Page 12

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 2 of 683. ApplicationsThe CY7C601xx and CY7C602xx are targeted for the followingapplications: PC

Page 13

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 20 of 68Figure 11-3. SROM Table11.6.1 Checksum FunctionThe Checksum function calculates a 16-bit

Page 14

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 21 of 6812. ClockingThe enCoRe II LV has two internal oscillators, the internal 24MHz oscillator

Page 15

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 22 of 68When using the 32 kHz oscillator, the PITMRL/H is read until twoconsecutive readings match

Page 16

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 23 of 68Figure 12-1. CPU Clock Block DiagramSCALE(divide by 2n, n = 0-5,7)MUXCLK_EXTCLK_24MHzCPUC

Page 17

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 24 of 68Read/Write – – R/W R/W R/W R/W R/W R/WDefault 0 0 0 0 0 0 0 0Bit [7:6]: ReservedBit 5: No

Page 18

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 25 of 6812.2.2 Interval Timer Clock (ITMRCLK)The Interval Timer Clock (ITMRCLK) is sourced from t

Page 19

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 26 of 68Figure 12-2. Programmable Interval Timer Block Diagram12.2.3 Timer Capture Clock (TCAPCL

Page 20

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 27 of 68Table 12-5. Timer Clock Configuration (TMRCLKCR) [0x31] [R/W]Bit # 7 6 5 4 3 2 1 0Field T

Page 21

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 28 of 6812.2.4 Internal Clock Trim12.2.5 External Clock TrimTable 12-6. IOSC Trim (IOSCTR) [0x3

Page 22

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 29 of 6812.2.6 LPOSC Trim12.3 CPU Clock During Sleep ModeWhen the CPU enters sleep mode the CPUC

Page 23

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 3 of 686. PinoutsFigure 6-1. Package Configurations1234569111516171819202221NCP0.7TIO1/P0.6TIO0/

Page 24

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 30 of 6813. ResetThe microcontroller supports two types of resets: Power on Reset (POR) and Watch

Page 25

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 31 of 6813.1 Power On ResetPOR occurs every time the power to the device is switched on.POR is re

Page 26

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 32 of 6814.1 Sleep SequenceThe SLEEP bit is an input into the sleep logic circuit. This circuitis

Page 27

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 33 of 6814.2 Wakeup SequenceWhen asleep, the only event that wakes the system up is aninterrupt.

Page 28

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 34 of 6815. Low Voltage Detect Control Table 15-1. Low Voltage Control Register (LVDCR) [0x1E3]

Page 29

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 35 of 6815.1 POR Compare State15.2 ECO Trim RegisterTable 15-2. Voltage Monitor Comparators Reg

Page 30

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 36 of 6816. General Purpose IO Ports16.1 Port Data Registers16.1.1 P0 Data 16.1.2 P1 DataTable

Page 31

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 37 of 6816.1.3 P2 Data 16.1.4 P3 Data 16.1.5 P4 Data 16.2 GPIO Port ConfigurationAll GPIO conf

Page 32

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 38 of 6816.2.4 High SinkWhen set, the output sinks up to 50 mA.When clear, the output sinks up to

Page 33

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 39 of 6816.2.10 P0.1/CLKOUT Configuration16.2.11 P0.2/INT0–P0.4/INT2 ConfigurationTable 16-7. P

Page 34

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 4 of 686.1 Pin AssignmentsTable 6-1. Pin Assignments48 SSOP40 PDIP28 SSOP24QSOP24SOIC24PDIPName

Page 35

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 40 of 6816.2.12 P0.5/TIO0–P0.6/TIO1 Configuration16.2.13 P0.7 Configuration 16.2.14 P1.0 Config

Page 36

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 41 of 6816.2.15 P1.1 Configuration16.2.16 P1.2 Configuration16.2.17 P1.3 Configuration (SSEL) T

Page 37

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 42 of 6816.2.18 P1.4–P1.6 Configuration (SCLK, SMOSI, SMISO) 16.2.19 P1.7 Configuration 16.2.20

Page 38

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 43 of 6816.2.21 P3 Configuration 16.2.22 P4 Configuration Table 16-18. P3 Configuration (P3CR)

Page 39

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 44 of 6817. Serial Peripheral Interface (SPI)The SPI Master and Slave Interface core logic runs o

Page 40

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 45 of 6817.1 SPI Data RegisterWhen an interrupt occurs to indicate to firmware that a byte of rec

Page 41

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 46 of 68 Table 17-3. SPI Mode Timing vs. LSB First, CPOL, and CPHALSB First CPHA CPOL Diagram0000

Page 42

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 47 of 6817.3 SPI Interface PinsThe SPI interface uses the P1.3–P1.6 pins. These pins are configur

Page 43

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 48 of 6818.1.2 Time CaptureenCoRe II LV has two 8-bit captures. Each capture has a separate regis

Page 44

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 49 of 68Table 18-4. Capture Interrupt Enable (TCAPINTE) [0x2B] [R/W]Bit # 7 6 5 4 3 2 1 0Field Re

Page 45

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 5 of 6823 19 13 9 9 16 P0.0/CLKIN GPIO Port 0 bit 0—Configured individuallyOn CY7C601xx, optional

Page 46

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 50 of 68‘18.1.3 Programmable Interval Timer Table 18-8. Timer Capture 1 Falling (TCAP1F) [0x25]

Page 47

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 51 of 68 Table 18-11. Programmable Interval Timer High (PITMRH) [0x27] [R]Bit # 7 6 5 4 3 2 1 0F

Page 48

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 52 of 68Figure 18-3. Timer Functional Sequence Diagram[+] Feedback [+] Feedback

Page 49

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 53 of 68Figure 18-4. 16-Bit Free Running Counter Loading Timing DiagramFigure 18-5. Memory Mappe

Page 50

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 54 of 6819. Interrupt ControllerThe interrupt controller and its associated registers allow theus

Page 51

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 55 of 6819.2 Interrupt ProcessingThe sequence of events that occur during interrupt processing is

Page 52

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 56 of 6819.4.2 Interrupt Mask RegistersThe Interrupt Mask Registers (INT_MSKx) enable the individ

Page 53

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 57 of 68Table 19-6. Interrupt Mask 2 (INT_MSK2) [0xDF] [R/W]Bit # 7 6 5 4 3 2 1 0Field Reserved G

Page 54

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 58 of 6819.4.3 Interrupt Vector Clear RegisterTable 19-8. Interrupt Mask 0 (INT_MSK0) [0xE0] [R

Page 55

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 59 of 6820. Absolute Maximum RatingsStorage Temperature ... –40°

Page 56

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 6 of 687. Register SummaryTable 7-1. enCoRe II LV Register SummaryThe XIO bit in the CPU Flags R

Page 57

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 60 of 68Figure 20-1. Clock Timing20.2 AC CharacteristicsParameter Description Conditions Min Ty

Page 58

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 61 of 68Figure 20-2. GPIO Timing Diagram Figure 20-3. SPI Master Timing, CPHA = 110%TR_GPIOTF_GP

Page 59

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 62 of 68Figure 20-4. SPI Slave Timing, CPHA = 1Figure 20-5. SPI Master Timing, CPHA = 0 MSBTSSUL

Page 60

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 63 of 68Figure 20-6. SPI Slave Timing, CPHA = 0 1 MSBTSSULSBTSHDTSCKHTSDO1SSSCK (CPOL=0)SCK (CPO

Page 61

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 64 of 6823. Package DiagramsFigure 23-1. 24-Pin (300-Mil) SOIC S13Figure 23-2. 24-Pin (300-Mil)

Page 62

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 65 of 68Figure 23-3. 24-Pin QSOP O241Figure 23-4. 28-Pin (5.3 mm) Shrunk Small Outline Package O

Page 63

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 66 of 68Figure 23-5. 40-Pin (600-Mil) Molded DIP P17Figure 23-6. 48-Pin Shrunk Small Outline Pac

Page 64

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 67 of 6824. Document History PageDocument Title: CY7C601xx, CY7C602xx enCoRe™ II Low Voltage Micr

Page 65

Document 38-16016 Rev. *E Revised December 08, 2008 Page 68 of 68PSoC is a registered trademark and enCoRe is a trademark of Cypress Semiconductor Cor

Page 66

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 7 of 68Note In the R/W column: b = Both Read and Writer = Read Onlyw = Write Onlyc = Read or Clear

Page 67

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 8 of 688. CPU ArchitectureThis family of microcontrollers is based on a high performance,8-bit, H

Page 68

CY7C601xx, CY7C602xxDocument 38-16016 Rev. *E Page 9 of 689.1.1 Accumulator Register 9.1.2 Index Register 9.1.3 Stack Pointer Register9.1.4 CPU P

Comments to this Manuals

No comments