电子发烧友App

硬声App

0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示
创作
电子发烧友网>电子资料下载>类型>参考设计>加入时间:清华大学2007年01月25日下午3:33

加入时间:清华大学2007年01月25日下午3:33

2021-03-22 | pdf | 68.39KB | 次下载 | 2积分

资料介绍

This version (25 Jan 2021 11:17) was approved by Ioana Chelaru.The Previously approved version (14 Jan 2021 05:11) is available.Diff

AD738x - No-OS Driver

Supported Devices

Evaluation Boards

Overview

The AD7380, AD7381,AD7383,AD7384,AD7386, AD7387 and AD7388, are a 16-bit, 14-bit and 12- bit pin compatible family of dual simultaneous sampling, high speed, low power, successive approximation analog-to-digital converters (ADC) that operate from a 3.3 V power supply and features throughput rates up to 4 MSPS. The analog input type is differential for the AD7380 and AD7381,can accept a wide common mode input voltage and are sampled and converted on the falling edge of CS. The AD7383 and AD7383 have the pseudo-differential input while the AD7386, AD7387 and AD7388 have single-ended input. The AD7380, AD7381,AD7383,AD7384,AD7386, AD7387 and AD7388 family has optional integrated on-chip oversampling blocks to improve dynamic range and reduce noise at lower bandwidths. An internal 2.5 V reference is included.

Alternatively, an external reference up to 3.3 V can be used. The conversion process and data acquisition use standard control inputs allowing for easy interfacing to microprocessors or DSPs. It is compatible with 1.8 V, 2.5 V, 3.3 V interfaces, using the separate logic supply.

The dual AD7380, AD7381,AD7383,AD7384,AD7386, AD7387 and AD7388 family is available in a 16-lead 3mm x 3mm LFCSP package with operation specified from −40°C to +125°C.

Applications

  • Motor control position feedback
  • Motor control current sense
  • Data acquisition systems
  • EDFA applications
  • I and Q demodulation
  • SONAR
  • Power Quality

HDL Design Description

In the ADI Reference Designs HDL User Guide can be found an in-depth presentation and instructions about the HDL design in general.

The reference design uses the standard SPI Engine Framework with an integrated pulse generator, which will provide the required conversion rate for the ADC.

In order to build the HDL design the user has to go through the following steps:

  1. Confirm that you have the right tools (the reference design requires Vivado 2018.3)
  2. Clone the HDL GitHub repository (the project is located at ad738x_fmc)

Software Setup

In order to perform the software setup the user has to go through the following steps:

  1. Confirm that you have the right tools (the reference design requires XSDK)
  2. Clone the No-OS GitHub repository (the project is located at ad738x-fmcz )
  3. Follow the instructions provided by software_setup.

No-OS Driver Description

Functions Declarations

Function Description
int32_t ad738x_init(ad738x_dev **device, ad738x_init_param init_param)
Initialize the device.
int32_t ad738x_remove(ad738x_dev *dev)
Free the resources allocated by ad738x_init().
int32_t ad738x_reference_sel(ad738x_dev *dev, ad738x_ref_sel ref_sel)
Enable internal or external reference.
int32_t ad738x_power_down_mode(ad738x_dev *dev, ad738x_pwd_mode pmode)
Device power down.
int32_t ad738x_oversampling_config(ad738x_dev *dev, ad738x_os_mode os_mode, ad738x_os_ratio os_ratio, ad738x_resolution res)
Sets the oversampling mode in the device (os_mode). Sets the oversampling ratio (osr). Sets the size of the conversion result data (res)
int32_t ad738x_reset(ad738x_dev *dev, ad738x_reset_type reset)
Device reset over SPI.
int32_t ad738x_set_conversion_mode(ad738x_dev *dev, ad738x_conv_mode mode)
Select if ADC A and ADC B output on both SDOA and SDOB lines (two wire mode) or only on on the SDOA line.
int32_t ad738x_spi_single_conversion(ad738x_dev *dev, uint16_t *adc_data)
Read conversion result from device.
int32_t ad738x_spi_write_mask(ad738x_dev *dev, uint8_t reg_addr, uint32_t mask, uint16_t data)
SPI write to device using a mask.
int32_t ad738x_spi_reg_write(ad738x_dev *dev, uint8_t reg_addr, uint16_t reg_data)
Write to device.
int32_t ad738x_spi_reg_read(ad738x_dev *dev, uint8_t reg_addr, uint16_t *reg_data)
Read from device.

Types Declarations

typedef enum {
	TWO_WIRE_MODE,
	ONE_WIRE_MODE
} ad738x_conv_mode;
 
typedef enum {
	NORMAL_OS_MODE,
	ROLLING_OS_MODE
} ad738x_os_mode;
 
typedef enum {
	OSR_DISABLED,
	OSR_X2,
	OSR_X4,
	OSR_X8,
	OSR_X16,
	OSR_X32,
} ad738x_os_ratio;
 
typedef enum {
	RES_16_BIT,
	RES_18_BIT
} ad738x_resolution;
 
typedef enum {
	SOFT_RESET,
	HARD_RESET
} ad738x_reset_type;
 
typedef enum {
	NORMAL_PWDM,
	FULL_PWDM
} ad738x_pwd_mode;
 
typedef enum {
	INT_REF,
	EXT_REF
} ad738x_ref_sel;
 
typedef struct {
        /* SPI */
        spi_desc		    *spi_desc;
        /* Device Settings */
        ad738x_conv_mode 	conv_mode;
	ad738x_resolution 	resolution;
} ad738x_dev;
 
typedef struct {
        /* SPI */
        spi_init_param		    spi_init;
        /* Device Settings */
        ad738x_conv_mode 		conv_mode;
        ad738x_ref_sel			ref_sel;
} ad738x_init_param;

HDL Downloads

No-OS Downloads

下载该资料的人也在下载 下载该资料的人还在阅读
更多 >

评论

查看更多

下载排行

本周

  1. 1HFSS电磁仿真设计应用详解PDF电子教程免费下载
  2. 24.30 MB   |  128次下载  |  1 积分
  3. 2雷达的基本分类方法
  4. 1.25 MB   |  4次下载  |  4 积分
  5. 3电感技术讲解
  6. 827.73 KB  |  2次下载  |  免费
  7. 4从 MSP430™ MCU 到 MSPM0 MCU 的迁移指南
  8. 1.17MB   |  2次下载  |  免费
  9. 5有源低通滤波器设计应用说明
  10. 1.12MB   |  2次下载  |  免费
  11. 6RA-Eco-RA2E1-48PIN-V1.0开发板资料
  12. 35.59 MB  |  2次下载  |  免费
  13. 7面向热插拔应用的 I2C 解决方案
  14. 685.57KB   |  1次下载  |  免费
  15. 8爱普生有源晶体振荡器SG3225EEN应用于储能NPC、新能源
  16. 317.46 KB  |  1次下载  |  免费

本月

  1. 12024年工控与通信行业上游发展趋势和热点解读
  2. 2.61 MB   |  763次下载  |  免费
  3. 2HFSS电磁仿真设计应用详解PDF电子教程免费下载
  4. 24.30 MB   |  128次下载  |  1 积分
  5. 3继电保护原理
  6. 2.80 MB   |  36次下载  |  免费
  7. 4正激、反激、推挽、全桥、半桥区别和特点
  8. 0.91 MB   |  32次下载  |  1 积分
  9. 5labview实现DBC在界面加载配置
  10. 0.57 MB   |  21次下载  |  5 积分
  11. 6在设计中使用MOSFET瞬态热阻抗曲线
  12. 1.57MB   |  15次下载  |  免费
  13. 7GBT 4706.1-2024家用和类似用途电器的安全第1部分:通用要求
  14. 7.43 MB   |  14次下载  |  免费
  15. 8AD18学习笔记
  16. 14.47 MB   |  8次下载  |  2 积分

总榜

  1. 1matlab软件下载入口
  2. 未知  |  935113次下载  |  10 积分
  3. 2开源硬件-PMP21529.1-4 开关降压/升压双向直流/直流转换器 PCB layout 设计
  4. 1.48MB  |  420061次下载  |  10 积分
  5. 3Altium DXP2002下载入口
  6. 未知  |  233084次下载  |  10 积分
  7. 4电路仿真软件multisim 10.0免费下载
  8. 340992  |  191360次下载  |  10 积分
  9. 5十天学会AVR单片机与C语言视频教程 下载
  10. 158M  |  183329次下载  |  10 积分
  11. 6labview8.5下载
  12. 未知  |  81578次下载  |  10 积分
  13. 7Keil工具MDK-Arm免费下载
  14. 0.02 MB  |  73804次下载  |  10 积分
  15. 8LabVIEW 8.6下载
  16. 未知  |  65985次下载  |  10 积分