The National Semiconductor LMX9820A Bluetooth Serial
Port module is a highly integrated radio, baseband controller, and memory device implemented on an FR4 substrate.
All hardware and firmware is included to provide a complete solution from antenna from the complete lower and
upper layers of the Bluetooth stack, up to the application
support layers including the Generic Access Profile (GAP),
the Service Discovery Application Profile (SDAP), and the
Serial Port Profile (SPP). The module includes a configurable service database to fulfill service requests for additional profiles on the host. The LMX9820A features a small
form factor (10.1 x 14.1 x 2.0 mm) design, which solves
many of the challenges associated with compact system
integration. Moreover, the LMX9820A is pre-qualified as a
Bluetooth Integrated Component. Conformance testing
through the Bluetooth qualification program enables a fast
time to market after system integration by ensuring a high
degree of compliance and interoperability.
2.0 Functional Block Diagram
Based on National’s CompactRISC
™
16-bit processor
architecture and Digital Smart Radio technology, the
LMX9820A is optimized to handle the data and link management processing requirements of a Blueto oth node.
The firmware supplied with this device offers a complete
Bluetooth (v1.1) stack including profiles and command
interface. This firmware features point-to-point and pointto-multipoint link management supporting data rates up to
the theoretical maximum over RFComm of 704 kbps. The
internal memory supports up to three active Bluetooth data
links and one active SCO link .
1.1 APPLICATIONS
■ Personal Digital Assistants
■ POS Terminals
■ Data Logging Systems
■ Audio Gateway applicati ons
LINK
MGMNT
PROCESSOR
(LMP)
LNA
TR
ANTENNA
CompactRISC is a trademark of National Semiconductor Corporation.
Bluetooth is a registered trademark of Bluetooth SIG, Inc. and is used under license by National Semiconductor.
Clk-B8InputXtal g or Negative Clock Input. Typically connected along with
Clk+B9InputXtal d or Positive Clock Input. Typically connected along with
32kHz_CLKIB13Input32 kHz Clock input . Not supported b y LMX9820A. Connect to ground.
32kHz_CLKOC13Output32 kHz Clock Output. Not supporte d by LM X9820A. Tre at as no con-
RF_inoutH8Input/OutputRF Antenna Port. 50Ω nominal impedance. Typi call y co nnected to an
ISEL2H13InputModule Interface Select Input Bit 1
ISEL1J13InputModule Interface Select Input Bit 0
DirectionDescription
XTAL_D to an external surface-mount AT-cut crysta l. Leave not connected in case Clk+ i s connected to external crystal oscillator.
XTAL_G to an e xternal s urface -mount AT-cut crys tal. Can a lso be c onfigured as a frequency input when using an external crystal oscillator.
When configured as a fr equency in put , typical ly connect ed t o an external Temperature Compensated Crystal Oscillator (TCXO) through an
Alternating Curr ent (AC) coupling capacitor.
Pad required for mechanical stability.
nect. Pad required for mechanical stabili ty.
antenna through a 6.8 pF capacitor.
LMX9820A Bluetooth Serial Port Module
T able 3. USB Interface Signals (not supported by LMX9820A firmware)
Pad Name
Pad
Location
USB_VCCF12InputUSB Transceiver Power Supply +
USB_D+E11Input/OutputUSB Data Positive
USB_D-E12Input/OutputUSB Data Negative
DirectionDescription
1
1
1
USB_GndG12InputUSB Transceiver Ground. Connect to GND.
1.Treat as no connect. Pad required for mechanical stability.
Table 4. UART Interface Signals
Pad Name
Pad
Location
DirectionDescription
Uart_txD9OutputUART Host Control Interface Transport, Transmit Data
Uart_rxC9InputUART Host Control Interface Transport, Receive Data
Uart_rts#C10OutputUART Host Control Interface Transport, Request to Send
Uart_cts#D10InputUART Host Control Interface Transport, Clear to Send
1.Treat as no connect if not used. Pad required for mechanic al st ability.
2.Connect GND if not used.
1
2
Revision 1.05www.national.com
5.0 Pad Descriptions (Continued)
T able 5. Auxiliary Ports Interface Signal s
Pad Name
Pad
Location
IOVCCH12Input2.85V to 3.6V Logi c Threshold Program Input.
Reset_b#G8Input
Reset_5100#D11Input
Lstat_0E8OutputLink Status Bit 0
Lstat_1F8OutputLink S tatus Bit 1
Host_wuF9OutputHost Wakeup
Env0E9InputModule Operating Environment Bit 0
Env1B11InputModule Operating Environment Bit 1
TX_Switch_PH3OutputTransceiver Status. 0 = Receive; 1 = Transmit.
Reset for Smart Radio
Reset for Baseband processor.
use pull-up with max. 1K
. Connect to Reset_5100.
Low active, either connect to host or
Ω
resistor.
T able 6. Audio Port Interf ace Signals
DirectionDescription
1
1
1
1
1.Treat as no connect if not used. Pad required for mechanic al st ability.
Table 7. Test Interface Signals
Pad Name
Pad
Location
J_rdyE10OutputJTAG Ready
J_tdiF10InputJTAG Test Data
J_tdoF11Input/OutputJT AG Test Data
DirectionDescription
1
1
1
J_tmsG9Input/OutputJTAG Test Mode Select
J_tckG10InputJTAG Test Clock
PI1_RFCE_TP11
A8Test PinModule Test Point
PI2_TP12A13Test PinModule Test Point
Tx_rx_dataC8Test PinModule Test Point
Tx_rx_synchA10Test PinModule Test Point
CCB_ClockA11Test PinModule Test Point
CCB_dataD8Test PinModu le Test Point
CCB_latchJ12Test PinModule Test Point
BBCLKA12Test PinModule Test Point
PH3_TP9F13Test PinModule Test Point
PH2_TP8G13Test PinModule Test Point
1
1
1
1
1
1
1
1
1
1
1
1
www.national.com6Revision 1.0
5.0 Pad Descriptions (Continued)
1.Treat as no connect. Pad required for mechanical stability.
No ConnectNo Connect. Pad required for mechanical stability.
InputRadio System Ground. Must be connected to RF
Ground plane. Thermal relief required for proper soldering.
tors
Circuitry. If not used, place pad and do not connect to
VCC or Ground.
Circuitry. If not used, place pad and do not connect to
VCC or Ground.
for the Digital Circuitry. Place pad and do not connect to
VCC or Ground.
LMX9820A Bluetooth Serial Port Module
1. Connect RF GND, Dig_gnd_1, and Dig_gnd_2 to a single ground plane.
Revision 1.07www.national.com
6.0 Electrical Specifications
6.1 GENERAL SPECIFI CATIONS
Absolute Maximum Ratings (see Table 9) indicate limits
beyond which damage to the device may occur. Operating
Ratings (see Table 10) indicate conditions for which the
device is intended to be fu nctional.
This device is a high performance RF integrated circuit an d
The following conditions apply unless otherwise stated in
the tables be low:
• T
= -40°C to +85°C
A
• VCC = 3.3V, IOVCC = 3.3V
• RF system performa nce specifications are guaranteed
on National Semicondu ctor Austin Board rev1.0b refer-
ence design platform.
is ESD sensitive. Handling and assembly of this device
should be performed at ESD free workstations.
Table 9. Absolu te Maximum Ratings
SymbolParameterMin MaxUnit
VCCCore Logic Power Supply Voltag e-0.34.0V
IOVCCI/O Power Supply Voltage-0.34.0V
USB_VCC
V
I
LMX9820A Bluetooth Serial Port Module
PinRFRF Input Power+15dBm
T
S
T
L
ESD-HBMESD, Human Body Model2000
1
USB Power Supply Voltage-0.53.63V
Voltage on any pad with GND = 0V-0.53.6V
Storage Temperatur e Range-65+125
Lead Temperature (solder 4 sec)+235
2
ESD-MMESD, Machine Model200V
1.USB Interface not supported by LMX9820A firmware. Treat as no connect . Pad required for mechanical stability.
2.Antenna pin passes 1500V HBM.
o
C
o
C
V
T able 10. Recommended Operating Conditions
SymbolParameterMinTyp
3
VCC
IOVCC
t
R
T
O
HUM
OP
HUM
NONOP Humidity (non-op erating, 38.7
Module Power Supply Voltage2.853.33.6V
4
I/O Power Supply Voltage2.853.33.6V
Module Power Supply Rise Time50ms
Operating Temperat ure Range-40+85°C
Humidity (operating, across operating
1090%
temperature range)
o
C web bulb
595%
1
2
MaxUnit
temperature)
1.Maximum voltage difference allowed between VCC and IOVCC is 500 mV.
2.Typical operating conditions are VCC = 3.3V, IOVCC = 3.3V operating voltage and 25°C ambient temperature.
3.VCC internally regulated to VDD_ANA (see Table 11)
4.IOVCC internally regulated to VDD_DIG (see Table 11)
T able 11. Power Supply Electrical Specifications (Analog and Digit al LDOs)
SymbolParameterMin
2
VDD_ANA_OUT
VDD_DIG_OUT
Analog Voltage Output Range2.8V
3
Digital Voltage Ou tput Range2.5V
Typ
1
MaxUnit
1.Typical operating conditions are VCC = 3.3V, IOVCC = 3.3V o perating voltage and 25°C ambient temper ature. Values
reflect voltage s of i nter nally generated, regulated voltages VDD_ANA and VDD_DIG
2.Output of internally generated regulated vol tage VDD_ANA
3.Output of internally generated regulated voltage VDD_DIG
www.national.com8Revision 1.0
6.0 Electrical Specifications (Continued)
LMX9820A Bluetooth Serial Port Module
Note: The voltage regulators are optimized for the internal
operation of the LMX9820A. Because any noise coupled
mance, it is highly recommended to have no additional
load on their outputs.
into these supplies can have influence on the radio perfor-
Table 12. Power Supply Requirements
SymbolParameterMinTyp
I
CC-TX
I
CC-RX
I
CC-Inq
I
RXSLReceive Data in SPP Link, slave
I
RXM
I
HV3
I
SnMSniff Mode, snif f interval 1 second
I
SC-TLDIS
I
IdleIdle, scanning disabled, TL disabled
Power supply curre nt for continuous transmi t68mA
Power supply curre nt for continuous receive62mA
Inquiry31mA
3,4
Receive Data in SPP Link, master
3,4
Active HV3 SCO Audio Link22mA
3
Scanning, no active link, TL disabled
3,5
3,5
1.Power supply requirements based on Class II output power.
2.VCC = 3.3V, IOVCC = 3.3V, Ambient Temperature = +25°C.
3.Average values.
4.Based on UART Baudrate 115.2kbit/s.
5.TL: Transport Layer
1
2
MaxUnit
23mA
18mA
8mA
2.5mA
0.15mA
6.2 DC CHARACTERISTICS
T able 13. Digital DC Charact eristics
SymbolParameterConditionMinMaxUnits
1
VCC
IOVCC
V
IH
V
IL
V
HYSHysteresis Loop Width
I
OH
I
OL
I
OHW
I
IH
I
IL
I
L
I
O(Off)
Core Logic Supply Voltage2.853. 6V
2
IO Supply Voltage2.853. 6V
Logical 1 Input Voltag e0.7 x
Initial Carrier Frequency DriftDH1 data packet-25025kHz
DH3 data packet-40040kHz
DH5 data packet-40040kHz
Drift Rate-20020kHz/50µs
t
-TxTransmitter Delay TimeFrom Tx data to antenna4µs
D
Revision 1.011www.national.com
6.0 Electrical Specifications (Continued)
9
1.Frequency ac curacy is dependent on crystal oscill ator chos en. The cry stal must have a cumulativ e accuracy o f <20 pp m
to meet Bluetooth specifications.
2.Not tested in producti on.
3.Frequency ac curacy is dependent on crystal oscill ator chos en. The cry stal must have a c umulative accuracy of <20 pp m
to meet Bluetooth specifications.
Figure 8. TX and RX Pin 50Ω Impedance Characteristics
0.00
-0.50
0.50
m1
1.00
freq(2.400 GHz to 2.500 GHz)
m2
-1.00
2.00
-2.00
Revision 1.013www.national.com
7.0 Functional Description (Continued)
LMX9820A Bluetooth Serial Port Module
Figure 9. Transceiver Return Loss
7.0 Functional Description
7.1 BASEBAND AND LINK MANAGEMENT
PROCESSORS
Baseband and Lower Link control functions are implemented using a combination of National Semiconductor’s
CompactRISC 16-bit processor and the Bluetooth Lower
Link Controller. These processors operate from integrated
Flash memory and RAM and execute on-board firmware
implementing all Bl uetooth functions.
7.1.1 Bluetooth Lower Link Controller
The integrated Bluetooth Lower Link Controller (LLC) complies with the Bluetooth Specification version 1.1 and
implements the f oll owing functions:
• Support for 1, 3, and 5 slot packet types
• 79-channel hop frequency generation circuitry
• Fast frequency hopping at 1600 hops per second
• Power management control
• Access code corr elation and slot timing recovery
7.1.2 Bluetooth Upper Layer Stack
The integrated upper layer stack is prequalified and
includes the following protocol layers:
• L2CAP
• RFComm
• SDP
7.1.3 Profile Support
The on-chip applicati on of th e LMX982 0A all ows ful l standalone operation, without any Bluetooth protocol layer necessary outside the module. It supports the Generic Access
Profile (GAP), the Service Discovery Application Profile
(SDAP), and the Serial Port Profile (SPP) .
The on-chip prof il es can be used as inter faces to additional
profiles executed on the host. The LMX9820A includes a
configurable service database to answer requests with the
profiles suppo rted.
7.1.4 Application with Command Int erface
The module supports automatic slave operation eliminating
the need for an external control unit. The implemented
transparent option enables the chip to handle incoming
data raw, without the need for packaging in a special format. The device uses a fixed pin to block unallowed connections.
Acting as master, the application offers a simple but versatile command interface for standard Bluetooth operations
such as inquiry, service discovery, and serial port connection. The firmware supports up to three slaves. Default L ink
Policy settings and a specific master mode allow optimized
configuration for the application specific requirements. See
also Section "Integrated Firmware" on page 24.
www.nationa l.c om14R ev is io n 1.0
7.0 Functional Description (Continued)
LMX9820A Bluetooth Serial Port Module
7.2 MEMORY
The LMX9820A includes 256KB of programmable Flash
memory that can be used for code and constant data. It
allows single-cycle read access from the CPU. In addition
to storing all algorithms and firmware, the on-board Flash
also contains the IEEE 802 compliant Media Access Controller (MAC) address (BDADDR). The firmware and the
BDADDR are programmed by National Semiconductor or
can be programmed by the customer either before assembly into the host system or in-system. Module firmware can
also be updated during manufacturing or in-system using
the ISP capabilities of the LMX9820A. The LMX9820A
firmware uses the internal RAM for buffers and program
variables.
7.3 CONTROL AND TRANSPORT PORT
The LMX9820A provides one Universal Asynchronous
Receiver Transmitter (UART). It support s 8-bit data format s
with or without parity and one or two stop bits. The baud
rate is generated by hardware that is programmed at boot
time. Alternatively, the speed and configuration settings
can be read out of internal memory settings. The UART
can operate at baud rates of 2.4k, 4.8k, 7.2k, 9.6k, 19.2k,
38.4k, 57.6k, 115.2k, 230.4k, 460.8k and 921.6k. It imple-
ments flow control logic (RTS, CTS) to provide hardware
handshaking capability. The UART offers wakeup from the
low-power modes through the multi-input wakeup module.
UART logic thresholds are set via the IOVCC pin.
7.4 AUXILIARY PORTS
7.4.1 Reset_5100 and Reset_b#
Reset_5100 and Reset_b# are active low reset inputs for
the baseband controller and digital smart radio portions of
the LMX9820A, respectively. These pins are normally tied
together and are connected to the host system so that the
host can initialize the LMX9820A by asserting the reset
inputs. Upon de- assertion, the stat us of the module operating environment (Env) pads are sampled and the
LMX9820A enters the corr esponding operational mode.
7.4.2 Operating Environm ent Pads (Env0 and Env1)
The module provides two operating environments (see
Table 17) selected by the states on the Env inputs sampled
at reset.
The ISP mode allows end-of-line or field programming of
the LMX9820A Flash memory by starting the baseband
controller from the boot block of memory.
7.4.3 Interface Select Inputs (ISEL1, ISEL2)
The interface selection pads are used for setting the UART
speed and settings. If ISEL1 and ISEL2 are unconnected,
they are pulled high by weak internal pullups, which select
a default baudrate of 921.6k baud. The settings for Stopbits, Startbit, and Parity are stored as internal non-volatile
storage (NVS) parameters. If a baud rate different from the
values listed in Table 18 is needed, ISEL 1 and ISEL2 must
be pulled low. This forces the device to read the UART
speed from the parameter table in NVS. The default baud
rate value programmed in NVS is 9.6k baud, however the
device firmware can be modified to support other values.
The default configur ation i n NVS is 1 St opbit, 1 S t art bit, and
No parity. Table 18 shows the ISEL1 and ISEL2 selection
settings.
T able 18. UART Speed Selection
ISEL1
(Pad J13)
11921.6kFr om NV S
01115.2kFr om NV S
109.6k1Stop, 1Start,
00Check NVSFrom NVS
7.4.4 Module and LInk Status Outputs
The LMX9820A provides signals that the host can use to
determine the real-time status of the radio link. The
TX_Switch_P signal (pad H3) is a real-time indication of
the current configuration (direction) of the transceiver. The
link status lines (Lstat_0 and Lstat_1, pads E8 and F8,
respectively) are GPIO lines controlled by the LMX9820A
firmware. The Host Wakeup line (Host_wu, pad F9) is
implemented using GPIO and firmware. It is used to bring
the host processor out of Sleep mode when link activity
calls for host processing. Host_wu can also be used by the
host to check if link activity is present. If Host_wu is active,
then link activity is present and the host loses network
awareness if the operating system continues to allow the
host processor to enter Sleep mode. Table 19 presents the
definitions of t he various module and link status outputs.
T able 19. Module/Link Status Defini ti ons
ISEL2
(Pad H13)
Interface
Speed (baud)
UART
Settings
No Parity
T able 17. Operating Environments
Operating Environment
ISP Mode10
Run (Normal) Mode (De-
fault)
Revision 1.015www.national.com
Env1
(Pad B11)
11
Env0
(Pad E9)
Lstat_0
x1xxAt least 1 SPP link es-
x0xxNo active SPP link
xx1xTransceiver = Transmit
xx0xTransceiver = Receive
xxx0Host can Sleep
xxx1Wakeup host/host
Lstat_1
(Pad E8)
(Pad F8)
(Pad H3)
TX_Switch_P
(Pad F9)
Host_wu
tablished
should not Sleep
Mode
7.0 Functional Description (Continued)
7.5 AUDIO PORT
Advanced Audio Interface
The Advanced Audio Interface (AAI) is an advanced version of the Synchronous Serial Interface (SSI) that provides a full-duplex communications port to a variety of
industry-standard 13/14/15/16-bit linear or 8-bit log PCM
codecs, DSPs, and other serial audio devices.
T able 20. Audio Path Configurati on
Audio PathFormatAAI Bit ClockAAI Frame Clock
Motorola MC145483
OKI MSM7717
1.Due to internal clock di vider limitation s, the optimum of 512 kHz, 8 kHz cannot be reached. The values are set to the
LMX9820A Bluetooth Serial Port Module
best possible values. The clock mismatch does not result in any discernible loss in audio qualit y.
1
13-bit linear480 kHz8 kHz13 bits
8-bit log PCM
(A-law only)
The LMX9820A allows the support for one codec. The
firmware selects the desired audio path and interface configuration by a parameter stored in NVS. The audio path
options include the Motorola MC145483 codec, the OKI
MSM7717 codec through the AAI, or no audio.
Table 20 summari zes the audio path se lection and the configuration of the audio interface at the specific mode.
AAI Frame Sync
Pulse Length
120 kHz8 kHz14 bits
www.nationa l.c om16R ev is io n 1.0
8.0 Digital Smart Radio (Continued)
LMX9820A Bluetooth Serial Port Module
8.0 Digital Smart Radio
8.1 FUNCTIONAL DESCRIPTION
The integrated Digital Smart Radio uses a heterodyne receiver architecture with a low intermediate frequency (2
MHz), such that t he int ermedi ate frequ ency filte rs can be i ntegrated on-chip. The receiver consists of a low-noise amplifier (LNA) followed by two mixers. The intermediate
frequency signal processing blocks consist of a poly-phase
bandpass filter (BPF), two hard limiters (LIM), a frequency
discriminator (DET), and a post-detection filter (PDF). The
received signal level is detected by a received signal
strength indicator (RSSI).
The received frequency equals the local oscillator frequency (fLO) plus the inter m ediate frequency (fIF) :
fRF = fLO + fIF (supradyne).
The radio includes a synthesizer consisting of a phase de-
tector, a charge pump, an (off-chip) loop filter, an RF frequency divider, and a voltage- controlled oscillator (VCO).
The transmitter uses IQ-modulation with bit-stream data
that is gaussian filtered. Other blocks included in the transmitter are a VCO buffer and a power ampli fier (PA).
8.2 RECEIVER FRONT END
The receiver front end consists of a low-noise amplifier
(LNA) followed by t wo mixers an d two low-p ass fil ters for th e
I- and Q-channels.
The intermediate frequency (IF) part of the receiver front
end consists of two IF amplifiers that receive input signals
from the mixers, delivering balanced I- and Q-signals to the
poly-phase bandpass filter. The poly-phase bandpass filter
is directly followed by two hard limiters that together generate an AD-converted RSSI signal.
8.2.1 Poly-Phase Bandpass Filt er
The purpose of the IF bandpass filter is to reject noise and
spurious (mainly adjacent channel) interference that would
otherwise enter the hard-limiting stage. In addition, it handles image reject ion.
The bandpass f il ter uses both the I- and Q-signals from the
mixers. The out-of-band suppression should be higher than
40 dB (f < 1 MHz, f > 3 MHz). The bandpass filter is tuned
over process spread and temperature variations by the autotuner circuitry. A 5th-order Butterworth filter is used.
8.2.2 Hard Limiter and RSSI
The I- and Q-outputs of the bandpass filter are each followed by a hard-limiter. The hard-limiter has its own reference current. The RSSI (Received Signal Strength
Indicator) repor ts the level of the RF input signal .
The RSSI is generated by piece-wise linear approximation
of the level of the RF signal. The RSSI has a mV/dB scale,
and an analog-to-digital converter for processing by the
baseband circui t. T he input RF po wer is convert ed to a 5-bit
value. The RSSI value i s then pr opor tion al to the i nput power (in dBm).
The digital output from the ADC is sampled on the BPKTCTL signal low-to-high tr ansition.
8.3 RECEIVER BACK END
The hard limiters are followed by two frequenc y discriminators. The I-frequency discriminator uses the 90
shifted signal from the Q-path, while the Q-discriminator
uses the 90
phase bandpass filter performs the required phase shifting.
The output signals of the I- and Q-discriminator are subtracted and filtered by a low-pass filter. An equalizer is added to improve the eye-p attern for 101010 patterns.
After equalizat ion, a dynamic AFC (automatic frequ ency offset compensation) circuit and slicer extract the RX_DATA
from the analog data patt ern. The Eb/No of the demodulat or
is approximately 17 dB.
8.3.1 Frequency Discri minator
The frequency discriminator gets its input signals from the
limiter. A defined signal level (independent of the power
supply volt age) i s needed t o obt ain the inp ut sig nal. Bot h inputs of the frequency discriminator have limiting circuits to
optimize performance. The bandpass filter in the frequency
discriminator is tuned by the autotuning circuitry.
8.3.2 Post-Detection Fi lt er and Equalizer
The output signals of the FM discriminator go through a
post-detection filter followed by an equalizer. Bo th the postdetection filter and equalizer are tuned to the proper frequency by the autotuning circuitry. The post-detection filter
is a low-p ass filter int ended to suppress all remaining spurious signals, suc h as the second harmoni c (4 MHz ) from the
FM detector and noise generated after the limiter.
The post-detection filter also helps for attenuating the first
adjacent channel signal. The equalizer improves the eyeopening for 101010 patterns. The post-detection filter is a
third-order Butterworth filter.
o
phase-shifted signal from the I-path. A poly-
o
phase-
8.4 AUTOTUNING CIRCUITRY
The autotuning circuitry is used for tuning the bandpass filter, detector , post-detection filter , equalizer, and transm it filters for process and temperature variations. The circuitry
includes offset compensation for the FM detector.
8.5 SYNTHESIZER
The synthesizer consists of a phase-frequency detector, a
charge pump, a low-pass loop filter, a programmable frequency divider, a voltage-controlled osci ll ator (VCO), a delta-sigma modulator, and a lookup table.
The frequency divider consists of a divide-by-2 circuit (divides the 5 GHz signal from the VCO down to 2.5 GHz), a
divide-by-8-or-9 divider, and a digital modulus control. The
delta-sigma modulator controls the division ratio and also
generates an input channel value to the lookup table.
8.5.1 Phase-Frequency Det ector
The phase-frequency detector is a 5-state phase-detector.
It responds only to transitions, hence phase-error is inde-
Revision 1.017www.national.com
8.0 Digital Smart Radio (Continued)
pendent of input waveform duty cycle or amplitude variations. Loop lockup occurs when all the negative transitions
on the inputs, F_REF and F_MOD, coincide. Both outputs
(i.e., Up and Down) then remain high. This is equal to the
zero error mode. The phase-frequency detector input frequency range operates at 12 MHz.
8.6 TRANSMITTER CIRCUITRY
The transmitter consists of ROM tables, two Digital to Analog (DA) converters, two low-pass filters, IQ mixers, and a
power amplifier (PA).
The ROM tables generate a digital IQ signal based on the
transmit dat a. The output of the ROM tables is insert ed into
IQ-DA converters and filtered through two low-pass filters.
The two signal component s are mixed up to 2.5 GHz by the
TX mixers and added together before being inserted into
the trans m it PA.
LMX9820A Bluetooth Serial Port Module
8.6.1 IQ-DA Converters and TX Mixers
The ROM output signals drive an I- and Q-DA converter.
Two But terwor th low-p ass f ilter s fil ter t he DA output signal s.
The 6 MHz clock for the DA converter s and the logi c circ uitry around the ROM tables are derived from the autotuner.
The TX mixers mix the balanced I- and Q -signals up to 2.4-
2.5 GHz. The output signals of the I- and Q-mixers are
summed.
8.7 CRYSTAL REQUIREMENTS
The LMX9820A includes a crystal driver circuit. This circuit
operates with an external crystal and capacitors to form an
oscillator. Figure 10 shows the recommended crystal ci rcuit.
Table 24 on page 22 specifies system clock req uir em ents.
The RF local oscillator and internal digital clocks for the
LMX9820A are derived from the reference clock at the
CLK+ input. This reference may either come from an external clock or a dedicated crystal oscillator. The crystal oscillator connections require a crystal and two grounded
capacitors.
onant frequency may be trimmed with the crystal load
capacitance.
1. Load Capacit ance
For resonance at the correct frequency, the crystal should
be loaded with its specified load capacitance, which is the
value of capacitance used in conjunction with the crystal
unit. Load capacitance is a parameter specified by the
crystal, typically expressed in pF. The crystal circuit shown
in Figure 11 on page 19 is composed of:
— C1 (motional capacitance)
— R1 (motional resistance)
— L1 (motional inductance)
— C0 (static or shunt capacitance)
The LMX9820A provides some of the load with internal
capacitors C
nal capacitors and tuning capacitors labeled Ct1 and Ct2
. The remainder must come from the exter-
int
as shown in Figure 10. Ct1 and Ct2 should have the same
the value for best noise performance.
The LMX9820A has an additional internal capacitance
C
of 2.6 pF. Crystal load capacitance (CL) is calculated
TUNE
as:
C
= C
+ C
L
int
The C
capacitance C
above does not include the crystal internal self-
L
total capacitance is:
C
= CL + C
total
+ Ct1/Ct2
TUNE
as shown in Figure 11 on page 19, so the
0
0
Based on the crystal specification and equati on:
= C
C
C
+ C
L
int
= 8pF + 2.6pF + 6pF = 16.6pF
L
TUNE
+ Ct1//Ct2
16.6 pF is very close to the TEW crystal requirement of 16
pF load capacitance. With the internal shunt capacitance
C
:
total
= 16.6pF + 5pF = 21.6pF
C
total
LMX9820A
CLK+CLK-
C
int
It is important to consider board- and design-dependent
capacitance in tuning the crystal circuit. The following
C
TUNE
equations allow a close approximation of th e required crystal tuning capacitance, but the actual values will vary with
the capacitive properties of the board. As a result, there is
some fine tuning of the crystal circuit which cannot be calculated, but must be determined experimentally by testing
differen t val ues of load capacit ance.
Many different crystals can be used with the LMX9820A. A
Ct1
Crystal
Ct2
key requirement from the Bluetooth specification is 20
ppm. Additionally, ESR (Equivalent Series Resistance)
must be carefully considered. LMX9820A can support a
maximum of 230Ω ESR, but it is recommended to stay <
100Ω ESR for best performance over v oltage and temper a-
Figure 10. LMX9820A Crystal Recommended
Circuit
ture. See Figure 14 on page 22 for ESR as part of the crystal circu it fo r more in fo rmation .
8.7.1 Crystal
The crystal appears inductive near its resonant frequency.
It forms a resonant circuit with its load capacitors. The res-
www.nationa l.c om18R ev is io n 1.0
8.0 Digital Smart Radio (Continued)
LMX9820A Bluetooth Serial Port Module
R1C1L1
C0
Figure 11. Crystal Equivalent Circuit
2. Crystal Pullability
Pullability is another important parameter for a crystal,
which is the change in frequency of a crystal with units of
ppm/pF, either from the natural resonant frequency to a
load resonant frequency or from one load resonant frequency to another. The frequency can be pulled in a parallel resonant circuit by changing the value of load
capacitance. A decrease in load capacitance causes an
increase in frequency, and an increase in load capacitance
causes a decrease in fr equency .
3. Frequency Tuning
Frequency tuning is achieved by adjusting the crystal load
capacitance with external capacitors. It is a Bluetooth
requirement that the frequency is always within 20 ppm.
The crystal network or oscillator must have cumulative
accuracy specifications of 15 ppm to provide margin for
frequency drift wi th agi ng and temperature.
Revision 1.019www.national.com
8.0 Digital Smart Radio (Continued)
TEW Crystal
The LMX9820A has been tested with the TEW TAS-4025A
crystal, see Table 21 on page 20 for specification.
Because the internal capacitance of the crystal circuit is 8
pF and the load capacitanc e is 16 pF, 12 pF is a good starting point for both Ct1 and Ct2. The 2480 MHz RF frequency offset is then tested. Figure 12 on page 21 shows
the RF frequency of fset test results.
Figure 12 on page 21 shows the results are -20 kHz off the
center frequency, which is -1 ppm. The pullability of the
crystal is 2 ppm/pF, so the load capacitance must be
decreased by about 1.0 pF. By changing Ct1 or Ct2 to
10 pF, the total load capacitance is decreased by 1.0 pF.
Figure 13 on page 21 shows the frequency offset test
resuts. The frequency offset is now zero with Ct1 = 10 pF,
Ct2 = 10 pF.
Reference Table 22 on page 20 for crystal tuning values
used on Austin Development Board with TEW crystal.
LMX9820A Bluetooth Serial Port Module
T able 21. TEW TAS-4025A
SpecificationValue
Package4.0 x 2.5 x 0.65 mm (4 pads)
Frequency12.000 MHz
ModeFundamental
St ability>15 ppm @ -40 to +85°C
C
Load Capacitance16 pF
L
ESR80Ω max.
C
Shunt Capacitanc e5 pF
0
Drive Level50 ±10uV
Pullabilit y2 ppm/pF min
St orage Temperature-40 to +85°C
Table 22. TEW on Arizona Board
ReferenceLMX9820A
Ct110 pF
Ct210 pF
www.nationa l.c om20R ev is io n 1.0
8.0 Digital Smart Radio (Continued)
Figure 12. Frequency Offset with 12 pF/12 pF Capacitors
LMX9820A Bluetooth Serial Port Module
Figure 13. Frequency Offset with 10 pF/10 pF Capacitors
8.7.2 TCXO (Temperature Compensated Crystal
Oscillator)
The LMX9820A also can operate with an external TCXO
(Temperature Compensated Crystal Oscillator). The TCXO
signal is direct ly connected to the CLK+, shown in Table 23
on page 21.
1. Input Imp edance
The LMX9820A CLK+ pin has in input impedance of 2 pF
capacitance in parallel with >400kΩ resistance.
2. NKG3184A TCXO
The LMX9820A has also been tested with the NKG3184A
TCXO. See Table 23 on page 21.
T able 23. TCXO NKG3184A
SpecificationValue
Package5.0 x 3.2 x 1.4 mm (4 pads)
Frequency12.000 MHz
Stability18 ppm at -30 to +85°C
(inclusive of all conditions)
Output Load 10kΩ/13 pF
Current Consumption2.0 mA
Output Level0.3Vp-p to 2.0Vp-p
Storage Temperature-40 to +85°C
DC Cut CapacitorIncluded in VC-TCXO
Revision 1.021www.national.com
8.0 Digital Smart Radio (Continued)
8.7.3 ESR (Equivalent Series Resistance)
LMX9820A can operate with a wide range of crystals with
different ESR ratings. Reference Table 24 on page 22 and
Figure 14 on page 22 for more details.
Ta ble 24. System Clock Requireme nts
ParameterMinTypMaxUnit
External Reference Clock Frequency12 MHzMHz
Frequency Tolerance (over full operating temperature and aging)1520ppm
Crystal Serial Resistanc e230Ω
External Reference Clock Power Swing, pk to pk100200400mV
Aging1ppm
LMX9820A Bluetooth Serial Port Module
per
year
Figure 14. ESR vs. Load Capacitance for the Crystal
www.nationa l.c om22R ev is io n 1.0
9.0 System Power-Up Sequence (Continued)
LMX9820A Bluetooth Serial Port Module
9.0 System Power-Up Sequence
The following sequence must be performed to correctly
power-up the LMX9820A:
1. Apply IOVCC and VCC to the LMX9820A.
VCC
IOVCC
Reset_b#
Reset_5100
BBP_CLOCK
TX_RX_DATA
TX_RX_SYNC
CCB_DATA
CCB_CLOCK
Low
t
PTOR
Low
High
Low
Low
Low
2. Reset_b# and Reset_5100# of the LMX9820A are d riven
high a minimum of 2 ms after the LMX9820A voltage
rails are high. The LMX9820A i s the properly reset.
See Table 25 on page 23.
CCB_LATCH
High
LMX9820A
Oscillator
Start-Up
Power-Up Mode
LMX9820A in
LMX9820A
Initialization
StandbyActive
LMX9820A
Initialization
LMX9820A in Normal Mode
Figure 15. LMX9820A System Power-Up Sequence Timing
Table 25. LMX9820A System Power-up Sequence Timing
SymbolParameterConditionMinTypMaxUnit
t
PTOR
Power to Reset VCC and IO
at operating
VCC
2ms
voltage le ve l to va li d res e t
Revision 1.023www.national.com
10.0 Integrated Firmware (Continued)
10.0 Integrated Firmwar e
The LMX9820A includes the full Bluetooth protocol stack
up to RFComm to support the following profiles:
— GAP (Generic Access Profile)
— SDAP (Service Discovery Application Profile)
— SPP (Serial Port Profile)
Figure 16 shows the Bluetooth protocol stack with com-
mand interpreter interface. The command interpreter offers
a number of different commands to support the functionality given by the different profiles. Execution and interface
timing is handled by the control application.
The chip has an internal data area in Flash that includes
the parameters shown in Table 26 on page 25.
LMX9820A Bluetooth Serial Port Module
Command Interpreter
Control Application
SPP
RFComm
L2CAP
Link Manager
Baseband
Figure 16. LMX9820A Software Implementation
10.1 FEATURES
10.1.1 Operation Modes
On boot-up, the application configures the module following the parameter s in the data area.
Automatic Mode
No Default Connections Stor ed
In Automatic mode the module is connectable and discoverable and automatically answers to service requests. The
command interpreter listens to commands and links can be
set up. The full command list is supported.
If connected by another device, the module sends an event
back to the host, where the RFComm port has been connected, and switch es to t ransparent mode.
Default Connections Stored
If default connections were stored on a previous session,
after th e LM X982 0A is res et, it w ill at temp t to reconnect to
each device stored within the data Flash three times. The
host will be notified about the success of the link setup via
a link status event.
Command Mode
In Command mode, the LMX9820A does not check the
default connections section within the Data Flash. If con-
SDAP
GAP
SDP
nected by another device, it will not switch to transparent
mode and continue to interpret data sent on the UART.
Transparent Mode
The LMX9820A supports transparent data communication
from the UART interface to a Bluetooth link.
If activated, the module does not interpret the commands
on the UART which normally are used to configure and
control the module. In this case, the packets do not need to
be formatted as described in Table 28 on page 27. Instead,
all data are directly passed through the firmware to the
active Bluetooth link and the remote device.
Transparent mode can only be supported on a point-topoint connection. To leave Transparent mode, the host
must send a UART_BREAK signal to the mod ule
Force Master Mode
In Force Master mode, the LMX9820A tries to act like an
Access point for multiple connections. In this mode, it will
only accept a link if a master/slave role switch is accepted
by the connecting device. After successful link establishment, the LMX9820A will be master and available for additional incoming links. On the first incoming link the
LMX9820A may switch to transparent mode, depending on
the setting for automatic or command mode. Additional
links will o nly be p ossib le if the d evice is not in tran spare nt
mode.
10.1.2 Default Connections
The LMX9820A supports the st orage of up to 3 default connections within its NVS. Those connections can either be
connected after reset or on demand using a specific command.
10.1.3 Event Filter
The LMX9820A uses events or indicators to notify the host
about successful commands or changes on the Bluetooth
interface. Depending on the application, the LMX9820A
can be configured. The fol lowing levels are define d:
• No Events—the LMX9820A is not reporting any eve nts.
Optimized for pas sive cable replacement solutions.
• Standard LMX9820A Events—only necessary events
will be reported.
• All Events—additional to the st andard all changes at the
physical layer wil l be r eported.
10.1.4 Default Link Policy
Each Bluetooth link can be configured to support master/slave role switch, Hold mode, Sniff mode, and Park
mode. The default link policy defines the standard setting
for incoming and outgoing connections.
10.1.5 Audio Support
The LMX9820A offers commands to establish and release
synchronous connections (SCO) to support Headset or
Handsfree applications. The firmware supports one active
link with all available package types (HV1, HV2, HV3), for
routing audio data between the Bluetooth link and the
advanced audio interface. To provide the analog data interface, an external audio codec is required. The LMX9820A
includes a list of codecs which can be used.
www.nationa l.c om24R ev is io n 1.0
10.0 Integrated Firmware (Continued)
T able 26. Operation Param eters Stored in LMX9820A
ParameterDefault ValueDescription
BDADDR(Hardcoded into device)Bluetooth device address
Local NameSerial port device
PinCode0000Bluetooth PinCode
Operation ModeAutomaticCommand or Automatic mode
Default Connections0Up to three default devi ces to connect on default
SDP Database1 SPP entry:
UART Speed9600Sets the s peed of the physica l UART in terfa ce to t he
UART Settings1 Stop bit, parity disabledPar ity and stop bits on the hardware UART interface
Ports to Open0000 0001Defines the RFComm ports to open
Link KeysNo link keysLink keys for paired devices
Security Mode2Security mode
Page Scan ModeConnectableConnectable/Not connectable for othe r devi ces
Inquiry Scan ModeDiscoverableDiscoverable/Not Discove rable/Limited Discoverable
Default Link PolicyAll modes allowedConfigures modes allowed for incoming or outgoin g
Default Link Timeout20 secondsThe Default Link Timeout configures the timeout, af-
Event FilterStandard LMX9820A events reportedDefines the level of reporting on the UART
Default Audio Settings
Name: COM1
Authentication and encryption enabled
NoneConfigures the settings for the external codec and
Service disco very database, control for supported
profiles
host
for other devices
connections (master/slave role switch, Hold mode,
Sniff mode, Park mode)
ter which the link i s assume d lost, if no packages
have been received from the remote device.
- No event s
- Standard events
- Standard including ACL link events
the air interfa ce for m at.
• Codecs:
— Motorola MC145483
— OKI MSM7717
LMX9820A Bluetooth Serial Port Module
• Air format:
— CVSD
— µ-Law
—A-Law
Revision 1.025www.national.com
11.0 Power Reduction (Continued)
11.0 Power Reduction
The LMX9820A supports several low-power modes to
reduce power in di fferent operati ng situations. The modular
structure of the LMX9820A allows the firmware to power
down unused modules.
The low-power modes have influence on:
• UART transport l ayer—enables or disables the in ter-
face.
• Bluetooth Baseband activity—firmware disables LLC
and radio, if possible.
11.1 LOW POWER MODES
The following LMX9820A power modes, which depend on
the activity level of the UART transport layer and the radio
activity, are defined:
LMX9820A Bluetooth Serial Port Module
The activity of the Bluetoot h radio mainly depen ds on application requirements and is controlled by standard Bluetooth operations such as inquiry/page scanning or an
active link. A r em ote device establishing or disconnecting a
link may also indirectly change the activity level of the
radio.
The UART transport layer by default is enabled on device
power up. The “Disable Transport Layer” command is used
to disable the transport layer. Therefore, only the host-side
command interface can disable the transport layer.
Enabling the transport layer is controlled by the hardware
wake-up signalling. This can be initiated from either the
host or an LMX9820A input. See also “LMX9820A Software Users Guide” for detailed information on timing and
implementati on requirements.
In some circumstances, the host may switch off the transport layer of the LMX9820A to reduce power consumption.
The host and LMX9820A then may shut down their UART
interfaces.
To simplify the system design, the UART interface is configured for hardware wake-up functionality. For a detailed
timing and command functionality, see the “LMX9820A
Software Users Gui de”.
The interface between the host and LMX9820A i s shown in
Figure 17.
Clock
LMX9820A
RTS#
CTS#
TX
RX
Host_WU
RTS#
CTS#
TX
RX
GPIO
(optional)
Host
Figure 17. UART Null Modem Connections
11.2.2 Disabling the UART Transport Layer
The host can disable the UART transport layer by sending
the “Disable Transport Layer” Command. The LMX9820A
will empty its buffers, send the confirmation event, and disable its UART interface. The UART interface will then be
reconfigured to wake up the LMX9820A on a falling edge of
the CTS pin.
11.2.3 LMX9820A Enabling the UART Interface
Because the transport layer can be disabled in any situation, the LMX9820A must verify that the transport layer is
enabled before sending data to the host. Possible situations in which the LMX9820A will need to re-enable the
interface include incoming data or incoming link indicators.
If the UART is not enabled, the LMX9820A must assume
that the host is in a low-power mode and initiate a wake-up
event by asserting RTS and setting HOST_WU to 1. To be
able to respond to the wake-up event, the host must monitor its CTS input (i.e. the LMX9820A RTS output).
As soon as the host activates its RTS output (i.e. the
LMX9820A CTS inpu t) , the LMX9820A wil l first send a c onfirmation even t and th en start to transmit the events.
11.2.4 Enabling the UART Transport Layer fr om Host
If the host needs to send data or commands to the
LMX9820A while the UART transport layer is disabled, it
must first assume that the LMX9820A is sleeping and wake
it up by asserting the host RTS output (i.e. the LMX9820A
CTS input).
When the LMX9820A detects the wake-up signal, it
enables the UART and acknowledges the wake-up signal
by asserting its RTS output and HOST_WU signal. Additionally, the wake-up event will be acknowledged by sending a confirmation event. When the host has received this
“Transport Layer Enabled” event, it knows the LMX9820A
is ready to receive commands.
www.nationa l.c om26R ev is io n 1.0
12.0 Command Interface (Continued)
LMX9820A Bluetooth Serial Port Module
12.0 Command Interfac e
The LMX9820A offers Bluetooth functionality through
either a self-contained slave functionality or a simple command interface. The interface is carried over the UART
interface.
The following sections describe the protocol on the UART
interface between the LMX9820A and the host in command mode (see Figure 18). In Transparent mode, no data
framing is necessary and the device does not interpret data
carried over the interface as commands.
12.1 FR AMING
The connection is considered “Error free”. But for packet
recognition and synchronization, some framing is used.
All packet s sent in both directions are constructed followin g
the model shown in Table 28.
12.1.1 Start and End Delimiters
The “STX” character is used as the start delimiter: STX =
0x02. ETX = 0x03 is used as the end delimiter.
LMX9820A
12.1.2 Packet Type ID
This byte identifies the type of packet. See Table 29 for
details.
12.1.3 Opcode
The opcode identifies the command to execute. The
opcode values can be found within the “LMX9820A Software User’s Guide” included with the LMX9820A Evaluation Board.
12.1.4 Data Length
Number of bytes in the Packet Data field. The maximum
size is 333 data byt es per packet.
12.1.5 Checksum
This is a simple Block Check Character (BCC) checksum
of the bytes “Packet type”, “Opcode”, and “Data Length”.
The BCC checksum is calculated as low byte of the sum of
all bytes (e.g., if the sum of all bytes is 0x3724, the checksum is 0x24).
A request sent to the Blueto oth module.
All requests are answered by exactly one confirm.
The Bluetooth modules confirm to a request.
All requests are answered by exactly one confirm.
Information sent from the Bluetooth module that is not a direct confirm to a request.
Indicating status changes, incoming links, or unrequested events.
An optional response to an in dication.
This is used to respond to some type of indication message.
End
Delimiter
Revision 1.027www.national.com
12.0 Command Interface (Continued)
12.2 COMMAND SET OVERVIEW
The LMX9820A has a well-defined command set to:
• Configure the devi ce:
– Hardware settin gs
– Local Bluetooth parameters
– Service database
• Set up and handle links
T able 30. Device Discovery Commands
CommandEventDescription
InquiryInquiry CompleteSearch for devices
Device FoundLists BDADDR and class of device
Remote Device NameRemote Device Name ConfirmGet name of remote device
Tables 30 through 40 show the actual command set and
the events coming back from the device. A fully documented description of the commands can be found in the
“LMX9820A Software Users G uide”.
Note: For standard Bluetooth operation, only commands
from Table 30 through Table 32 are used. Most of the
remaining commands are onl y for configuration pur poses.
LMX9820A Bluetooth Serial Port Module
Ta ble 31. SDAP Client Commands
CommandEventDescription
SDAP ConnectSDAP Connect ConfirmCreate an SDP connection to remote device
SDAP DisconnectSDAP Disconnect ConfirmDisco nnect an active SDAP link
Connection LostNotification for lost SDAP link
SDAP Service BrowseService Browse ConfirmGet the services of the remote device
SDAP Service SearchSDAP Service Search ConfirmSearch a specific ser vice on a remote device
SDAP Attribute RequestSDAP Attribute Request ConfirmSearches for services with specific attributes
Table 32. SPP Link Commands
CommandEventDescription
Establish SPP LinkEstablishing SPP Link ConfirmInitiates link establ ishment to a remote device
Link EstablishedLink successfu ll y established
Incoming LinkA remote device established a link to the local
device
Set Link TimeoutSet Link Timeout ConfirmConfirms the supervision tim eout for the ex-
Get Link TimeoutGet Link Timeout ConfirmGet the supervision timeout for the existing
Release SPP LinkRelease SPP Link ConfirmInitiate release of SPP link
SPP Send DataSPP Send Data ConfirmSend data to specific SPP port
Incoming DataIncoming data from remote device
Transparent ModeTransparent Mode ConfirmSwitch to transparent mode on the UART
T able 33. Default Connection Commands
CommandEventDescription
Connect Default Connecti onConnect Default Connection Confi rmConnects to either one or all st ored default
Store Default ConnectionStore Default Connection ConfirmStore device as default connection
Get List of Default Connections
Delete Default Connect ionsDelete Default Connections Confirm
List of Default Devices
isting link
link
connections
www.nationa l.c om28R ev is io n 1.0
12.0 Command Interface (Continued)
T able 34. Power Mode Commands
CommandEventDescription
Set Default Link PolicySet Default Link Policy ConfirmDefines the link policy used for any incoming
or outgoing link.
Get Default Link Polic yGet Default Link Policy ConfirmReturns the stored default link policy
Set Link PolicySet Link Pol icy ConfirmDefines the modes allowed for a specifi c li nk
Get Link PolicyGet Link Policy ConfirmReturns the actual link poli cy for the link
Enter Sniff ModeEnter Sniff Mode Confirm
Exit Sniff ModeExit Sniff Mode Confirm
Enter Park ModeEnter Park Mode Confirm
Enter Hold ModeEnter Hold Mode Confirm
Power Save Mode ChangedRemote device changed the power save
mode on the link
Table 35. Audio Control Commands
CommandEventDescription
Establish SCO LinkEstablish SCO Link ConfirmEstablish SCO link on existing RFComm
link
Release SCO LinkRelease SCO Link ConfirmRelease SCO link
SCO Link Established IndicatorA remote device has established a SCO
link to the local device
SCO Link Released IndicatorSCO link has been released
Change SCO Packet TypeChange SCO Packet Type ConfirmChanges packet type for existing SCO link
SCO Packet Type changed indicatorSCO packet type has been changed
Set Audio SettingsSet Audio Settings Confi rmSet audio settings for existing lin k
Get Audio SettingsGet Audio Settings ConfirmGet audio setting s for existing link
Set VolumeSet Volume ConfirmConfigure the volume
Get VolumeGet Volume ConfirmGet current volume setting
MuteMute Confi rmMutes the microphone input
LMX9820A Bluetooth Serial Port Module
T able 36. Wake Up Function Commands
CommandEventDescription
Disable Transport LayerTransport Layer EnabledDisabling the UART transport la yer and
Revision 1.029www.national.com
activates the hardware wake-up function
12.0 Command Interface (Continued)
T able 37. SPP Port Configuration and Status Commands
CommandEventDescription
Set Port ConfigSet Port Config ConfirmSet port setting for th e “virtua l” ser ial po rt link
over the air
Get Port ConfigGet Port Config ConfirmRead the actual port settings for a “virtual”
Port Config ChangedNotification if port settings were changed
SPP Get Port StatusSPP Get Port Status Confi rmRetur ns status of DTR and RTS (for the ac-
SPP Port Set DTRSPP Port Set DTR ConfirmSets the DTR bit on the specified link
SPP Port Set RTSSPP Port Set RTS ConfirmSets the RTS bit on the specified link
LMX9820A Bluetooth Serial Port Module
SPP Port BREAKSPP Port BREAKIndicates that the host has detected a break
SPP Port Overrun ErrorSPP Port Overrun Error ConfirmUsed to indicate that the host has detect ed an
SPP Port Parity ErrorSPP Port Parity Error ConfirmHost has detected a parity error
SPP Port Framing ErrorSPP Port Framing Error ConfirmHost has detected a framing err or
SPP Port Status ChangedIndicates that remote device has changed
serial port
from remote device
tive RFComm link)
overrun error
one of the port status bi ts
T able 38. Local Settings Commands
CommandEventDescription
Read Local NameRead Local Name ConfirmRead user-f ri endly name of the device
Write Local NameWrite Local Name ConfirmSet the user-friendly name of the device
Read Local BDADDRRead Local BDADDR Confirm
Change Local BDADDRChange Local BDADDR ConfirmNote: Only use if you have your own
BDADDR pool
Store Class of DeviceStore Class of Device Confirm
Set Scan ModeSet Scan Mode ConfirmChange mode for discoverability and
Set Scan Mode IndicationReports end of automatic limited
Get Fixed PinGet Fixed Pin ConfirmReads current PinCode stored within the
Set Fixed PinSet Fixed Pin ConfirmSet the local PinCode
Get Security ModeGet Security Mode ConfirmGet actual Security mode
Set Security ModeSet Security Mode ConfirmConfigure Security mode for local device
Remove PairingRemove Pai ri ng ConfirmRemove pairing with a remote device
List Paired DevicesList of Paired DevicesGet list of paired devices stored in the
Set Default Link TimeoutSet Default Link Timeout ConfirmStore default link supervision timeout
Get Default Link TimeoutGet Default Link Ti me out ConfirmGet stored defaul t link supervision timeout
Force Master RoleForce Master Role ConfirmEnables/Disables the request for master role
connectability
discoverabl e mo de
device
(default 2)
LMX9820A data memory
at incoming connec tions
www.nationa l.c om30R ev is io n 1.0
12.0 Command Interface (Continued)
T able 39. Local Service Database Configurat ion Comma nds
CommandEventDescription
Store SPP RecordStore SPP Record ConfirmCreate a new SPP record within the service
database
Store DUN RecordStore DUN Record ConfirmCreate a new DUN record within the service
database
Store FAX RecordStore FAX Record ConfirmCreate a new FAX record within the service
database
Store OPP RecordStore OPP Record ConfirmCreate a new OPP record within the service
database
Store FTP RecordStore FTP Record ConfirmCreate a new FTP recor d wit hin the service
database
Store IrMCSync RecordStore IrMCSync Record Confi rmCreat e a new IrMCSync record within the ser-
vice database
Enable SDP RecordEnable SDP Record ConfirmEnable or disable SDP records
Delete All SDP RecordsDelete All SDP Records Confir m
Ports to OpenPorts to Open ConfirmedSpecify the RFCom m Ports to open on
startup
LMX9820A Bluetooth Serial Port Module
Table 40. Local Hardware Commands
CommandEventDescription
Set Default Audio SettingsSet Default Audio Settings ConfirmConfigure default settings for audio codec
Get Default Audio SettingsGet Default Audio Settings ConfirmGet stored default audio settings
Set Event FilterSet Event Filter ConfirmConfigures the reporti ng level of the
Get Event FilterGet Event Filter ConfirmGet the status of the reporting level
Read RSSIRead RSSI ConfirmReturns an indicator for the incoming signal
Change UART SettingsChange UART Sett ings ConfirmChange configurati on for parity and stop bits
Test ModeTest Mode ConfirmEnable Bluetooth, EMI test, or local loopback
Restore Factory Setti ngsRestore Factory Settings Confirm
ResetDongle ReadySoft reset
Firmware UpgradeStops the Bluetoo th f ir m wa re and executes
and air format, stored in NVS
command interface
strength
pin setting
the in-system programming code
Revision 1.031www.national.com
13.0 Usage Scenarios (Continued)
13.0 Usage Scenarios
13.1 SCENARIO 1: POINT-TO-POINT
CONNECTION
LMX9820A acts only as slave, no further configuration is
required.
Example: Sensor with LMX9820A; hand-held device with
standard Bluetooth option.
Sensor Device
UART
LMX9820A Bluetooth Serial Port Module
Inquiry Request
Inquiry Response
SDP Link Request
SDP Link Accept
Service Browse
Service Response
The SPP conformance of the LMX9820A allows any device
using the SPP to connect to the LMX9820A.
By switching to transparent mode automatically, the controller has no need for an additional protocol layer; data is
sent raw to the other Bluetooth device.
On default, a PinCode is requested to block unallowed targeting.
Air Interface
Standard Device
with Bluetooth
Search for Devices
Get Remote Services
Connected
on Port L
Microcontroller
No Bluetooth commands necessary,
only “connected” event indicated to controller.
Figure 19. Point-to-Point Connection
Release SDP Link
Release Confirm
SPP Link Request
SPP Link Accept
Transparent Mode
Raw Data
LMX9820A
Establish SPP Link
Link Established
The client software only
shows high level functions.
www.nationa l.c om32R ev is io n 1.0
13.0 Usage Scenarios (Continued)
LMX9820A Bluetooth Serial Port Module
13.2 SCENARIO 2: AUTOMA TIC POINT -TO-POINT
CONNECTION
LMX9820A at both sides.
Example: Serial Cable Repla cement.
Device #1 controls the link setup with a few commands as
described.
Serial Device #1
1. Devices in Range?
Inquiry
Inquiry Result
2. Choose the Device
3. Which COM Port is
available?
Establish SDP Link
SDP Link Established
Service Browse
RFComm Port = R
Inquiry
Inquiry Result
Establish SDP Link
SDP Link Established
Service Browse
Browse Result
If step 5 i s executed, the stored default device is connected
(step 4) after reset (in automatic mode only) or by sending
the “Connect to Default Device” command. The command
can be sent to the device at any ti m e.
If step 6 is left out, the microcontrol ler has to use the “Send
Data” command, instead of sending data directly to the
module.
Serial Device #2
Air
Interface
Inquiry Request
Inquiry Response
SDP Link Request
SDP Link Accept
Service Browse
Service Response
Release SDP Link
SDP Link Released
4. Create SPP Link
Establish SPP Link
to Port R1 on Port L2
Connected on Port L
5. Connect on Default
(Optional)
Store Default Device
Device Stored
6. Switch to
Transparent
Transparent Mode
Microcontroller
Bluetooth device controls link with
a few commands.
Release SDP Link
SDP Link Released
Establish SPP Link
to Port R on Port L
Link Established
Storing Default Device
Device Stored
Transparent Mode
LMX9820A
Raw Data
Release SDP Link
Release Confirm
SPP Link Request
SPP Link Accept
Transparent Mode
LMX9820A
No Bluetooth commands necessary;
only “connected” event indicated to controller.
Connected
on Port R
Microcontroller
1. Port R indicates the remote RFComm channel to connect to. Usually the result of the SDP request.
2. Port L indicates th e Local RFComm channel used for that connection.
Figure 20. Automatic Point-to-Point Connection
Revision 1.033www.national.com
13.0 Usage Scenarios (Continued)
13.3 SCENARIO 3: POINT-TO-MULTIPOINT
CONNECTION
LMX9820A acts as maste r for several slaves.
Example: Two sensors with LMX9820A; one hand-held
master device with LMX9820A.
Serial Devices #2 and #3 establish the link automatically as
soon as they are contacted by another device. No controller interacti on is necessary for setting up the Bluetooth link.
Both switch automatically into transparent mode. The host
sends raw data over the UART.
Serial Device #1
Connect to Device #2
Link Established
Send Data Command
Receive Data Event
LMX9820A Bluetooth Serial Port Module
Connect to Device #2
see Scenario 2see Scenario 2
Link Established
on Port L1
Send Data to Port L1
Data Received
from Port L1
Serial Device #1 is acting as master for both devices. The
host control s which device i s sending data, using the “Send
data” command. If the device receives data from the other
devices, it is packaged into an “Incoming data” event. The
event includes th e device related port number.
If necessary, a link configuration can be stored as default in
the master Serial Device #1 to enable the automati c reconnect after reset, power-up, or by sending the “connect
default connect ion” command.
Air
Interface
Serial Device #2
Connection Request
Automatic Link Setup
Transparent Mode
Raw Data
LMX9820A
Connected
on Port L
Microcontroller
Connect to Device #3Connect to Device #3
see Scenario 2see Scenario 2
Link Established
on Port L2
Send Data to Port L2
Data Received
from Port L2
Microcontroller
Link Established
Send Data Command
Receive Data Event
LMX9820A
Figure 21. Point-to-Multipoint Connection
Serial Device #3
Connection Request
Automatic Link Setup
Transparent Mode
Raw Data
LMX9820A
Connected
on Port L
Microcontroller
www.nationa l.c om34R ev is io n 1.0
14.0 Application Information (Continued)
LMX9820A Bluetooth Serial Port Module
14.0 Application Information
Figure 22 on page 35 represents a typical system schematic for the LMX9820A.
14.1 MATCHING NETWORK
The antenna matching network may or may not be
required, depending upon the impedance of the antenna
chosen. A 6.8 pF blocking capacitor is recommended.
14.2 FILTERED POWER SUPPLY
It is important to provide the LMX9820A with adequate
ground planes and a filtered power supply. It is highly recommended that a 0.1 µF and a 10 pF bypass capacitor be
placed as close as possible to VCC (pad H2) on the
LMX9820A.
14.3 HOST INTERFACE
To set the logic thresholds of the LMX9820A to match the
host system, IOVCC (pad H12) must be connected to the
logic power supply of the host system. It is highly recommended that a 10 pF bypass capacitor be placed as close
as possible to the IOVCC pad on the LMX9820A.
VCC
10 pF0.01 µF
IOVCC
10 pF0.01 µF
ISEL2 (pad H13) and ISEL1 (pad J13) can be strapped to
the host logic 0 and 1 levels to set the host interface bootup configuration. Alternatively both ISEL2 and ISEL1 can
be hardwired over 10kΩ pullup/pulldown resistors.
Env0 (pad E9) and Env1 (pad B11) can be left unconnected (both are pulled high), if no ISP capability is
required. If the ISP environment mode is needed, then
Env0 must be driven to logic low and Reset needs to be
asserted. After de-a sserti on of Reset, the LMX9820A boots
into the mode corresponding to the values present on Env0
and Env1. Alternatively, a firmware upgrade command can
be used.
14.4 CLOCK INPUT
The clock source must be placed as close as possible to
the LMX9820A. The quality of the radio performance is
directly related to the quality of the clock source connected
to the oscillator port on the LMX9820A. Careful attention
must be paid to the crystal/oscillator parameters or radio
performance could be drastically reduced.
14.5 SCHEMATIC AND LAY OUT EXAMPLES
B1 Antenna
Ct1Ct2
Connect to
PCM codec
or leave open
6.8 pF
12 MHz
Y1
H8
B13
B9
B8
B10
B12
C11
C12
H2
RF_inout
32kHz_CLKI
Clk+
Clk-
AAI_srd
AAI_std
AAI_sfs
AAI_sclk
RF GND
H12
Dig_gnd[1:2]
D12, G11
LMX9820A
Uart_rx
Uart_tx
Uart_cts
Uart_rts
Reset_5100
Reset_b
Env0
Env1
ISEL1
ISEL2
J13
H13
Notes:
Capacitor values, Ct1 and Ct2 may vary depending on board design crystal manufacturer specification.
Single ground plane is used for both RF and digit al grounds.
C9
D9
D10
C10
D11
G8
E9
B11
VCC
Connect to system
UART bus.
No HW Flowcontrol:
- CTS GND
- RTS NC
Reference Table
25 on page 23
max
for correct POR
1KΩ
timing.
Reference
Table 17 on
page 15.
Reference
Table 18 on
page 15.
Figure 22. Example System Schematic
Revision 1.035www.national.com
14.0 Application Information (Continued)
LMX9820A Bluetooth Serial Port Module
Figure 23. Component Placement (Layer 1)
www.nationa l.c om36R ev is io n 1.0
14.0 Application Information (Continued)
LMX9820A Bluetooth Serial Port Module
Figure 24. Solid Ground Plane (Layer 2)
Figure 25. Signal Plane (Layer 3)
Revision 1.037www.national.com
14.0 Application Information (Continued)
LMX9820A Bluetooth Serial Port Module
Figure 26. Component Layout Bottom (Layer 4)
www.nationa l.c om38R ev is io n 1.0
15.0 Soldering (Continued)
LMX9820A Bluetooth Serial Port Module
15.0 Soldering
The LMX9820A bumps are designed to melt as part of the
Surface Mount Assembly (SMA) process. The LMX9820A
is assembled with a high-temperature solder alloy to
ensure there are no re-reflow conditions imposed upon the
module when reflowed to a PCB with these typical low temperature 60/40 (S = 183°C, L = 188°C), 62/36/2 (E =
179°C), or 63/37 (E = 183°C) solder alloys.
Where:
• S: Solidus
– Denotes the points in a phase diagram representing
the temperature at which the solder composition begins to melt during heating, or complete fr eezing during cooling.
• L: Liquidus
– Denotes the points in a phase diagram representing
Table 41. Soldering Details
ParameterValue
PCB Land Pad Diameter24 mil
PCB Solder Mask Opening30 mil
PCB Finish (HASL details)63/37 (difference in thickness < 28 micron)
Stencil Aperture28 mil
Stencil Thickness5 mil
Solder Paste UsedLow temperature 60/40 (S = 183°C, L = 188°C),
Flux Cleaning Process
Reflow ProfilesSee Figure 27 on page 40
the temperature at which the solder has molten components. The temperat ure that melting starts at.
• E: Eutectic
– Denotes solid to liquid without a plastic phase.
The low-temperature solder alloy will reflow with the solder
bump and provide the maximum allowable solder-joint reliability.
Reflow at a peak of 215 --> 220°C (approximately 30 seconds at peak). Do not to exceed 220°C, measured in close
proximity of the modules. to avoid any potential re-reflow
conditions.
Table 41 and Figure 27 on page 40 provide the soldering
details required to properly solder the LMX9820A to standard PCBs. The illustration serves only as a guide and
National is not liable if a selected profile does not work.
P AD PITCH IS 1.00 MILLI METER (.0 394”) NON-ACCUMULATIVE.
UNLESS OTHERWISE SPECIFIED, ALL DIMENSIONS ARE IN MILLIMETER.
TOLERANCE, UNLESS OTHERWISE SPECIFIED:
TWO PLACE (.00): ±.01
THREE PLACE (.000): ±.002
ANGULAR: ±1°
Figure 28. FR4 Package
Revision 1.041www.national.com
17.0 Datasheet Revision History (Continued)
17.0 Datasheet Revision History
This section is a report of the revision/creation process of
the datasheet for the LMX9820A. Table 42 provides the
Table 42. Documentation Status Definitions
Datasheet StatusProduct StatusDefini tion
Advance Informati onFormati ve or in DesignThis datasheet contains the design specifi cations for product de-
velopment. Specifications may change in any manner without notice.
PreliminaryFirst ProductionThis datasheet contai ns preliminary dat a. Supplementary data wi ll
be published at a later dat e. Nati onal Semic onduc tor Corpora tion
reserves the right to make changes at any time without notice in
order to improve design and supply the best possible product.S
No Identificati on NotedFull productionThis datasheet contains final specifications. National Semicon-
LMX9820A Bluetooth Serial Port Module
ObsoleteNot in ProductionThis da tasheet cont ains specifi cations on a pr oduct that ha s been
ductor Corpora tion reserves the ri ght to make changes at any time
without notice in orde r to i mprov e design a nd sup ply th e best pos sible product .
discontinu ed by Nati onal Semiconductor Corp orat ion. The
datasheet is printed for reference information only.
stages/definitions of the datasheet. Table 43 lists the revision history and Table 44 lists the specific edits to create
the current revision.
Table 43. Revision History
Revision #
(PDF Date)
0.4 (April 2003)Initial Datasheet revised to include new radio and additional functionality. Several edits
have been made to functional, performance, and electrical details.
0.7 (August 2004)Updated General Descript ion and Features with Audio
Updated Pinout Informat ion
Added Audio Section
Updated Command Section with audio commands
0.71 (August 2004)Reviewed Crystal Support Section
Added Audio block to application diagram
0.72 (October 2004)Updated package size
Table 9 to Table 15 updated
Optional 32.768 kHz cr ystal support removed
Package outline drawing updated to 14.1mm width and 2.0mm height
0.73 (December 2004)In Table 15, maximum output power range updated to +4dBm .
0.80 (March 2005)M inor edits for clarity, language, units, formatting, etc. No functional changes.
0.81 (March 2005)Minor changes in feature lis t
Table 2 updated
Added footnote to Table 10
Added description in chapter 6.2
Table 20 updated
0.82 ( March 2005)Added footnote to Table 13
Figure 22 updated
Revisions/Comments
www.nationa l.c om42R ev is io n 1.0
17.0 Datasheet Revision History (Continued)
Table 43. Revision History
Revision #
(PDF Date)
1.0 draft 1 (March 2005)Updated Power consumption Table 12
1.0 draft 2 (April 2005)No functional Update
1.0 draft 3 (April 2005)Updated C/I in Table 14
1.0 (April 2005)No functional Update
T able 44. Edits to current revision
SectionRevisions/Comments
General
Description
Connection
Diagram
Pad Description•
Electrical
Specifications
Functional
Description
Digital Smart
Radio
System Power
Up Sequence
Integrated
Firmware
Low Power
Modes
Command
Interface
Application|
Information
Soldering•
Physical
Dimensions
•
•
•
•
•
•
•
•
•
•
•
Revisions/Comments
LMX9820A Bluetooth Serial Port Module
Revision 1.043www.national.com
LMX9820A Bluetooth Serial Port Module
Nation al does not as sume an y respo nsibi lity for us e of any ci rcu itry de scrib ed, no circui t pat ent li cense s are imp lied and Nat ional r ese rv es
the right at any time without notice to change said circuitry and specifications.
For the most current product information visit us at www.national.com.
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT
DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL
COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:
1. Life support devices or systems are devices or systems wh ich,
(a) ar e inte nded for sur gic al im plan t into the b ody, or (b) s uppo rt
or sustai n life , and whose fai lure to perform, w hen prope rly used
in accordance with instructions for use provided in the labeling,
can be reasonably expected to result in a significant injury to the
user.
2. A critical component is any component of a life support device
or system w hose f ailu re to p erfor m can be r easo nably ex pect ed
to cause th e f ail ur e of t he li f e su ppor t devi ce o r s yste m, or to affect its safety or effectiveness.
BANNED SUBSTANCE COMPLIANCE
Nation al Semi condu ctor c ertifi es that the pr oducts and pac king m ateri als me et the provis ions of the Cu stom er Prod ucts St ewar dship
Specification (CSP-9-111C2) and the Banned Substances and Materials of Interest Specification (CSP-9-111S2) and contain no “Banned
Substances” as defined in CSP-9-111S2.
National Semiconductor
Americas Customer
Support Center
Email: new.feedback@nsc.com
Tel: 1-800-272-9959
www.national.com
National Semiconductor
Europe Customer Support Center
Fax: +49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +44 (0) 870 24 0 2171
Francais Tel: +33 (0) 1 41 91 8790
National Semiconductor
Asia Pacific Customer
Support Center
Email: ap.support@nsc.com
National Semiconductor
Japan Customer Support Center