The ADT7420 is a high accuracy digital temperature sensor offering breakthrough performance over a wide industrial range, housed in an LFCSP package. It contains a band gap temperature reference and a 13-bit ADC to monitor and digitize the temperature to a 0.0625°C resolution. The ADC resolution, by default, is set to 13 bits (0.0625°C). This can be changed to 16 bits (0.0078°C) by setting Bit 7 in the configuration register to 1 (Register Address 0x03). The ADT7420 is guaranteed to operate over supply voltages from 2.7 V to 5.5 V. Operating at 3.3 V, the average supply current is typically 210 μA. The ADT7420 has a shutdown mode that powers down the device and offers a shutdown current of typically 2 μA. The ADT7420 is rated for operation over the −40°C to +150°C temperature range.
Pin A0 and Pin A1 are available for address selection, giving the ADT7420 four possible I2C addresses. The CT pin is an open-drain output that becomes active when the temperature exceeds a programmable critical temperature limit. The default critical temperature limit is 147°C. The INT pin is also an open-drain output that becomes active when the temperature exceeds a programmable limit. The INT and CT pins can operate in either comparator or interrupt mode.
The goal of this project (Microcontroller No-OS) is to be able to provide reference projects for lower end processors, which can't run Linux, or aren't running a specific operating system, to help those customers using microcontrollers with ADI parts. Here you can find a generic driver which can be used as a base for any microcontroller platform and also specific drivers for different microcontroller platforms.
The driver contains two parts:
The Communication Driver has a standard interface, so the ADT7420 driver can be used exactly as it is provided.
There are three functions which are called by the ADT7420 driver:
I2C driver architecture
The implementation of these three functions depends on the used microcontroller.
The following functions are implemented in this version of ADT7420 driver:
Function | Description |
---|---|
unsigned char ADT7420_GetRegisterValue(unsigned char registerAddress) | Reads the value of a register. |
void ADT7420_SetRegisterValue(unsigned char registerAddress, unsigned char registerValue) | Sets the value of a register. |
char ADT7420_Init(void) | Initializes the comm. peripheral and checks if the device is present. |
void ADT7420_Reset(void) | Resets the ADT7420. |
void ADT7420_SetOperationMode(unsigned char mode) | Sets the operational mode for ADT7420. |
void ADT7420_SetResolution(unsigned char resolution) | Sets the resolution for ADT7420. |
float ADT7420_GetTemperature(void) | Reads the temperature data and converts it to Celsius degrees. |
This section contains a description of the steps required to run the ADT7420 demonstration project on a Renesas RL78G13 platform using the PmodTMP2.
A PmodTMP2 has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
PmodTMP2 J1 connector Pin SCL → YRDKRL78G13 J9 connector Pin 1 PmodTMP2 J1 connector Pin SDA → YRDKRL78G13 J9 connector Pin 3 PmodTMP2 J1 connector Pin GND → YRDKRL78G13 J11 connector Pin 5 PmodTMP2 J1 connector Pin VCC → YRDKRL78G13 J11 connector Pin 6
The reference project:
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G13 for controlling and monitoring the operation of the ADI part.
This section contains a description of the steps required to run the ADT7420 demonstration project on a Renesas RL78G14 platform using the PmodTMP2.
The ADT7420 demonstration project for the Renesas RL78G14 platform consists of three parts: the ADT7420 Driver, the PmodTMP2 Demo for RL78G14 and the RL78G14 Common Drivers.
All three parts have to be downloaded.
A PmodTMP2 has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G14:
PmodTMP2 J1 connector Pin SCL → RDKRL78G14 J8 connector Pin 1 PmodTMP2 J1 connector Pin SDA → RDKRL78G14 J8 connector Pin 3 PmodTMP2 J1 connector Pin GND → RDKRL78G14 J11 connector Pin 5 PmodTMP2 J1 connector Pin VCC → RDKRL78G14 J11 connector Pin 6
The reference project:
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G14 for controlling and monitoring the operation of the ADI part.
This section contains a description of the steps required to run the ADT7420 demonstration project on a Renesas RX63N platform using the PmodTMP2.
A PmodCDC1 has to be interfaced with the Renesas Demonstration Kit (RDK) for RX63N:
PmodCDC1 J1 connector Pin SCL ? YRDKRX63N J2 connector Pin 1 PmodCDC1 J1 connector Pin SDA ? YRDKRX63N J2 connector Pin 3 PmodCDC1 J1 connector Pin GND ? YRDKRX63N J15 connector Pin 5 PmodCDC1 J1 connector Pin VCC ? YRDKRX63N J15 connector Pin 6
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RX63N for controlling and monitoring the operation of the ADI part.
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !