ChipFind - документация

Электронный компонент: CY7C63310-SXC

Скачать:  PDF   ZIP
38-08035.mif
background image
CONFIDENTIAL
PRELIMINARY
enCoReTM II
Low-Speed USB Peripheral Controller
CY7C63310
CY7C638xx
CY7C639xx
Cypress Semiconductor Corporation
3901 North First Street
San Jose
,
CA 95134
408-943-2600
Document 38-08035 Rev. *C
Revised December 13, 2004
1.0
Features
enCoRe
II USB--"enhanced Component Reduction"
-- Crystalless oscillator with support for an external
crystal or resonator. The internal oscillator
eliminates the need for an external crystal or
resonator
-- Internal 3.3V regulator and internal USB pull-up
resistor
-- Configurable IO for real-world interface without
external components
USB Specification Compliance
-- Conforms to USB Specification, Version 2.0
-- Conforms to USB HID Specification, Version 1.1
-- Supports one Low-Speed USB device address
-- Supports one control endpoint and two data
endpoints
-- Integrated USB transceiver
Enhanced 8-bit microcontroller
-- Harvard architecture
-- M8C CPU speed can be up to 24 MHz or sourced by
an external crystal, resonator, or signal
Internal memory
-- Up to 256 bytes of RAM
-- Up to eight Kbytes of Flash including EEROM
emulation
Interface can auto-configure to operate as PS/2 or USB
-- No external components for switching between PS/2
and USB modes
-- No GPIO pins needed to manage dual-mode
capability
Low power consumption
-- Typically 10 mA at 6 MHz
-- 10-uA sleep
In-system re-programmability
-- 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,
configurable pull-up, open drain output, CMOS/TTL
inputs, and CMOS output
-- Maskable interrupts on all I/O pins
125-mA 3.3V voltage regulator can power external 3.3V
devices
3.3V I/O pins
-- 4 I/O pins with 3.3V logic levels
-- Each 3.3V pin supports high-impedance input,
internal pull-up, open drain output or traditional
CMOS output
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.
Capture timers 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
Advanced development tools based on Cypress
MicroSystems PSoCTM tools
Watchdog timer (WDT)
low-voltage detection with user-configurable threshold
voltages
Improved output drivers to reduce EMI
Operating voltage from 4.0V to 5.25VDC
Operating temperature from 070C
Available in 16/18/24/40-pin PDIP, 16/18/24-pin SOIC, 24-
pin QSOP, 28/48-pin SSOP, and DIE form
Industry standard programmer support
1.1
Applications
The CY7C633xx/CY7C638xx/CY7C639xx is targeted for the
following applications:
PC HID devices
-- Mice (optomechanical, optical, trackball)
-- Keyboards
Gaming
-- Joysticks
-- Game pads
-- Console keyboards
General Purpose
-- Barcode scanners
-- POS terminal
-- Consumer electronics
-- Toys
-- Remote controls
background image
CONFIDENTIAL
PRELIMINARY
CY7C63310
CY7C638xx
CY7C639xx
Document 38-08035 Rev. *C
Page 2 of 70
2.0
Introduction
Cypress has reinvented its leadership position in the low-
speed USB market with a new family of innovative microcon-
trollers. Introducing enCoRe II USB -- "enhanced Component
Reduction." Cypress has leveraged its design expertise in
USB solutions to advance its family of low-speed USB micro-
controllers, which enable peripheral developers to design new
products with a minimum number of components. The
enCoRe II USB technology builds on to the enCoRe family.
The enCoRe family has an integrated oscillator that eliminates
the external crystal or resonator reducing overall cost. Also
integrated into this chip are other external components
commonly found in low-speed USB applications such as pull-
up resistors, wake-up circuitry, and a 3.3V regulator.
All of this adds up to a lower system cost.
The enCoRe II is 8-bit Flash-programmable microcontroller
with integrated low-speed USB interface. The instruction set
has been optimized specifically for USB and PS/2 operations,
although the microcontrollers can be used for a variety of other
embedded applications.
The enCoRe II features up to 36 general-purpose I/O (GPIO)
pins to support USB, PS/2 and other applications. 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. GPIO Port 1 features four pins that
interface at a voltage level of 3.3 volts. Additionally, each I/O
pin can be used to generate a GPIO interrupt to the microcon-
troller. Each GPIO port has its own GPIO interrupt vector with
the exception of GPIO Port 0. GPIO Port 0 has three dedicated
pins that have independent interrupt vectors (P0.2 - P0.4).
The enCoRe II features an internal oscillator. With the
presence of USB traffic, the internal oscillator can be set to
precisely tune to USB timing requirements (24 MHz 1.5%).
Optionally, an external 12-MHz or 24-MHz crystal can be used
to provide a higher precision reference for USB operation. The
clock generator provides the 12-MHz and 24-MHz clocks that
remain internal to the microcontroller.
The enCoRe II has up to eight Kbytes of Flash for user's code
and up to 256 bytes of RAM for stack space and user
variables.
In addition, the enCoRe II includes low-voltage reset logic, a
Watchdog timer, a vectored interrupt controller, a 16-bit Free-
Running Timer, and Capture Timers. The low-voltage reset
(LVR) logic detects when power is applied to the device, resets
the logic to a known state, and begins executing instructions
at Flash address 0x0000. The LVR may reset the parts when
Vcc drops below a programmable trip voltage or it may be
configurable to generate a LVR/POR interrupt to inform the
processor about the low-voltage event. The Watchdog timer
can be used to ensure the firmware never gets stalled in an
infinite loop.
The microcontroller supports 23 maskable interrupts in the
vectored interrupt controller. Interrupt sources include a USB
bus reset, LVR/POR, a programmable interval timer, a 1.024-
ms output from the Free Running Timer, three USB endpoints,
two capture timers, five GPIO Ports, three GPIO pins, two SPI,
a 16-bit free running timer wrap, an internal wake-up timer, and
a bus active interrupt. The wake-up timer causes periodic
interrupts when enabled. The USB endpoints interrupt after a
USB transaction complete is on the bus. The capture timers
interrupt whenever a new timer value is saved due to a
selected GPIO edge event. A total of eight GPIO interrupts
support both TTL or CMOS thresholds. For additional flexi-
bility, on the edge sensitive GPIO pins, the interrupt polarity is
programmable to be either rising or falling.
The free-running 16-bit timer provides two interrupt sources:
the programmable interval timer with 1 microsecond resolution
and the 1.024 ms outputs. The timer can be used to measure
the duration of an event under firmware control by reading the
timer at the start and at the end of an event, then calculating
the difference between the two values. The two 8-bit capture
timers save a programmable 8-bit range of the free-running
timer when a GPIO edge occurs on the two capture pins (P0.0,
P0.1). The two 8-bit captures can be ganged into a single 16-
bit capture.
The enCoRe II includes an integrated USB serial interface
engine (SIE) that allows the chip to easily interface to a USB
host. The hardware supports one USB device address with
three endpoints.
The USB D+ and D pins can alternately be used as PS/2
SCLK and SDATA signals so that products can be designed to
respond to either USB or PS/2 modes of operation. PS/2
operation is supported with internal pull-up resistors on SCLK
and SDATA and an interrupt to signal the start of PS/2 activity.
In USB mode the integrated pull-up resistor on D- can be
controlled under firmware. No external components are
necessary for dual USB and PS/2 systems, and no GPIO pins
need to be dedicated to switching between modes. Slow edge
rates operate in both modes to reduce EMI.
The enCoRe II supports in-system programming by using the
D+ and D- pins as the serial programming mode interface. The
programming protocol is not USB.
3.0
Conventions
In this document, bit positions in the registers are shaded to
indicate which members of the enCoRe II family implement the
bits.
Available in all enCoRe II family members
CY7C639xx and CY7C638xx only
CY7C639xx only
background image
CONFIDENTIAL
PRELIMINARY
CY7C63310
CY7C638xx
CY7C639xx
Document 38-08035 Rev. *C
Page 3 of 70
4.0
Logic Block Diagram
Figure 4-1. CY7C633xx/CY7C638xx/CY7C639xx Block Diagram
Internal
24 MHz
Oscillator
3.3V
Regulator
Clock
Control
Crystal
Oscillator
POR /
Low-Voltage
Detect
Watchdog
Timer
RAM
Up to 256
Byte
M8C CPU
Flash
Up to 8K
Byte
16 Extended
I/O Pins
Low-Speed
USB/PS2
Transceiver
and Pull-up
16 GPIO
Pins
Wakeup
Timer
Capture
Timers
12-bit Timer
4 3VIO/SPI
Pins
Vd
d
Interrupt
Control
Low-Speed
USB SIE
background image
CONFIDENTIAL
PRELIMINARY
CY7C63310
CY7C638xx
CY7C639xx
Document 38-08035 Rev. *C
Page 4 of 70
5.0
Packages/Pinouts
Figure 5-1. Package Configurations
1
2
3
4
5
6
9
11
15
16
17
18
19
20
22
21
NC
P0.7
TIO1/P0.6
TIO0/P0.5
INT2/P0.4
INT1/P0.3
P0.0
P2.0
P1.5/SMOSI
P1.3/SSEL
P3.1
P3.0
V
DD
P1.2/VREG
P1.1/SCLK/D-
P1.0/SDATA/D+
14
P1.4/SCLK
10
P2.1
NC
V
SS
12
13
7
8
INT0/P0.2
P0.1
24
23
P1.7
P1.6/SMISO
24-pin QSOP
CY7C63823
1
2
3
4
6
7
8
10
11
12
13
15
16
18
17
SSEL/P1.3
SCLK/P1.4
SMOSI/P1.5
SMISO/P1.6
P0.7
TIO0/P0.5
P1.2/VREG
P1.1/SCLKD/D-
P1.0/SDATA/D+
P0.0
P0.1
P0.2/INT0
18-pin PDIP
V
DD
9
TIO1/P0.6
INT2/P0.4
P0.3/INT1
CY7C63813
5
14
P1.7
V
SS
1
2
3
4
6
7
8
9
10
11
13
14
16
15
SSEL/P1.3
SCLK/P1.4
SMOSI/P1.5
SMISO/P1.6
TIO1/P0.5
INT1/P0.3
P1.2/VREG
P1.1/SCLK/D-
P1.0/SDATA/D+
P0.1
P0.2/INT0
P0.0
16-pin PDIP
V
DD
INT2/P0.4
5
12
P0.6/TIO1
V
SS
Top View
CY7C63310
CY7C63801
16-pin PDIP
1
2
3
4
6
7
8
9
10
11
13
14
16
15
P0.6/TIO1
P0.5/TIO0
P0.4/INT2
P0.3/INT1
P0.1
V
SS
P1.6/SMISO
P1.4/SCLK
P1.3/SSEL
P1.1/SCLK/D-
P1.0/SDATA/D+
V
DD
16-pin SOIC
P1.5/SMOSI
P0.0
5
12
P0.2/INT0
P1.2/VREG
CY7C63310
CY7C63801/3
16-pin SOIC
1
2
3
4
6
7
8
10
11
12
13
15
16
18
17
P0.7
P0.6/TIO1
P0.5/TIO0
P0.4/INT2
P0.2/INT0
P0.0
P1.7
P1.5/SMOSI
P1.4/SCLK
P1.2/VREG
V
DD
P1.1/SCLK/D-
18-pin SOIC
P1.6/SMISO
9
P0.1
V
SS
P1.0/SDATA/D+
CY7C63813
5
14
P0.3/INT1
P1.3/SSEL
1
2
3
4
5
6
9
11
15
16
17
18
19
20
22
21
P3.0
P3.1
SCLK/P1.4
SMOSI/P1.5
SMISO/P1.6
P1.7
P0.7
TIO0/P0.5
V
DD
P2.0
P1.0/SDATA/D+
V
SS
P0.0
P2.1
P0.1
P0.2/INT0
14
P1.1/SCLK/D-
10
TIO1/P0.6
INT2/P0.4
P0.3/INT1
12
13
7
8
NC
NC
24
23
P1.3/SSEL
P1.2/VREG
24-pin PDIP
CY7C63823
1
2
3
4
5
6
9
11
15
16
17
18
19
20
22
21
NC
P0.7
TIO1/P0.6
TIO0/P0.5
INT2/P0.4
INT1/P0.3
P0.0
P2.0
P1.6/SMISO
P3.0
P1.4/SCLK
P3.1
P1.2/VREG
P1.3/SSEL
V
DD
P1.1/SCLK/D-
14
P1.5/SMOSI
10
P2.1
V
SS
P1.0/SDATA/D+
12
13
7
8
INT0/P0.2
P0.1
24
23
NC
P1.7
24-pin SOIC
CY7C63823
1
2
3
4
5
6
9
11
19
20
21
22
23
24
26
25
V
DD
P2.7
P2.6
P2.5
P2.4
P0.7
INT2/P0.4
INT0/P0.2
P3.6
P1.6/SMISO
P3.4
P1.7
P1.4/SCLK
P1.5/SMOSI
P1.3/SSEL
P1.2/VREG
18
P3.5
10
INT1/P0.3
CLKOUT/P0.1
V
DD
12
17
7
8
TIO1/P0.6
TIO0/P0.5
28
27
V
SS
P3.7
28-pin SSOP
CY7C63903
15
16
P1.1/SCLK/D-
P1.0/SDATA/D+
13
CLKIN/P0.0
14
V
SS
background image
CONFIDENTIAL
PRELIMINARY
CY7C63310
CY7C638xx
CY7C639xx
Document 38-08035 Rev. *C
Page 5 of 70
5.1
Pinouts Assignments
Figure 5-1 Package Configurations (continued)
1
2
3
4
5
6
9
11
NC
NC
NC
NC
V
DD
P4.1
P2.6
P2.4
10
P2.5
P2.3
12
7
8
P4.0
P2.7
48-pin SSOP
CY7C63923
13
14
15
16
17
18
21
23
P2.2
P2.1
P2.0
P0.7
P0.6/TIO1
P0.5/TIO0
P0.2/INT0
P0.0/CLKIN
22
P0.1/CLKOUT
V
SS
24
19
20
P0.4/INT2
P0.3/INT1
27
28
29
30
31
32
34
33
P3.0
P1.4/SCLK
P1.6/SMISO
P1.5/SMOSI
P1.2/VREG
P1.3/SSEL
V
DD
P1.1/SCLK/D-
26
P1.7
P1.0/SDATA/D+
25
36
35
P3.2
P3.1
39
40
41
42
43
44
46
45
NC
P4.2
V
SS
P4.3
P3.6
P3.7
P3.5
P3.4
38
NC
P3.3
37
48
47
NC
NC
1
2
3
4
5
6
9
11
V
DD
P4.1
P2.6
P2.4
10
P2.5
P2.3
12
7
8
P4.0
P2.7
40-pin PDIP
CY7C63913
13
14
15
16
17
18
P2.2
P2.1
P2.0
P0.7
P0.6/TIO1
P0.5/TIO0
P0.2/INT0
P0.0/CLKIN
P0.1/CLKOUT
V
SS
19
P0.4/INT2
P0.3/INT1
21
22
23
24
26
25
P3.0
P1.4/SCLK
P1.6/SMISO
P1.5/SMOSI
P1.2/VREG
P1.3/SSEL
V
DD
P1.1/SCLK/D-
P1.7
P1.0/SDATA/D+
28
27
P3.2
P3.1
31
32
33
34
35
36
38
37
P4.2
V
SS
P4.3
P3.6
P3.7
P3.5
P3.4
30
P3.3
29
40
39
20
40
CY7C63923-XC
DIE
Top View
6 5 4 3 2 1
44
46
47
48
41
42
43
35
39
38
37
36
34
33
32
31
30
29
28
27
22
26
25
24
23
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
P
4
.1
P3.6
Vd
d
NC
P
4
.3
NC
NC
NC
Vss
NC
NC
NC
P
4
.2
P
3
.7
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
Vdd
P1.7
P1.6/SMISO
P1.5/SMOSI
P1.4/SCLK
P1.3/SSEL
P1.2/VREG
P
1
.1
/SCL
K/D-
P
1
.
0
/S
D
A
T
A
/D
+
Vss
P
0
.
0
/C
L
K
IN
P0.1/CLKOUT
P0.2/INT0
P0.3/INT1
P0.4/INT2
P0.5/TIO0
P0.6/TIO1
P0.7
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P4.0
Table 5-1. Pin Assignments
48
SSOP
40
PDIP
28
SSOP
24
QSOP
24
SOIC
24
PDIP
18
SIOC
18
PDIP
16
SOIC
16
PDIP
Die
Pad
Name
Description
7
3
7
P4.0
GPIO Port 4 configured as a group
(nibble)
6
2
6
P4.1
42
38
42
P4.2
43
39
43
P4.3
34
30
18
1
34
P3.0
GPIO Port 3 configured as a group
(byte)
35
31
20
19
2
35
P3.1
36
32
19
36
P3.2
37
33
37
P3.3
38
34
24
38
P3.4
39
35
25
39
P3.5
40
36
26
40
P3.6
41
37
27
41
P3.7
15
11
11
11
18
15
P2.0
GPIO Port 2 configured as a group
(byte)
14
10
10
10
17
14
P2.1
13
9
13
P2.2
12
8
12
P2.3
11
7
5
11
P2.4
10
6
4
10
P2.5
9
5
3
9
P2.6
8
4
2
8
P2.7

Document Outline