USB840F/M/X BLE 5, Thread, Zigbee Dongles
Ver 1.00 May 2019
Steps to install Fanstel demo HEX codes
Plug the dongle into a PC USB port. You don’t need the nRF52 DK when programming the application.
There are two codes in zip file
BT840_USBbootloader181018b.rar
.
//install distance test application
nrfutil dfu usb_serial -pkg BT840d4180828.zip -p COM45
Com port number, COMXX is set by your PC.
This command will install the Nordic BLE blink example.
If you want to program other applications
,
hold the
Bootloader
button during reset. Dongle is set into USB
bootloader mode and red LED on.
Firmware to Control Power Amplifier in USB840X
The following codes are used to set up and control power amplifier SKY66112 in USB840X.
Header files
#ifndef PA_LNA_H__
#define 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);
#endif
Main program.
#include "pa_lna.h"
#define APP_PA_LAN
#ifdef APP_PA_LAN
#define APP_PA_PIN 17
#define APP_LNA_PIN 19
#define APP_CHL_PIN
8
#define APP_CPS_PIN
6
!
9