The AD5754R is a quad, 16-bit serial input, voltage output, digital-to-analog converter (DAC). It operates from single supply voltages of +4.5 V up to +16.5 V or dual supply voltages from ±4.5 V up to ±16.5 V. Nominal full-scale output range is software selectable from +5 V, +10 V, +10.8 V, ±5 V, ±10 V, or ±10.8 V. Integrated output amplifiers, reference buffers, and proprietary power-up/power-down control circuitry are also provided.
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 AD5754R driver can be used exactly as it is provided. There are three functions which are called by the AD5754R driver:
Driver architecture
The implementation of these three functions depends on the used microcontroller.
The following functions are implemented in this version of AD5754R driver:
Function | Description |
---|---|
void AD5754R_SetRegisterValue(unsigned char regBits, unsigned char adrBits, unsigned short registerValue); | Writes data into a register. |
unsigned short AD5754R_GetRegisterValue(unsigned char regBits, unsigned char adrBits); | Reads the value of a register. |
void AD5754R_SetPower(unsigned char dacChannel, unsigned char onOff); | Enables/disables indicated DAC channels. |
void AD5754R_LoadDac(unsigned char dacChannel, unsigned short dacValue); | Writes data into a DAC channel register. |
void AD5754R_RangeSelect(unsigned char dacChannel, unsigned char outputRange); | Selects the output range of a DAC channel. |
void AD5754R_ControlFunction(unsigned char option, unsigned char bitValue); | Selects an option of Control Register. |
unsigned char AD5754R_ReadAlertBits(void); | Reads alert bits form Power Control Register. |
This section contains a description of the steps required to run the AD5754R demonstration project on a Renesas RL78G13 platform.
An EVAL-AD5754REBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD5754REB J8 connector Pin 10(SYNC) → YRDKRL78G13 J11 connector Pin 1 EVAL-AD5754REB J8 connector Pin 7 (MOSI) → YRDKRL78G13 J11 connector Pin 2 EVAL-AD5754REB J8 connector Pin 1 (MISO) → YRDKRL78G13 J11 connector Pin 3 EVAL-AD5754REB J8 connector Pin 9 (SCLK) → YRDKRL78G13 J11 connector Pin 4 EVAL-AD5754REB J8 connector Pin 5 (GND) → YRDKRL78G13 J11 connector Pin 5 EVAL-AD5754REB J8 connector Pin 6 (LDAC) → YRDKRL78G13 J11 connector Pin 9 EVAL-AD5754REB J8 connector Pin 4 (CLR) → YRDKRL78G13 J11 connector Pin 10 EVAL-AD5754REB J9 connector AVDD → +5V
The reference project sets up the AD5754 part to output 2.5V on VOUTA connector
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:
Disable the watchdog timer:
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 AD5754 demonstration project on a Renesas RX62N platform.
An EVAL-AD5754REBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-AD5754REB J8 connector Pin 10(SYNC) → YRDKRX62N J8 connector Pin 15 EVAL-AD5754REB J8 connector Pin 7 (MOSI) → YRDKRX62N J8 connector Pin 19 EVAL-AD5754REB J8 connector Pin 1 (MISO) → YRDKRX62N J8 connector Pin 22 EVAL-AD5754REB J8 connector Pin 9 (SCLK) → YRDKRX62N J8 connector Pin 20 EVAL-AD5754REB J8 connector Pin 5 (GND) → YRDKRX62N J8 connector Pin 4 EVAL-AD5754REB J8 connector Pin 6 (LDAC) → YRDKRX62N JN1 connector Pin 17 EVAL-AD5754REB J8 connector Pin 4 (CLR) → YRDKRX62N JN1 connector Pin 16 EVAL-AD5754REB J9 connector AVDD → +5V
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条评论
快来发表一下你的评论吧 !