資料介紹
Table of Contents
AD5684R - Microcontroller No-OS Driver
Supported Devices
Evaluation Boards
Reference Circuits
Overview
The AD5684/AD5686, members of the nanoDAC+? family are low power, quad, 12/16-bit buffered voltage output DACs. The devices include a gain select pin giving a full-scale output of 0V to VREF (gain = 1) or 0V to 2VREF (gain = 2).
The AD5684R/AD5685R/AD5686R nanoDAC+TM are quad, 12/14/16-bit, rail-to-rail, voltage output DACs. The devices include a 2.5V, 2ppm/?C internal reference (enabled by default) and a gain select pin giving a full-scale output of 2.5V (gain=1) or 5V (gain=2).
These devices operate from a single 2.7 V to 5.5 V supply, are guaranteed monotonic by design and exhibit less than 0.1% FSR gain error and 1.5mV offset error performance. The devices are available in a 3mm X 3mm LFCSP and a TSSOP package.
The AD5684/AD5686/AD5684R/AD5685R/AD5686R also incorporate a power-on reset circuit and a RSTSEL pin that ensures that the DAC outputs power up to zero scale or midscale and remain at that level until a valid write takes place. Each part contains a per-channel power-down feature that reduces the current consumption of the device to 4 μA at 3 V while in power-down mode. The devices employ a versatile SPI interface that operates at clock rates up to 50 MHz, and all devices contain a VLOGIC pin intended for 1.8 V/3 V/5 V logic.
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):
Driver Description
The driver contains two parts:
- The driver for the AD5684R part, which may be used, without modifications, with any microcontroller.
- The Communication Driver, where the specific communication functions for the desired type of processor and communication protocol have to be implemented. This driver implements the communication with the device and hides the actual details of the communication protocol to the ADI driver.
The Communication Driver has a standard interface, so the AD5684R driver can be used exactly as it is provided.
There are three functions which are called by the AD5684R driver:
- SPI_Init() – initializes the communication peripheral.
- SPI_Write() – writes data to the device.
- SPI_Read() – reads data from the device.
SPI driver architecture
The following functions are implemented in this version of AD5684R driver:
Function | Description |
---|---|
unsigned char AD568X_Init(unsigned char ad568x) | Initializes the device. |
void AD568X_Reset(unsigned char resetOutput) | Resets the device(clears the outputs to either zero scale or midscale). |
void AD568X_PowerMode(unsigned char channel, unsigned char pwrMode) | Puts the device in a specific power mode. |
void AD568X_InternalVoltageReference(unsigned char vRefMode) | Select internal or external voltage reference. |
void AD568X_SetInputRegister(unsigned long registerValue) | Writes a 24-bit data-word to the Input Register of the device. |
void AD568X_WriteFunction(unsigned char writeCommand, unsigned char channel, unsigned short data) | Write data to the Input Register or to DAC Register of a channel. |
unsigned short AD568X_ReadBack(unsigned char dacChannelAddr) | Reads back the binary value written to one of the channels. |
float AD568X_SetVoltage(unsigned char channel, float outputVoltage, float vRef) | Selects the output voltage of the selected channel. |
Downloads
Renesas RL78G13 Quick Start Guide
This section contains a description of the steps required to run the AD5684R demonstration project on a Renesas RL78G13 platform.
Required Hardware
Required Software
Hardware Setup
An EVAL-AD5684RSDZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD5684RSDZ Pin SYNC2 → YRDKRL78G13 J11 connector Pin 1 EVAL-AD5684RSDZ Pin DIN → YRDKRL78G13 J11 connector Pin 2 EVAL-AD5684RSDZ Pin DOUT → YRDKRL78G13 J11 connector Pin 3 EVAL-AD5684RSDZ Pin SCLK → YRDKRL78G13 J11 connector Pin 4 EVAL-AD5684RSDZ Pin GND → YRDKRL78G13 J11 connector Pin 5 EVAL-AD5684RSDZ Pin LDAC → YRDKRL78G13 J11 connector Pin 9 EVAL-AD5684RSDZ Pin RESET → YRDKRL78G13 J11 connector Pin 10
Reference Project Overview
The reference project:
- sets the output voltage of channel A and the reads back the raw value written into the DAC register;
- sets the output voltage of channel B using AD568X_SetVoltage() function;
- generates a sine wave on channel C;
- generates a trapezoid wave on channel D.
Software Project Tutorial
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.
- Run the IAR Embedded Workbench for Renesas RL78 integrated development environment.
- Choose to create a new project (Project – Create New Project).
- Select the RL78 tool chain, the Empty project template and click OK.
- Select a location and a name for the project (ADIEvalBoard for example) and click Save.
- Open the project’s options window (Project – Options).
- From the Target tab of the General Options category select the RL78 – R5F100LE device.
- From the Setup tab of the Debugger category select the TK driver and click OK.
- Extract the files from the lab .zip archive and copy them into the project’s folder.
- The new source files have to be included into the project. Open the Add Files… window (Project – Add Files…), select all the copied files and click open.
- At this moment, all the files are included into the project.
- The project is ready to be compiled and downloaded on the board. Press the F7 key to compile it. Press CTRL + D to download and debug the project.
- A window will appear asking to configure the emulator. Keep the default settings and press OK.
- To run the project press F5.
- AD5449-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7291-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5790-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5754R-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5162-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7091R-用于瑞薩微控制器平臺(tái)的無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5669R-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7298-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5629R-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD5252-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7799-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7887-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7734-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD7176-微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- AD4112微控制器無操作系統(tǒng)驅(qū)動(dòng)程序
- 深度解析全球操作系統(tǒng)格局 676次閱讀
- 為MAXQ2000微控制器實(shí)現(xiàn)JTAG自舉加載程序主控 984次閱讀
- 實(shí)時(shí)時(shí)鐘為微控制器系統(tǒng)增加了精確的計(jì)時(shí)功能 1121次閱讀
- 了解和使用無操作系統(tǒng)和平臺(tái)驅(qū)動(dòng)程序 1066次閱讀
- 基于具有USB功能的STM32微控制器 3682次閱讀
- 嵌入式Linux內(nèi)核的驅(qū)動(dòng)程序開發(fā)是怎樣的 1415次閱讀
- 淺談電腦驅(qū)動(dòng)程序的工作原理 詳解電腦驅(qū)動(dòng)程序意義 2.9w次閱讀
- 基于嵌入式Linux內(nèi)核的系統(tǒng)設(shè)備驅(qū)動(dòng)程序開發(fā)設(shè)計(jì) 1113次閱讀
- 基于Linux2.6.30開發(fā)DS18B20的驅(qū)動(dòng)程序的類型和文件操作接口函數(shù)詳解 1377次閱讀
- 微控制器的相關(guān)知識(shí)介紹(含義、編程語言) 5139次閱讀
- 基于STM32的數(shù)字PDA系統(tǒng)軟件系統(tǒng)設(shè)計(jì) 1480次閱讀
- 8255A驅(qū)動(dòng)程序 3193次閱讀
- 8155驅(qū)動(dòng)程序 3057次閱讀
- 基于STM32ZET6控制器的數(shù)字PDA系統(tǒng)的設(shè)計(jì) 1504次閱讀
- Xilinx設(shè)備的驅(qū)動(dòng)程序 7967次閱讀
下載排行
本周
- 1HFSS電磁仿真設(shè)計(jì)應(yīng)用詳解PDF電子教程免費(fèi)下載
- 24.30 MB | 128次下載 | 1 積分
- 2雷達(dá)的基本分類方法
- 1.25 MB | 4次下載 | 4 積分
- 3電感技術(shù)講解
- 827.73 KB | 2次下載 | 免費(fèi)
- 4從 MSP430? MCU 到 MSPM0 MCU 的遷移指南
- 1.17MB | 2次下載 | 免費(fèi)
- 5有源低通濾波器設(shè)計(jì)應(yīng)用說明
- 1.12MB | 2次下載 | 免費(fèi)
- 6RA-Eco-RA2E1-48PIN-V1.0開發(fā)板資料
- 35.59 MB | 2次下載 | 免費(fèi)
- 7面向熱插拔應(yīng)用的 I2C 解決方案
- 685.57KB | 1次下載 | 免費(fèi)
- 8愛普生有源晶體振蕩器SG3225EEN應(yīng)用于儲(chǔ)能NPC、新能源
- 317.46 KB | 1次下載 | 免費(fèi)
本月
- 12024年工控與通信行業(yè)上游發(fā)展趨勢(shì)和熱點(diǎn)解讀
- 2.61 MB | 763次下載 | 免費(fèi)
- 2HFSS電磁仿真設(shè)計(jì)應(yīng)用詳解PDF電子教程免費(fèi)下載
- 24.30 MB | 128次下載 | 1 積分
- 3繼電保護(hù)原理
- 2.80 MB | 36次下載 | 免費(fèi)
- 4正激、反激、推挽、全橋、半橋區(qū)別和特點(diǎn)
- 0.91 MB | 32次下載 | 1 積分
- 5labview實(shí)現(xiàn)DBC在界面加載配置
- 0.57 MB | 21次下載 | 5 積分
- 6在設(shè)計(jì)中使用MOSFET瞬態(tài)熱阻抗曲線
- 1.57MB | 15次下載 | 免費(fèi)
- 7GBT 4706.1-2024家用和類似用途電器的安全第1部分:通用要求
- 7.43 MB | 14次下載 | 免費(fèi)
- 8AD18學(xué)習(xí)筆記
- 14.47 MB | 8次下載 | 2 積分
總榜
- 1matlab軟件下載入口
- 未知 | 935113次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
- 1.48MB | 420061次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233084次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191360次下載 | 10 積分
- 5十天學(xué)會(huì)AVR單片機(jī)與C語言視頻教程 下載
- 158M | 183329次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81578次下載 | 10 積分
- 7Keil工具M(jìn)DK-Arm免費(fèi)下載
- 0.02 MB | 73804次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65985次下載 | 10 積分
評(píng)論
查看更多