BTM840B datasheet Document History Revision Date Change Reason Rev00 2014-09-24 Draft release Rev01 2014-10-31 Add Product Picture Rev02 2014-11-24 Change BT4.0 to BT4.1 Rev03 2014-11-25 Change BTM840 to BTM840B,modify Application circuit Rev04 2015-01-12 modify Storage /Operating Temperature range Rev05 2015-01-15 Add RF Performance/ Reflow Profile and modify Application circuit Rayson Bluetooth ® Module Low Energy Smart Module Features BTM-840B Outline Bluetooth standard V4.1 conformity. CSR1010 chip Programmable general purpose PIO controller : Wide supply voltage range 1.8 to 3.6V. I2C for EEPROM and ICs peripherals. -90dBm Bluetooth low energy RX sensitivity. 12 digital PIOs 3 analogue AIOs 4 PWM modules Wake-up interrupt and Watchdog timer RoHS Compliant Small outline. 11 x 11x2.0mm Applications Sports and fitness Healthcare Automotive Home entertainment Office and mobile accessories Low rate data communications Electrical Characteristics Absolute Maximum Ratings Ratings Min. Max. Storage Temperature -30 ℃ +85℃ Supply Voltage(VDD_PADS,VDD_BAT) 1.8V 3.6 V Operating Condition Min. Max. Operating Temperature range -20 ℃ +75℃ Supply voltage(VDD_PADS,VDD_BAT) 1.8V 3.6V Recommended Operating Condition Current Consumption(CSR1010 QFN total typical current consumption measured from the battery supply) Mode Descrisption Typical Current at 3V Dormant functions are shutdown. To wake up toggle the WAKE pin <900nA Deep sleep VDD_PADS = ON, REFCLK = OFF, SLEEPCLK = ON, VDD_BAT = ON, RAM = ON, digital circuits = ON, SMPS = ON (low-power mode), 1ms wake-up time <5μA Idle VDD_PADS = ON, REFCLK = ON, SLEEPCLK = ON, VDD_BAT = ON, RAM = ON, digital circuits = ON, MCU = IDLE, <1μs wake-up time ~1mA RX / TX active - peak current 16mA @ 3V RF Specification: Battery Supply=3V, Temperature=+20℃ Transmitter RF Characteristics, Min Typ Max Bluetooth VDD = 1.5V Unit Specification Maximum RF transmit power(conductive) -4 0 +2 -6 to +4 dBm Initial carrier frequency tolerance -40 - +40 ±75 kHz ∆f1avg maximum modulation 225 258 275 225 < f1avg < 275 ∆f2max minimum modulation 185 197 ∆f2avg/∆f1avg ≥185 0.8 0.86 ≥0.8 Carrier drift rate - 8 - ≤20 kHz/50μ Carrier drift - 7 - ≤50 kHz 2nd Harmonic Content - -42 - ≤-30 dBm 3rd Harmonic Content - -40 - ≤-30 dBm Receiver Battery Supply=3V, Temperature=+20℃ RF Characteristics, Frequency Min Typ Max VDD = 1.5V (GHz) Sensitivity at 30.8% 2.402 - -90 -87 PER for all basic rate 2.440 - -90 -87 packet types(conductive) 2.480 - -90 -87 Maximum received signal at 30.8% PER -10 >-10 C/I co-channel - 6 Adjacent channel selectivity C/I - Bluetooth Unit Specification ≤-70 dBm ≥-10 dBm 21 ≤21 dB 2 15 ≤15 dB - 1 15 ≤15 dB - -28 -17 ≤-17 dB F = F0 + 1MHz Adjacent channel selectivity C/I F = F0 - 1MHz Adjacent channel selectivity C/I F = F0 + 2MHz Adjacent channel selectivity C/I - -21 -15 ≤-15 dB - -31 -27 ≤-27 dB - -30 -27 ≤-27 dB - -24 -9 ≤-9 dB - -50 -33 ≥-50 dBm - -154 - F = F0 - 2MHz Adjacent channel selectivity C/I F = F0 + 3MHz Adjacent channel selectivity C/I F = F0 - 5MHz Adjacent channel selectivity C/I F = FImage Maximum level of intermodulation interferers Spurious output level dBm/Hz Block Diagram Battery Supply 32.768KHz Crystal SPI CSR1010 PIO UART 16MHz Crystal EEPROM 3V UART Interface The BTM840B UART interface provides a simple mechanism for communicating with other serial devices using the RS232 protocol. 2 signals implement the UART function, UART_TX and UART_RX. When BTM840B is connected to another digital device via UART interface, the data is exchanged by UART_RX and UART_TX and, the hardware flow control is not available. UART configuration parameters such as baud rate, stop bits and parity bit are set by BTM840B's firmware. As set for UART communications, the general PIO ports PIO[0] and PIO[1] are assigned as UART_TX (output) and UART_RX (input). Note: To communicate with the UART at its maximum data rate using a standard PC, the PC requires an accelerated serial port adapter card. The following table shows the possible UART settings for the BTM840B: Parameter Baud rate Possible Values Minimum Maximum Parity Number of stop bits Bits per byte 1200 baud (≤2%Error) 9600 baud (≤1%Error) 2M baud (≤1%Error) None, Odd or Even 1 or 2 8 The maximum baud rate is 2400 baud during deep sleep. As the actual throughput of BLE air traffic is around 2400 baud, higher baud rate setting at UART interface can cause data congestion. Software flow control may required to avoid data loss. I²C Interface There is I²C interface of CSR1010 is dedicated for EEPROM connections. The EEPROM usually hold the program code that will be load to CSR1010 during boot up. The BTM840B has the 128K EEPROM built in for the program code. If extra I²C interface is required for applications, the software emulated I²C interface can be implemented on general PIO ports. BTM-840B Pins Function No Pin Name Pin Type Supply Domain Pin description 1 PIO[4] Bi-directional VDD_PADS Programmable input/output 2 SPI_CLK( PIO5) Bi-directional VDD_PADS Programmable input/output or debug SPI_CLK selected 3 SPI_CSB( PIO6) Bi-directional VDD_PADS Programmable input/output or debug SPI chip selected 4 SPI_MOSI( PIO7 Bi-directional VDD_PADS Programmable input/output or debug SPI_MOSI selected 5 SPI_MISO(PIO8) Bi-directional VDD_PADS Programmable input/output or debug SPI_MISO selected 6 PIO[9] Bi-directional VDD_PADS Programmable input/output line 7 PIO[10] Bi-directional VDD_PADS Programmable input/output line 8 PIO[11] Bi-directional VDD_PADS Programmable input/output line or button input 9 SPI_PIO#_SEL Bi-directional VDD_PADS Programmable input/output or SPI/PIO selected,set HI for SPI 10 PIO2 Bi-directional VDD_PADS Provide I2C or SPI Power , pls leave it NC if don’t use it. 11 3V Power input Connect to external 3V(battery),we advise to connect a decoupling capacitor to this pin and it should be more than 47 F Common ground 12 GND GND output 13 I2C-SCL Bi-directional VDD_PADS I2C clock or SPI serial flash clock output(SF_CLK) 14 I2C-SDA Bi-directional VDD_PADS I2C 15 WAKE Bi-directional VDD_BAT 16 GND GND 17 RF_IN Analogue 18 GND GND 19 AIO(2) Bi- Analogue VDD_AUX(1.35V) Analogue Programmable input/output line 20 AIO(1) Bi- Analogue VDD_AUX(1.35V) Analogue Programmable input/output line 21 AIO(0) Bi- Analogue VDD_AUX(1.35V) Analogue Programmable input/output line 22 UART TX Bi-directional VDD_PADS Programmable input/output or UART TX 23 UART RX Bi-directional VDD_PADS Programmable input/output or UART RX 24 PIO[3] Bi-directional VDD_PADS Programmable input/output line or PWN signal output data input/output or SPI serial flash Input to wake module from dormant/hibernate mode. if no use, Common ground VDD_BT_RADIO data Antenna interface Request, pls leave it NC if don’t use it. Common ground Dimension: Unit: mm Application circuit UART_RX A1 C1 R8 0R JP3 SW4 VDD NC 5 4 NC SW3 BZ- VDD_BAT 100NF Humidity-Sensor BZ C5 SCL 100NF PIO-11 C4 SDA VDD_BAT 5 4 3 2 1 PIO-10 PIO-9 G-Sensor L2 0R VDD_BAT C1 GND 3V PIO[2] SPI-PIO#-SEL PIO[11] PIO[10] SW1 C6 2 100NF 1 2 3 VDD_BAT U4 BAT_3V VDD_BAT PIO-2 SPI-PIO#-SEL PIO-11 PIO-10 R11 100K C9 100NF C10 47μF SCL 4 SDA 6 SCL SDA Addr/Therm PIO-4 SPI-CLK SPI-CSB SPI-MOSI PIO8 PIO-9 1 R12 Power 5 PIO-3 0R EVENT STTS751 2 12 11 10 9 8 7 3 1 VDD BTM-840 4 3 AIO[2] AIO[1] AIO[0] UART_TX UART_RX PIO[3] PIO[4] SPI_CLK SPI_CSB SPI_MOSI SPI_MISO PIO[9] 19 20 21 22 23 24 1 2 3 4 5 6 AIO-2 AIO-1 AIO-0 UART_TX UART_RX PIO-3 GND RF_IN GND wake I2C_SDA I2C_SCL U2 18 17 16 15 14 13 NC GND C2 16 15 14 NC NC VDD R10 0R UART_TX UART_RX SPI-PIO#-SEL SDA SCL 1 wake ANT1 SDA SA0 CS 100NF 9 10 11 12 13 SPI-MOSI SPI-CLK SPI-CSB SPI-MISO VDD_BAT TP1 TP2 TP3 TP4 TP5 TP6 TP7 TP8 TP9 6 7 8 C3 4.7μF LIS3DH GND SCL NC BYP VDDIO U3 Finder:chip on BZ,R14=0R,D1/R1/R2/R3=NC Mesh:Chip on D1、R1、R2、R3,R14/BZ=NC INT2 GND INT1 GND NC PIO-9 PIO8 PIO-10 VDD_BAT VDD_BAT BTM840 SCL C11 BZ+ SW2 2 2 2 47K NC 6 2 SW5 SCL VSS 2 NC 3 SHT21 SDA KLJ-123 1 R7 0R 3 R4 0R R3 160R 1 R2 180R 1 1 U6 1 R14 NC 3-COLOR 360R PIO-3 3 PIO-3 SDA 1 R1 C2 360R R15 R9 PIO-4 BLUE RED R16 R6 0R SPI-PIO#-SEL PIO-11 2 C3 R13 NC A2 A3 2 D1 5 SPI-MISO VDD_BAT GREEN wake D2 UART_TX VDD_BAT VDD_BAT Set HI Enter SPI Debug mode: SPI_PIO#_SEL pull high, otherwise Set R13 pin[2:5] will be PIO mode Temperature Sensor R5 0R Reflow Profile Reflow profile requirements Parameter Specification Referenc Specification Average temperature gradient in preheating 1~2.5°C/s to 175°C equilibrium. Tsoak t1 Soak time Time above 217°C (T1) T2 t2 Peak temperature in reflow Time at peak temperature Temperature gradient in cooling 120~180 seconds 45~90 seconds 250°C (– 0/+5°C) 6 seconds 6°C/second max. Temperature T 2 T1 t 2 Tsoak t 1