background image

BLE 5, Thread, Zigbee Modules, BT840/F/E/X/XE            

Ver 1.16  Dec.. 2019

    ret_code_t err_code;         

    memset(&opt, 0, sizeof(ble_opt_t)); 
     
    err_code = nrf_drv_gpiote_init(); 
    if(err_code != NRF_ERROR_INVALID_STATE) 
        APP_ERROR_CHECK(err_code); 
     
    err_code = nrf_drv_ppi_init(); 
    //if(err_code != MODULE_ALREADY_INITIALIZED) 
        APP_ERROR_CHECK(err_code); 
     
    nrf_ppi_channel_t ppi_set_ch; 
    nrf_ppi_channel_t ppi_clr_ch; 
     
    err_code = nrf_drv_ppi_channel_alloc(&ppi_set_ch); 
    APP_ERROR_CHECK(err_code); 
     
    err_code = nrf_drv_ppi_channel_alloc(&ppi_clr_ch); 
    APP_ERROR_CHECK(err_code); 

    nrf_drv_gpiote_out_config_t config = GPIOTE_CONFIG_OUT_TASK_TOGGLE(false); 
     
    if((gpio_pa_pin == NULL) && (gpio_lna_pin == NULL)) 
    { 
        err_code = NRF_ERROR_INVALID_PARAM; 
        APP_ERROR_CHECK(err_code); 
    }     

    if(gpio_pa_pin != NULL) 
    { 
        if(gpiote_ch == NULL) 
        { 
            err_code = nrf_drv_gpiote_out_init(gpio_pa_pin, &config); 
            APP_ERROR_CHECK(err_code); 
             
            gpiote_ch = nrf_drv_gpiote_out_task_addr_get(gpio_pa_pin);  
        } 
         
        // PA config 
        opt.common_opt.pa_lna.pa_cfg.active_high = 1;   // Set the pin to be active high 
        opt.common_opt.pa_lna.pa_cfg.enable      = 1;   // Enable toggling 
        opt.common_opt.pa_lna.pa_cfg.gpio_pin    = gpio_pa_pin; // The GPIO pin to toggle tx   
    } 
     
    if(gpio_lna_pin != NULL) 
    { 
        if(gpiote_ch == NULL) 
        { 
            err_code = nrf_drv_gpiote_out_init(gpio_lna_pin, &config); 
            APP_ERROR_CHECK(err_code);         
             

20

Содержание BlurNor BT840 Series

Страница 1: ...omparator 15 level comparator with wake up from OFF mode Temperature sensor 4x4 channel pulse width modulator PWM Audio peripherals I2S digital microphone interface PDM 5 x 32 bit timers with counter mode Up to 4x SPI masters 3x SPI slaves Up to 2x I2C compatible 2 wire masters slaves 2x UART CTS RTS Quadrature Demodulator QDEC 3x real time counters RTC 128 bit AES HW encryption SoC Receiver Sensi...

Страница 2: ...0 12 Pin Function 14 Mounting BT840F on the Host PCB 16 Host Board Design for Low Cost or Long Range 17 Control Skyworks Power Amplifier 18 4 Bluetooth Range Measurements 22 5 AT Commands 24 6 BT840F Evaluation Board 24 Nordic Development Tools 25 Android OS Apps 25 iOS Apps 25 BT840F V4 EvaluationBoard Schematics 26 Suggestion for Battery Power Application 27 7 Miscellaneous 28 Soldering Temperat...

Страница 3: ...RF52840 can be accessed from main board For lower power consumption at idle state a 32 768 kHz crystal can be added on the host board Connection to an external NFC Near Field Communication antenna is provided BlurNor BT840F is a sister module of BT832F The physical size is the same There are 21 additional LGA pins for additional GPIOs provided by nRF52840 There are 3 modules in the BT840F Series B...

Страница 4: ...tel ANT060 antenna Maximum TX power is 14 6 dBm with ANT060 antenna Size 14x16x1 9mm BT840X Uses an nRF52840 QIAA with Cortex M4F MCU 1MB flash 256 KB RAM Supports NFC Integrated SKY66112 power amplifier Integrated 32 768 KHz sleep crystal Integrated PCB trace antenna Size 15x28x1 9mm BT840XE Uses an nRF52840 QIAA with Cortex M4F MCU 1MB flash 256 KB RAM Supports NFC Integrated SKY66112 power ampl...

Страница 5: ...an Over The Air Device Firmware Upgrade OTA DFU feature This allows for in the field updates of application software and SoftDevice SoftDevices The Nordic protocol stacks are known as SoftDevices and complement the nRF52 Series SoCs All nRF52 Series are programmable with software stacks from Nordic This bring maximum flexibility to application development and allows the latest stack version to be ...

Страница 6: ...or full description of the SoC please download from Nordic Semiconductor website https www nordicsemi com eng Products Bluetooth low energy Block Diagram of nRF52840 The following is a block diagram of Nordic nRF52840 Bluetooth Low Energy BLE SoC Arrows with white heads indicate signals that share physical pins with other signals 6 ...

Страница 7: ...switching RUN IDLE for system blocks based only on those required not required to achieve particular tasks The radio supports Bluetooth low energy and ANT Output power is scalable from a maximum of 8dBm down to 20 dBm in 4dB steps Sensitivity is increased to 96 dBm to 89 dBm depending on data rate Sensitivity for BLE is 96 dBm and 92 5 dBm for ANT The NFC block supports NFC A tags with proximity d...

Страница 8: ...eld P 160 P 192 P 224 P 256 P 384 P 521 Koblitz curves using fixed parameters up to 256 bits Prime field P 160 P 192 P 224 P 256 Edwards Montgomery curves Ed25519 Curve 25519 ECDH ECDSA support Secure remote password protocol SRP Up to 3072 bit operations Hashing functions SHA 1 SHA 2 up to 256 bit size keyed hash message authentication code HMAC AES symmetric encryption General purpose AES engine...

Страница 9: ...40F and BT832F is hardware pin to pin compatible Firmware configuration is required to perform the same function Two types of pins are available to meet different application requirements 16 castellated pins for application needing limited number of IOs SMT equipment is not required for soldering castellated pins 45 LGA Land Grid Array pins to access all 48 GPIOs of nRF52840 when needed BT840F and...

Страница 10: ...BLE 5 Thread Zigbee Modules BT840 F E X XE Ver 1 16 Dec 2019 BT840 and BT840E mechanical drawings top view 10 ...

Страница 11: ...BLE 5 Thread Zigbee Modules BT840 F E X XE Ver 1 16 Dec 2019 BT840X and BT840XE mechanical drawings 11 ...

Страница 12: ...tions are in a table in next section Please refer to Nordic nRF52840 Product Specifications for detailed descriptions and features supported https www nordicsemi com eng Products nRF52840 BT840F pins is a super set of that of BT832F A PCB developed for BT832 Series can be used for BT840 Series and vice versa BT832F pin assignments 12 ...

Страница 13: ...BLE 5 Thread Zigbee Modules BT840 F E X XE Ver 1 16 Dec 2019 BT840F pin assignments 13 ...

Страница 14: ...ESET 14 24 P0 21 RESET GPIO internal RC reset circuit configurable as RESET pin 15 AA24 SWDCLK 15 25 SWDCLK Serial Wire Debug clock input 16 AC24 SWDIO 16 26 SWDIO Serial Wire Debug I O Z0 B19 P1 11 GPIO Z1 B17 P1 12 GPIO Z2 A16 P1 13 GPIO Z3 B15 P1 14 GPIO Z4 A14 P1 15 GPIO Z5 A20 P1 10 GPIO Z6 R24 P1 06 GPIO A0 GND A0 45 VSS Ground A1 B11 P0 28 AIN4 A1 40 P0 28 AIN4 GPIO Analog input A2 A10 P0 2...

Страница 15: ...T840 X BT840XE PA control D3 AC11 P0 16 D3 19 P0 16 GPIO D4 AC9 P0 14 D4 17 P0 14 GPIO D5 Y23 P1 01 D5 14 P0 11 GPIO D6 T23 P1 05 GPIO E0 P23 P1 07 GPIO E1 AD16 P0 20 GPIO E2 AC17 P0 21 GPIO E3 R1 P1 09 GPIO E4 AD6 D USB D E5 AD4 D USB D E6 U1 P0 12 GPIO F0 Ground pad F1 Ground pad F2 Ground pad F3 Ground pad F4 Y2 VDDH High Voltage Power Supply F5 AB2 DCCH DC to DC converter output F6 AD2 VBUS 5V...

Страница 16: ... outside the edge of host PCB board or 9 8 mm outside the edge of a ground plane The next choice is to place a module on a corner of host PCB the antenna area shall extend 9 8 mm from the edge of ground plane Ground plane shall be at least 5 mm from the edge of the antenna area of module We don t recommend mounting BT840F module in the middle of a host PCB For the best Bluetooth range performance ...

Страница 17: ...PCB Be sure of no metal contact in the area of 21 additional BT840F pins BT840F can be mounted on a BT832 pad If you main goal is maximum wireless range use a 4 or more layers PCB Use library component from EV BT840F V4 or newer Gerber files can be downloaded from http www fanstel com download document It has 16 castellated pins plus 45 LGA pins As much ground plane under BT840F on top side of hos...

Страница 18: ...rmware file can be downloaded from http www fanstel com download document You can set nRF52840 TX to up to 8 dBm The conditions for passing FCC and Industrial Canada certification testings BT840X Set nRF52840 TX to 2 dBm BT840XE Set nRF52840 TX to 2 dB and use Fanstel antenna ANT000 Header files ifndef PA_LNA_H__ define PA_LNA_H__ include ble h include app_error h include nrf_drv_gpiote h include ...

Страница 19: ..._PA_LAN nrf_gpio_cfg_output APP_CPS_PIN nrf_gpio_cfg_output APP_CHL_PIN nrf_gpio_pin_set APP_CHL_PIN nrf_gpio_pin_clear APP_CPS_PIN enable pa_lna_init APP_PA_PIN APP_LNA_PIN endif SKY66112 control codes include stdint h include string h include pa_lna h include ble h include app_error h include nrf_drv_gpiote h include nrf_drv_ppi h void pa_lna_init uint32_t gpio_pa_pin uint32_t gpio_lna_pin ble_o...

Страница 20: ...CK err_code nrf_drv_gpiote_out_config_t config GPIOTE_CONFIG_OUT_TASK_TOGGLE false if gpio_pa_pin NULL gpio_lna_pin NULL err_code NRF_ERROR_INVALID_PARAM APP_ERROR_CHECK err_code if gpio_pa_pin NULL if gpiote_ch NULL err_code nrf_drv_gpiote_out_init gpio_pa_pin config APP_ERROR_CHECK err_code gpiote_ch nrf_drv_gpiote_out_task_addr_get gpio_pa_pin PA config opt common_opt pa_lna pa_cfg active_high ...

Страница 21: ...g opt common_opt pa_lna lna_cfg gpio_pin gpio_lna_pin The GPIO pin to toggle rx Common PA LNA config opt common_opt pa_lna gpiote_ch_id gpiote_ch NRF_GPIOTE_BASE 2 GPIOTE channel used for radio pin toggling opt common_opt pa_lna ppi_ch_id_clr ppi_clr_ch PPI channel used for radio pin clearing opt common_opt pa_lna ppi_ch_id_set ppi_set_ch PPI channel used for radio pin setting err_code sd_ble_opt_...

Страница 22: ...t Bluetooth range is specified as the average of 12 measurements with the least significant digit truncated 1 52 meters 60 inches is typical height of thermostat in the USA 0 55 meter 21 5 inches is typical height of antenna if an IoT device is plugged into a wall AC outlet in the USA When USB840F USB dongle is plugged into a smart phone charger plugging into a wall AC outlet to collect Bluetooth ...

Страница 23: ...tenna of BT840X is not Range is shorter for some angles Result is the average of 12 measurements Antenna height LMPI 1 52 meters 0 55 meter BT840F Bluetooth range 125Kbps 2300 meters 640 meters 210 meters BT840F Bluetooth range 1Mbps 1000 meters 390 meters 140 meters BT840 Bluetooth range 125 Kbps 320 meters 210 meters BT840 Bluetooth range 1Mbps 150 meters 120 meters BT840X Bluetooth range 125 Kb...

Страница 24: ...r manual and the newest AT Commands hex codes can be downloaded from AT Command Hex Codes Bluetooth 5 section of this web page http www fanstel com download document AT commands can be used on UART interface and SPI interface The preloaded codes use UART interface 6 BT840F Evaluation Board An evaluation board consists of the followings Mini USB cable Evaluation board 10 conductor cable for connect...

Страница 25: ...ing Android OS apps are available for download from Google Play Store BlueNor nrf5x to use with Bluetooth 5 stacks AT commands or Slave firmware Master firmware does not connect to a smartphone Source codes can be downloaded from http www fanstel com download document BlueNor Mesh to use with BlueNor mesh firmware to send command to any node in a mesh Node number is displayed when acknowledgement ...

Страница 26: ...r pin names around U1 BT840 832 are for BT832 BT832F BT832X Red color pin names are for BT840F BT840 BT840E Firmware pin configuration is required for a host board to accommodate BT840F BT840 BT840E and BT832 BT832F BT832X Additional feature enhancements for version V4 evaluation board 1 It has the same foot print as Arduino Uno R3 Additional connectors are added for connection to extra GPIO pins ...

Страница 27: ...smartphone charger from shutting down Suggestion for Battery Power Application Standby current consumption is important for battery powered product We suggest adding a 32 768 kHz crystal and 2 capacitors on host board The 32MHz main clock won t be active at idle state to save power Two inductors required for on board DC to DC converter are inside BT840F You can enable DCDC converter to have lower ...

Страница 28: ...ignals of this module 2 The supply voltage has to be free of AC ripple voltage for example from a battery or a low noise regulator output For noisy supply voltages provide a decoupling circuit for example a ferrite in series connection and a bypass capacitor to ground of at least 47uF directly at the module 3 This product should not be mechanically stressed when installed 4 Keep this product away ...

Страница 29: ...sulation Never allow contact between the cover and these products to occur 5 This product should not be mechanically stressed or vibrated when reflowed 6 If you want to repair your board by hand soldering please keep the conditions of this chapter 7 Do not wash this product 8 Refer to the recommended pattern when designing a board 9 Pressing on parts of the metal cover or fastening objects to the ...

Страница 30: ...g human life are anticipated when a short circuit occurs then provide the following failsafe functions as a minimum 1 Ensure the safety of the whole system by installing a protection circuit and a protection device 2 Ensure the safety of the whole system by installing a redundant circuit or another system to prevent a dual fault causing an unsafe status Other Cautions 1 This specification sheet is...

Страница 31: ...t with a high concentration of harmful gas 6 If an abnormal voltage is applied due to a problem occurring in other components or circuits replace these products with new products because they may not be able to provide normal performance even if their electronic characteristics and appearances appear satisfactory 7 When you have any question or uncertainty contact Fanstel 31 ...

Страница 32: ...transmitter must be labeled with its own FCC ID number This includes a clearly visible label on the outside of the final product enclosure that displays the contents shown below If the FCC ID is not visible when the equipment is installed inside another device then the outside of the device into which the equipment is installed must also display a label referring to the enclosed equipment The end ...

Страница 33: ...ate Add BT840F and BT840 range measurement results Remove AT commands and refer to external document May 2019 Version 1 11 Add BT840X and BT840XE certifications amplifier control codes Bluetooth range Sep 2019 Version 1 12 Add BT840X E photos BT840F certifications for Bluetooth and 802 15 4 Dec 2019 Version 1 16 Add maximum TX power for FCC X8WBT840F certification 33 ...

Страница 34: ...m Taiwan Fanstel Corp 10F 10 79 Xintai Wu Road Xizhu New Taipei City Taiwan 22101 泛世公司 臺灣省新北市汐止區新臺五路79號10樓之10 22101 Tel 886 2 2698 9328 Fax 886 2 2698 4813 Email info fanstel com Website www fanstel com China Fanstel Technologies Corp 11 Jiale Street Ping Dih Long Gang Shen Zhen GD 518117 泛世康科技 深圳 有限公司 廣東省深圳市龍崗區坪地鎮佳樂街11號 Tel 86 755 8409 0928 Fax 86 755 8409 0973 QQ 3076221086 Email info fanstel co...

Отзывы: