The AD5421 is a complete, loop-powered, 4 mA to 20 mA digital-to-analog converter (DAC) designed to meet the needs of smart transmitter manufacturers in the industrial control industry. The DAC provides a high precision, fully integrated, low cost solution in a compact TSSOP package and LFCSP packages.
The AD5421 includes a regulated voltage output that is used to power itself and other devices in the transmitter. This regulator provides a regulated 1.8 V to 12 V output voltage. The AD5421 also contains 1.22 V and 2.5 V references, thus eliminating the need for a discrete regulator and voltage reference.
The AD5421 can be used with standard HART® FSK protocol communication circuitry without any degradation in specified performance. The high speed serial interface is capable of opera-ting at 30 MHz and allows for simple connection to commonly used microprocessors and microcontrollers via a SPI-compatible, 3-wire interface.
The AD5421 is guaranteed monotonic to 16 bits. It provides 0.0015% integral nonlinearity, 0.0012% offset error, and 0.0006% gain error under typical conditions.
The AD5421 is available in a 28-lead TSSOP and a 32-lead LFCSP specified over the extended industrial temperature range of −40°C to +105°C.
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 Renesas platforms.
HW Platform(s):
The driver contains two parts:
The Communication Driver has a standard interface, so the AD5421 driver can be used exactly as it is provided. There are three functions which are called by the AD5421 driver:
Driver architecture
The implementation of these three functions depends on the used microcontroller.
The following functions are implemented in this version of AD5421 driver:
Function | Description |
---|---|
unsigned char AD5421_Init(void) | Initializes the SPI communication peripheral and resets the part. |
void AD5421_SetRegisterValue(unsigned char regAddress, unsigned short regValue) | Writes the value to the register. |
nsigned long AD5421_GetRegisterValue(unsigned char regAddress) | Reads the value of the selected register. |
void AD5421_WriteDac(unsigned short value) | Writes to the DAC register. |
unsigned char AD5421_GetTemperature(void) | Read the temperature of the die. |
This section contains a description of the steps required to run the AD5421 demonstration project on a Renesas RL78G13 platform.
An EVAL-AD5421SDZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD5421SDZ test point CS → YRDKRL78G13 J11 connector Pin 1 EVAL-AD5421SDZ test point SDIN → YRDKRL78G13 J11 connector Pin 2 EVAL-AD5421SDZ test point SDOUT → YRDKRL78G13 J11 connector Pin 3 EVAL-AD5421SDZ test point SCLK → YRDKRL78G13 J11 connector Pin 4
With the Applilet3 for RL78G13 tool the following peripherals have to be configured:
Choose to generate the Transmit/receive function for the CSI10 and configure the interface with the following settings:
Configure TM00 as an interval timer:
Disable the watchdog timer:
The demo program writes a value to the DAC register, reads the die temperature and displays it on the screen.
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.
Two software applications have to be used: Applilet3 for RL78G13 (a tool that automatically generates device drivers for MCU peripheral functions) and IAR Embedded Workbench for Renesas RL78 (the integrated development environment).
This section contains a description of the steps required to run the AD5421 demonstration project on a Renesas RX62N platform.
An EVAL-AD5421SDZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-AD5421SDZ test point SDOUT → YRDKRX62N J8 connector Pin 22 EVAL-AD5421SDZ test point SDIN → YRDKRX62N J8 connector Pin 19 EVAL-AD5421SDZ test point SCLK → YRDKRX62N J8 connector Pin 20 EVAL-AD5421SDZ test point CS → YRDKRX62N J8 connector Pin 15
The demo program writes a value to the DAC register, reads the die temperature and displays it on the screen.
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RX62N for controlling and monitoring the operation of the ADI part.
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !