background image

14.0 Integrated Firmware

The LMX9838 includes the full Bluetooth stack up to RF-
Comm to support the following profiles:

GAP (Generic Access Profile)

SDAP (Service Discovery Application Profile)

SPP (Serial Port Profile)

Figure 5 shows the Bluetooth protocol stack with command
interpreter interface. The command interpreter offers a num-
ber of different commands to support the functionality given
by the different profiles. Execution and interface timing is han-
dled by the control application.
The chip has an internal data area in RAM that includes the
parameters shown in Table 11.

30027920

FIGURE 5. LMX9838 Software Implementation

14.1 FEATURES

14.1.1 Operation Modes

On boot-up, the application configures the module following
the parameters in the data area.

Automatic Operation

No Default Connections Stored:

In Automatic Operation the module is connectable and dis-
coverable 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 connect-
ed, and switches to transparent mode.

Default Connections Stored:

If default connections were stored on a previous session,
once the LMX9838 is reset, it will attempt to connect each
device stored within the data RAM three times. The host will
be notified about the success of the link setup via a link status
event.

Non-Automatic Operation

In Non-Automatic Operation, the LMX9838 does not check
the default connections section within the Data RAM. If con-

nected by another device, it will NOT switch to transparent
mode and continue to interpret data sent on the UART.

Transparent Mode

The LMX9838 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. The packages don’t need to be formatted as de-
scribed in Table 13. Instead all data are directly passed
through the firmware to the active bluetooth link and the re-
mote device.
Transparent mode can only be supported on a point-to-point
connection. To leave Transparent mode, the host must send
a UART_BREAK signal to the module.

Force Master Mode

In Force Master mode tries to act like an access point for
multiple connections. For this it will only accept the link if a
Master/slave role switch is accepted by the connecting de-
vice. After successful link establishment the LMX9838 will be
Master and available for additional incoming links. On the first
incoming link the LMX9838 will switch to transparent depend-
ing on the setting for automatic or command mode. Additional
links will only be possible if the device is not in transparent
mode.

14.1.2 Default Connections

The LMX9838 supports the storage of up to 3 devices within
its NVS. Those connections can either be connected after re-
set or on demand using a specific command.

14.1.3 Event Filter

The LMX9838 uses events or indicators to notify the host
about successful commands or changes at the bluetooth in-
terface. Depending on the application the LMX9838 can be
configured. The following levels are defined:

No Events:
– The LMX9838 is not reporting any events. Optimized for
passive cable replacement solutions.

Standard LMX9838 events:
– Only necessary events will be reported.

All events:
– Additional to the standard all changes at the physical
layer will be reported.

14.1.4 Default Link Policy

Each Bluetooth Link can be configured to support M/S role
switch, Hold Mode, Sniff Mode and Park Mode. The default
link policy defines the standard setting for incoming and out-
going connections.

14.1.5 Audio Support

The LMX9838 offers commands to establish and release syn-
chronous connections (SCO) to support Headset or Hands-
free applications. The firmware supports one active link with
all available package types (HV1, HV2, HV3), routing the au-
dio data between the bluetooth link and the advanced audio
interface. In order to provide the analog data interface, an ex-
ternal audio codec is required. The LMX9838 includes a list
of codecs which can be used.

15

www.national.com

LMX9838

Summary of Contents for LMX9838

Page 1: ... firmware features point to point and point to multipoint link management supporting data rates up to the theoretical maximum over RFComm of 704 kbps The internal memory supports up to 7 active Bluetooth data links and one active SCO link The on chip Patch RAM provided for lowest cost and risk al lows the flexibility of firmware upgrade The module is lead free and RoHS Restriction of Hazardous Sub...

Page 2: ...tion Profile SYNC Headset HSP Handsfree Profile HFP Basic Imaging Profile BIP Basic Printing Profile BPP On chip application including Default connections Command Interface Link setup and configuration also Multipoint Configuration of the module Service database modifications UART Transparent mode Optimized cable replacement Automatic transparent mode Event filter 5 3 COMPLIANCE FCC compliance The...

Page 3: ...ault Layout Description RXD 12 I Host Serial Port Receive Data TXD 13 O Host Serial Port Transmit Data RTS Note 2 14 O NC if not used Host Serial Port Request To Send active low CTS Note 3 15 I GND if not used Host Serial Port Clear To Send active low Note 2 Treat As No Connect If RTS is not used Pad required for mechanical stability Note 3 Connect to GND if CTS is not use TABLE 3 Auxiliary Ports ...

Page 4: ...ype Default Layout Description MVCC 6 I Module internal Voltage Regulator Input VCC_CORE 9 I O Voltage Regulator Input Output VCC 10 I Voltage Regulator Input Baseband VCC_IO 11 I Power Supply I O GND 3 4 17 18 24 29 30 31 32 I GND Must be connected to ground plane NC 1 5 33 34 35 36 37 38 39 40 NC Place Pads for stability See Section 21 0 Physical Dimensions NC 41 42 43 44 45 46 47 48 49 50 51 52...

Page 5: ...reduce power consumption while waiting for the incoming link Figure 2 shows an example for the connection to a host con troller which can include a simple application to control the LMX9838 The figure also includes the connection to a PCM codec in case the host controller application includes an au dio profile Reset OP4 and OP5 are controlled by the host for full control of the LMX9838 status Plea...

Page 6: ...00V Human Body ESD rating Note 7 All pins meet 200V Macine Model ESD rating except pins RXD TXD CTS RTS PG4 OP5 PG6 PG7 SCL SDA MDOD1 MWCS SFS STD SRD RATED AT 150v Note 8 All pins meet 1000V Charge Discharge Model ESD rating except pin 69 rated at 250V Recommended Operating Conditions Symbol Parameter Min Typ Max Unit MVCC Module internal Voltage Regulator input 3 0 3 3 3 6 V VCC Digital Voltage ...

Page 7: ...IOL Logical 0 Output Current VOH 0 4V VCC_IO 3 0V 10 mA Note 14 Guaranteed by design 10 2 RF PERFORMANCE CHARACTERISTICS In the performance characteristics tables the following applies All tests performed are based on Bluetooth Test Specification revision 2 0 All tests are measured at antenna port unless otherwise specified TA 40 C to 85 C VDD_RF 2 8V unless otherwise specified RF system performan...

Page 8: ...F 27 dBm 2498 MHz FCWI 3000 MHz BER 0 001 27 dBm PinRF 10 dBm 3000 MHz FCWI 12 75 GHz BER 0 001 10 dBm Note 15 Typical operating conditions are at 2 75V operating voltage and 25 C ambient temperature Note 16 The f0 64 dBm Bluetooth modulated signal f1 39dbm sine wave f2 39 dBm Bluetooth modulated signal f0 2f1 f2 and f2 f1 n 1MHz where n is 3 4 or 5 For the typical case n 3 www national com 8 LMX9...

Page 9: ... for at least 99 9 of all Δf2max Note 19 Modulation index set between 0 28 and 0 35 Note 20 Out of Band spurs only exist at 2nd and 3rd harmonics of the CW frequency for each channel Note 21 Not tested in production Synthesizer Performance Characteristics Symbol Parameter Condition Min Typ Max Unit fVCO VCO Frequency Range 2402 2480 MHz tLOCK Lock Time f0 20 kHz 120 µs Δf0offset Note 22 Initial Ca...

Page 10: ...to seven slaves Default Link Policy set tings and a specific master mode allow optimized configura tion for the application specific requirements See Sec tion 14 0 Integrated Firmware 11 1 5 Memory The LMX9838 introduces 16 kB of combined system and Patch RAM memory that can be used for data and or code upgrades of the ROM based firmware Due to the flexible startup used for the LMX9838 operating p...

Page 11: ...gth OKI MSM7717 Advanced audio interface 8 bit log PCM a law only 520 kHz 8 kHz 14 Bits Winbond W681310 Advanced audio interface 8 bit log PCM A law and u law 520 kHz 8 kHz 14 Bits Winbond W681360 Advanced audio interface 13 bit linear 520 kHz 8 kHz 13 Bits PCM slave Note 26 Advanced audio interface 8 16 bits 128 1024 kHz 8 kHz 8 16 Bits Note 26 In PCM slave mode parameters are stored in NVS Bit c...

Page 12: ...on Issue a Hardware Reset The EEPROM initialization phase will be interrupted and the EEPROM will not be recognized which leaves the device in a lockup situation Once the initialization phase is completed the module sends the SimplyBlue Ready Event refer to the LMX9838 Soft ware User s Guide AN 1699 to declare its fully functional state It is therefore recommended to wait for the SimplyBlue Ready ...

Page 13: ...wo frequency discrimina tors The I frequency discriminator uses the 90 phase shift ed signal from the Q path while the Q discriminator uses the 90 phase shifted signal from the I path A poly phase band pass filter performs the required phase shifting The output signals of the I and Q discriminator are substracted and fil tered by a low pass filter An equalizer is added to improve the eye pattern f...

Page 14: ...xers 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 13 7 32 kHz Oscillator An oscillator is provided see Figure 4 that is tuned to provide optimum performance and low power consumption while op erating with a 32 768 kHz crystal An external crystal clock network is required between the 32k clock input pad 27 and the 32k clock output pad 28 sig...

Page 15: ... as de scribed in Table 13 Instead all data are directly passed through the firmware to the active bluetooth link and the re mote device Transparent mode can only be supported on a point to point connection To leave Transparent mode the host must send a UART_BREAK signal to the module Force Master Mode In Force Master mode tries to act like an access point for multiple connections For this it will...

Page 16: ...Link keys for paired devices Security Mode 2 Security mode Page Scan Mode Connectable Connectable Not connectable for other devices Inquiry Scan Mode Discoverable Discoverable Not Discoverable Limited Discoverable for other devices Default Link Policy All modes allowed Configures modes allowed for incoming or outgoing connections Role switch Hold mode Sniff mode Default Link Timeout 20 seconds The...

Page 17: ...e can disable the transport layer Enabling the transport layer is controlled by the HW Wakeup signalling This can be done from either the Host or the LMX9838 See also LMX9838 Software User s Guide for detailed informa tion on timing and implementation requirements TABLE 12 Power Mode Activity Power Mode UART Activity Radio Activity Reference Clock PM0 OFF OFF none PM1 ON OFF Main Clock PM2 OFF Sca...

Page 18: ...s ready to receive commands 16 0 Command Interface The LMX9838 offers Bluetooth functionality in either a self contained slave functionality or over a simple command in terface The interface is listening on the UART interface The following sections describe the protocol transported on the UART interface between the LMX9838 and the host in command mode see Figure 8 In Transparent mode no data frami...

Page 19: ...ect Confirm Create an SDP connection to remote device SDAP Disconnect SDAP Disconnect Confirm Disconnect an active SDAP link Connection Lost Notification for lost SDAP link SDAP Service Browse Service Browse Confirm Get the services of the remote device SDAP Service Search SDAP Service Search Confirm Search a specific service on a remote device SDAP Attribute Request SDAP Attribute Request Confirm...

Page 20: ...Settings Confirm Get Audio Settings for existing Link Set Volume Set Volume Confirm Configure the volume Get Volume Get Volume Confirm Get current volume setting Mute Mute Confirm Mutes the microphone input TABLE 21 Wake Up Functionality Command Event Description Disable Transport Layer Transport Layer Enabled Disabling the UART Transport Layer and activates the Hardware Wakeup function TABLE 22 S...

Page 21: ...nfirm Create a new service record within the service database Enable SDP Record Enable SDP Record Confirm Enable or disable SDP records Delete All SDP Records Delete All SDP Records Confirm Ports to Open Ports to Open Confirmed Specify the RFComm Ports to open on startup TABLE 25 Local Hardware Commends Command Event Description Set Default Audio Settings Set Default Audio Settings Confirm Configu...

Page 22: ... Clock and Baudrate Set Clock and Baudrate Confirm Write Baseband frequency and Baudrate used TABLE 27 GPIO Control Commands Command Event Description Set GPIO WPU Set GPIO WPU Confirm Enable Disable weak pull up resistor on GPIOs Get GPIO Input State Get GPIO Input States Confirm Read the status of the GPIOs Set GPIO Direction Set GPIO Direction Confirm Set the GPIOs direction Input Ouput Set GPI...

Page 23: ...8 using a 1 8V IO interface 17 1 FILTERED POWER SUPPLY It is important to provide the LMX9838 with adequate ground planes and a filtered power supply It is highly recommended that a 2 2 μF and a 100 nF bypass capacitor be placed as close as possible to the power supply pins VCC MVCC and VCC_IO 17 2 FREQUENCY AND BAUDRATE SELECTION OP3 OP4 OP5 can be strapped to the host logic 0 and 1 levels to set...

Page 24: ...mended Operating Conditions FIGURE 10 2 5V to 3 0V Example Functional System Schematic 30027910 Notes Capacitor values C1 and C2 may vary depending on design and crystal manufacturer specification MVCC can be connected to 3 0V and above in this configuration Please see Recommended Operating Conditions FIGURE 11 1 8V to 2 5V Example Functional System Schematic www national com 24 LMX9838 ...

Page 25: ...vary depending on design and crystal manufacturer specification MVCC can be connected to 3 0V and above in this configuration Please see Recommended Operating Conditions FIGURE 12 1 8V Example Functional System Schematic 25 www national com LMX9838 ...

Page 26: ...18 0 Evaluation Design 30027915 FIGURE 13 www national com 26 LMX9838 ...

Page 27: ... Aperture 17 mil Stencil Thickness 5 mil Solder Paste Used Defined by customer or manufacturing facility Flux Cleaning Process Defined by customer or manufacturing facility Reflow Profiles See Figure 14 TABLE 29 Classification Reflow Profiles Note 27 Note 28 Profile Feature NOPB Assembly Average Ramp Up Rate TsMAX to Tp 3 C second maximum Preheat Temperature Min TsMIN Temperature Max TsMAX Time ts...

Page 28: ...ntial installa tion This equipment generates uses and can radiate radio frequency energy If not installed and used in accordance with the instructions it may cause harmful interference to radio communications However there is no guarantee that inter ference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be de...

Page 29: ...21 0 Physical Dimensions inches millimeters unless otherwise noted NS Package Number SB70A 29 www national com LMX9838 ...

Page 30: ...IGHT LIFE SUPPORT POLICY NATIONAL S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE CHIEF EXECUTIVE OFFICER AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION As used herein Life support devices or systems are devices which a are intended for surgical implant into the body or b support or sustain...

Reviews: