CYW20738
Single-Chip Bluetooth Transceiver for
Wireless Input Devices
The Cypress CYW20738 is a Bluetooth low energy compliant, stand-alone baseband processor with an integrated 2.4 GHz trans-
ceiver. It is ideal for wireless input device applications including game controllers, keyboards, remote controls, gestural input devices,
and sensor devices. Built-in firmware adheres to the Bluetooth Human Interface Device (HID) profile and Bluetooth Device ID profile
specifications.
The CYW20738 radio has been designed to provide low power, low cost, and robust communications for applications operating in the
globally available 2.4 GHz unlicensed ISM band. It is fully compliant with Bluetooth Low Energy Radio Specification.
The single-chip Bluetooth transceiver is a monolithic component implemented in a standard digital CMOS process and requires
minimal external components to make a fully compliant Bluetooth device. The CYW20738 is available in two package options: a 40-
pin, 6 mm × 6 mm QFN and a 64-pin, 7 mm × 7 mm BGA.
Cypress Part Numbering Scheme
Cypress is converting the acquired IoT part numbers from Broadcom to the Cypress part numbering scheme. Due to this conversion,
there is no change in form, fit, or function as a result of offering the device with Cypress part number marking. The table provides
Cypress ordering part number that matches an existing IoT part number.
Table 1. Mapping Table for Part Number between Broadcom and Cypress
Broadcom Part Number
BCM20738
BCM20738A2KML3G
BCM20738A1KFBG
CYW20738
CYW20738A2KML3G
CYW20738A1KFBG
Cypress Part Number
Acronyms and Abbreviations
In most cases, acronyms and abbreviations are defined on first use.
For a comprehensive list of acronyms and other terms used in Cypress documents, go to:
http://www.cypress.com/glossary
Applications
■
■
■
■
■
■
Features
■
■
■
■
■
■
■
■
■
■
■
■
■
■
■
■
■
Wireless pointing devices: mice, trackballs, gestural controls
Wireless keyboards
Remote controls
Game controllers
Point-of-sale (POS) input devices
Remote sensors
■
On-chip support for common keyboard and mouse interfaces
eliminates external processor
Programmable keyscan matrix interface, up to 8 × 20 key-
scanning matrix
3-axis quadrature signal decoder
Infrared modulator
IR learning
Supports Adaptive Frequency Hopping
Excellent receiver sensitivity
Bluetooth HID Over GATT profile
10-bit auxiliary ADC with 28 analog channels
On-chip support for serial peripheral interface (master and
slave modes)
Broadcom Serial Communications (BSC) interface (compatible
with Philips
®
(now NXP) I
2
C slaves)
Integrated ARM Cortex
™
-M3 based microprocessor core
On-chip power-on reset (POR)
Support for EEPROM and serial flash interfaces
Integrated low-dropout regulator (LDO)
On-chip software controlled power management unit
Two package types are available:
❐
40-pin QFN package (6 mm × 6 mm)
❐
64-pin BGA package (7 mm × 7 mm)
RoHS compliant
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised Wednesday, November 15, 2017
Cypress Semiconductor Corporation
Document Number: 002-14891 Rev. *D
•
198 Champion Court
CYW20738
Figure 1. Functional Block Diagram
Muxed on GPIO
UART_TXD
UART_RXD
WDT
Processing
Unit
(ARM -CM3)
Test
UART
Tx RTS_N
Rx
CTS_N
SDA/
MOSI
1.2V
SCL/
SCK MISO
VDD_CORE
1.2V
1.2V VDD_CORE
Domain
Periph 320K
UART ROM
60K
RAM
BSC/SPI
Master
Interface
(BSC is I
2
C -
compa ble)
VSS,
VDDO,
VDDC
28 ADC
Inputs
1.2V
POR
1.2V
LDO
CT
ADC
1.425V to 3.6V
MIA
POR
System Bus
1.62V to 3.6V
32 kHz
LPCLK
hclk
(24 MHz to 1 MHz)
Peripheral
Interface
Block
RF Control
and Data
Volt. Trans
I/O Ring
Control
Registers
VDD_IO
Domain
I/O Ring Bus
Bluetooth
Baseband
Core
2.4 GHz
Radio
24
MHz
GPIO
Control/
Status
Registers
IR
Mod.
and
Learning
SPI
M/S
Keyboard
Matrix
Scanner
w/FIFO
3 -Axis
Mouse
Signal
Controller
PMU
Power
WAKE
RF I/O
T/R
Switch
Frequency
Synthesizer
40 GPIO
IR
I/O
8 x 20
Scan
Matrix
6 Quadrature
Inputs (3 pair) +
High Current
Driver Controls
32 kHz
LPCLK
AutoCal
128 kHz
LPO
128 kHz
LPCLK
1.2V VDD_RF
Domain
28 ADC
Inputs
PWM
÷4
24 MHz
Ref Xtal
40 GPIO on the 64-pin BGA
(22 GPIO on the 40-pin QFN)
1.62V to 3.6V
VDD_IO
32 kHz
IoT Resources
Cypress provides a wealth of data at
http://www.cypress.com/internet-things-iot
to help you to select the right IoT device for your
design, and quickly and effectively integrate the device into your design. Cypress provides customer access to a wide range of
information, including technical documentation, schematic diagrams, product bill of materials, PCB layout information, and software
updates. Customers can acquire technical documentation and software from the Cypress Support Community website
(http://community.cypress.com/).
Document Number: 002-14891 Rev. *D
Page 2 of 42
CYW20738
Contents
1. Functional Description ................................................. 4
1.1 Keyboard Scanner ................................................. 4
1.2 Mouse Quadrature Signal Decoder ....................... 5
1.4 Infrared Learning ................................................... 6
1.5 Bluetooth Baseband Core ..................................... 6
1.6 ADC Port ............................................................... 7
1.7 Serial Peripheral Interface ..................................... 7
1.8 Microprocessor Unit ............................................ 10
1.9 Integrated Radio Transceiver .............................. 11
1.10 Peripheral Transport Unit .................................. 12
1.11 Clock Frequencies ............................................. 13
1.12 GPIO Port .......................................................... 14
1.13 PWM .................................................................. 15
1.14 Power Management Unit ................................... 16
2. Pin Assignments ........................................................ 17
2.1 Pin Descriptions .................................................. 17
2.2 Ball Maps ............................................................. 25
3. Specifications ............................................................. 27
3.1 Electrical Characteristics ..................................... 27
3.2 RF Specifications ................................................ 30
3.3 Timing and AC Characteristics ............................ 32
4. Mechanical Information ............................................. 36
5. Ordering Information .................................................. 39
5.1 References .......................................................... 39
Appendix Acronyms and Abbreviations ...................... 40
Document History .......................................................... 41
Document Number: 002-14891 Rev. *D
Page 3 of 42
CYW20738
1. Functional Description
1.1 Keyboard Scanner
The keyboard scanner is designed to autonomously sample keys and store them into buffer registers without the need for the host
microcontroller to intervene. The scanner has the following features:
■
■
■
■
■
■
■
■
■
■
Ability to turn off its clock if no keys pressed.
Sequential scanning of up to 160 keys in an 8 x 20 matrix.
Programmable number of columns from 1 to 20.
Programmable number of rows from 1 to 8.
16-byte key-code buffer (can be augmented by firmware).
128 kHz clock – allows scanning of full 160-key matrix in about 1.2 ms.
N-key rollover with selective 2-key lockout if ghost is detected.
Keys are buffered until host microcontroller has a chance to read it, or until overflow occurs.
Hardware debouncing and noise/glitch filtering.
Low-power consumption. Single-digit µA-level sleep current.
1.1.1 Theory of Operation
The key scan block is controlled by a state machine with the following states:
Idle
The state machine begins in the idle state. In this state, all column outputs are driven high. If any key is pressed, a transition occurs
on one of the row inputs. This transition causes the 128 kHz clock to be enabled (if it is not already enabled by another peripheral)
and the state machine to enter the scan state. Also in this state, an 8-bit row-hit register and an 8-bit key-index counter is reset to 0.
Scan
In the scan state, a row counter counts from 0 up to a programmable number of rows minus 1. Once the last row is reached, the row
counter is reset and the column counter is incremented. This cycle repeats until the row and column counters are both at their
respective terminal count values. At that point, the state machine moves into the Scan-End state.
As the keys are being scanned, the key-index counter is incremented. This counter is the value compared to the modifier key codes
stored, or in the key-code buffer if the key is not a modifier key. It can be used by the microprocessor as an index into a lookup table
of usage codes.
Also, as the n-th row is scanned, the row-hit register is ORed with the current 8-bit row input values if the current column contains two
or more row hits. During the scan of any column, if a key is detected at the current row, and the row-hit register indicates that a hit
was detected in that same row on a previous column, then a ghost condition may have occurred, and a bit in the status register is set
to indicate this.
Scan End
This state determines whether any keys were detected while in the scan state. If yes, the state machine returns to the scan state. If
no, the state machine returns to the idle state, and the 128 kHz clock request signal is made inactive.
The microcontroller can poll the key status register.
Document Number: 002-14891 Rev. *D
Page 4 of 42
CYW20738
1.2 Mouse Quadrature Signal Decoder
The mouse signal decoder is designed to autonomously sample two quadrature signals commonly generated by optomechanical
mouse apparatus. The decoder has the following features:
■
Three pairs of inputs for X, Y, and Z (typical scroll wheel) axis signals. Each axis has two options:
❐
For the X axis, choose P2 or P32 as X0 and P3 or P33 as X1.
❐
For the Y axis, choose P4 or P34 as Y0 and P5 or P35 as Y1.
❐
For the Z axis, choose P6 or P36 as Z0 and P7 or P37 as Z1.
Control of up to four external high current GPIOs to power external optoelectronics:
❐
Turn-on and turn-off time can be staggered for each HC-GPIO to avoid simultaneous switching of high currents and having multiple
high-current devices on at the same time.
❐
Sample time can be staggered for each axis.
❐
Sense of the control signal can be active high or active low.
❐
Control signal can be tristated for off condition or driven high or low, as appropriate.
■
1.2.1 Theory of Operation
The mouse decoder block has four 16-bit PWMs for controlling external quadrature devices and sampling the quadrature inputs at its
core.
The GPIO signals may be used to control such items as LEDs, external ICs that may emulate quadrature signals, photodiodes, and
photodetectors.
1.3 Infrared Modulator
The CYW20738 includes hardware support for infrared TX. The hardware can transmit both modulated and unmodulated waveforms.
For modulated waveforms, hardware inserts the desired carrier frequency into all IR transmissions. IR TX can be sourced from
firmware-supplied descriptors, a programmable bit, or the peripheral UART transmitter.
If descriptors are used, they include IR on/off state and the duration between 1–32767 µsec. The CYW20738 IR TX firmware driver
inserts this information in a hardware FIFO and makes sure that all descriptors are played out without a glitch due to underrun. See
Figure 2.
Figure 2. Infrared TX
VCC
R1
62
INFRARED-LD
D1
R2
IR TX
2.4K
U1
20738
Q1
MMBTA42
Document Number: 002-14891 Rev. *D
Page 5 of 42