资料介绍
Table of Contents
ADT7420 PMOD Temperature Demo
The ADuCM360_demo_adt7420_pmdz is a temperature demo project for the EVAL-ADICUP360 base board with an EVAL-ADT7420-PMDZ PMOD board from Analog Devices, using the GNU ARM Eclipse Plug-ins in Eclipse environment.
General description
This project is an example for how to use EVAL-ADICUP360 board in combination with the EVAL-ADT7420-PMDZ Temperature PMOD.
The ADuCM360_demo_adt7420_pmdz project uses the EVAL-ADT7420-PMDZ which has the ADT7420 0.25 degree accurate digital temperature sensor on board.
The application reads the temperature data from the ADT7420 and displays the temperature in [codes] and [C] on a serial terminal. The temperature data can be changed between 16-bit(0.0078 C/LSB) and 13-bit(0.0625 C/LSB) accurate depending on the resolution needed. The application also prints out the device ID register, which is just a quick and easy check to ensure the reads are working properly.
All the outputs are printed from the UART to the USER USB port using P0.6 and P0.7, and can be read on the PC using a serial terminal program, such as Putty or Tera Term. The user must ensure that the USB cable is connected to the USER USB port in order to read back values in Putty. Also, the user must press the
Demo Requirements
The following is a list of items needed in order to replicate this demo.
- Hardware
- EVAL-ADICUP360
- EVAL-ADT7420-PMDZ
- Mirco USB to USB cable
- PC or Laptop with a USB port
- Software
- ADuCM360_demo_adt7420_pmdz software
- CrossCore Embedded Studio (2.7.0 or higher)
- ADuCM36x DFP (1.0.2 or higher)
- CMSIS ARM Pack (4.3.0 or higher)
- Serial Terminal Program
- Such as Putty or Tera Term
Setting up the hardware
- To program the base board, set the jumpers/switches as shown in the next figure. The important jumpers/switches are highlighted in red.
- Plug the EVAL-ADT7420-PMDZ PMOD in the EVAL-ADICUP360 base board, via the PMOD_I2C port (P10).
- Plug in the USB cable from the PC to the EVAL-ADICUP360 base board via the Debug USB.(P14)
Obtaining the source code
We recommend not opening the project directly, but rather import it into CCES and make a local copy in your workspace.
The source code and include files of the ADuCM360_demo_adt7420_pmdz can be found on Github:
CrossCore Embedded Studio Application Source Code:
AduCM360_demo_adt7420_pmdz at Github
For more information on importing, debugging, or other tools related questions, please see the tools user guide.
Configuring the Software Parameters
Configure the ADT7420 I2C address in the ADT7420.h file to match the hardware.
/* ADT7420 I2C Address */ #define ADT7420_ADDRESS 0x48 /* Default I2C Address of EVAL-ADT7420-PMDZ */
Configure the ADT7420 in the operating mode you want using the ADT7420.c file
uint8_t ui8configAdt7420 = (FAULT_TRIGGER_4 | CT_PIN_POLARITY | INT_PIN_POLARITY | INT_CT_MODE |CONTINUOUS_CONVERSION_MODE | RESOLUTION_13_BITS); /* False Trigger Count */ #define FAULT_TRIGGER_1 /* 1 fault reading triggers an interrupt */ #define FAULT_TRIGGER_2 /* 2 fault readings triggers an interrupt */ #define FAULT_TRIGGER_3 /* 3 fault readings triggers an interrupt */ #define FAULT_TRIGGER_4 /* 4 fault readings triggers an interrupt */ /* Alarm Logic Levels */ #define CT_PIN_POLARITY /* Critical temp active logic level */ #define INT_PIN_POLARITY /* Interrupt temp active logic level */ /* Interrupt Mode */ #define INT_CT_MODE /* Selects comparator or interrupt mode */ /* Conversion Mode */ #define CONTINUOUS_CONVERSION_MODE /* Continuous conversion */ #define ONE_SHOT_MODE /* One shot conversion, then shuts down */ #define ONE_SAMPLE_PER_SECOND_MODE /* One second between readings */ #define SHUTDOWN_MODE /* Power down mode activated */ /* Resolution */ #define RESOLUTION_13_BITS /* 13-bit Temperature data */ #define RESOLUTION_16_BITS /* 16-bit Temperature data */
Assign values to your different temperature setpoints and alarms/interrupts in the ADT7420.h file
/* Temperature monitoring parameters */ #define TEMP_HIGH_SETPOINT 75 /* Value in Degree C */ #define TEMP_LOW_SETPOINT 0 /* Value in Degree C */ #define TEMP_CRITICAL_SETPOINT 100 /* Value in Degree C */ #define TEMP_HYSTERSIS_SETPOINT 5 /* Value in Degree C */
Outputting Data
Serial Terminal Output
- In order to view the data, you must flash the program to the EVAL-ADICUP360.
- Once complete you will need to switch the USB cable from the DEBUG USB (P14) to the USER USB (P13).
- Then follow the UART settings below with the serial terminal program.
Following is the UART configuration.
Select COM Port Baud rate: 9600 Data: 8 bit Parity: none Stop: 1 bit Flow Control: none
The user must press the
How to use the Tools
The official tool we promote for use with the EVAL-ADICUP360 is CrossCore Embedded Studio. For more information on downloading the tools and a quick start guide on how to use the tool basics, please check out the Tools Overview page.
Importing
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to import existing projects into your workspace section.
Debugging
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to configure the debug session section.
Project Structure
This is the ADuCM360_demo_adt7420_pmdz project structure.
This project contains: system initialization part - disabling watchdog, setting system clock, enabling clock for peripheral; port configuration for I2C, temperature sensor data; I2C read/write functions; threshold monitoring.
In the src and include folders you will find the source and header files related to adt7420_pmdz application. You can modify those files as appropriate for your application. The Communication.c/h files contain I2C and UART specific data, meanwhile the ADT7420.c/h files contain the temperature information data and threshold registers. Here are parameters you can configure:
The RTE folder contains device and system related files:
- Device Folder – contains low levels drivers for ADuCM360 microcontroller.(try not to edit these files)
- system.rteconfig - Allows the user to select the peripherial components they need, along with the startup and ARM cmsis files needed for the project.
End of Document
- ADT7420 IBIS型号
- UG-138:评估ADT7320/ADT7420温度传感器
- ADT7320/ADT7420:数字温度传感器常见问题
- ADT7420 pmod Xilinx FPGA参考设计
- ADT7420 pmod硬件用户指南
- EVAL-ADT7420MBZ-原理图
- EVAL-ADT7420ARDZ-原理图
- AD7124-8 pmod软件用户指南
- ADT7420:±0.25°C精度、16位数字I2C温度传感器
- ADT7420参考代码
- EVAL-ADT7420MBZ - Schematic
- EVAL-ADT7420ARDZ - Schematic
- 基于EVAL-ADT7420FBZ温度量测的参考设计
- 16位数字I2C温度传感器adt7420数据表 17次下载
- ADT7420中文数据手册 35次下载
- 上位机软件的用户界面设计技巧 773次阅读
- 如何使用openEuler用户软件仓(EUR) 1223次阅读
- 基于STM32 MCU应用的EMC指南之软件篇 1020次阅读
- 基于Android开发的ADT获取内存中的敏感信息 1049次阅读
- EsDA为用户带来简单易用的软件设计体验 1884次阅读
- 数字温度传感器ADT75的特点及应用实例分析 3651次阅读
- digilent适配器上的DIP模块介绍 1665次阅读
- digilent恒温控制模块介绍 1526次阅读
- digilent转Pmod标准适配扩展板简介 1414次阅读
- digilentPmod专用线套件(6)介绍 1171次阅读
- digilentPmod MicroSD: microSD 卡槽介绍 2794次阅读
- digilent chipKIT Pmod Shield - Uno R3标准转Pmo扩展板介绍 2133次阅读
- 一款以BitTorrent代币连接和奖励用户的软件BitTorrent Speed介绍 3328次阅读
- 没有直接可用的Pmod驱动怎么办?教你一招 2267次阅读
- 无驱动问题的Zynq搭配Pmod开发解决方案 1830次阅读
下载排行
本周
- 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次下载 | 免费
评论
查看更多