CYRF89235
PRoC™ USB
PRoC™ USB
PRoC-USB Features
■
Single Device, Two Functions
❐
8-bit, flash based USB peripheral MCU function and 2.4-GHz
radio transceiver function in a single device
RF Attributes
❐
Fully integrated 2.4-GHz radio on a chip
❐
1-Mbps over-the-air data rate
❐
Transmit power typical: 0 dBm
❐
Receive sensitivity typical: –87 dBm
❐
1 µA typical current consumption in sleep state
❐
Closed-loop frequency synthesis
❐
Supports frequency-hopping spread spectrum
❐
On-chip packet framer with 64-byte first in first out (FIFO)
data buffer
❐
Built-in auto-retry-acknowledge protocol simplifies usage
❐
Built-in cyclic redundancy check (CRC), forward error
correction (FEC), data whitening
❐
Supports DC ~ 12-MHz SPI bus interface
❐
Additional outputs for interrupt request (IRQ) generation
❐
Digital readout of received signal strength indication (RSSI)
■
MCU Attributes
❐
Powerful Harvard-architecture processor
❐
M8C processor speeds running up to 24 MHz
❐
Low power at high processing speeds
❐
Interrupt controller
❐
1.9 V to 3.6V operating voltage without USB
❐
Operating voltage with USB enabled:
• 3.15 V to 3.45 V when supply voltage is around 3.3 V
❐
Commercial temperature range: 0 °C to +70 °C
■
Flexible on-chip memory
❐
32 KB flash program storage:
• 50,000 erase and write cycles
• Flexible protection modes
❐
Up to 2048 bytes SRAM data storage
❐
In-system serial programming (ISSP)
■
Complete development tools
❐
Free development tool PSoC Designer™
❐
Full-featured, in-circuit emulator and programmer
❐
Full-speed emulation
❐
Complex breakpoint structure
❐
128-KB trace memory
■
Precision, programmable clocking
■
■
■
■
Crystal-less oscillator with support for an external crystal or
resonator
❐
Internal ±5.0% 6, 12, or 24 MHz main oscillator (IMO):
• 0.25% accuracy with oscillator lock to USB data, no
external components required
• Internal low-speed oscillator (ILO) at 32 kHz for watchdog
and sleep. The frequency range is 19 to 50 kHz with a
32-kHz typical value
Programmable pin configurations.
❐
Up to 13 general-purpose I/Os (GPIOs)
❐
25 mA sink current on all GPIO
• 60 mA total sink current on Even port pins and 60 mA total
sink current on Odd port pins
• 120 mA total sink current on all GPIOs
❐
Pull-up, High Z, open drain, CMOS drive modes on all GPIO
❐
CMOS drive mode A –5 mA source current on ports 0 and 1
and 1 mA on port 2
• 20 mA total source current on all GPIOs
❐
Low dropout voltage regulator for Port 1 pins:
• Programmable to output 3.0, 2.5, or 1.8 V
❐
Selectable, regulated digital I/O on Port 1
❐
Configurable input threshold for Port 1
❐
Hot-swappable Capability on Port 1
Full-Speed USB (12 Mbps)
❐
Eight unidirectional endpoints
❐
One bidirectional control endpoint
❐
USB 2.0-compliant
❐
Dedicated 512 bytes buffer
❐
No external crystal required
Additional system resources
❐
Configurable communication speeds
2
❐
I C slave:
• Selectable to 50 kHz, 100 kHz, or 400 kHz
• Implementation requires no clock stretching
• Implementation during sleep modes with less than 100
A
• Hardware address detection
❐
SPI master and SPI slave:
• Configurable between 46.9 kHz and 12 MHz
❐
Three 16-bit timers
❐
10-bit ADC used to monitor battery voltage or other signals
with external components
❐
Watchdog and sleep timers
❐
Integrated supervisory circuit
❐
Cypress Semiconductor Corporation
Document Number: 001-77748 Rev. *F
•
198 Champion Court
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised May 15, 2013
CYRF89235
PRoC-USB Logical Block Diagram
Port 2
Port 1
Port 0
Prog. LDO
enCoRe V
CORE
System Bus
SRAM
2048 Bytes
Interrupt
Controller
SROM
32K Flash
Sleep and
Watchdog
CPU Core
(M8C)
6/12/24 MHz Internal Main Oscillator
V
IN
V
DD_IO
V
OUT
LDO Linear
Regulator
PKT
FIFO
GFSK
Modulator
WIRELESSUSB NL
SYSTEM
PA
SPI Registers
Framer
Synthesizer
VCO
ANT
ANTb
RST
_n
Pwr Reset
/
BRCLK
Xtal Osc
Receive
GFSK
Demodulator
X
Image
Rej . Mxr
.
LNA + BPF
XTALi
XTALo
ADC
3 16-Bit
Timers
I2C Slave/SPI
Master-Slave
POR and LVD
System Resets
Full
Speed
USB
SYSTEM RESOURCES
Document Number: 001-77748 Rev. *F
Page 2 of 45
CYRF89235
Contents
Functional Overview ........................................................ 4
The enCoRe V Core .................................................... 4
Full-Speed USB ........................................................... 4
10-bit ADC ................................................................... 5
SPI ............................................................................... 5
I2C Slave ..................................................................... 6
WirelessUSB-NL Subsystem ....................................... 7
Transmit Power Control ............................................... 7
Power-on and Register Initialization Sequence ........... 7
Additional System Resources ..................................... 8
Getting Started .................................................................. 8
Application Notes ........................................................ 8
Development Kits ........................................................ 8
Training ....................................................................... 8
CYPros Consultants .................................................... 8
Solutions Library .......................................................... 8
Technical Support ....................................................... 8
Development Tools .......................................................... 9
PSoC Designer Software Subsystems ........................ 9
Designing with PSoC Designer ..................................... 10
Select User Modules ................................................. 10
Configure User Modules ............................................ 10
Organize and Connect .............................................. 10
Generate, Verify, and Debug ..................................... 10
Pin Configuration ........................................................... 11
Pin Definitions ................................................................ 12
Register Reference ......................................................... 13
Register Conventions ................................................ 13
Register Mapping Tables .......................................... 13
Electrical Specifications ................................................ 16
Absolute Maximum Ratings ....................................... 16
Operating Temperature ............................................. 16
DC Chip-Level Specifications .................................... 17
DC USB Interface Specifications ............................... 18
ADC Electrical Specifications .................................... 19
DC Analog Mux Bus Specifications ........................... 20
DC Low Power Comparator Specifications ............... 20
Comparator User Module Electrical Specifications ... 20
DC GPIO Specifications ............................................ 21
DC POR and LVD Specifications .............................. 23
DC Programming Specifications ............................... 24
DC I2C Specifications ............................................... 25
DC Reference Buffer Specifications .......................... 25
DC IDAC Specifications ............................................ 25
AC Chip Level Specifications .................................... 26
AC USB Data Timings Specifications ........................ 27
AC USB Driver Specifications ................................... 27
AC General Purpose I/O Specifications .................... 28
AC Comparator Specifications .................................. 29
AC External Clock Specifications .............................. 29
AC Programming Specifications ................................ 30
AC I2C Specifications ................................................ 31
SPI Master AC Specifications ................................... 32
SPI Slave AC Specifications ..................................... 33
Electrical Specifications - RF Section .......................... 35
Initialization Timing Requirements ............................ 38
SPI Timing Requirements ......................................... 39
Packaging Information ................................................... 40
Packaging Dimensions .............................................. 40
Thermal Impedances ................................................. 41
Capacitance on Crystal Pins ..................................... 41
Solder Reflow Peak Temperature ............................. 41
Ordering Information ...................................................... 42
Ordering Code Definitions ......................................... 42
Acronyms ........................................................................ 43
Document Conventions ................................................. 43
Units of Measure ....................................................... 43
Numeric Naming ........................................................ 43
Document History Page ................................................. 44
Sales, Solutions, and Legal Information ...................... 45
Worldwide Sales and Design Support ....................... 45
Products .................................................................... 45
PSoC Solutions ......................................................... 45
Document Number: 001-77748 Rev. *F
Page 3 of 45
CYRF89235
Functional Overview
The enCoRe V family of devices are designed to replace multiple
traditional full-speed USB microcontroller system components
with one, low cost single-chip programmable component.
Communication peripherals (I
2
C/SPI), a fast CPU, flash program
memory, SRAM data memory, and configurable I/O are included
in a range of convenient pinouts.
The architecture for this device family, as illustrated in the
PRoC-USB Logical Block Diagram on page 2,
consists of three
main areas: the CPU core, the WirelessUSB™ NL subsystem
and the system resources.
This product is an enhanced version of Cypress’s successful full
speed-USB peripheral controllers. Enhancements include faster
CPU at lower voltage operation, lower current consumption,
twice the RAM and flash, hot-swappable I/Os, I
2
C hardware
address recognition, new very low current sleep mode, and new
package options.
Figure 1. USB Transceiver Regulator
VOLTAGE
REGULATOR
5V 3.3V
1.5K
5K
PS2 Pull Up
TEN
TD
RECEIVERS
PDN
RD
DP
DM
TRANSMITTER
DPO
RSE0
The enCoRe V Core
The enCoRe V Core is a powerful engine that supports a rich
instruction set. It encompasses SRAM for data storage, an
interrupt controller, sleep and watchdog timers, and IMO and
ILO. 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.
System resources provide additional capability, such as a
configurable I
2
C slave and SPI master-slave communication
interface and various system resets supported by the M8C.
DMO
Full-Speed USB
The enCoRe V USB system resource adheres to the USB 2.0
Specification for full-speed devices operating at 12 Mb/second
with one upstream port and one USB address. enCoRe V USB
consists of these components:
■
■
■
■
At the enCoRe V system level, the full-speed USB system
resource interfaces to the rest of the enCoRe V by way of the
M8C's register access instructions and to the outside world by
way of the two USB pins. The SIE supports nine endpoints
including a bidirectional control endpoint (endpoint 0) and eight
unidirectional data endpoints (endpoints 1 to 8). The
unidirectional data endpoints are individually configurable as
either IN or OUT.
The USB serial interface engine (SIE) allows the enCoRe V
device to communicate with the USB host at full-speed data rates
(12 Mb/s). The SIE simplifies the interface to USB traffic by
automatically handling the following USB processing tasks
without firmware intervention:
■
■
■
■
■
■
■
Serial interface engine (SIE) block.
PSoC memory arbiter (PMA) block.
512 bytes of dedicated SRAM.
A full-speed USB Transceiver with internal regulator and two
dedicated USB pins.
Translates the encoded received data and formats the data to
be transmitted on the bus.
Generates and checks cyclical redundancy checks (CRCs).
Incoming packets failing checksum verification are ignored.
Checks addresses. Ignores all transactions not addressed to
the device.
Sends appropriate ACK/NAK/Stall handshakes.
Identifies token type (SETUP, IN, OUT) and sets the
appropriate token bit once a valid token in received.
Identifies Start-of-Frame (SOF) and saves the frame count.
Sends data to or retrieves data from the USB SRAM, by way
of the PSoC Memory Arbiter (PMA).
Document Number: 001-77748 Rev. *F
Page 4 of 45
CYRF89235
Firmware is required to handle various parts of the USB
interface. The SIE issues interrupts after key USB events to
direct firmware to appropriate tasks:
■
■
■
■
■
input mux or the temperature sensor with an input voltage range
of 0 V to V
REFADC
.
In the ADC only configuration (the ADC MUX selects the Analog
mux bus, not the default temperature sensor connection), an
external voltage can be connected to the input of the modulator
for voltage conversion. The ADC is run for a number of cycles
set by the timer, depending upon the desired resolution of the
ADC. A counter counts the number of trips by the comparator,
which is proportional to the input voltage. The Temp Sensor block
clock speed is 36 MHz and is divided down to 1 to 12 MHz for
ADC operation.
Fill and empty the USB data buffers in USB SRAM.
Enable PMA channels appropriately.
Coordinate enumeration by decoding USB device requests.
Suspend and resume coordination.
Verify and select data toggle values.
10-bit ADC
The ADC on enCoRe V device is an independent block with a
state machine interface to control accesses to the block. The
ADC is housed together with the temperature sensor core and
can be connected to this or the Analog mux bus. As a default
operation, the ADC is connected to the temperature sensor
diodes to give digital values of the temperature.
Figure 2. ADC System Performance Block Diagram
V
IN
SPI
The serial peripheral interconnect (SPI) 3-wire protocol uses
both edges of the clock to enable synchronous communication
without the need for stringent setup and hold requirements.
Figure 3. Basic SPI Configuration
SPI Master
SPI Slave
Data is output by
Data is registered at the
both the Master
input of both devices on the
and Slave on
opposite edge of the clock.
one edge of the
clock.
SCLK
MOSI
MISO
TEMP SENSOR/ ADC
TEMP
DIODES
ADC
A device can be a master or slave. A master outputs clock and
data to the slave device and inputs slave data. A slave device
inputs clock and data from the master device and outputs data
for input to the master. Together, the master and slave are
essentially a circular Shift register, where the master generates
the clocking and initiates data transfers.
A basic data transfer occurs when the master sends eight bits of
data, along with eight clocks. In any transfer, both master and
slave transmit and receive simultaneously. If the master only
sends data, the received data from the slave is ignored. If the
master wishes to receive data from the slave, the master must
send dummy bytes to generate the clocking for the slave to send
data back.
Figure 4. SPI Block Diagram
SYSTEM BUS
INTERFACE BLOCK
COMMAND/ STATUS
SPI Block
MOSI,
MISO
SCLK
DATA_IN DATA_OUT
CLK_IN
SYSCLK
CLK_OUT
INT
MOSI,
MISO
SCLK
Interface to the M8 C
( Processor ) Core
SS_
Registers
The ADC User Module contains an integrator block and one
comparator with positive and negative input set by the MUXes.
The input to the integrator stage comes from the analog global
CONFIGURATION[7:0]
TRANSMIT[7:0]
CONTROL[7:0]
RECEIVE[7:0]
Document Number: 001-77748 Rev. *F
Page 5 of 45