The AD5629R device is a low power, octal, 12-bit, buffered voltage-output DACs. It operates from a single 2.7 V to 5.5 V supply and is guaranteed monotonic by design. The AD5629R has an on-chip reference with an internal gain of 2. The user can select the AD5629R with a 1.25 V 5 ppm/°C reference (AD5629R-1), giving a full-scale output range of 2.5 V, or a 2.5 V 5 ppm/°C reference AD5629R-2 and AD5629R-3), giving a full-scale output range of 5 V. The on-chip reference is off at power-up, allowing the use of an external reference. The internal reference is enabled via a software write. The part incorporates a power-on reset circuit that ensures that the DAC output powers up to 0 V and remains powered up at this level until a valid write takes place. The part contains a power-down feature that reduces the current consumption of the device to 400 nA at 5 V and provides software-selectable output loads while in power-down mode for any or all DAC channels.
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 AD5629R driver can be used exactly as it is provided.
There are three functions which are called by the AD5629R driver:
I2C driver architecture
The following functions are implemented in this version of AD5629R driver:
Function | Description |
---|---|
unsigned char AD5629R_Init(void) | Resets the device and performs several initializations. |
void AD5629R_PowerMode(unsigned char pwrMode) | Sets the device in a specific power mode. |
void AD5629R_Reset(void) | Resets the device. |
void AD5629R_SetInputRegister(unsigned long registerValue) | Writes a 24-bit data-word to the Input Register of the device. |
unsigned short AD5629R_GetRegisterValue(void) | Reads the last register written by user. |
This section contains a description of the steps required to run the AD5629R demonstration project on a Renesas RL78G13 platform.
An EVAL-AD5629RSDZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD5629RSDZ J6 connector Pin SCL (SCL) → YRDKRL78G13 J9 connector Pin 1 EVAL-AD5629RSDZ J7 connector Pin SDA (SDA) → YRDKRL78G13 J9 connector Pin 3 EVAL-AD5629RSDZ J8 connector Pin /LDAC (LDAC) → YRDKRL78G13 J11 connector Pin 9 EVAL-AD5629RSDZ J9 connector Pin /CLR (CLR) → YRDKRL78G13 J11 connector Pin 10
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 reference project powers-up all DAC channels, displays the content of the power register and starts to generate a saw-tooth wave.
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 AD5629R demonstration project on a Renesas RX62N platform.
An EVAL-AD5629REBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-AD5629RSDZ J6 connector Pin SCL (SCL) → YRDKRX62N J2 connector Pin 1 EVAL-AD5629RSDZ J7 connector Pin SDA (SDA) → YRDKRX62N J2 connector Pin 3 EVAL-AD5629RSDZ J8 connector Pin /LDAC (LDAC) → YRDKRX62N J8 connector Pin 17 EVAL-AD5629RSDZ J9 connector Pin /CLR (CLR) → YRDKRX62N J8 connector Pin 25
The reference project: The reference project powers-up all DAC channels, displays the content of the power register and starts to generate a saw-tooth wave.
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条评论
快来发表一下你的评论吧 !