The AD7910/AD7920 are 10-bit and 12-bit, high speed, low power, successive-approximation ADCs respectively. The parts operate from a single 2.35 V to 5.25 V power supply and feature throughput rates up to 250 kSPS. The parts contain a low-noise, wide bandwidth track/hold amplifier, which can handle input frequencies in excess of 6 MHz. The AD7910/AD7920 use advanced design techniques to achieve very low power dissipation at high throughput rates.
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 AD7920 driver can be used exactly as it is provided.
There are three functions which are called by the AD7920 driver:
SPI driver architecture
The following functions are implemented in this version of AD7920 driver:
Function | Description |
---|---|
unsigned char AD7920_Init(void) | Initializes the SPI communication peripheral. |
unsigned short AD7920_GetRegisterValue(void) | Reads data from AD7920. |
This section contains a description of the steps required to run the AD7920 demonstration project on a Renesas RL78G13 platform.
An EVAL-CN0241-SDPZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-CN0241-SDPZ J2 connector Pin CS → YRDKRL78G13 J11 connector Pin 1 EVAL-CN0241-SDPZ J2 connector Pin DOUT → YRDKRL78G13 J11 connector Pin 3 EVAL-CN0241-SDPZ J2 connector Pin SCLK → YRDKRL78G13 J11 connector Pin 4 EVAL-CN0241-SDPZ J2 connector Pin AGND → YRDKRL78G13 J11 connector Pin 5
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:
Configure TM00 as an interval timer:
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 AD7920 demonstration project on a Renesas RX62N platform.
An EVAL-CN0241-SDPZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-CN0241-SDPZ J2 connector Pin CS → YRDKRX62N J8 connector Pin 15 EVAL-CN0241-SDPZ J2 connector Pin DOUT → YRDKRX62N J8 connector Pin 22 EVAL-CN0241-SDPZ J2 connector Pin SCLK → YRDKRX62N J8 connector Pin 20 EVAL-CN0241-SDPZ J2 connector Pin AGND → YRDKRX62N J8 connector Pin 4
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条评论
快来发表一下你的评论吧 !