Skip to main content

SmartBond™ DA14580 and DA14583

The DA14585 and DA14586 are recommended for new designs.

da14580-3.svg

The most flexible and lowest power Bluetooth® low energy solutions

The DA14580&3 integrated circuits have a fully integrated radio transceiver and baseband processor for Bluetooth low energy. They can be used as a standalone application processor or as a data pump in hosted systems.

SmartBond™ DA14583 combines the benefits of the lowest power, smallest size and lowest system cost Bluetooth low energy System-on-Chip with an integrated flash. Furthermore the DA14583 is pin to pin compatible with the DA14580 thereby offering a unique cost down path from flash to OTP.

The DA14580&3 support a flexible memory architecture for storing Bluetooth profiles and custom application code, which can be updated over the air (OTA). The qualified Bluetooth low energy protocol stack is stored in a dedicated ROM. All software runs on the ARM® Cortex®-M0 processor via a simple scheduler.

The Bluetooth low energy firmware includes the L2CAP service layer protocols, Security Manager (SM), Attribute Protocol (ATT), the Generic Attribute Profile (GATT) and the Generic Access Profile (GAP). All profiles published by the Bluetooth SIG as well as custom profiles are supported. The transceiver interfaces directly to the antenna and is fully compliant with the Bluetooth 4.2 standard.

The DA14580&3 have dedicated hardware for the Link Layer implementation of Bluetooth low energy and interface controllers for enhanced connectivity capabilities.

Lifecycle status

● NRND

Features

Bluetooth low energy (Bluetooth 4.2 specification)

Cortex M0 application processor

Integrated One-Time-Programmable memory

1 Mb Flash (DA14583)

Power supply 2.35 -3.3 V

Single pin RF I/O

Rich set of analog and digital peripherals

Benefits

Lowest power, smallest size, lowest system cost

Flexible: products can be upgraded in the field

Data retention, even on depleted battery

Applications

Proximity & Beacons

Health & Fitness

HID

Smart Home

Applications requiring software upgrade Over The Air (OTA)

Packages

WLCSP-34 (2.5 x 2.5 x 0.5 mm)

QFN-48 (6.0 x 6.0 x 0.9 mm)

QFN-40 (5.0 x 5.0 x 0.9 mm)

Every quarter, we bundle up the best technical info on our products, software development topics, trainings, events and deliver it to your inbox.

Sign me up
Check out previous editions

Stay connected

Get in touch with us directly through our worldwide sales offices, or contact one of our global distributors and representatives.

Inquiries Distributors and Representatives Register for newsletters
Datasheet
Name Date Version
DA14580 Datasheet (2.64 MB) 09/11/2016 3.4
DA14580 datasheet revision history (90.77 KB) 14/11/2016 3.4
DA14583 Datasheet (2.46 MB) 04/11/2016 3.0
DA14583 datasheet revision history (65.67 KB) 14/11/2016 3.0
Product Brief
Name Date Version
SmartBond™ DA1458x Family Product Brief (2.82 MB) 22/06/2017 1.0
SmartBond™ DA1458x 系列产品 (2.01 MB) 22/06/2017 1.0
SmartBond™ DA1458x 系列產品 (2.19 MB) 22/06/2017 1.0
SmartBond™ DA1458x 製品ファミリ (2.16 MB) 22/06/2017 1.0
SDK
Name Date Version
DA1458x_Software_Release_Notes_v5.0.4 (683.51 KB) 25/08/2016 5.0.4
SDK5.0.4 for DA14580/1/2/3 (3.79 MB) (Registered users only) 25/08/2016 5.0.4
SDK User Manual
Name Date Version
UM-B-011 DA14580 Memory Map and Scatter File (783.88 KB) 01/01/2015 1.1
UM-B-013 DA14580/581 External processor interface over SPI (387.61 KB) 24/08/2018 1.0
UM-B-050 : DA1458x Software Developers Guide (SDK5) (2.82 MB) 08/08/2016 1.1
UM-B-051 : DA14580 Software Platform Reference (SDK5) (1.96 MB) 20/12/2016 1.2
Development Tools
Name Date Version
SmartSnippets Studio Release Notes (304.81 KB) 04/02/2021 2.0.16
SmartSnippets Studio V2.0.16 for Linux OS (872.03 MB) 04/02/2021 2.0.16
SmartSnippets Studio V2.0.16 for macOS (497.78 MB) 04/02/2021 2.0.16
SmartSnippets Studio V2.0.16 for Windows OS (707.61 MB) 04/02/2021 2.0.16
SmartSnippets Toolbox Release Notes (461.34 KB) 04/02/2021 5.0.16
SmartSnippets Toolbox V5.0.16 for for Linux OS (163.27 MB) 04/02/2021 5.0.16
SmartSnippets Toolbox V5.0.16 for Windows OS (123.77 MB) 04/02/2021 5.0.16
UM-B-057 SmartSnippets Studio User Manual (3.07 MB) 04/02/2021 2.0.16
UM-B-083 SmartSnippets Toolbox User Manual (HTML) (25.09 KB) 04/02/2021 5.0.16
Software Applications & Examples
Name Date Version
Dialog Serial Port Service (DSPS) (7.58 KB)
RW BLE Cycling Power Profile Interface Specification (1002.69 KB) (Registered users only) 21/07/2014 1.1
RW BLE Host Error Code Interface Specification (416.92 KB) (Registered users only) 26/04/2016 1.0
SmartBond™ - CodeLess AT Commands (7.58 KB)
Mobile Apps
Name Date Version
Dialog DSPS- Source Code - Android (1.73 MB) (Registered users only) 29/01/2020 3.210.8
Dialog DSPS- Source Code - iOS (6.78 MB) (Registered users only) 29/10/2019 3.220.6
Dialog SmartTags - Source Code - Android (3.3 MB) (Registered users only) 24/10/2019 3.270.6
Dialog SmartTags - Source Code - iOS (5.05 MB) (Registered users only) 23/10/2019 3.280.6
Dialog SUOTA - Source Code - Android (3.03 MB) (Registered users only) 04/05/2020 3.190.18
Dialog SUOTA - Source Code - iOS (4.11 MB) (Registered users only) 04/05/2020 3.200.14
Dialog Voice RCU - Source Code - Android (3.35 MB) (Registered users only) 24/10/2019 3.310.6
IoT Sensors Kit Source Code - Android (13.11 MB) (Registered users only) 03/10/2019 3.250.14
Production Line Tool Kit
Name Date Version
Production Line Tool documents (7.58 KB)
Application Notes
Name Date Version
AN-B-001 : DA14580/581/583 Booting from serial interfaces (1.02 MB) 30/03/2018 2.1
AN-B-007 DA1458x Bluetooth Direct Test Mode (1.28 MB) 02/04/2017 1.2
AN-B-010 DA14580 using SUOTA (Software Update Over The Air) (1.99 MB) 02/12/2016 1.2
AN-B-018 DA14580 Checklist for Schematic and PCB Layout (733.6 KB) 25/04/2018 1.2
AN-B-021 DA1458x WLCSP Light Sensitivity (701.54 KB) 22/02/2017 1.2
AN-B-023 : DA14580 interfacing with external memory (1.87 MB) 08/05/2016 2.1
AN-B-024 : Porting a Keil uVision project to the GNU chain tool (353.49 KB) 16/07/2014 1.1
AN-B-025 : Using Timer 0 (205.86 KB) 23/07/2014 1.1
AN-B-026 : External Processor Wake-up Mechanisms (313.4 KB) 15/08/2014 1.0
AN-B-027: Designing Printed Antennas for Bluetooth Smart (1.64 MB) 25/06/2020 2.3
AN-B-027: Designing Printed Antennas: DXF files (12.38 KB) 04/04/2017 1.0
AN-B-051 SmartSnippets Power Profiler Calibration (829.62 KB) 20/02/2017 1.0
White Papers
Name Date Version
Advances in sensor technology, integration and power management are enabling the future of wearable technology (229.15 KB) 01/01/2017 1.0
Bluetooth Smart - major changes from a small version update (128.96 KB) 01/01/2017 1.0
Bluetooth to get even smarter in 2016 (61.8 KB) 01/01/2016 1.0
DA14580 Remote Control White Paper (899.48 KB) 16/06/2015 1.0
Tutorials
Name Date Version
(Chinese version) Tutorial 1 - Modifying Advertising Parameters (542.29 KB) 05/02/2017 1.0
(Chinese version) Tutorial 2 : Adding Characteristics - Custom Proflle Creation (655.1 KB) 05/02/2017 1.0
(Chinese version) Tutorial 3 : Building Custom Profiles (988.48 KB) 05/02/2017 1.0
(Chinese version) Tutorial 4 : configuring sleep mode on DA1458x (1.25 MB) 05/02/2017 1.0
(Chinese version) Tutorial 5 : Pairing , Bonding & Security (518.02 KB) 05/02/2017 1.0
AN-B-029 : Tutorial - Developing a custom profile on DA1458x (1.56 MB) 29/04/2015 1.0
Tutorial 1 - Modifying Advertising Parameters (617.07 KB) 23/03/2016 1.0
Tutorial 2 : Adding Characteristics - Custom Proflle Creation (761.66 KB) 03/04/2019 1.2
Tutorial 2: Custom profile example (761.66 KB) 03/04/2019 1.2
Tutorial 3 : Building Custom Profiles (988.48 KB) 02/06/2016 1.0
Tutorial 4 : configuring sleep mode on DA1458x (2.44 MB) 02/06/2016 1.0
Tutorial 5 : Pairing , Bonding & Security (812.34 KB) 02/06/2016 1.1
Tutorial 6 : SUOTA TOOL ZIP FILE (92.68 KB) 24/05/2018 1.0
Tutorial 7: DA1458x prototype bring up guide (1.06 MB) 03/02/2017 1.2
Tutorial 8: Debugging methods (1.19 MB) 27/03/2017 1.1
Known limitation list
Name Date Version
DA1458x Hardware Known Limitations (81.22 KB) 19/01/2018 1.0
FCC, ETSI certifications
Name Date Version
DA14580, 581, 582, 583 Declaration of Similarity (42.92 KB) 17/06/2020 2.0
DA14581 EN 300 328 certification test report (580.24 KB) 26/06/2020 2.2.2
DA14581 EN 300 328 certification test report (1.73 MB) 31/07/2017 2.1.1
BT SIG certifications
Name Date Version
DA14580-DA14581-DA14582-DA14583 QDID Controller Subsystem (0 bytes) 24/05/2016 D031115
DA14580-DA14581-DA14582-DA14583 QDID Host Subsystem (0 bytes) 15/06/2017 D031114
RoHS and Reach
Name Date Version
DA1458x REACH declaration (188.37 KB) 22/05/2018 1.0
DA1458x RoHS 2 declaration (183.6 KB) 22/05/2018 1.0
Ref. Design and Dev. Kit Documentation
Name Date Version
DA14580 Range Extender Ref Design Schematics Version 2 (58.98 KB) 05/10/2015 1.0
Release Notes DA1458x DA1468x PLT v4.2 (222.87 KB) 24/10/2017 PLT v4.2
SmartBond™ DA14583 IoT Sensor Development Kit Product Brief (672.07 KB) 01/03/2016 1.0
SmartBond™ DA14583 IoTセンサー開発キット (561.43 KB) 01/01/2016 1.0
SmartBond™ DA14583 物聯網(IoT)感測器開發套件 (567.53 KB) 01/01/2016 1.0
UM-B-040 : DA1458x/68x Production Line Tool libraries (1.51 MB) 24/10/2017 4.2
UM-B-041: SmartBond Production Line Tool User Manual (5.64 MB) 01/10/2020 4.5
UM-B-063 User Manual DA14583 IoT sensor development kit (2.83 MB) (Registered users only) 01/11/2016 1.3
Previous Software Releases
Name Date Version
SDK5.0.3 for DA14580/1/2/3 (4.14 MB) (Registered users only) 08/08/2016 5.0.3
SmartSnippets Toolbox V5.0.12 for Windows OS (1 byte) 14/03/2020 5.0.12
Software Release Notes for version 5.0.3 (644.87 KB) 16/10/2015 5.0.3
Archive
Name Date Version
AN-B-029: Tutorial Files to support AN-B-029 (6.03 MB) (Registered users only) 29/04/2015 1.0
Dialog SmartTags - Source Code - Android (3.76 MB) (Registered users only) 03/04/2017 3.270.2
Dialog SmartTags - Source Code - iOS (5.05 MB) (Registered users only) 23/10/2019 3.280
Dialog SUOTA - Source Code - Android (2.86 MB) (Registered users only) 24/10/2019 3.190.16
Dialog SUOTA - Source Code - Android (3.33 MB) (Registered users only) 31/10/2017 3.19.14
Dialog SUOTA - Source Code - iOS (3.93 MB) (Registered users only) 31/10/2017 3.200.10
Dialog SUOTA - Source Code - iOS (4.09 MB) (Registered users only) 29/10/2019 3.200.12
Low Power Connectivity Software License Agreement (120.04 KB)
SmartSnippets Studio V2.0.10 for Linux OS (810.84 MB) 02/10/2019 2.0.10
SmartSnippets Studio V2.0.10 for Windows OS (575.68 MB) 02/10/2019 2.0.10
SmartSnippets Studio V2.0.12 for Linux OS (1 byte) 14/03/2020 2.0.12
SmartSnippets Studio V2.0.12 for Windows OS (1 byte) 14/03/2020 2.0.12
SmartSnippets Studio V2.0.14 for Linux OS (870.09 MB) 28/05/2020 2.0.14
SmartSnippets Studio V2.0.14 for Windows OS (705.78 MB) 28/05/2020 2.0.14
SmartSnippets Studio V2.0.7 for Linux OS (834.05 MB) 15/02/2019 2.0.7
SmartSnippets Studio V2.0.7 for Windows OS (604.71 MB) 15/02/2019 2.0.7
SmartSnippets Studio V2.0.8 for Linux OS (834.34 MB) 03/04/2019 2.0.8
SmartSnippets Studio V2.0.8 for Windows OS (607.06 MB) 03/04/2019 2.0.8
SmartSnippets Toolbox Release Notes (507.24 KB) 27/09/2019 5.0.10
SmartSnippets Toolbox V5.0.10 for for Linux OS (205.02 MB) 02/10/2019 5.0.10
SmartSnippets Toolbox V5.0.10 for Windows OS (137.45 MB) 02/10/2019 5.0.10
SmartSnippets Toolbox V5.0.12 for for Linux OS (1 byte) 14/03/2020 5.0.12
SmartSnippets Toolbox V5.0.14 for for Linux OS (162.73 MB) 28/05/2020 5.0.14
SmartSnippets Toolbox V5.0.14 for Windows OS (123.2 MB) 28/05/2020 5.0.14
SmartSnippets Toolbox V5.0.7 for for Linux OS (193.92 MB) 08/02/2019 5.0.7
SmartSnippets Toolbox V5.0.7 for Windows OS (128.51 MB) 08/02/2019 5.0.7
SmartSnippets Toolbox V5.0.8 for for Linux OS (194.13 MB) 03/04/2019 5.0.8
SmartSnippets Toolbox V5.0.8 for Windows OS (128.72 MB) 03/04/2019 5.0.8
UM-B-011 DA14580 Memory Map Excel Tool (42.23 KB) 01/01/2015 1.1
UM-B-012 DA14580/581/583 Creation of a secondary boot loader (1.15 MB) 24/08/2016 3.2
UM-B-041: User Manual DA1458x-DA1468x Production Line Tool Software and HW v4.2 (7.13 MB) 24/10/2017 V4.2 LEGACY
UM-B-041: User Manual DA1458x-DA1468x Production Line Tool Software and HW v4.3 (9.78 MB) 09/08/2018 V4.3

Discontinued Development Kits and Reference Designs

Hardware Development Kits based on DA14580 and DA14583
DA14580 Development Kit – Basic
DA14580 Development Kit – Pro
DA14583 Development Kit – Pro
Video thumbnail, click to open and play

SmartBond™ DA14580

Video thumbnail, click to open and play

SDK 5.0.x Introduction

Video thumbnail, click to open and play

SDK 5.0.x Introduction (Chinese)

DA14580 Modules Portfolio offering pre-certified systems in a package
Module Key features  
ALPS / UGMZ2A1
  • Built-in 2 crystals: reference 16 MHz, sub 32.768 kHz
  • FCC and CE certification
  • Very small package: (W x D x H) 4.55 × 4.7 × 1.0 mm
Buy now
ALPS / UGMZ2AA
  • 4.7 × 4.7 × 2.0 mm
  • Embedded antenna
  • 2 internal 16 MHz crystal oscillators
Buy now
Hongjia / HJ-580CY
  • Integrated crystal oscillator and PCB trace antenna
  • Power supply : 2.5V to 6.5V
  • Supports WeChat, Xiaomi MiSDK
Buy now
Hongjia / HJ-580LA
  • Small footprint  5.3mm * 6.6mm (Includes Antenna)
  • Package: 1.0mm Pad spacing, stamp hole (half hole) package.
  • Supports WeChat, Xiaomi MiSDK
Buy now
Murata / LBCA2BZZFZ
  • 5.4 x 4.4 x 1.0 mm
  • Industrial temperature range: -40 to 85°C
  • Internal 16 MHz crystal oscillator
Buy now
Murata / LBCA2HNZYZ
  • 7.4 x 7.0 x 1.0 mm
  • Antenna on board
  • Industrial temperature range: -40 to 85°C
Buy now
Panasonic / PAN1740
  • 9 mm x 9.5 mm x 1.8 mm
  • Integrated antenna
  • Industrial temperature range: -40 to 85°C
Buy now
TDK Corporation / SESUB-PAN-D14580
  • 3.5 x 3.5 x 1.0mm
  • Consumer temperature range: -20 to 70°C
  • Internal 16 MHz crystal oscillator
Buy now

Buy now

Product Shop
Production Line Tool Kit (PLT) Avnet US
Back to results

DA14580

1 year ago

I2C pin problem

Posted by yekun 175 points 6 replies
0 upvotes

 

      In table 20 of the da14585_datasheet SCL and SDA pins are specified,However, various pins are used in the instance program;

  • Can I2C pin be used freely?
  • If I use I2C, what pins can I use?

     I hope you can help me.

 

    https://www.dialog-semiconductor.com/sites/default/files/da14585_datasheet_3v3.pdf

    I2C    SCL P0_0 P0_2 P0_4 P0_6

            SDA P0_1 P0_3 P0_5 P0_7

 

1 year ago

PM_Dialog

Hi yekun,

Can you please clarify what you are trying to accomplish? Do you want to connect a peripheral interface via i2C, or boor from EEPROM over I2C?

Thanks, PM_Dialog

1 year ago

I want to use IIC to read the hygrometer sensor;However, in the example program I2C_Accel_Data_Notiifcation, Dialog USES P1_2 with P1_0 as the IIC pin.But in the example program McP9808, P1_2,P0_7;If I use IIC to read peripherals, which set of IIC pins should I select and what other set of IIC pins can I choose?

Thanks  

1 year ago

PM_Dialog

Hi yekun,

In datasheet, in figure 20, the booting sequence is described. You can use any of the GPIOs for I2C. All you need to do is to configure the GPIOs correctly in user_periph_setup.h / .c files.

Thanks, PM_Dialog

2 weeks ago

Hello 

 

I am also looking at how to use the I2C, but I am not really sure where to find the Figure 20 you are referring to here? 

Would you please be so kind and let me know, if this Figure could be found here Bluetooth 5.0 SoC with Audio Interface (dialog-semiconductor.com) or what should be followed with regard to using the I2C and read data from the sensor ... ?

Please have a look at the examples from the " i2c eeprom " below and let me know what should we look at to change as an example !

Best.

 

/**
 ****************************************************************************************
 *
 * @file periph_setup.c
 *
 * @brief Peripherals initialization functions
 *
 * Copyright (C) 2012-2019 Dialog Semiconductor.
 * This computer program includes Confidential, Proprietary Information
 * of Dialog Semiconductor. All Rights Reserved.
 *
 ****************************************************************************************
 */

/*
 * INCLUDE FILES
 ****************************************************************************************
 */

#include "user_periph_setup.h"
#include "gpio.h"
#include "uart.h"
#include "i2c.h"
#include "i2c_eeprom.h"
#include "syscntl.h"

/*
 * GLOBAL VARIABLE DEFINITIONS
 ****************************************************************************************
 */

static void set_pad_functions(void)
{
/*
    i.e. to set P0_1 as Generic purpose Output:
    GPIO_ConfigurePin(GPIO_PORT_0, GPIO_PIN_1, OUTPUT, PID_GPIO, false);
*/

#if defined (__DA14586__)
    // Disallow spontaneous DA14586 SPI Flash wake-up
    GPIO_ConfigurePin(GPIO_PORT_2, GPIO_PIN_3, OUTPUT, PID_GPIO, true);
#endif

    // Configure UART2 pin functionality
    GPIO_ConfigurePin(UART2_TX_PORT, UART2_TX_PIN, OUTPUT, PID_UART2_TX, false);

    // Configure I2C pin functionality
    GPIO_ConfigurePin(I2C_SCL_PORT, I2C_SCL_PIN, INPUT, PID_I2C_SCL, false);
    GPIO_ConfigurePin(I2C_SDA_PORT, I2C_SDA_PIN, INPUT, PID_I2C_SDA, false);
}

// Configuration struct for UART2
static const uart_cfg_t uart_cfg = {
    .baud_rate = UART2_BAUDRATE,
    .data_bits = UART2_DATABITS,
    .parity = UART2_PARITY,
    .stop_bits = UART2_STOPBITS,
    .auto_flow_control = UART2_AFCE,
    .use_fifo = UART2_FIFO,
    .tx_fifo_tr_lvl = UART2_TX_FIFO_LEVEL,
    .rx_fifo_tr_lvl = UART2_RX_FIFO_LEVEL,
    .intr_priority = 2,
};

// Configuration struct for I2C
static const i2c_cfg_t i2c_cfg = {
    .clock_cfg.ss_hcnt = I2C_SS_SCL_HCNT_REG_RESET,
    .clock_cfg.ss_lcnt = I2C_SS_SCL_LCNT_REG_RESET,
    .clock_cfg.fs_hcnt = I2C_FS_SCL_HCNT_REG_RESET,
    .clock_cfg.fs_lcnt = I2C_FS_SCL_LCNT_REG_RESET,
    .restart_en = I2C_RESTART_ENABLE,
    .speed = I2C_SPEED_MODE,
    .mode = I2C_MODE_MASTER,
    .addr_mode = I2C_ADDRESS_MODE,
    .address = I2C_SLAVE_ADDRESS,
    .tx_fifo_level = 1,
    .rx_fifo_level = 1,
};

// Configuration struct for I2C EEPROM
static const i2c_eeprom_cfg_t i2c_eeprom_cfg = {
    .size = I2C_EEPROM_DEV_SIZE,
    .page_size = I2C_EEPROM_PAGE_SIZE,
    .address_size = I2C_ADDRESS_SIZE,
};

void periph_init(void)
{
#if defined (__DA14531__)
    // Disable HW Reset functionality of P0_0
    GPIO_Disable_HW_Reset();
    // In Boost mode enable the DCDC converter to supply VBAT_HIGH for the used GPIOs
    // Assumption: The connected external peripheral is powered by 3V
    syscntl_dcdc_turn_on_in_boost(SYSCNTL_DCDC_LEVEL_3V0);
#else
    // Power up peripherals' power domain
    SetBits16(PMU_CTRL_REG, PERIPH_SLEEP, 0);
    while (!(GetWord16(SYS_STAT_REG) & PER_IS_UP));
    SetBits16(CLK_16M_REG, XTAL16_BIAS_SH_ENABLE, 1);
#endif

    // Initialize UART2
    uart_initialize(UART, &uart_cfg);

    // Configure I2C EEPROM environment
    i2c_eeprom_configure(&i2c_cfg, &i2c_eeprom_cfg);

    // Initialize I2C
    i2c_eeprom_initialize();

    // Set pad functionality
    set_pad_functions();

    // Enable the pads
    GPIO_set_pad_latch_en(true);
}
/**
 ****************************************************************************************
 *
 * @file user_periph_setup.h
 *
 * @brief Peripherals setup header file.
 *
 * Copyright (C) 2015-2020 Dialog Semiconductor.
 * This computer program includes Confidential, Proprietary Information
 * of Dialog Semiconductor. All Rights Reserved.
 *
 ****************************************************************************************
 */

#ifndef _USER_PERIPH_SETUP_H_
#define _USER_PERIPH_SETUP_H_

/*
 * INCLUDE FILES
 ****************************************************************************************
 */

#include "uart.h"
#include "gpio.h"
#include "i2c_eeprom.h"

/*
 * DEFINES
 ****************************************************************************************
 */

/****************************************************************************************/
/* UART2 configuration to print messages                                                */
/****************************************************************************************/
#define UART                        UART2
// Define UART2 Tx Pad
#if defined (__DA14531__)
    #define UART2_TX_PORT           GPIO_PORT_0
    #define UART2_TX_PIN            GPIO_PIN_6
#else
    #define UART2_TX_PORT           GPIO_PORT_0
    #define UART2_TX_PIN            GPIO_PIN_4
#endif

// Define UART2 Settings
#define UART2_BAUDRATE              UART_BAUDRATE_115200
#define UART2_DATABITS              UART_DATABITS_8
#define UART2_PARITY                UART_PARITY_NONE
#define UART2_STOPBITS              UART_STOPBITS_1
#define UART2_AFCE                  UART_AFCE_DIS
#define UART2_FIFO                  UART_FIFO_EN
#define UART2_TX_FIFO_LEVEL         UART_TX_FIFO_LEVEL_0
#define UART2_RX_FIFO_LEVEL         UART_RX_FIFO_LEVEL_0

/****************************************************************************************/
/* I2C configuration                                                                    */
/****************************************************************************************/
// Define I2C Pins
#if defined (__DA14531__)
    #define I2C_SCL_PORT            GPIO_PORT_0
    #define I2C_SCL_PIN             GPIO_PIN_3
    #define I2C_SDA_PORT            GPIO_PORT_0
    #define I2C_SDA_PIN             GPIO_PIN_1
#else
    #define I2C_SCL_PORT            GPIO_PORT_2
    #define I2C_SCL_PIN             GPIO_PIN_3
    #define I2C_SDA_PORT            GPIO_PORT_2
    #define I2C_SDA_PIN             GPIO_PIN_1
#endif

// Select EEPROM characteristics
#define I2C_EEPROM_DEV_SIZE         0x20000               // EEPROM size in bytes
#define I2C_EEPROM_PAGE_SIZE        256                   // EEPROM page size in bytes
#define I2C_SLAVE_ADDRESS           0x50                  // Set slave device address
#define I2C_SPEED_MODE              I2C_SPEED_FAST        // Speed mode: I2C_SPEED_STANDARD (100 kbits/s), I2C_SPEED_FAST (400 kbits/s)
#define I2C_ADDRESS_MODE            I2C_ADDRESSING_7B     // Addressing mode: {I2C_ADDRESSING_7B, I2C_ADDRESSING_10B}
#define I2C_ADDRESS_SIZE            I2C_2BYTES_ADDR       // Address width: {I2C_1BYTE_ADDR, I2C_2BYTES_ADDR, I2C_3BYTES_ADDR}



/*
 * FUNCTION DECLARATIONS
 ****************************************************************************************
 */

/**
 ****************************************************************************************
 * @brief   Initializes application's peripherals and pins
 ****************************************************************************************
 */
void periph_init(void);

/**
 ****************************************************************************************
 * @brief Set gpio port function mode
 ****************************************************************************************
 */
void set_pad_functions(void);

#endif // _USER_PERIPH_SETUP_H_

 

 

2 weeks ago

PM_Dialog

Hi There, 

Can you please create a new forum thread as this one is old and closed? 

Thanks, PM_Dialog

2 weeks ago