Wiki

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
resources:tools-software:uc-drivers:renesas:ad9833 [29 Mar 2012 13:25] – Added the zip files. Dragos Bogdan
Line 1: Line 1:
 +====== AD9833 - Microcontroller No-OS Driver ======
  
 +===== Supported Devices =====
 +  * [[adi>AD9833]]
 +
 +===== Evaluation Boards ===== 
 +  * [[adi>EVAL-AD9833SDZ]]  
 +
 +===== Overview =====
 +
 +The [[adi>AD9833]] is a low power, programmable waveform generator capable of producing sine, triangular, and square wave outputs. Waveform generation is required in various types of sensing, actuation, and time domain reflectometry (TDR) applications. The output frequency and phase are software programmable, allowing easy tuning. No external components are needed. The frequency registers are 28 bits;
 +with a 25 MHz clock rate, resolution of 0.1 Hz can be achieved. Similarly, with a 1 MHz clock rate, the AD9833 can be tuned to 0.004 Hz resolution. 
 +
 +{{ :resources:tools-software:uc-drivers:renesas:eval_ad9833.jpg? |}}
 +
 +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):** 
 +  * [[http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrx62n/index.jsp|Renesas Demo Kit for RX62N (Renesas)]]
 +
 +===== Driver Description =====
 +The driver contains two parts:
 +  * The driver for the AD9833 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 AD9833 driver can be used exactly as it is provided. There are three functions which are called by the AD9833 driver:
 +  * SPI_Init() – initializes the communication peripheral.
 +  * SPI_Write() – writes data to the device.
 +  * SPI_Read() – reads data from the device.
 +
 +{{ :resources:tools-software:uc-drivers:renesas:spi_architecture.png? |}}
 +<WRAP centeralign>
 +Driver architecture
 +</WRAP>
 +
 +The implementation of these three functions depends on the used microcontroller.
 +
 +The following functions are implemented in this version of AD7792 driver:
 +^ Function       ^ Description     ^
 +| unsigned char AD9833_Init(void) | Initializes the SPI communication peripheral and resets the part. |
 +| void AD9833_Reset(void) | Sets the Reset bit of the AD9833. |
 +| void AD9833_ClearReset(void) | Clears the Reset bit of the AD9833. |
 +| void AD9833_SetRegisterValue(unsigned short regValue) | Writes the value to a register. |
 +| void AD9833_SetFrequency(unsigned short reg, unsigned long val) | Writes to the frequency registers. |
 +| void AD9833_SetPhase(unsigned short reg, unsigned short val) | Writes to the phase registers. |
 +| void AD9833_Setup(unsigned short freq, unsigned short phase, unsigned short type) | Selects the Frequency,Phase and Waveform type. |
 +
 +===== Downloads =====
 +  * {{:resources:tools-software:uc-drivers:renesas:ad9833_generic.zip|AD9833 Generic Driver}}
 +  * {{:resources:tools-software:uc-drivers:renesas:ad9833_rx62n.zip|AD9833 RX62N Driver}}
 +
 +====== Renesas RX62N Quick Start Guide ======
 +
 +This section contains a description of the steps required to run the AD9833 demonstration project on a Renesas RX62N platform. 
 +
 +==== Required Hardware ====
 +  * [[http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrx62n/index.jsp|Renesas Demo Kit for RX62N (Renesas)]]
 +  * [[adi>EVAL-AD9833SDZ|EVAL-AD9833SDZ (ADI)]]
 +
 +==== Required Software ====
 +  * [[http://www.renesas.com/products/tools/ide/ide_hew/index.jsp|High-performance Embedded Workshop for RX62N family]]
 +
 +==== Hardware Setup ====
 +An EVAL-AD9833SDZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
 +
 +    EVAL-AD9833SDZ test point SDATA      → YRDKRX62N J8 connector Pin 19
 +    EVAL-AD9833SDZ test point SCLK       → YRDKRX62N J8 connector Pin 20
 +    EVAL-AD9833SDZ test point FSYNC      → YRDKRX62N J8 connector Pin 15
 +    EVAL-AD9833SDZ J4 connector Pin AVDD → YRDKRX62N J8 connector Pin 3
 +    EVAL-AD9833SDZ J3 connector Pin DVDD → YRDKRX62N J8 connector Pin 3
 +    EVAL-AD9833SDZ J4 connector Pin AGND → YRDKRX62N J8 connector Pin 4
 +    EVAL-AD9833SDZ J3 connector Pin DGND → YRDKRX62N J8 connector Pin 4
 +{{ :resources:tools-software:uc-drivers:renesas:eval_ad9833_rx62n.jpg? |}}
 +
 +==== Reference Project Overview ====
 +
 +The demo program sets up the AD9833 part to output sinusoidal, triangle and square waves. The frequency and the type of the wave are displayed on the LCD.  
 +
 +{{ :resources:tools-software:uc-drivers:renesas:eval_ad9833_screen.jpg? |}}
 +
 +==== Software Project Setup ====
 +{{page>rx62n_software_design}}
resources/tools-software/uc-drivers/renesas/ad9833.txt · Last modified: 25 Jan 2021 05:24 by Robin Getz