资料介绍
Table of Contents
AD5770R Mbed Example
Supported Device
Introduction
The AD5770R is a 6-channel, 14-bit resolution, low noise, programmable current output digital-to-analog converter (DAC) for photonics control applications. This chip incorporates a 1.25 V on-chip voltage reference, a 2.5 kΩ precision resistor for reference current generation, die temperature, output monitoring functions, fault alarm, and reset functions.
The AD5770R contains five 14-bit resolution current sourcing DAC channels and one 14-bit resolution current sourcing/ sinking DAC channel.
Channel 0 can be configured to sink up to 60 mA and source up to 300 mA. Channel 1 to Channel 5 have multiple, programmable output current sourcing ranges, set by register access. Each DAC can operate with a wide power supply rail from 0.8 V to AVDD − 0.4 V for optimizing power efficiency and thermal power dissipation.
This page describes the AD5770R firmware example running on the SDP-K1 controller board, interfacing with the AD5770R evaluation board. The firmware example comprises 3 layers of software, built on top of the Mbed OS.
- AD5770R No-OS Driver - AD5770R device C API
- Mbed Platform Drivers - Hardware Abstraction Layer (SPI, GPIO, …) to adapt No-OS driver to Mbed OS
The AD5770R Mbed firmware example can be used as a starting point for developing your own code in your own environment utilizing the benefits of the Mbed platform. The Mbed Platform simplifies the overall software development process by providing a common low level driver abstraction. This reduces the hardware dependency as any Mbed enabled board can be used with same firmware with little to no modifications, usually just changing the pin mapping.
Useful links
Hardware Setup
The AD5770R Evaluation Board is connected to SDP-K1 using the 120-pin SDP Connector. The evaluation board must be powered externally, typically using an external 3.3V DC supply connected to the AVDD input supply terminal, if using the default power supply jumper settings.
The SDP-K1 is connected to a PC through a USB cable. The firmware image, a .BIN file created using the online mbed compiler, can be loaded into SDP-K1 board by copying the .BIN file to the drive representing the SDP-K1. The SDP-K1 provides a USB to Serial link (UART) and any serial terminal (such as Teraterm, Putty, Coolterm, etc) can be used to connect to by configuring terminal with the necessary settings (serial port, baud rate, data bits, etc).
The default jumper configuration of the evaluation board selects a diode dummy load on all of the output channels. Refer to the evaluation board user guide for the jumper configuration necessary to route the output current to the screw terminal.
AD5770R Mbed Firmware
Source Code
The latest version of the example code is available here:
Quick Start
If you are familiar with the Mbed platform, the following is a basic list of steps required to start running the code:
- Connect the evaluation board to the SDP-K1 controller board, and power it appropriately, usually 3.3V to AVDD.
- Connect the SDP-K1 controller board to your computer over USB.
- Go to the link of the code provided above in the 'Source Code' section and import the code into the Mbed online compiler
- Ensure the SDP-K1 controller board is selected as the target
- If a different controller board is being used, then it should be selected, and the pin out in app_config.h may also need to be updated.
- In the Mbed Online IDE compile the code.
- After a successful compile a binary file (.BIN) will be downloaded to your computer.
- Drag and drop this binary to the USB drive corresponding to the SDP-K1 controller board.
- Start up a serial terminal emulator (e.g. Tera Term)
- Find the com-port your controller board is connected on and select it.
- Set the baud-rate for 115200 baud, 8 data, no parity, 1 stop bit.
- Reset the controller board and connect.
- The terminal windows should display the console menu providing access to the AD5770R functionality.
Firmware in Detail
The example source code is made available from Mbed, and can be imported into the online Mbed compiler and compiled there, entirely in a web browser. The example is menu driven, providing keyboard shortcuts to access/execute the menus items, and prompting for further inputs where necessary. When the example runs, it attempts to connect and initialize the AD5770R. The configuration used is defined in the ad5770r_user_config.h file, which can be modified as needs be to suit specific applications.
Note: While much of the functionality of the AD5770R No-OS driver is made available through the console UI, not all function are available. The additional AD5770R functionality can only be configured the ad5770r_user_config.c file.
Main Menu
The AD5770R Console App main menu provides basic initialization/reset type functions, and access to several sub-menus that provide more detailed configuration and control settings. Like most menus in the firmware, the menu options are framed by a header and footer that display status information related to the functions on the menu.
The value of the scratchpad register is displayed in both the header and the footer. After reading the scratchpad value for the header, the value is incremented and written back to the device, such that the scratchpad footer value should always be equal to the header value + 1. This can be useful a debug aid to confirm communications.
DAC Operations
This menu provides the ability to set the Input and DAC register values, and control the update of the DAC using both the hardware and software LDAC functions. The ordering of menu items is intended to follow the order in which actions are typically performed by the user.
There are three ways in which the DAC output may be controlled using this menu.
- Write to Input Channel(s), set software LDAC shadow value, then write software LDAC to update DAC output
- Write to Input Channel(s), toggle hardware LDAC
- Write to DAC Channel to directly update DAC output
Toggling a channel in the software LDAC shadow sets a bit corresponding to that channel in a mask. This SW LDAC Channel shadow value can then be written in a single transaction, transferring the input to the DAC value for all of the channels which are set in the shadow mask.
The channels affected by the hardware LDAC pin toggling are set in the ad5770r_user_config.h file at compile time.
- 带w7500的mbed-os示例套接字
- 兆易创新GD32F450ZI-mbed开发板电路原理图
- 兆易创新GD32E103VB-mbed开发板电路原理图
- 兆易创新GD32F307VG-mbed开发板电路原理图
- AN-2010:AD5770R功能的其他详细信息、背景和示例
- NanDAC+mbed示例
- AD411x mbed示例
- ADT74xx-ADT73xx mbed示例
- AD5770R pmod和ADICUP3029参考设计
- AD5592R/AD5593R mbed示例
- AD5770R Evaluation Software
- AD5770R IBIS Model
- AD5770R Evaluation Software
- AD5770R IBIS Model
- 2 mbed 中国 - mbed 内存模型 72次下载
- 电阻电路等效变换示例(三) 302次阅读
- 电阻电路等效变换示例(二) 462次阅读
- 基于DShanMCU-R128s2-DevKit开发智能手表 662次阅读
- 移动数据的编程示例 1131次阅读
- MATLAB中特殊图形的绘制示例 741次阅读
- 弱符号的作用与示例 869次阅读
- 如何对挑选出的demonstration示例进行排序 466次阅读
- Linux中的18个tar命令示例 835次阅读
- Django的简单应用示例 933次阅读
- Hi3861其他驱动的开发示例 3303次阅读
- 微雪电子 STM32开发板简介 7263次阅读
- AD5770R:分辨率低噪音可编电流输出的数模转换器 5255次阅读
- 基于HT48R50A的LED点阵+LCD显示程序 1368次阅读
- ARM公司低调升级Mbed_为物联网应用做准备 2728次阅读
- mbed软件开发平台入门学习基础 1.2w次阅读
下载排行
本周
- 1电子电路原理第七版PDF电子教材免费下载
- 0.00 MB | 1491次下载 | 免费
- 2单片机典型实例介绍
- 18.19 MB | 95次下载 | 1 积分
- 3S7-200PLC编程实例详细资料
- 1.17 MB | 27次下载 | 1 积分
- 4笔记本电脑主板的元件识别和讲解说明
- 4.28 MB | 18次下载 | 4 积分
- 5开关电源原理及各功能电路详解
- 0.38 MB | 11次下载 | 免费
- 6100W短波放大电路图
- 0.05 MB | 4次下载 | 3 积分
- 7基于单片机和 SG3525的程控开关电源设计
- 0.23 MB | 4次下载 | 免费
- 8基于AT89C2051/4051单片机编程器的实验
- 0.11 MB | 4次下载 | 免费
本月
- 1OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 2PADS 9.0 2009最新版 -下载
- 0.00 MB | 66304次下载 | 免费
- 3protel99下载protel99软件下载(中文版)
- 0.00 MB | 51209次下载 | 免费
- 4LabView 8.0 专业版下载 (3CD完整版)
- 0.00 MB | 51043次下载 | 免费
- 5555集成电路应用800例(新编版)
- 0.00 MB | 33562次下载 | 免费
- 6接口电路图大全
- 未知 | 30320次下载 | 免费
- 7Multisim 10下载Multisim 10 中文版
- 0.00 MB | 28588次下载 | 免费
- 8开关电源设计实例指南
- 未知 | 21539次下载 | 免费
总榜
- 1matlab软件下载入口
- 未知 | 935053次下载 | 免费
- 2protel99se软件下载(可英文版转中文版)
- 78.1 MB | 537793次下载 | 免费
- 3MATLAB 7.1 下载 (含软件介绍)
- 未知 | 420026次下载 | 免费
- 4OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234313次下载 | 免费
- 5Altium DXP2002下载入口
- 未知 | 233046次下载 | 免费
- 6电路仿真软件multisim 10.0免费下载
- 340992 | 191183次下载 | 免费
- 7十天学会AVR单片机与C语言视频教程 下载
- 158M | 183277次下载 | 免费
- 8proe5.0野火版下载(中文版免费下载)
- 未知 | 138039次下载 | 免费
评论
查看更多