资料介绍
This is an old revision of the document!
Table of Contents
Sigma Delta ADC Temperature-BLE Demo
Introduction
This page gives an overview of using the Analog Devices Sigma Delta ADCs with Cortex-M3 ARM processor based ADuCM3029 Cog Eval Board. The intended demo application shows how to convert an external sensor data into actual units and transmit them over either Bluetooth or UART link using ADIs ADuCM3029 Cog board and Bluetooth Eval board. The operation can be better illustrated using below diagram.
Interface Overview
1) Temperature Sensing using Sigma Delta ADCs
The below diagram shows the temperature sensing scheme using AD7124 Sigma Delta ADC. It uses T-Type thermocouple and 2-wire RTD sensors as an external analog inputs. The Thermocouple acts as a hot junction and RTD as a cold junction compensation. This combination provides a precise measurements of ambient temperature over a very wide range.
AD7124 Eval board has default on-board KTY-81/110 RTD sensor (silicon Thermistor) connected between analog inputs AIN4 and AIN5. However, for the complete RTD measurement, the precision resistor (Rref) needs to be connectd externally along with Rhead headroom resistor. Rref needs to have 0.1% precision for complete accuracy. The choice of this reference resistor depends upon the Ref output voltage and excitation current. Use below application note for more details on the temperature sensing using RTD:
RTD Measurement System Using a Precision Sigma-Delta ADC
Thermocouple needs to be connected externally between analog inputs AIN2 and AIN3. Use below application note for more details on the temperature sensing using Thermocouple:
Thermocouple Measurement System Using a Precision Sigma-Delta ADC
For temperature sensing using AD7124 Eval board and ADuCM3029 COG board please use below software and hardware configuration:
T-Type Thermocouple (Chn0):
- AINP: AIN2, AINM: AIN3
- PGA Gain: 128
- Internal Vref Enabled
- Vbias enabled on AIN3
RTD Thermistor (Chn1):
- AINP: AIN4, AINM: AIN5
- PGA Gain: 8
- REFIN1+ and REFIN1- Enabled
- Excitation current set to 100uA on AIN2 (Iout0) pin
- Precision Reference: 22 Kohm and Rheadroom: 250 Ohm
Other Jumper Setting:
- LK3, LK4 and LK5 Removed
- LK6 both inserted
2) Interfacing ADuCM3029 Cog Board with Sigma Delta ADCs/Eval Board
The ADuCM3029 COG board is connected to Sigma Delta ADC Eval board using a Gear Expander board. Depending upon the digital interface used on Sigma Delta ADCs, the connection could be either 4 line SPI or 3 line I2C. The connection can be done either using SDP breakout board or by directly soldering fly wires from the ADC Evaluation board to ADuCM3029 Expander Gear board. The sample connection for the AD7124 Eval board with COG board is shown below using a fly wires. The wires are directly soldered on the Eval board, but for better connection, use the SDP breakout board:
3) Interfacing ADuCM3029 Cog Board with Bluetooth Eval Board
The below diagrams shows the connection between ADuCM3029 COG Board and Bluetooth Eval board. There are no additional jumper settings needed. Please refer user manual for more details on the hardware connection:
Primary-side
Secondary-side
4) Leveraging ADuCM3029 Cog On-Board Peripherals
In addition to Sigmal Delta ADC interface and Bluetooth interface, the ADuCM3029 has number of on-board peripherals, including ADT7420 Temperature sensor, ADXL362 Accelerometer, Push buttons and LEDs, SD Card, Wi-Fi/RF interface, etc. The firmware interface with ADT7420 temperature sensor and ADXL362 accelerometer to transmit sensor data. Also, it uses Push button PB1 to come out of Hibernate mode, which is tied to External Interrupt 1 pin. The ADXL362 interrupt ativity pin is tied to external interrupt 2. Both these interrupts are used by MCU to come out of hibernate mode. The PB2 is used to select the next sensor scanning and must be pressed when MCU is awake. This can be done by pressing PB1 first and them immediately PB2, which will first take MCU out of hibernate mode and then will select next sensor for sampling.
Firmware Overview
Downloads
Latest firmware (Use below link):
Development Tools
The firmware uses Analog Devices Cross Core Embedded Studio (CCES) as a development IDE, with in-built ARM GCC compiler. To develop CCES ARM based project, follow below wiki page guidelines:
https://wiki.analog.com/resources/eval/user-guides/eval-adicup3029/tools/cces_user_guide
Code Structure
The tempsensor project is compiled externally to BLE demo firmware project. The “libtempsensors.a” library file generated by this project is used during linking time in “sd-adc_cces_temperature-to-ble” project. So, when compiling the project, both these project must be present in same workspace.
Using the Firmware
Device Linker File Configuration (ADuCM3029.ld)
Because of the hibernate mode implementation, the device linker file has been modified to map the .data and .bss sections of memory to Bank0 and Bank1 of SRAM. The MCU in hibernate does not retain the contents of upper 16Kbytes of SRAM (Bank 3,4 and 5). Hence to avoid loosing data, it is necessary to map the data and bss sections to DSRAM_A in linker configuration file.
*Note: This has already been done in the distributed firmware. In case, you are not using hibernate mode, you can revert it back to DSRAM_B (the default one).
.data : AT (__etext) { . . } > DSRAM_A .bss : { . . } > DSRAM_A
CMSIS Compatibility (startup_ADuCM3029.c)
The ADuCM3029 software package startup file is not yet updated to support latest changes in the ARM CMSIS drivers (CMSIS-CORE (M) Version 5.3.0 and above) and it creates conflicts in the startup_ADuCM3029.c file for duplicate identifiers. To avoid this conflict, startup file is modified as below:
#if __CM_CMSIS_VERSION < 0x050003 // For CMSIS-CORE(M) version 5.3.0 above, the below variables have defined // with different data types in cmsis_gcc.h file from the device CMSIS pack. // The ADuCM3029 start-up code is not yet up-to-date with the latest changes from // the CMSIS pack. Hence commenting below code to avoid compilation errors. extern uint32_t __copy_table_start__; extern uint32_t __copy_table_end__; extern uint32_t __zero_table_start__; extern uint32_t __zero_table_end__; #endif
main.cpp
The entry point to firmware is defined in main.cpp file (a main function). This function is responsible for initializing and configuring the system peripherals. This module is also responsible for getting the sensor data from sampling engines and dispatch it over Low Energy Bluetooth Link or/and UART link.
The selection b/w UART or Bluetooth dispatcher service can be done by commenting/uncommenting below macro. The UART link is also used to log the debug messages and so even with Bluetooth dispatcher service, you should be able to see all debug and sensor data messages on UART link.
/* Select communication mode. Comment below to select UART as default com mode */ //#define ADI_BLUETOOTH_COMM
The following sensors are used in the firmware and data from them is dispatched over UART/Bluetooth Link:
- Thermocouple + RTD (Temperature Sensor interfaced with Sigma Delta ADC e.g AD7124)
- ADT7420 (ADuCM3029 COG On-Board Temperature Sensor)
- ADXL362 (ADuCM3029 COG On-Board Accelerometer Sensor)
The processor is put into hibernate sleep mode after every frame transmission for 10sec timeout period. This is handled in main.cpp module as below:
/* * This puts the processor into hibernation mode, waiting for interrupts * The following interrupts can can wake the processor * BTN1 - user initiates sample * Axl - acceleration threshold exceeded, triggers a Sample and transmit data * RTC - Sample and transmit data on a periodic basic * * Before entering into hibernate mode, all the used peripherals must be * disable. Once the hibernate mode is exited by one of the above mentioned * interrupts, the peripherals which were disabled before, must be enabled again. * * In addition to that, when device exits from hibernate mode, by default * only the Bank0/Bank1 of data SRAM is retained. Therefore it is required * to map .data and .bss sections of memory to Bank0/1 of SDRAM in the device * linker file of the project (ADuCM3029.ld), so that data is retained when * controller comes out of hibernate mode. */ /* Perform the operations needed before entering into hibernate mode */ do_pre_hibernate_entry_operations(); /* enter full hibernate mode with no wakeup flag (always go back to sleep) and no masking */ if (adi_pwr_EnterLowPowerMode(ADI_PWR_MODE_HIBERNATE, &iHibernateExitFlag, 0)) { DEBUG_MESSAGE("System Entering to Low Power Mode failed"); } /* Perform the operations needed after exit from hibernate mode */ do_post_hibernate_exit_operations();
app_config.h
This file allows user to select active Sigma Delta ADC that is used for external temperature sensing:
// **** Note for User: Active Device selection **** // Select the device type from the list of below device type defines // e.g. #define DEV_AD7124 -> This will make AD7124 as an Active Device. // The Active Device is default set to AD7124, if device type is not defined. #if defined DEV_AD7124 #define ACTIVE_DEVICE ID_AD7124 #else #warning "No active device defined. AD7124 selected as default device" #define DEV_AD7124 #define ACTIVE_DEVICE ID_AD7124 #endif
Dispatching Data Over Bluetooth/UART Link
The Bluetooth sensor data can be captured using a Analog Devices IoT node smart IOS application (for IOS/apple based devices). The application can be downloaded from below link:
https://apps.apple.com/us/app/iotnode/id1242751625#?platform=iphone
The more information about the bluetooth packet format is provided below:
https://wiki.analog.com/resources/eval/user-guides/eval-adicup3029/smart_app/ble_connect
For observing data using UART link using serial terminal (e.g. Tera Term), use below serial settings:
- Baud rate: 115200
- Data bits: 8-bits
- Parity: None
- Stop bits: 1
- 利用ADuCM3027/ADuCM3029器件和内置闪存仿真EEPROM的软件应用笔记说明 0次下载
- ADuCM3029 EZ-KIT电路板设计数据库 0次下载
- ADZS UM3029ZEZ EVAL-ADuCM3029 EZ-KIT用于ADuCM3027和ADuCM3029的ADuCM3029评估硬件(64引脚QFN) 0次下载
- UG-1310:使用ADF7030-1、ADuCM3029、ADP5310和SKY65377-21的FCC Part 90参考设计 1次下载
- 用于ADuCM3027/ADuCM3029微控制器的UG-1044:EZ-KIT ADZS-UCM3029EZLITE 1次下载
- ADuCM3029 EZ-KIT评估系统手册 1次下载
- UG-944:如何重现ADuCM3027/ADuCM3029的EEMBC分数 0次下载
- UG-1091:如何设置和使用ADuCM3027/ADuCM3029 0次下载
- ADuCM3027/ADuCM3029超低功耗微控制器 9次下载
- UG-1205:如何在EV-COG-AD3029LZ上再现ADuCM3027/ADuCM3029 EEMBC分数 1次下载
- ADuCM3029 EZ-KIT物料清单 2次下载
- ADuCM3029 EZ-KIT原理图 4次下载
- BLE实验详解之蓝牙温度计设计方案 25次下载
- ADuCM3029 EZ-KIT电路板设计数据库 3次下载
- AN-1457: ADuCM3027/ ADuCM3029 集成 ADC 的性能优化 0次下载
- 开发超低功耗系统时选择合适的微控制器的策略 705次阅读
- 音频处理器怎么接线 1.2w次阅读
- ARM协处理器接口 1260次阅读
- 基于AP3029变换器的WLED背光驱动电源设计 2101次阅读
- 温度传感器在微处理器中的应用 2488次阅读
- 协处理器的介绍及应用 3606次阅读
- arm的协处理器有几个?ARM协处理器详解 8505次阅读
- 骁龙835有协处理器吗 6126次阅读
- 有哪些手机内置了协处理器_五款内置协处理器的手机介绍 1.5w次阅读
- cortex-a9是什么处理器_cortex-a9处理器介绍 2.4w次阅读
- ADUCM36的精密热电偶温度监控应用解析 1408次阅读
- ADuCM360设计与外部精密传感器连接应用 2368次阅读
- TMS320C6678处理器的VLFFT演示探讨与研究 3930次阅读
- 协处理器是什么_intel协处理器有什么用 2.5w次阅读
- 32位嵌入式处理器与8位处理器应用开发的区别 1483次阅读
下载排行
本周
- 1电子电路原理第七版PDF电子教材免费下载
- 0.00 MB | 1491次下载 | 免费
- 2单片机典型实例介绍
- 18.19 MB | 95次下载 | 1 积分
- 3S7-200PLC编程实例详细资料
- 1.17 MB | 27次下载 | 1 积分
- 4笔记本电脑主板的元件识别和讲解说明
- 4.28 MB | 18次下载 | 4 积分
- 5开关电源原理及各功能电路详解
- 0.38 MB | 11次下载 | 免费
- 6100W短波放大电路图
- 0.05 MB | 4次下载 | 3 积分
- 7基于单片机和 SG3525的程控开关电源设计
- 0.23 MB | 4次下载 | 免费
- 8基于AT89C2051/4051单片机编程器的实验
- 0.11 MB | 4次下载 | 免费
本月
- 1OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 2PADS 9.0 2009最新版 -下载
- 0.00 MB | 66304次下载 | 免费
- 3protel99下载protel99软件下载(中文版)
- 0.00 MB | 51209次下载 | 免费
- 4LabView 8.0 专业版下载 (3CD完整版)
- 0.00 MB | 51043次下载 | 免费
- 5555集成电路应用800例(新编版)
- 0.00 MB | 33562次下载 | 免费
- 6接口电路图大全
- 未知 | 30320次下载 | 免费
- 7Multisim 10下载Multisim 10 中文版
- 0.00 MB | 28588次下载 | 免费
- 8开关电源设计实例指南
- 未知 | 21539次下载 | 免费
总榜
- 1matlab软件下载入口
- 未知 | 935053次下载 | 免费
- 2protel99se软件下载(可英文版转中文版)
- 78.1 MB | 537793次下载 | 免费
- 3MATLAB 7.1 下载 (含软件介绍)
- 未知 | 420026次下载 | 免费
- 4OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 5Altium DXP2002下载入口
- 未知 | 233046次下载 | 免费
- 6电路仿真软件multisim 10.0免费下载
- 340992 | 191183次下载 | 免费
- 7十天学会AVR单片机与C语言视频教程 下载
- 158M | 183277次下载 | 免费
- 8proe5.0野火版下载(中文版免费下载)
- 未知 | 138039次下载 | 免费
评论
查看更多