The AD5426/AD5432/AD5443 are CMOS 8-, 10-, and 12-bit current output digital-to-analog converters (DACs), respectively. These devices operate from a 2.5 V to 5.5 V power supply, making them suitable for battery-powered applications and many other applications.
These DACs use a double buffered, 3-wire serial interface that is compatible with SPI, QSPI™, MICROWIRE™, and most DSP interface standards. In addition, a serial data out pin (SDO) allows for daisy-chaining when multiple packages are used. Data readback allows the user to read the contents of the DAC register via the SDO pin. On power-up, the internal shift register and latches are filled with 0s and the DAC outputs are at zero scale.
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.
The driver contains two parts:
The Communication Driver has a standard interface, so the AD5443 driver can be used exactly as it is provided.
There are three functions which are called by the AD5443 driver:
SPI driver architecture
The following functions are implemented in this version of AD5443 driver:
|unsigned char AD54xx_Init(void)||Initializes the AD54xx device.|
|unsigned short AD54xx_Function(unsigned char function, unsigned short data)||Selects a function of the DAC.|
|void AD54xx_SetDac(unsigned short dacValue)||Writes a value to DAC register.|
|unsigned short AD54xx_GetDac(void)||Writes the value of the DAC register.|
|void AD54xx_Clear(unsigned char type)||Clears DAC output to zero or midscale.|
This section contains a description of the steps required to run the AD5443 demonstration project on a Renesas RX63N platform.
An EVAL-AD5443SDZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RX63N:
EVAL-AD5443SDZ Pin /SYNC (CS) → YRDKRX63N J15 connector Pin 1 EVAL-AD5443SDZ Pin SDIN (MOSI) → YRDKRX63N J15 connector Pin 2 EVAL-AD5443SDZ Pin SDO (MISO) → YRDKRX63N J15 connector Pin 3 EVAL-AD5443SDZ Pin SCLK (SCLK) → YRDKRX63N J15 connector Pin 4
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.