資料介紹
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型號(hào)
- UG-138:評(píng)估ADT7320/ADT7420溫度傳感器
- ADT7320/ADT7420:數(shù)字溫度傳感器常見(jiàn)問(wèn)題
- ADT7420 pmod Xilinx FPGA參考設(shè)計(jì)
- ADT7420 pmod硬件用戶(hù)指南
- EVAL-ADT7420MBZ-原理圖
- EVAL-ADT7420ARDZ-原理圖
- AD7124-8 pmod軟件用戶(hù)指南
- ADT7420:±0.25°C精度、16位數(shù)字I2C溫度傳感器
- ADT7420參考代碼
- EVAL-ADT7420MBZ - Schematic
- EVAL-ADT7420ARDZ - Schematic
- 基于EVAL-ADT7420FBZ溫度量測(cè)的參考設(shè)計(jì)
- 16位數(shù)字I2C溫度傳感器adt7420數(shù)據(jù)表 17次下載
- ADT7420中文數(shù)據(jù)手冊(cè) 35次下載
- 上位機(jī)軟件的用戶(hù)界面設(shè)計(jì)技巧 773次閱讀
- 如何使用openEuler用戶(hù)軟件倉(cāng)(EUR) 1223次閱讀
- 基于STM32 MCU應(yīng)用的EMC指南之軟件篇 1020次閱讀
- 基于A(yíng)ndroid開(kāi)發(fā)的ADT獲取內(nèi)存中的敏感信息 1049次閱讀
- EsDA為用戶(hù)帶來(lái)簡(jiǎn)單易用的軟件設(shè)計(jì)體驗(yàn) 1884次閱讀
- 數(shù)字溫度傳感器ADT75的特點(diǎn)及應(yīng)用實(shí)例分析 3651次閱讀
- digilent適配器上的DIP模塊介紹 1665次閱讀
- digilent恒溫控制模塊介紹 1526次閱讀
- digilent轉(zhuǎn)Pmod標(biāo)準(zhǔn)適配擴(kuò)展板簡(jiǎn)介 1414次閱讀
- digilentPmod專(zhuān)用線(xiàn)套件(6)介紹 1171次閱讀
- digilentPmod MicroSD: microSD 卡槽介紹 2794次閱讀
- digilent chipKIT Pmod Shield - Uno R3標(biāo)準(zhǔn)轉(zhuǎn)Pmo擴(kuò)展板介紹 2133次閱讀
- 一款以BitTorrent代幣連接和獎(jiǎng)勵(lì)用戶(hù)的軟件BitTorrent Speed介紹 3328次閱讀
- 沒(méi)有直接可用的Pmod驅(qū)動(dòng)怎么辦?教你一招 2267次閱讀
- 無(wú)驅(qū)動(dòng)問(wèn)題的Zynq搭配Pmod開(kāi)發(fā)解決方案 1830次閱讀
下載排行
本周
- 1HFSS電磁仿真設(shè)計(jì)應(yīng)用詳解PDF電子教程免費(fèi)下載
- 24.30 MB | 128次下載 | 1 積分
- 2雷達(dá)的基本分類(lèi)方法
- 1.25 MB | 4次下載 | 4 積分
- 3電感技術(shù)講解
- 827.73 KB | 2次下載 | 免費(fèi)
- 4從 MSP430? MCU 到 MSPM0 MCU 的遷移指南
- 1.17MB | 2次下載 | 免費(fèi)
- 5有源低通濾波器設(shè)計(jì)應(yīng)用說(shuō)明
- 1.12MB | 2次下載 | 免費(fèi)
- 6RA-Eco-RA2E1-48PIN-V1.0開(kāi)發(fā)板資料
- 35.59 MB | 2次下載 | 免費(fèi)
- 7面向熱插拔應(yīng)用的 I2C 解決方案
- 685.57KB | 1次下載 | 免費(fèi)
- 8愛(ài)普生有源晶體振蕩器SG3225EEN應(yīng)用于儲(chǔ)能NPC、新能源
- 317.46 KB | 1次下載 | 免費(fèi)
本月
- 12024年工控與通信行業(yè)上游發(fā)展趨勢(shì)和熱點(diǎn)解讀
- 2.61 MB | 763次下載 | 免費(fèi)
- 2HFSS電磁仿真設(shè)計(jì)應(yīng)用詳解PDF電子教程免費(fèi)下載
- 24.30 MB | 128次下載 | 1 積分
- 3繼電保護(hù)原理
- 2.80 MB | 36次下載 | 免費(fèi)
- 4正激、反激、推挽、全橋、半橋區(qū)別和特點(diǎn)
- 0.91 MB | 32次下載 | 1 積分
- 5labview實(shí)現(xiàn)DBC在界面加載配置
- 0.57 MB | 21次下載 | 5 積分
- 6在設(shè)計(jì)中使用MOSFET瞬態(tài)熱阻抗曲線(xiàn)
- 1.57MB | 15次下載 | 免費(fèi)
- 7GBT 4706.1-2024家用和類(lèi)似用途電器的安全第1部分:通用要求
- 7.43 MB | 14次下載 | 免費(fèi)
- 8AD18學(xué)習(xí)筆記
- 14.47 MB | 8次下載 | 2 積分
總榜
- 1matlab軟件下載入口
- 未知 | 935113次下載 | 10 積分
- 2開(kāi)源硬件-PMP21529.1-4 開(kāi)關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
- 1.48MB | 420061次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233084次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191360次下載 | 10 積分
- 5十天學(xué)會(huì)AVR單片機(jī)與C語(yǔ)言視頻教程 下載
- 158M | 183329次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81578次下載 | 10 積分
- 7Keil工具M(jìn)DK-Arm免費(fèi)下載
- 0.02 MB | 73804次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65985次下載 | 10 積分
評(píng)論
查看更多