Cypress Semiconductor enCoRe CY7C601xx Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Vernetzung Cypress Semiconductor enCoRe CY7C601xx herunter. Cypress Semiconductor enCoRe CY7C601xx User guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 62
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
enCoRe™ II Low Voltage
Microcontrolle
r
CY7C601xx
CY7C602xx
Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600
Document 38-16016 Rev. *C Revised October 23, 2006
Features
•enCoRe II Low Voltage (enCoRe II LV)—“enhanced
Component Reduction”
Internal crystalless oscillator with support for optional
external clock or external crystal or resonator.
Configurable IO for real-world interface without external
components
Enhanced 8-bit microcontroller
Harvard architecture
M8C CPU speed can be 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 I/O ports
Up to 36 General Purpose I/O (GPIO) pins
High current drive on GPIO pins. Configurable 8- or 50-
mA/pin current sink on designated pins
Each GPIO port supports high-impedance inputs, config-
urable pull-up, open drain output, CMOS/TTL inputs, and
CMOS output
Maskable interrupts on all I/O pins
SPI serial communication
Master or slave operation
Configurable up to 2-Mbit/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 wake-up timer during suspend mode
Periodic wake-up 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.6VDC
Operating temperature from 0–70°C
Available in 24/40-pin PDIP, 24-pin SOIC, 24-pin
QSOP/SSOP, 28-pin SSOP and 48-pin SSOP.
Advanced development tools based on Cypress PSoC
®
tools
Industry-standard programmer support
Applications
The CY7C601xx/CY7C602xx is targeted for the following
applications:
PC Wireless HID devices
Mice (optomechanical, optical, trackball)
Keyboards
Presenter tools
•Gaming
Joysticks
Gamepad
General purpose wireless applications
Remote controls
Barcode scanners
POS terminal
Consumer electronics
—Toys
Introduction
The enCoRe II LV family brings the features and benefits of the
enCoRe II to non-USB applications. The enCoRe II family has
an integrated oscillator that eliminates the external crystal or
resonator, reducing overall cost. Other external components,
such as wake-up circuitry, are also integrated into this chip.
The enCoRe II LV is a low-voltage, low-cost 8-bit Flash-
programmable microcontroller
The enCoRe II LV features up to 36 general-purpose I/O
(GPIO) pins. The I/O pins are grouped into five ports (Port 0 to
4). The pins on Port 0 and Port 1 may each be configured
individually while the pins on Ports 2, 3, and 4 may only be
configured as a group. Each GPIO port supports high-
impedance inputs, configurable pull up, open drain output,
CMOS/TTL inputs, and CMOS output with up to five pins that
support programmable drive strength of up to 50 mA sink
current. Additionally, each I/O pin can be used to generate a
GPIO interrupt to the microcontroller. Each GPIO port has its
own GPIO interrupt vector with the exception of GPIO Port 0.
GPIO Port 0 has in addition to the port interrupt vector, three
dedicated pins that have independent interrupt vectors
(P0.2–P0.4).
Seitenansicht 0
1 2 3 4 5 6 ... 61 62

Inhaltsverzeichnis

Seite 1 - Microcontrolle

enCoRe™ II Low VoltageMicrocontrollerCY7C601xxCY7C602xxCypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-260

Seite 2

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 10 of 62ExamplesSource DirectThe result of an instruction using this addressing mode isplaced in eit

Seite 3

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 11 of 62Destination Direct Source ImmediateThe result of an instruction using this addressing mode i

Seite 4

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 12 of 62Instruction Set SummaryThe instruction set is summarized in Ta ble 1 9 numerically and serve

Seite 5

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 13 of 621A 6 2 SBB A, [expr] C, Z 47 8 3 TST [expr], expr Z 74 4 1 INC A C, Z1B 7 2 SBB A, [X+ex

Seite 6

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 14 of 62Memory OrganizationFlash Program Memory OrganizationFigure 3. Program Memory Space with Inte

Seite 7

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 15 of 62Data Memory OrganizationThe CY7C601xx/CY7C602xx microcontrollers provide up to 256 bytes of

Seite 8

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 16 of 62Two important variables that are used for all functions areKEY1 and KEY2. These variables ar

Seite 9

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 17 of 62The configuration of the WriteBlock function is straightforward.The BLOCKID of the Flash blo

Seite 10 - CY7C602xx

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 18 of 62EraseAll FunctionThe EraseAll function performs a series of steps that destroythe user data

Seite 11

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 19 of 62ClockingThe enCoRe II LV internal oscillator outputs two frequencies,the Internal 24 MHz Osc

Seite 12

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 2 of 62The enCoRe II LV features an internal oscillator. Optionally, anexternal 1 MHz to 24 MHz crys

Seite 13

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 20 of 62On the CY7C601xx, the external oscillator can be sourced bythe crystal oscillator or when th

Seite 14

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 21 of 62Table 32.CPU Clock Config (CPUCLKCR) [0x30] [R/W] Bit # 7 6 5 4 3 2 1 0Field Reserved CPUCLK

Seite 15

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 22 of 62Interval Timer Clock (ITMRCLK)The Interval Timer clock (ITMRCLK), can be sourced from theext

Seite 16

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 23 of 62Figure 6. Programmable Interval Timer Block DiagramTimer Capture Clock (TCAPCLK)The Timer Ca

Seite 17

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 24 of 62Table 35.Timer Clock Config (TMRCLKCR) [0x31] [R/W]Bit # 7 6 5 4 3 2 1 0Field TCAPCLK Divide

Seite 18

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 25 of 62Internal Clock TrimExternal Clock TrimTable 36.IOSC Trim (IOSCTR) [0x34] [R/W] Bit # 7 6 5 4

Seite 19

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 26 of 62LPOSC TrimCPU Clock During Sleep ModeWhen the CPU enters sleep mode the CPUCLK Select (Bit 0

Seite 20

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 27 of 62Power-On ResetPOR occurs every time the power to the device is switched on.POR is released w

Seite 21

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 28 of 62Sleep ModeThe CPU can only be put to sleep by the firmware. This isaccomplished by setting t

Seite 22

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 29 of 62Figure 8. Sleep TimingWakeup SequenceOnce asleep, the only event that can wake the system up

Seite 23

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 3 of 62Packages/PinoutsFigure 2. Package Configurations1234569111516171819202221NCP0.7TIO1/P0.6TIO0/

Seite 24

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 30 of 62Figure 9. Wakeup TimingINTSLEEPPDBANDGAPCLK32KSAMPLESAMPLE LVD/PORCPUCLK/24MHzBRABRQENABLECP

Seite 25

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 31 of 62Low-Voltage Detect Control POR Compare StateTable 41.Low-voltage Control Register (LVDCR) [0

Seite 26

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 32 of 62ECO Trim RegisterGeneral Purpose I/O PortsPort Data RegistersP0 Data Table 43.ECO (ECO_TR) [

Seite 27

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 33 of 62P1 DataP2 Data P3 Data P4 Data Table 45.P1 Data Register (P1DATA) [0x01] [R/W]Bit # 7 6 5 4

Seite 28

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 34 of 62GPIO Port ConfigurationAll the GPIO configuration registers have common configu-ration contr

Seite 29

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 35 of 62P0.0/CLKIN ConfigurationP0.1/CLKOUT ConfigurationTable 49.P0.0/CLKIN Configuration (P00CR) [

Seite 30

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 36 of 62P0.2/INT0–P0.4/INT2 ConfigurationP0.5/TIO0–P0.6/TIO1 ConfigurationP0.7 Configuration Table 5

Seite 31

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 37 of 62P1.0 ConfigurationP1.1 ConfigurationP1.2 ConfigurationTable 54.P1.0 Configuration (P10CR) [0

Seite 32

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 38 of 62P1.3 Configuration (SSEL) P1.4–P1.6 Configuration (SCLK, SMOSI, SMISO) P1.7 Configuration Ta

Seite 33

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 39 of 62P2 Configuration P3 Configuration P4 Configuration Table 60.P2 Configuration (P2CR) [0x15] [

Seite 34

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 4 of 62Pin AssignmentsTable 1. Pin Assignments48 SSOP40 PDIP28 SSOP24QSOP24SOIC24PDIPName Descriptio

Seite 35

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 40 of 62Serial Peripheral Interface (SPI)The SPI Master/Slave Interface core logic runs on the SPI c

Seite 36

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 41 of 62SPI Data RegisterWhen an interrupt occurs to indicate to firmware that an byte of receive da

Seite 37

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 42 of 62 Table 65.SPI Mode Timing vs. LSB First, CPOL and CPHALSB First CPHA CPOL Diagram00000101001

Seite 38

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 43 of 62SPI Interface PinsThe SPI interface uses the P1.3–P1.6 pins. These pins areconfigured using

Seite 39

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 44 of 62Time CaptureenCoRe II LV has two 8-bit captures. Each capture hasseparate register for the r

Seite 40

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 45 of 62Table 70.Capture Interrupt Enable (TCAPINTE) [0x2B] [R/W]Bit # 7 6 5 4 3 2 1 0Field Reserved

Seite 41

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 46 of 62‘Programmable Interval TimerTable 74.Timer Capture 1 Falling (TCAP1F) [0x25] [R/W]Bit # 7 6

Seite 42

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 47 of 62Figure 14. Timer Functional Timing DiagramTable 78.Programmable Interval Reload Low (PIRL) [

Seite 43

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 48 of 62Figure 15. 16-bit Free Running Counter Loading Timing DiagramFigure 16. Memory Mapped Regist

Seite 44

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 49 of 62Interrupt ControllerThe interrupt controller and its associated registers allow theuser’s co

Seite 45

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 5 of 6222 18 12 8 8 15 P0.1/CLKOUT GPIO Port 0 bit 1—Configured individuallyOn CY7C601xx, optional c

Seite 46

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 50 of 62Interrupt ProcessingThe sequence of events that occur during interrupt processingis as follo

Seite 47

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 51 of 62Interrupt Mask RegistersThe Interrupt Mask Registers (INT_MSKx) are used to enablethe indivi

Seite 48

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 52 of 62Table 85.Interrupt Mask 2 (INT_MSK2) [0xDF] [R/W]Bit # 7 6 5 4 3 2 1 0Field Reserved GPIO Po

Seite 49

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 53 of 62Interrupt Vector Clear RegisterTable 87. Interrupt Mask 0 (INT_MSK0) [0xE0] [R/W]Bit # 7 6 5

Seite 50

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 54 of 62Absolute Maximum RatingsStorage Temperature ...–65°C to +150°

Seite 51

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 55 of 62Figure 18. Clock TimingFigure 19. GPIO Timing DiagramSPI TimingTSMCKSPI Master Clock Rate FC

Seite 52

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 56 of 62Figure 20. SPI Master Timing, CPHA = 1Figure 21. SPI Slave Timing, CPHA = 1MSBTMSULSBTMHDTSC

Seite 53

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 57 of 62Figure 22. SPI Master Timing, CPHA = 0 Figure 23. SPI Slave Timing, CPHA = 0 MSBTMSULSBTMHDT

Seite 54

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 58 of 62 1 Ordering InformationOrdering Code FLASH Size RAM Size Package TypeCY7C60123-PVXC 8K 256 4

Seite 55

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 59 of 62Figure 25. 24-Lead (300-Mil) PDIP P13Figure 26. 24-lead QSOP O241Package Diagrams (continued

Seite 56

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 6 of 62Register SummaryenCoRe II LV Register SummaryAddr Name 7 6 5 4 3 2 1 0 R/W Default00 P0DATA P

Seite 57

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 60 of 62Figure 27. 28-Lead (5.3 mm) Shrunk Small Outline Package O28Figure 28. 40-Lead (600-Mil) Mol

Seite 58

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 61 of 62© Cypress Semiconductor Corporation, 2006. The information contained herein is subject to ch

Seite 59

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 62 of 62Document History PageDocument Title: CY7C601/2xx enCoRe™ II Low Voltage MicrocontrollerDocum

Seite 60

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 7 of 62Note: In the R/W column, b = Both Read and Writer = Read Onlyw = Write Onlyc = Read/Cleard =

Seite 61

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 8 of 62The Stack Pointer Register (CPU_SP) holds the address of thecurrent top-of-stack in the data

Seite 62

CY7C601xxCY7C602xxDocument 38-16016 Rev. *C Page 9 of 62Index Register Stack Pointer RegisterCPU Program Counter High RegisterCPU Program Counter Low

Kommentare zu diesen Handbüchern

Keine Kommentare